micropython/ports/nrf/modules
Damien George 64180f0742 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>
2020-11-23 19:45:04 +11:00
..
ble nrf: Clean up source by removing tabs, trailing spaces, non-ASCII chars. 2019-08-28 13:34:45 +10:00
board all: Use MP_ERROR_TEXT for all error messages. 2020-04-05 15:02:06 +10:00
machine extmod/machine_i2c: Add init protocol method for generic I2C bindings. 2020-11-23 19:45:04 +11:00
music all: Use MP_ERROR_TEXT for all error messages. 2020-04-05 15:02:06 +10:00
ubluepy all: Use MP_ERROR_TEXT for all error messages. 2020-04-05 15:02:06 +10:00
uos nrf: Remove unnecessary includes of mpconfigport.h and its header guard. 2020-09-09 00:13:34 +10:00
utime nrf: Add support for time.ticks_xxx functions using RTC1. 2020-07-08 23:47:02 +10:00