Skip to content

Commit 563c5d3

Browse files
irwineffectCor
andauthored
Flash Read/Write Support (#257)
* Added Flash Read/Write Support Incorporated Comments - Added FlashReaderGuard - Removed modulo operations - Added option to avoid verify operations - Cleanup Added more detailed notes for usage of unsafe in flash functions. ran "cargo fmt" to cleanup flash code Suppressed unused warnings for flash code, enum naming tweaks Added prefix '_' to registers and constants that aren't currently used, and renamed enum values based on review feedback added more descriptive comments where requested moved initialization of hword closer to where it's used Removed FlashReaderGuard, not necessary We can rely on the lifetime system to protect us here, the guard structure is unnecessary (see the unsafe comments for details). removed lifetimes from FlashWriter::read() Better to let the compiler determine the lifetime Co-authored-by: Cor <prive@corpeters.nl>
1 parent 3859f52 commit 563c5d3

File tree

2 files changed

+418
-0
lines changed

2 files changed

+418
-0
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
2525
### Added
2626

2727
- Add runtime-reconfigurable GPIO pins
28+
- Added support for writing/reading/erasing onboard flash
2829

2930
### Fixed
3031

0 commit comments

Comments
 (0)