mirror of
https://github.com/espressif/esp-idf.git
synced 2025-09-30 19:19:21 +00:00
esp_adc: support h2 oneshot mode and continuous mode
This commit is contained in:
@@ -28,12 +28,14 @@ void sar_periph_ctrl_init(void)
|
||||
{
|
||||
sar_ctrl_ll_force_power_ctrl_from_pwdet(true);
|
||||
|
||||
//TODO: IDF-6124
|
||||
//Add other periph power control initialisation here
|
||||
}
|
||||
|
||||
void sar_periph_ctrl_power_disable(void)
|
||||
{
|
||||
//TODO: IDF-6124
|
||||
portENTER_CRITICAL_SAFE(&rtc_spinlock);
|
||||
sar_ctrl_ll_force_power_ctrl_from_pwdet(false);
|
||||
portEXIT_CRITICAL_SAFE(&rtc_spinlock);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user