stm32/main: Deinitialize SPI and I2C on soft-reset.
Following UART, CAN, Timer, etc. Signed-off-by: iabdalkader <i.abdalkader@gmail.com>
This commit is contained in:
parent
405aa69887
commit
89191b00ea
1 changed files with 4 additions and 0 deletions
|
|
@ -678,6 +678,10 @@ soft_reset_exit:
|
|||
soft_timer_deinit();
|
||||
timer_deinit();
|
||||
uart_deinit_all();
|
||||
spi_deinit_all();
|
||||
#if MICROPY_PY_PYB_LEGACY && MICROPY_HW_ENABLE_HW_I2C
|
||||
pyb_i2c_deinit_all();
|
||||
#endif
|
||||
#if MICROPY_HW_ENABLE_CAN
|
||||
can_deinit_all();
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Reference in a new issue