rp2/rp2_flash: Prevent MICROPY_HW_FLASH_STORAGE_BASE being set negative.

This commit is contained in:
Andrew Scheller 2021-03-11 10:31:03 +00:00 committed by Damien George
parent c675452566
commit b6489425c6
1 changed files with 1 additions and 0 deletions

View File

@ -42,6 +42,7 @@
#define MICROPY_HW_FLASH_STORAGE_BASE (PICO_FLASH_SIZE_BYTES - MICROPY_HW_FLASH_STORAGE_BYTES)
#endif
static_assert(MICROPY_HW_FLASH_STORAGE_BYTES <= PICO_FLASH_SIZE_BYTES, "MICROPY_HW_FLASH_STORAGE_BYTES too big");
static_assert(MICROPY_HW_FLASH_STORAGE_BASE + MICROPY_HW_FLASH_STORAGE_BYTES <= PICO_FLASH_SIZE_BYTES, "MICROPY_HW_FLASH_STORAGE_BYTES too big");
typedef struct _rp2_flash_obj_t {