summaryrefslogtreecommitdiff
path: root/tests/pyb/i2c.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.py
parentfdd5b18133e9d9f5a4e76be22ece6632d11d7fee (diff)
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.py')
-rw-r--r--tests/pyb/i2c.py2
1 files changed, 1 insertions, 1 deletions
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()