Flash memory driver

Generic flash memory driver.

Note

This interface is deprecated, use periph/flaspage instead

uint8_t flashrom_erase(uint8_t * addr)

Erase sector.

Parameters

addr:Address within a flash sector to erase

Return values

  • 1 on success, 0 otherwise
uint8_t flashrom_write(uint8_t * dst, const uint8_t * src, msp430_types.h::size_t size)

Write buffer from ram to flash.

Parameters

dst:Address within a flash sector to write, must be a 256 byte boundary
src:Address within ram, must be a word boundary
size:Bytes to write

Return values

  • 1 on success, 0 otherwise