tests/extmod: Config SPI test for esp8266 and skip SoftTimer test.
Signed-off-by: Damien George <damien@micropython.org>
This commit is contained in:
parent
d1574de3b6
commit
7d442373af
@ -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
|
||||
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user