Flash memory driver

Generic flash memory driver. More...

Detailed Description

Generic flash memory driver.

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

◆ flashrom_erase()

uint8_t flashrom_erase ( uint8_t *  addr)

Erase sector.

Parameters
[out]addrAddress 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]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