-
Notifications
You must be signed in to change notification settings - Fork 7.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
GPIO checks for PULL_UP/DOWN doesn't work for RTC pins. (IDFGH-14127) #14931
Comments
May set SOC_GPIO_SUPPORT_RTC_INDEPENDENT to 1 to resolve the issue.
|
maybe this version will look and work better:
or
? This gives some advantages -- at least you won't have to check for nullptr pointers. |
@safocl @songruo
but to set PULLUP/PULLDOWN we use RTC function
not the GPIO function
Fast solution in #14931 (comment) |
The bug remains present and not solved. |
#14923 doesn't solve this issue/bug. |
Do I must to reopen this issue? |
@IhorNehrutsa The fix is here: esp-idf/components/esp_driver_gpio/src/gpio.c Lines 1026 to 1039 in c749ec6
Are you sure this doesn't fix the issue? |
@IhorNehrutsa |
Will backport to previous releases. |
Answers checklist.
General issue report
Functions gpio_ll_get_io_config(), gpio_ll_pullup_is_enabled(), gpio_ll_pulldown_is_enabled() work through the IO_MUX_x_REG
esp-idf/components/hal/esp32/include/hal/gpio_ll.h
Lines 66 to 68 in f420609
esp-idf/components/hal/esp32/include/hal/gpio_ll.h
Lines 108 to 111 in f420609
esp-idf/components/hal/esp32/include/hal/gpio_ll.h
Lines 143 to 146 in f420609
But for pins that can operate via RTC, PULL_UP/DOWN is set via the RTC mechanism (see line 86, line 105), not MUX_REG mechanism.
esp-idf/components/esp_driver_gpio/src/gpio.c
Lines 76 to 112 in f420609
See;
esp-idf/components/hal/esp32/include/hal/rtc_io_ll.h
Lines 178 to 183 in f420609
esp-idf/components/hal/esp32/include/hal/rtc_io_ll.h
Lines 190 to 195 in f420609
The text was updated successfully, but these errors were encountered: