Merge pull request #12508 from gschorcht/cpu/esp32/doc_adc2_and_wifi

cpu/esp32: note on using ADC2 and WiFi in documentation
This commit is contained in:
Alexandre Abadie 2019-11-21 18:27:06 +01:00 committed by GitHub
commit c7825aa92e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -527,7 +527,11 @@ ESP32 integrates two 12-bit ADCs (ADC1 and ADC2) capable of measuring up to 18 a
These GPIOs are realized by the RTC unit and are therefore also called RTC GPIOs or RTCIO GPIOs.
@note GPIO37 and GPIO38 are usually not broken out on ESP32 boards and are therefore not usable.
@note
- GPIO37 and GPIO38 are usually not broken out on ESP32 boards and can not be
used therefore.
- ADC2 is used by the WiFi module. The GPIOs connected to ADC2 are therefore not
available as ADC channels if the modules `esp_wifi` or `esp_now` are used.
The GPIOs that can be used as ADC channels for a given board are defined by the <b>```ADC_GPIOS```</b> macro in the board-specific peripheral configuration. This configuration can be changed by [application-specific configurations](#esp32_application_specific_configurations).