mirror of
https://github.com/espressif/esp-idf.git
synced 2025-07-30 10:47:19 +02:00
Merge branch 'docs/update_wakeup_gpio_esp32s2_esp32s3_esp32c6_esp32h2_v5.0' into 'release/v5.0'
docs: Updated wakeup GPIOs for ESP32-S2, ESP32-S3, ESP32-C6 and ESP32-H2 See merge request espressif/esp-idf!25617
This commit is contained in:
@ -194,10 +194,13 @@ bool esp_sleep_is_valid_wakeup_gpio(gpio_num_t gpio_num);
|
|||||||
* configured in esp_deep_sleep_start/esp_light_sleep_start,
|
* configured in esp_deep_sleep_start/esp_light_sleep_start,
|
||||||
* immediately before entering sleep mode.
|
* immediately before entering sleep mode.
|
||||||
*
|
*
|
||||||
* @note On ESP32, ext0 wakeup source can not be used together with touch or ULP wakeup sources.
|
* @note ESP32: ext0 wakeup source can not be used together with touch or ULP wakeup sources.
|
||||||
*
|
*
|
||||||
* @param gpio_num GPIO number used as wakeup source. Only GPIOs which are have RTC
|
* @param gpio_num GPIO number used as wakeup source. Only GPIOs with the RTC
|
||||||
* functionality can be used: 0,2,4,12-15,25-27,32-39.
|
* functionality can be used. For different SoCs, the related GPIOs are:
|
||||||
|
* - ESP32: 0, 2, 4, 12-15, 25-27, 32-39
|
||||||
|
* - ESP32-S2: 0-21
|
||||||
|
* - ESP32-S3: 0-21
|
||||||
* @param level input level which will trigger wakeup (0=low, 1=high)
|
* @param level input level which will trigger wakeup (0=low, 1=high)
|
||||||
* @return
|
* @return
|
||||||
* - ESP_OK on success
|
* - ESP_OK on success
|
||||||
@ -227,8 +230,13 @@ esp_err_t esp_sleep_enable_ext0_wakeup(gpio_num_t gpio_num, int level);
|
|||||||
* kept enabled using esp_sleep_pd_config function.
|
* kept enabled using esp_sleep_pd_config function.
|
||||||
*
|
*
|
||||||
* @param mask bit mask of GPIO numbers which will cause wakeup. Only GPIOs
|
* @param mask bit mask of GPIO numbers which will cause wakeup. Only GPIOs
|
||||||
* which have RTC functionality can be used in this bit map:
|
* which have RTC functionality can be used in this bit map.
|
||||||
* 0,2,4,12-15,25-27,32-39.
|
* For different SoCs, the related GPIOs are:
|
||||||
|
* - ESP32: 0, 2, 4, 12-15, 25-27, 32-39
|
||||||
|
* - ESP32-S2: 0-21
|
||||||
|
* - ESP32-S3: 0-21
|
||||||
|
* - ESP32-C6: 0-7
|
||||||
|
* - ESP32-H2: 7-14
|
||||||
* @param mode select logic function used to determine wakeup condition:
|
* @param mode select logic function used to determine wakeup condition:
|
||||||
* - ESP_EXT1_WAKEUP_ALL_LOW: wake up when all selected GPIOs are low
|
* - ESP_EXT1_WAKEUP_ALL_LOW: wake up when all selected GPIOs are low
|
||||||
* - ESP_EXT1_WAKEUP_ANY_HIGH: wake up when any of the selected GPIOs is high
|
* - ESP_EXT1_WAKEUP_ANY_HIGH: wake up when any of the selected GPIOs is high
|
||||||
|
Reference in New Issue
Block a user