Skip to content

Commit bb484b6

Browse files
committed
tests/extmod/machine_uart_tx.py: Support STM32WB boards.
Signed-off-by: Damien George <[email protected]>
1 parent 0975255 commit bb484b6

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

tests/extmod/machine_uart_tx.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,10 @@
2828
initial_delay_ms = 20 # UART sends idle frame after init, so wait for that
2929
bit_margin = 1
3030
elif "pyboard" in sys.platform:
31-
uart_id = 4
31+
if "STM32WB" in sys.implementation._machine:
32+
uart_id = "LP1"
33+
else:
34+
uart_id = 4
3235
pins = {}
3336
initial_delay_ms = 50 # UART sends idle frame after init, so wait for that
3437
bit_margin = 1 # first start-bit must wait to sync with the UART clock

0 commit comments

Comments
 (0)