summaryrefslogtreecommitdiffstatshomepage
path: root/tests/pyb/pyb_f405.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/pyb_f405.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/pyb_f405.py')
-rw-r--r--tests/pyb/pyb_f405.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/pyb/pyb_f405.py b/tests/pyb/pyb_f405.py
index 243381056e..d7431a11a1 100644
--- a/tests/pyb/pyb_f405.py
+++ b/tests/pyb/pyb_f405.py
@@ -10,7 +10,7 @@ print(pyb.freq())
print(type(pyb.rng()))
# test HAL error specific to F405
-i2c = pyb.I2C(2, pyb.I2C.MASTER)
+i2c = pyb.I2C(2, pyb.I2C.CONTROLLER)
try:
i2c.recv(1, 1)
except OSError as e: