summaryrefslogtreecommitdiff
path: root/extmod/modmachine.c
diff options
context:
space:
mode:
Diffstat (limited to 'extmod/modmachine.c')
-rw-r--r--extmod/modmachine.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/extmod/modmachine.c b/extmod/modmachine.c
index f2570123e..28b60683b 100644
--- a/extmod/modmachine.c
+++ b/extmod/modmachine.c
@@ -219,6 +219,9 @@ static const mp_rom_map_elem_t machine_module_globals_table[] = {
#if MICROPY_PY_MACHINE_I2C
{ MP_ROM_QSTR(MP_QSTR_I2C), MP_ROM_PTR(&machine_i2c_type) },
#endif
+ #if MICROPY_PY_MACHINE_I2C_TARGET
+ { MP_ROM_QSTR(MP_QSTR_I2CTarget), MP_ROM_PTR(&machine_i2c_target_type) },
+ #endif
#if MICROPY_PY_MACHINE_I2S
{ MP_ROM_QSTR(MP_QSTR_I2S), MP_ROM_PTR(&machine_i2s_type) },
#endif