mirror of
https://github.com/micropython/micropython.git
synced 2025-12-16 09:50:15 +01:00
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>
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user