Function esp_idf_svc::sys::gpio_intr_enable
source ยท pub unsafe extern "C" fn gpio_intr_enable(gpio_num: i32) -> i32
Expand description
@brief Enable GPIO module interrupt signal
@note ESP32: Please do not use the interrupt of GPIO36 and GPIO39 when using ADC or Wi-Fi and Bluetooth with sleep mode enabled.
Please refer to the comments of adc1_get_raw
.
Please refer to Section 3.11 of ESP32 ECO and Workarounds for Bugs for the description of this issue.
@param gpio_num GPIO number. If you want to enable an interrupt on e.g. GPIO16, gpio_num should be GPIO_NUM_16 (16);
@return - ESP_OK Success - ESP_ERR_INVALID_ARG Parameter error