Function esp_idf_hal::sys::gpio_deep_sleep_wakeup_enable
source · pub unsafe extern "C" fn gpio_deep_sleep_wakeup_enable(
gpio_num: i32,
intr_type: u32,
) -> i32
Expand description
@brief Enable GPIO deep-sleep wake-up function.
@param gpio_num GPIO number.
@param intr_type GPIO wake-up type. Only GPIO_INTR_LOW_LEVEL or GPIO_INTR_HIGH_LEVEL can be used.
@note Called by the SDK. User shouldn’t call this directly in the APP.
@return - ESP_OK Success - ESP_ERR_INVALID_ARG Parameter error