diff options
author | chrismas9 <c.mason@inchipdesign.com.au> | 2022-06-13 21:33:55 +1000 |
---|---|---|
committer | Damien George <damien@micropython.org> | 2022-06-17 21:27:41 +1000 |
commit | 868f23b362171ee131bd6bfa784911fb8fc66202 (patch) | |
tree | 513d3b6f081adf6b42ef970b79b420b413860636 | |
parent | fdbca3c1435910b23ad96d751a226f27e24b5aee (diff) |
stm32/boards/NUCLEO_F091RC: Enable LFS1 filesystem.
And disable some less common features to make space for it.
Signed-off-by: Chris Mason <c.mason@inchipdesign.com.au>
-rw-r--r-- | ports/stm32/boards/NUCLEO_F091RC/mpconfigboard.h | 6 | ||||
-rw-r--r-- | ports/stm32/boards/NUCLEO_F091RC/mpconfigboard.mk | 1 |
2 files changed, 6 insertions, 1 deletions
diff --git a/ports/stm32/boards/NUCLEO_F091RC/mpconfigboard.h b/ports/stm32/boards/NUCLEO_F091RC/mpconfigboard.h index 38fcb2f28..a68b93993 100644 --- a/ports/stm32/boards/NUCLEO_F091RC/mpconfigboard.h +++ b/ports/stm32/boards/NUCLEO_F091RC/mpconfigboard.h @@ -4,17 +4,21 @@ #define MICROPY_EMIT_THUMB (0) #define MICROPY_EMIT_INLINE_THUMB (0) #define MICROPY_OPT_COMPUTED_GOTO (0) +#define MICROPY_PY_BUILTINS_COMPLEX (0) #define MICROPY_PY_IO_FILEIO (0) #define MICROPY_PY_USOCKET (0) #define MICROPY_PY_NETWORK (0) #define MICROPY_PY_STM (0) #define MICROPY_PY_PYB_LEGACY (0) +#define MICROPY_PY_UHEAPQ (0) +#define MICROPY_PY_UTIMEQ (0) +#define MICROPY_PY_FRAMEBUF (0) -#define MICROPY_HW_ENABLE_INTERNAL_FLASH_STORAGE (0) #define MICROPY_HW_ENABLE_RTC (1) #define MICROPY_HW_ENABLE_ADC (1) #define MICROPY_HW_ENABLE_DAC (1) #define MICROPY_HW_HAS_SWITCH (1) +#define MICROPY_HW_HAS_FLASH (1) // For system clock, enable one source: // #define MICROPY_HW_CLK_USE_HSI (1) // internal 8MHz -> PLL = 48MHz. diff --git a/ports/stm32/boards/NUCLEO_F091RC/mpconfigboard.mk b/ports/stm32/boards/NUCLEO_F091RC/mpconfigboard.mk index 984fe2f90..441618881 100644 --- a/ports/stm32/boards/NUCLEO_F091RC/mpconfigboard.mk +++ b/ports/stm32/boards/NUCLEO_F091RC/mpconfigboard.mk @@ -5,6 +5,7 @@ LD_FILES = boards/stm32f091xc.ld boards/common_basic.ld # MicroPython settings MICROPY_VFS_FAT = 0 +MICROPY_VFS_LFS1 ?= 1 # Don't include default frozen modules because MCU is tight on flash space FROZEN_MANIFEST ?= |