void flashpage_write_page(unsigned page, const void *data)
Write the given page with the given data.
void flashpage_write(void *target_addr, const void *data, size_t len)
Write any number of data bytes to a given location in the flash memory.
int flashpage_verify(unsigned page, const void *data)
Verify the given page against the given data.
int flashpage_write_and_verify(unsigned page, const void *data)
Write the given page and verify the results.
static unsigned flashpage_page(void *addr)
Translate the given address into the corresponding page number.
void flashpage_erase(unsigned page)
Erase the given page.
@ FLASHPAGE_NOMATCH
page differs from target data
static void * flashpage_addr(unsigned page)
Translate the given page number into the page's starting address.
#define CPU_FLASH_BASE
Per default, we expect the internal flash to start at address 0.
void flashpage_read(unsigned page, void *data)
Read the given page into the given memory location.