mirror of
https://github.com/micropython/micropython.git
synced 2025-12-16 09:50:15 +01:00
stm32/machine_i2c_target: Implement I2CTarget class.
Works, tested on PYBV10, PYBD_SF2 and PYBD_SF6:
buf = bytearray(16)
machine.I2CTargetMemory("X", addr=67, mem=buf)
Signed-off-by: Damien George <damien@micropython.org>
This commit is contained in:
@@ -746,6 +746,9 @@ soft_reset_exit:
|
||||
#if MICROPY_PY_PYB_LEGACY && MICROPY_HW_ENABLE_HW_I2C
|
||||
pyb_i2c_deinit_all();
|
||||
#endif
|
||||
#if MICROPY_PY_MACHINE_I2C_TARGET
|
||||
mp_machine_i2c_target_deinit_all();
|
||||
#endif
|
||||
#if MICROPY_HW_ENABLE_CAN
|
||||
pyb_can_deinit_all();
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user