Skip to content

Commit

Permalink
fixup! drivers/mtd_flashpage: define mtd_flash_aux_slot device
Browse files Browse the repository at this point in the history
  • Loading branch information
benpicco committed Dec 13, 2023
1 parent a44eb90 commit fda713c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions drivers/mtd_flashpage/mtd_flashpage.c
Original file line number Diff line number Diff line change
Expand Up @@ -161,4 +161,7 @@ const mtd_desc_t mtd_flashpage_driver = {
mtd_flashpage_t mtd_flash_aux_slot = MTD_FLASHPAGE_AUX_INIT_VAL(CONFIG_SLOT_AUX_OFFSET,
CONFIG_SLOT_AUX_LEN);
mtd_dev_t *mtd_aux = &mtd_flash_aux_slot.base;

static_assert(CONFIG_SLOT_AUX_OFFSET % FLASHPAGE_SIZE == 0, "AUX slot must align with page");
static_assert(CONFIG_SLOT_AUX_LEN % FLASHPAGE_SIZE == 0, "AUX slot must align with page");
#endif

0 comments on commit fda713c

Please sign in to comment.