tests/extmod: Config SPI test for esp8266 and skip SoftTimer test.

Signed-off-by: Damien George <damien@micropython.org>
This commit is contained in:
Damien George 2024-10-18 23:11:47 +11:00
parent d1574de3b6
commit 7d442373af
2 changed files with 5 additions and 2 deletions

View File

@ -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

View File

@ -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