From d890a516a1097f0a07788e203fdb1a82bb83520e Mon Sep 17 00:00:00 2001 From: Ivan Grokhotkov Date: Tue, 7 Jan 2020 09:48:07 +0100 Subject: [PATCH] driver: add notes about GPIO36/39 issue (ECO 3.11) workaround Closes IDFGH-1917 Closes https://github.com/espressif/esp-idf/issues/4117 --- components/driver/include/driver/gpio.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/components/driver/include/driver/gpio.h b/components/driver/include/driver/gpio.h index 3f382d4931..333f75ddbc 100644 --- a/components/driver/include/driver/gpio.h +++ b/components/driver/include/driver/gpio.h @@ -95,9 +95,11 @@ esp_err_t gpio_set_intr_type(gpio_num_t gpio_num, gpio_int_type_t intr_type); /** * @brief Enable GPIO module interrupt signal * - * @note Please do not use the interrupt of GPIO36 and GPIO39 when using ADC. + * @note Please do not use the interrupt of GPIO36 and GPIO39 when using ADC or Wi-Fi with sleep mode enabled. * Please refer to the comments of `adc1_get_raw`. * Please refer to section 3.11 of 'ECO_and_Workarounds_for_Bugs_in_ESP32' for the description of this issue. + * As a workaround, call adc_power_acquire() in the app. This will result in higher power consumption (by ~1mA), + * but will remove the glitches on GPIO36 and GPIO39. * * @param gpio_num GPIO number. If you want to enable an interrupt on e.g. GPIO16, gpio_num should be GPIO_NUM_16 (16); *