summaryrefslogtreecommitdiff
path: root/tests/extmod/machine_uart_tx.py
diff options
context:
space:
mode:
authorDamien George <damien@micropython.org>2025-06-25 14:28:17 +1000
committerDamien George <damien@micropython.org>2025-07-08 13:17:57 +1000
commitbb484b6d81516ecfd110973af371a6eb00918e85 (patch)
tree03f7ea7d25a97534a9004d14c83a011cdff67491 /tests/extmod/machine_uart_tx.py
parent0975255f863be2e2529d57fb67bc7ba841e81249 (diff)
tests/extmod/machine_uart_tx.py: Support STM32WB boards.
Signed-off-by: Damien George <damien@micropython.org>
Diffstat (limited to 'tests/extmod/machine_uart_tx.py')
-rw-r--r--tests/extmod/machine_uart_tx.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/extmod/machine_uart_tx.py b/tests/extmod/machine_uart_tx.py
index f0cc912da..85bf7e9fb 100644
--- a/tests/extmod/machine_uart_tx.py
+++ b/tests/extmod/machine_uart_tx.py
@@ -28,7 +28,10 @@ elif "mimxrt" in sys.platform:
initial_delay_ms = 20 # UART sends idle frame after init, so wait for that
bit_margin = 1
elif "pyboard" in sys.platform:
- uart_id = 4
+ if "STM32WB" in sys.implementation._machine:
+ uart_id = "LP1"
+ else:
+ uart_id = 4
pins = {}
initial_delay_ms = 50 # UART sends idle frame after init, so wait for that
bit_margin = 1 # first start-bit must wait to sync with the UART clock