mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
example: inform ulp adc usage status to sleep process
This commit is contained in:
parent
8ee25ecfe2
commit
2ca1c1a617
@ -22,6 +22,7 @@
|
||||
#include "hal/adc_hal.h"
|
||||
#include "hal/adc_hal_conf.h"
|
||||
#include "esp_private/sar_periph_ctrl.h"
|
||||
#include "esp_private/esp_sleep_internal.h"
|
||||
|
||||
#if SOC_DAC_SUPPORTED
|
||||
#include "driver/dac.h"
|
||||
@ -437,6 +438,8 @@ void adc1_ulp_enable(void)
|
||||
adc_ll_amp_disable();
|
||||
#endif
|
||||
SARADC1_EXIT();
|
||||
|
||||
esp_sleep_enable_adc_tsens_monitor(true);
|
||||
}
|
||||
#endif
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user