summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorDamien George <damien@micropython.org>2024-10-18 23:11:47 +1100
committerDamien George <damien@micropython.org>2024-10-22 14:31:13 +1100
commit7d442373afbc685d7becfda68df375a65c6b63f2 (patch)
treee467bb4fec5f558534ea259cbeb986994c807ce6 /tests
parentd1574de3b6a050ef07c39a131203305f731d39d8 (diff)
tests/extmod: Config SPI test for esp8266 and skip SoftTimer test.
Signed-off-by: Damien George <damien@micropython.org>
Diffstat (limited to 'tests')
-rw-r--r--tests/extmod/machine_soft_timer.py4
-rw-r--r--tests/extmod/machine_spi_rate.py3
2 files changed, 5 insertions, 2 deletions
diff --git a/tests/extmod/machine_soft_timer.py b/tests/extmod/machine_soft_timer.py
index bff9af5b8..1e9c66aa2 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 19371d3bd..7022955a3 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