-
Notifications
You must be signed in to change notification settings - Fork 7.3k
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
Using GPIO Lookup Macros with ESP-IDF V5 (IDFGH-9105) #10508
Comments
Hi @nopnop2002 , the ADC related drivers under |
@Icarus113 This document has the following descriptions:
But ADC1_GPIOxx_CHANNEL is not defined in "esp_adc/adc_continuous.h" nor "esp_adc/adc_oneshot.h". I'm looking for a way I can use ADC1_GPIOxx_CHANNEL without using driver/adc.h . |
I see, thanks for the report. Since |
The doc you posted seems to be a version earlier than v5.0. So it should be correct. The fix has been merged, and will be introduced in next v5.0.x release as well. |
See bottom left of my posted image. |
Maybe it's because what your posted is in the |
Yes. This is probably not the latest version. Sorry for confusing you. |
Answers checklist.
General issue report
I used the GPIO Lookup Macros below:
ADC1_GPIO32_CHANNEL
But I get the following warning:
IDF Version:
Source code:
macros:
ADC1_GPIO32_CHANNEL are defined in soc/adc_channel.h.
ADC1_CHANNEL_4 are defined in driver/deprecated/driver/adc_types_legacy.h.
The text was updated successfully, but these errors were encountered: