Flash memory driver

Generic flash memory driver. More...

Detailed Description

Note
This interface is deprecated, use periph/flaspage instead

Files

file  flashrom.h
 Generic flash memory driver.
 

Functions

uint8_t flashrom_erase (uint8_t *addr)
 Erase sector. More...
 
uint8_t flashrom_write (uint8_t *dst, const uint8_t *src, size_t size)
 Write buffer from ram to flash. More...
 

Function Documentation

uint8_t flashrom_erase ( uint8_t *  addr)
Parameters
[out]addrAddress within a flash sector to erase
Returns
1 on success, 0 otherwise
uint8_t flashrom_write ( uint8_t *  dst,
const uint8_t *  src,
size_t  size 
)
Parameters
[out]dstAddress within a flash sector to write, must be a 256 byte boundary
[in]srcAddress within ram, must be a word boundary
[in]sizeBytes to write
Returns
1 on success, 0 otherwise