From f365025c9c699a4a42c103b9ff01071ebc8d57c8 Mon Sep 17 00:00:00 2001 From: David P Date: Sat, 12 Jun 2021 14:53:44 +1000 Subject: stm32: Replace master/slave with controller/peripheral in I2C and SPI. Replace "master" with "controller" and "slave" with "peripheral" in comments, errors, and debug messages. Add CONTROLLER and PERIPHERAL constants to pyb.SPI and pyb.I2C classes; retain MASTER and SLAVE constants for backward compatiblity. --- tests/pyb/i2c.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/pyb/i2c.py') diff --git a/tests/pyb/i2c.py b/tests/pyb/i2c.py index bc9dba878..c96884327 100644 --- a/tests/pyb/i2c.py +++ b/tests/pyb/i2c.py @@ -11,6 +11,6 @@ for bus in (-1, 0, 1): i2c = I2C(1) -i2c.init(I2C.MASTER, baudrate=400000) +i2c.init(I2C.CONTROLLER, baudrate=400000) print(i2c.scan()) i2c.deinit() -- cgit v1.2.3