Skip to content

Commit 197becb

Browse files
committed
tests: Tweak machine SPI and UART tests to work with esp32c6.
Signed-off-by: Damien George <damien@micropython.org>
1 parent 55dc482 commit 197becb

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

tests/extmod/machine_spi_rate.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@
2121
elif "rp2" in sys.platform:
2222
spi_instances = ((0, Pin(18), Pin(19), Pin(16)),)
2323
elif "esp32" in sys.platform:
24-
if "ESP32C3" in str(sys.implementation):
24+
impl = str(sys.implementation)
25+
if "ESP32C3" in impl or "ESP32C6" in impl:
2526
spi_instances = ((1, Pin(4), Pin(5), Pin(6)),)
2627
else:
2728
spi_instances = ((1, Pin(18), Pin(19), Pin(21)), (2, Pin(18), Pin(19), Pin(21)))

tests/extmod_hardware/machine_uart_irq_break.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@
1515

1616
# Configure pins based on the target.
1717
if "esp32" in sys.platform:
18-
if "ESP32S2" in sys.implementation._machine or "ESP32C3" in sys.implementation._machine:
18+
_machine = sys.implementation._machine
19+
if "ESP32S2" in _machine or "ESP32C3" in _machine or "ESP32C6" in _machine:
1920
print("SKIP")
2021
raise SystemExit
2122
# ESP32 needs separate UART instances for the test

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy