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

sys/riotboot: remove remaining FLASHPAGE_SIZE dep

This commit is contained in:
Francisco Molina 2021-03-08 10:18:12 +01:00
parent e8cc3c6194
commit 2f7abb637a
No known key found for this signature in database
GPG Key ID: 3E94EAC3DBDEEDA8

View File

@ -213,11 +213,13 @@ int riotboot_flashwrite_invalidate_latest(void)
int riotboot_flashwrite_finish_raw(riotboot_flashwrite_t *state,
const uint8_t *bytes, size_t len)
{
#ifndef PERIPH_FLASHPAGE_CUSTOM_PAGESIZES
assert(len <= FLASHPAGE_SIZE);
#endif
uint8_t *slot_start = (uint8_t *)riotboot_slot_get_hdr(state->target_slot);
#if CONFIG_RIOTBOOT_FLASHWRITE_RAW
#if IS_ACTIVE(CONFIG_RIOTBOOT_FLASHWRITE_RAW)
memcpy(state->firstblock_buf, bytes, len);
flashpage_write(slot_start, state->firstblock_buf,
RIOTBOOT_FLASHPAGE_BUFFER_SIZE);