forked from espressif/esp-idf
example: inform ulp adc usage status to sleep process
This commit is contained in:
@@ -22,6 +22,7 @@
|
|||||||
#include "hal/adc_hal.h"
|
#include "hal/adc_hal.h"
|
||||||
#include "hal/adc_hal_conf.h"
|
#include "hal/adc_hal_conf.h"
|
||||||
#include "esp_private/sar_periph_ctrl.h"
|
#include "esp_private/sar_periph_ctrl.h"
|
||||||
|
#include "esp_private/esp_sleep_internal.h"
|
||||||
|
|
||||||
#if SOC_DAC_SUPPORTED
|
#if SOC_DAC_SUPPORTED
|
||||||
#include "driver/dac.h"
|
#include "driver/dac.h"
|
||||||
@@ -437,6 +438,8 @@ void adc1_ulp_enable(void)
|
|||||||
adc_ll_amp_disable();
|
adc_ll_amp_disable();
|
||||||
#endif
|
#endif
|
||||||
SARADC1_EXIT();
|
SARADC1_EXIT();
|
||||||
|
|
||||||
|
esp_sleep_enable_adc_tsens_monitor(true);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user