Function esp_idf_sys::rtc_gpio_set_direction_in_sleep
source ยท pub unsafe extern "C" fn rtc_gpio_set_direction_in_sleep(
gpio_num: gpio_num_t,
mode: rtc_gpio_mode_t,
) -> esp_err_t
Expand description
@brief RTC GPIO set direction in deep sleep mode or disable sleep status (default). In some application scenarios, IO needs to have another states during deep sleep.
NOTE: ESP32 supports INPUT_ONLY mode. The rest targets support INPUT_ONLY, OUTPUT_ONLY, INPUT_OUTPUT mode.
@param gpio_num GPIO number (e.g. GPIO_NUM_12) @param mode GPIO direction
@return - ESP_OK Success - ESP_ERR_INVALID_ARG GPIO is not an RTC IO