From bb484b6d81516ecfd110973af371a6eb00918e85 Mon Sep 17 00:00:00 2001 From: Damien George Date: Wed, 25 Jun 2025 14:28:17 +1000 Subject: [PATCH] tests/extmod/machine_uart_tx.py: Support STM32WB boards. Signed-off-by: Damien George --- tests/extmod/machine_uart_tx.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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