tests/target_wiring: Provide an ESP8266 target wiring module.

This commit introduces ESP8266 support for target wiring tests, fixing
execution of relevant tests that once failed on that platform.

ESP8266 boards need to have GPIO4 and GPIO5 connected together to
provide a UART loopback, in order to test whether UART data effectively
flows through.

The wiring-enabled UART transmission timing test was also updated with
measurements compatible with a few ESP8266 test boards.

Signed-off-by: Alessandro Gatti <a.gatti@frob.it>
This commit is contained in:
Alessandro Gatti 2025-12-17 03:57:52 +01:00 committed by Damien George
parent dbf59db5a1
commit 9c9b99686e
2 changed files with 9 additions and 0 deletions

View File

@ -19,6 +19,8 @@ if "alif" in sys.platform:
bit_margin = 1
elif "esp32" in sys.platform:
timing_margin_us = 400
elif "esp8266" in sys.platform:
timing_margin_us = 4100
elif "mimxrt" in sys.platform:
initial_delay_ms = 20 # UART sends idle frame after init, so wait for that
bit_margin = 1

View File

@ -0,0 +1,7 @@
# Target wiring for general esp8266 board.
#
# Connect:
# - GPIO4 to GPIO5
uart_loopback_args = (1,)
uart_loopback_kwargs = {}