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:
parent
4fa25af86c
commit
cdd9f303cf
@ -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]);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user