Skip to content

Commit

Permalink
driver: add notes about GPIO36/39 issue (ECO 3.11) workaround
Browse files Browse the repository at this point in the history
Closes IDFGH-1917
Closes #4117
  • Loading branch information
igrr authored and mythbuster5 committed Dec 7, 2020
1 parent 80e7252 commit d890a51
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion components/driver/include/driver/gpio.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);
*
Expand Down

0 comments on commit d890a51

Please sign in to comment.