1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

cpu/native: extend flashpage API

This commit is contained in:
Ollrogge 2021-10-19 09:40:21 +02:00
parent 4fa25af86c
commit cdd9f303cf

View File

@ -61,3 +61,13 @@ void flashpage_write(void *target_addr, const void *data, size_t len)
_flash_write(target_addr, data, len);
}
unsigned flashpage_first_free(void)
{
return flashpage_page(&_native_flash[0]);
}
unsigned flashpage_last_free(void)
{
return flashpage_page(&_native_flash[FLASHPAGE_SIZE * FLASHPAGE_NUMOF - 1]);
}