Skip to content

Commit

Permalink
Added Flash Read/Write Support
Browse files Browse the repository at this point in the history
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
  • Loading branch information
Cor authored and irwineffect committed Sep 2, 2020
1 parent f183b4f commit e6cb4a8
Showing 1 changed file with 417 additions and 0 deletions.
Loading

0 comments on commit e6cb4a8

Please sign in to comment.