Generic flash memory driver.
More...
Generic flash memory driver.
- Note
- This interface is deprecated, use
periph/flaspage instead
◆ flashrom_erase()
| uint8_t flashrom_erase |
( |
uint8_t * |
addr | ) |
|
Erase sector.
- Parameters
-
| [out] | addr | Address within a flash sector to erase |
- Returns
- 1 on success, 0 otherwise
◆ flashrom_write()
| uint8_t flashrom_write |
( |
uint8_t * |
dst, |
|
|
const uint8_t * |
src, |
|
|
size_t |
size |
|
) |
| |
Write buffer from ram to flash.
- Parameters
-
| [out] | dst | Address within a flash sector to write, must be a 256 byte boundary |
| [in] | src | Address within ram, must be a word boundary |
| [in] | size | Bytes to write |
- Returns
- 1 on success, 0 otherwise