![]() ![]() BTW, when you use low level to wake up the chip, we strongly recommand you to add external registors(pull-up). You don’t need to care to pull-up or pull-down before using this function, because this will be done in esp_sleep_start based on param mask you give. The pins are configured in esp_sleep_start, immediately before entering sleep mode. This function does not modify pin configuration. This function enables an IO pin to wake the chip from deep sleep Gpio_num: Number of the GPIO to test for wakeup source capabilityĮsp_err_t esp_deep_sleep_enable_gpio_wakeup (uint64_t gpio_pin_mask, esp_deepsleep_gpio_wake_up_mode_t mode ) ¶ True if this GPIO number will be accepted as a sleep wakeup source. ![]() Returns true if a GPIO number is valid for use as wakeup source.įor SoCs with RTC IO capability, this can be any valid RTC IO input pin. Time_in_us: time before wakeup, in microsecondsīool esp_sleep_is_valid_wakeup_gpio ( gpio_num_t gpio_num ) ¶ Source: - number of source to disable of type esp_sleep_source_tĮsp_err_t esp_sleep_enable_timer_wakeup (uint64_t time_in_us ) ¶ĮSP_ERR_INVALID_ARG if value is out of range (TBD) It will be performed in esp_sleep_start function.ĮSP_ERR_INVALID_STATE if trigger was not active This function does not modify wake up configuration in RTC. This function is used to deactivate wake up trigger for source defined as parameter of the function. This will allow the system to wake up from sleep automatically when required by WiFi driver, thereby maintaining connection to the AP.įunctions ¶ esp_err_t esp_sleep_disable_wakeup_source ( esp_sleep_source_t source ) ¶ If WiFi connection needs to be maintained, enable WiFi modem sleep, and enable automatic light sleep feature (see Power Management APIs). At this point the hardware will be configured according to the requested wakeup sources, and RTC controller will either power down or power off the CPUs and digital peripherals. Once wakeup sources are configured, application can enter sleep mode using esp_light_sleep_start() or esp_deep_sleep_start() APIs. Wakeup sources can be configured at any moment before entering light or deep sleep mode.Īdditionally, the application can force specific powerdown modes for the RTC peripherals and RTC memories using esp_sleep_pd_config() API. Next section describes these APIs in detail. Wakeup sources can be enabled using esp_sleep_enable_X_wakeup APIs and can be disabled using esp_sleep_disable_wakeup_source() API. These sources can be combined, in this case the chip will wake up when any one of the sources is triggered. Wakeup from deep and light sleep modes can be done using several sources. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |