feat(esp_hw_support): support lightsleep and deepsleep on esp32h21

This commit is contained in:
wuzhenghui
2025-06-24 20:06:43 +08:00
committed by BOT
parent ae34067f11
commit 3e7892122e
16 changed files with 101 additions and 170 deletions

View File

@@ -126,6 +126,19 @@ const int s_test_map[TEST_GPIO_PIN_COUNT] = {
};
#define TEST_RTCIO_INTR_PIN_INDEX 5 // IO12
#define TEST_RTCIO_DEEP_SLEEP_PIN_INDEX 5 // IO12
#elif CONFIG_IDF_TARGET_ESP32H21
#define TEST_GPIO_PIN_COUNT 7
const int s_test_map[TEST_GPIO_PIN_COUNT] = {
GPIO_NUM_5, //GPIO5
GPIO_NUM_6, //GPIO6
GPIO_NUM_7, //GPIO7
GPIO_NUM_8, //GPIO8
GPIO_NUM_9, //GPIO9
GPIO_NUM_10, //GPIO10
GPIO_NUM_11, //GPIO11
};
#define TEST_RTCIO_INTR_PIN_INDEX 6 // IO11
#define TEST_RTCIO_DEEP_SLEEP_PIN_INDEX 6 // IO11
#elif CONFIG_IDF_TARGET_ESP32P4
// Has no input-only rtcio pins, all pins support pull-up/down
#define RTCIO_SUPPORT_PU_PD(num) 1