diff options
| author | Damien George <damien@micropython.org> | 2025-07-28 15:20:19 +1000 |
|---|---|---|
| committer | Damien George <damien@micropython.org> | 2025-08-01 23:03:17 +1000 |
| commit | 7bc83afee2115d1a470bc2e901d998b63cef7b25 (patch) | |
| tree | fba4ccaabba8f796705fa53275c65916a81f516e /ports/esp32/main.c | |
| parent | ac5b1bce9986775e787a24f77f827c4ad50ffff5 (diff) | |
esp32/machine_i2c_target: Implement I2CTarget class.
Only soft IRQs are supported.
Signed-off-by: Damien George <damien@micropython.org>
Diffstat (limited to 'ports/esp32/main.c')
| -rw-r--r-- | ports/esp32/main.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/ports/esp32/main.c b/ports/esp32/main.c index f048aa85f..f85fb6c08 100644 --- a/ports/esp32/main.c +++ b/ports/esp32/main.c @@ -51,6 +51,7 @@ #include "py/repl.h" #include "py/gc.h" #include "py/mphal.h" +#include "extmod/modmachine.h" #include "shared/readline/readline.h" #include "shared/runtime/pyexec.h" #include "shared/timeutils/timeutils.h" @@ -199,7 +200,11 @@ soft_reset_exit: machine_pwm_deinit_all(); // TODO: machine_rmt_deinit_all(); machine_pins_deinit(); + #if MICROPY_PY_MACHINE_I2C_TARGET + mp_machine_i2c_target_deinit_all(); + #endif machine_deinit(); + #if MICROPY_PY_SOCKET_EVENTS socket_events_deinit(); #endif |
