diff options
| author | Damien George | 2020-09-16 13:30:48 +1000 |
|---|---|---|
| committer | Damien George | 2020-10-01 12:57:10 +1000 |
| commit | c35deb2625efc877b3a0d03d5654e27232b2d101 (patch) | |
| tree | e3706c52baba2498fae9db769ea5167f321ce427 /ports/zephyr | |
| parent | c711c0049e5f12cae048d2b0e77bc70e68804ea5 (diff) | |
extmod/machine_i2c: Rename type to SoftI2C and add custom print method.
Also rename machine_i2c_type to mp_machine_soft_i2c_type. These changes
make it clear that it's a soft-I2C implementation, and match SoftSPI.
Signed-off-by: Damien George <damien@micropython.org>
Diffstat (limited to 'ports/zephyr')
| -rw-r--r-- | ports/zephyr/modmachine.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ports/zephyr/modmachine.c b/ports/zephyr/modmachine.c index 72078cf9d..fc4d3b3ca 100644 --- a/ports/zephyr/modmachine.c +++ b/ports/zephyr/modmachine.c @@ -60,7 +60,7 @@ STATIC const mp_rom_map_elem_t machine_module_globals_table[] = { #endif { MP_ROM_QSTR(MP_QSTR_reset_cause), MP_ROM_PTR(&machine_reset_cause_obj) }, - { MP_ROM_QSTR(MP_QSTR_I2C), MP_ROM_PTR(&machine_i2c_type) }, + { MP_ROM_QSTR(MP_QSTR_I2C), MP_ROM_PTR(&mp_machine_soft_i2c_type) }, { MP_ROM_QSTR(MP_QSTR_Pin), MP_ROM_PTR(&machine_pin_type) }, { MP_ROM_QSTR(MP_QSTR_Signal), MP_ROM_PTR(&machine_signal_type) }, |
