tests: Tweak machine SPI and UART tests to work with esp32c6.
Signed-off-by: Damien George <damien@micropython.org>
This commit is contained in:
parent
55dc482d3e
commit
197becbdcc
@ -21,7 +21,8 @@ if "pyboard" in sys.platform:
|
|||||||
elif "rp2" in sys.platform:
|
elif "rp2" in sys.platform:
|
||||||
spi_instances = ((0, Pin(18), Pin(19), Pin(16)),)
|
spi_instances = ((0, Pin(18), Pin(19), Pin(16)),)
|
||||||
elif "esp32" in sys.platform:
|
elif "esp32" in sys.platform:
|
||||||
if "ESP32C3" in str(sys.implementation):
|
impl = str(sys.implementation)
|
||||||
|
if "ESP32C3" in impl or "ESP32C6" in impl:
|
||||||
spi_instances = ((1, Pin(4), Pin(5), Pin(6)),)
|
spi_instances = ((1, Pin(4), Pin(5), Pin(6)),)
|
||||||
else:
|
else:
|
||||||
spi_instances = ((1, Pin(18), Pin(19), Pin(21)), (2, Pin(18), Pin(19), Pin(21)))
|
spi_instances = ((1, Pin(18), Pin(19), Pin(21)), (2, Pin(18), Pin(19), Pin(21)))
|
||||||
|
|||||||
@ -15,7 +15,8 @@ import time, sys
|
|||||||
|
|
||||||
# Configure pins based on the target.
|
# Configure pins based on the target.
|
||||||
if "esp32" in sys.platform:
|
if "esp32" in sys.platform:
|
||||||
if "ESP32S2" in sys.implementation._machine or "ESP32C3" in sys.implementation._machine:
|
_machine = sys.implementation._machine
|
||||||
|
if "ESP32S2" in _machine or "ESP32C3" in _machine or "ESP32C6" in _machine:
|
||||||
print("SKIP")
|
print("SKIP")
|
||||||
raise SystemExit
|
raise SystemExit
|
||||||
# ESP32 needs separate UART instances for the test
|
# ESP32 needs separate UART instances for the test
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user