esp_adc: support h2 oneshot mode and continuous mode

This commit is contained in:
Armando
2023-02-02 14:46:44 +08:00
parent aa892a18a3
commit d0e4d36fb6
47 changed files with 1176 additions and 99 deletions

View File

@@ -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);
}
/**