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_error.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/pyb/i2c_error.py') diff --git a/tests/pyb/i2c_error.py b/tests/pyb/i2c_error.py index b17a26325d..1228962f5f 100644 --- a/tests/pyb/i2c_error.py +++ b/tests/pyb/i2c_error.py @@ -11,7 +11,7 @@ if not hasattr(pyb, "Accel"): pyb.Accel() # get I2C bus -i2c = I2C(1, I2C.MASTER, dma=True) +i2c = I2C(1, I2C.CONTROLLER, dma=True) # test polling mem_read pyb.disable_irq() -- cgit v1.2.3