Module lm4f120::flash [−][src]
Flash drivers for the LM4F120H5QR
The LM4F120 has a flash memory controller which supports:
- 1 KiB page erase
- 32-bit word write
- 32 word (128 byte) block write
Structs
FlashAddress |
Represents an address in Flash memory. As flash memory starts at 0x0000_0000, flash addresses are equal to CPU physical addresses. |
Enums
Error | |
ProtectMode |
Constants
PAGE_LENGTH_WORDS |
Maximum number of u32s we can write to flash in one go. |
Functions
erase_page |
Erase a 1 KiB page of flash. The given address must be on 1 KiB boundary (i.e. a multiple of 1024). |
get_flash_size |
Get the size of flash in bytes. |
get_protection |
Get the protection status of the block containing the given address. |
get_sram_size | |
write_page |
Write a <= 128 byte (<= 32 word) buffer to flash at the given address. The address must be on a 4-byte boundary and the buffer must have a length less than or equal to 32 words. |
write_word |
Write a 32-bit value to flash at the given address. The address must be on a 4-byte boundary (i.e. a multiple of 4). |