stm32/boards: Disable some features on boards with small flash.

This allows the newly-added `machine.PWM` class to fit on these boards,
which is arguably more useful than the features disabled in this commit.

Signed-off-by: Damien George <damien@micropython.org>
This commit is contained in:
Damien George
2026-03-04 17:03:29 +11:00
parent 1d5073f609
commit af31472e3d
2 changed files with 2 additions and 0 deletions

View File

@@ -3,6 +3,7 @@
#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_SOCKET (0)
#define MICROPY_PY_NETWORK (0)

View File

@@ -12,6 +12,7 @@
#define MICROPY_PY_STM (0)
#define MICROPY_PY_PYB_LEGACY (0)
#define MICROPY_PY_HEAPQ (0)
#define MICROPY_PY_FRAMEBUF (0)
#define MICROPY_HW_ENABLE_RTC (1)
#define MICROPY_HW_ENABLE_ADC (1)