Skip to content

Commit d890a51

Browse files
igrrmythbuster5
authored andcommitted
driver: add notes about GPIO36/39 issue (ECO 3.11) workaround
Closes IDFGH-1917 Closes #4117
1 parent 80e7252 commit d890a51

File tree

1 file changed

+3
-1
lines changed
  • components/driver/include/driver

1 file changed

+3
-1
lines changed

components/driver/include/driver/gpio.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,9 +95,11 @@ esp_err_t gpio_set_intr_type(gpio_num_t gpio_num, gpio_int_type_t intr_type);
9595
/**
9696
* @brief Enable GPIO module interrupt signal
9797
*
98-
* @note Please do not use the interrupt of GPIO36 and GPIO39 when using ADC.
98+
* @note Please do not use the interrupt of GPIO36 and GPIO39 when using ADC or Wi-Fi with sleep mode enabled.
9999
* Please refer to the comments of `adc1_get_raw`.
100100
* Please refer to section 3.11 of 'ECO_and_Workarounds_for_Bugs_in_ESP32' for the description of this issue.
101+
* As a workaround, call adc_power_acquire() in the app. This will result in higher power consumption (by ~1mA),
102+
* but will remove the glitches on GPIO36 and GPIO39.
101103
*
102104
* @param gpio_num GPIO number. If you want to enable an interrupt on e.g. GPIO16, gpio_num should be GPIO_NUM_16 (16);
103105
*

0 commit comments

Comments
 (0)