From 7d442373afbc685d7becfda68df375a65c6b63f2 Mon Sep 17 00:00:00 2001 From: Damien George Date: Fri, 18 Oct 2024 23:11:47 +1100 Subject: [PATCH] tests/extmod: Config SPI test for esp8266 and skip SoftTimer test. Signed-off-by: Damien George --- tests/extmod/machine_soft_timer.py | 4 ++-- tests/extmod/machine_spi_rate.py | 3 +++ 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/tests/extmod/machine_soft_timer.py b/tests/extmod/machine_soft_timer.py index bff9af5b82..1e9c66aa22 100644 --- a/tests/extmod/machine_soft_timer.py +++ b/tests/extmod/machine_soft_timer.py @@ -2,8 +2,8 @@ import sys -if sys.platform == "esp32": - print("SKIP") # TODO: Implement soft timers for esp32 port +if sys.platform in ("esp32", "esp8266"): + print("SKIP") # TODO: Implement soft timers for esp32/esp8266 ports raise SystemExit diff --git a/tests/extmod/machine_spi_rate.py b/tests/extmod/machine_spi_rate.py index 19371d3bd7..7022955a3d 100644 --- a/tests/extmod/machine_spi_rate.py +++ b/tests/extmod/machine_spi_rate.py @@ -26,6 +26,9 @@ elif "esp32" in sys.platform: spi_instances = ((1, Pin(4), Pin(5), Pin(6)),) else: spi_instances = ((1, Pin(18), Pin(19), Pin(21)), (2, Pin(18), Pin(19), Pin(21))) +elif "esp8266" in sys.platform: + MAX_DELTA_MS = 50 # port requires much looser timing requirements + spi_instances = ((1, None, None, None),) # explicit pin choice not allowed else: print("Please add support for this test on this platform.") raise SystemExit