Skip to content

Commit 07540a8

Browse files
FHdpgeorge
authored andcommitted
esp32/modesp32: Update available RTC pins for ESP32C6.
According to https://wiki.seeedstudio.com/xiao_esp32c6_getting_started/#demo1-deep-sleep-with-external-wake-up and https://docs.espressif.com/projects/esp-idf/en/stable/esp32c6/api-reference/peripherals/gpio.html ESP32C6 supports RTC/LP on Pins 0-7. Signed-off-by: FH <fh3095-gitcommit@yahoo.com>
1 parent da6a18f commit 07540a8

1 file changed

Lines changed: 15 additions & 0 deletions

File tree

ports/esp32/modesp32.h

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,21 @@
3232
)
3333
#define RTC_LAST_EXT_PIN 21
3434

35+
#elif CONFIG_IDF_TARGET_ESP32C6
36+
37+
#define RTC_VALID_EXT_PINS \
38+
( \
39+
(1ll << 0) | \
40+
(1ll << 1) | \
41+
(1ll << 2) | \
42+
(1ll << 3) | \
43+
(1ll << 4) | \
44+
(1ll << 5) | \
45+
(1ll << 6) | \
46+
(1ll << 7) \
47+
)
48+
#define RTC_LAST_EXT_PIN 7
49+
3550
#else
3651

3752
#define RTC_VALID_EXT_PINS \

0 commit comments

Comments
 (0)