Change: rewrite EXT1 triggle mode all_low to any_low when not esp32

This commit is contained in:
Lou Tianhao
2023-07-25 17:31:14 +08:00
parent cc484c59c8
commit 7aa3079e2a
5 changed files with 22 additions and 4 deletions

View File

@@ -96,7 +96,8 @@ This wakeup mode doesn't require RTC peripherals or RTC memories to be powered o
RTC controller contains logic to trigger wakeup using multiple RTC GPIOs. One of the two logic functions can be used to trigger wakeup:
- wake up if any of the selected pins is high (``ESP_EXT1_WAKEUP_ANY_HIGH``)
- wake up if all the selected pins are low (``ESP_EXT1_WAKEUP_ALL_LOW``)
- wake up if all the selected pins are low (``ESP_EXT1_WAKEUP_ALL_LOW``) when target chip is esp32
- wake up if any of the selected pins is low (``ESP_EXT1_WAKEUP_ANY_LOW``) when target chip is esp32s2 or esp32s3
This wakeup source is implemented by the RTC controller. As such, RTC peripherals and RTC memories can be powered down in this mode. However, if RTC peripherals are powered down, internal pullup and pulldown resistors will be disabled. To use internal pullup or pulldown resistors, request RTC peripherals power domain to be kept on during sleep, and configure pullup/pulldown resistors using ``rtc_gpio_`` functions, before entering sleep::