summaryrefslogtreecommitdiffstatshomepage
path: root/extmod/nimble/syscfg/syscfg.h
diff options
context:
space:
mode:
authorDamien George <damien@micropython.org>2020-11-18 14:50:43 +1100
committerDamien George <damien@micropython.org>2020-11-23 19:45:04 +1100
commit64180f0742a1926162b784c68bafa49b9b58596c (patch)
tree8e9f8be1f6cee62d0de0183d963801e09d8c4f27 /extmod/nimble/syscfg/syscfg.h
parent3dcb551d8981bfb370bfe8f467fcde59dd7a916a (diff)
downloadmicropython-64180f0742a1926162b784c68bafa49b9b58596c.tar.gz
micropython-64180f0742a1926162b784c68bafa49b9b58596c.zip
extmod/machine_i2c: Add init protocol method for generic I2C bindings.
Hardware I2C implementations must provide a .init() protocol method if they want to support reconfiguration. Otherwise the default is that i2c.init() raises an OSError (currently the case for all ports). mp_machine_soft_i2c_locals_dict is renamed to mp_machine_i2c_locals_dict to match the generic SPI bindings. Fixes issue #6623 (where calling .init() on a HW I2C would crash). Signed-off-by: Damien George <damien@micropython.org>
Diffstat (limited to 'extmod/nimble/syscfg/syscfg.h')
0 files changed, 0 insertions, 0 deletions