8000 tests/extmod: Config SPI test for esp8266 and skip SoftTimer test. · micropython/micropython@7d44237 · GitHub
[go: up one dir, main page]

Skip to content

Commit 7d44237

Browse files
committed
tests/extmod: Config SPI test for esp8266 and skip SoftTimer test.
Signed-off-by: Damien George <damien@micropython.org>
1 parent d1574de commit 7d44237

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

tests/extmod/machine_soft_timer.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
import sys
33

44

5-
if sys.platform == "esp32":
6-
print("SKIP") # TODO: Implement soft timers for esp32 port
5+
if sys.platform in ("esp32", "esp8266"):
6+
print("SKIP") # TODO: Implement soft timers for esp32/esp8266 ports
77
raise SystemExit
88

99

tests/extmod/machine_spi_rate.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,9 @@
2626
spi_instances = ((1, Pin(4), Pin(5), Pin(6)),)
2727
else:
2828
spi_instances = ((1, Pin(18), Pin(19), Pin(21)), (2, Pin(18), Pin(19), Pin(21)))
29+
elif "esp8266" in sys.platform:
30+
MAX_DELTA_MS = 50 # port requires much looser timing requirements
31+
spi_instances = ((1, None, None, None),) # explicit pin choice not allowed
2932
else:
3033
print("Please add support for this test on this platform.")
3134
raise SystemExit

0 commit comments

Comments
 (0)
0