tests/extmod/machine_uart_tx.py: Support STM32WB boards.
Signed-off-by: Damien George <damien@micropython.org>
This commit is contained in:
parent
0975255f86
commit
bb484b6d81
1 changed files with 4 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue