Commit 563c5d3
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
2 files changed
+418
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
| 28 | + | |
28 | 29 | | |
29 | 30 | | |
30 | 31 | | |
| |||
0 commit comments