bootloader: Add the flash module.
authorTilman Sauerbeck <tilman@code-monkey.de>
Tue, 25 Jun 2019 04:06:30 +0000 (06:06 +0200)
committerTilman Sauerbeck <tilman@code-monkey.de>
Mon, 30 Dec 2019 11:27:58 +0000 (12:27 +0100)
commit2cd9f6b175d16cb0a5c8bb7f3e387fecd27a7199
tree533786eca9b300aa737ac3bc5b857bdee35e3dc2
parent09affce6a84f2048c678e442908413c92a6431fd
bootloader: Add the flash module.

Offers functions to erase a flash sector, program a flash sector and
verify a flash sector's contents.

Note that we don't clear the flash controller's cache by writing to
MCM_PLACR after erasing or programming sectors since it doesn't seem
to be required.
SConscript.target
src/bootloader/flash.rs [new file with mode: 0644]
src/bootloader/main.rs