Function esp_idf_sys::rtc_gpio_wakeup_enable

source ยท
pub unsafe extern "C" fn rtc_gpio_wakeup_enable(
    gpio_num: gpio_num_t,
    intr_type: gpio_int_type_t,
) -> esp_err_t
Expand description

@brief Enable wakeup from sleep mode using specific GPIO @param gpio_num GPIO number @param intr_type Wakeup on high level (GPIO_INTR_HIGH_LEVEL) or low level (GPIO_INTR_LOW_LEVEL) @return - ESP_OK on success - ESP_ERR_INVALID_ARG if gpio_num is not an RTC IO, or intr_type is not one of GPIO_INTR_HIGH_LEVEL, GPIO_INTR_LOW_LEVEL.