adc2_wifi_acquire() function
For WIFI module to claim the usage of ADC2. Other tasks will be forbidden to use ADC2 between ``adc2_wifi_acquire`` and ``adc2_wifi_release``. The WIFI module may have to wait for a short time for the current conversion (if exist) to finish.
Return value
- ESP_OK success - ESP_ERR_TIMEOUT reserved for future use. Currently the function will wait until success.
adc2_wifi_acquire() calls 3 functions:
![]()
adc2_wifi_acquire()
adc2_wifi_acquire() reads 7 variables:
![]()
adc2_wifi_acquire()