summaryrefslogtreecommitdiffstatshomepage
path: root/tests/pyb/i2c_error.py
diff options
context:
space:
mode:
authorDavid P <dpoirier@y7mail.com>2021-06-12 14:53:44 +1000
committerDamien George <damien@micropython.org>2021-07-18 11:23:41 +1000
commitf365025c9c699a4a42c103b9ff01071ebc8d57c8 (patch)
treecc36bc6703e39729274141541b00cf3f3747caca /tests/pyb/i2c_error.py
parentfdd5b18133e9d9f5a4e76be22ece6632d11d7fee (diff)
downloadmicropython-f365025c9c699a4a42c103b9ff01071ebc8d57c8.tar.gz
micropython-f365025c9c699a4a42c103b9ff01071ebc8d57c8.zip
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.
Diffstat (limited to 'tests/pyb/i2c_error.py')
-rw-r--r--tests/pyb/i2c_error.py2
1 files changed, 1 insertions, 1 deletions
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()