adc_lock_acquire() function
Acquire ADC lock by unit The lock acquiring sequence will be: ADC1, ADC2, ...
Return value
- ESP_OK: On success
Notes
If any of the locks are taken, this API will wait until the lock is successfully acquired.
adc_lock_acquire() is called by 3 functions and calls 1 function:
![]()
adc_lock_acquire()
adc_lock_acquire() reads 2 variables:
![]()
adc_lock_acquire()