mirror of
https://github.com/espressif/esp-idf.git
synced 2025-11-02 16:11:41 +01:00
feat(pm): add internal pull-up/downs option for gpio used for deepsleep wakeup
stash
This commit is contained in:
@@ -340,9 +340,13 @@ esp_err_t esp_sleep_enable_ext1_wakeup_with_level_mask(uint64_t io_mask, uint64_
|
||||
* @note This function does not modify pin configuration. The pins are
|
||||
* configured inside esp_deep_sleep_start, immediately before entering sleep mode.
|
||||
*
|
||||
* @note You don't need to care to pull-up or pull-down before using this
|
||||
* function, because this will be set internally in esp_deep_sleep_start
|
||||
* based on the wakeup mode. BTW, when you use low level to wake up the
|
||||
* @note You don't need to worry about pull-up or pull-down resistors before
|
||||
* using this function because the ESP_SLEEP_GPIO_ENABLE_INTERNAL_RESISTORS
|
||||
* option is enabled by default. It will automatically set pull-up or pull-down
|
||||
* resistors internally in esp_deep_sleep_start based on the wakeup mode. However,
|
||||
* when using external pull-up or pull-down resistors, please be sure to disable
|
||||
* the ESP_SLEEP_GPIO_ENABLE_INTERNAL_RESISTORS option, as the combination of internal
|
||||
* and external resistors may cause interference. BTW, when you use low level to wake up the
|
||||
* chip, we strongly recommend you to add external resistors (pull-up).
|
||||
*
|
||||
* @param gpio_pin_mask Bit mask of GPIO numbers which will cause wakeup. Only GPIOs
|
||||
|
||||
Reference in New Issue
Block a user