diff options
| author | Damien George <damien@micropython.org> | 2024-02-07 13:34:12 +1100 |
|---|---|---|
| committer | Damien George <damien@micropython.org> | 2024-02-07 13:45:51 +1100 |
| commit | 657faee7e5c44552ba39dea00d4c0d12ef09ca30 (patch) | |
| tree | 62ee3a3406f205431f5fdf84f9cfa87d80f0db22 | |
| parent | 4e6436d4cffc7198f6d79431bb76eaf71d3e2ec1 (diff) | |
stm32/main: Allow disabling MICROPY_PY_MACHINE.
Disabling this requires also disabling: MICROPY_PY_PYB and MICROPY_PY_STM.
Signed-off-by: Damien George <damien@micropython.org>
| -rw-r--r-- | ports/stm32/main.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/ports/stm32/main.c b/ports/stm32/main.c index 06ba74f75..3279770ea 100644 --- a/ports/stm32/main.c +++ b/ports/stm32/main.c @@ -424,7 +424,9 @@ void stm32_main(uint32_t reset_mode) { #if MICROPY_HW_HAS_SWITCH switch_init0(); #endif + #if MICROPY_PY_MACHINE machine_init(); + #endif #if MICROPY_HW_ENABLE_RTC rtc_init_start(false); #endif @@ -670,7 +672,9 @@ soft_reset_exit: #if MICROPY_HW_ENABLE_DAC dac_deinit_all(); #endif + #if MICROPY_PY_MACHINE machine_deinit(); + #endif #if MICROPY_PY_THREAD pyb_thread_deinit(); |
