dac: update unit-test docs and examples for driver-NG

This commit is contained in:
laokaiyao
2022-10-25 17:00:41 +08:00
parent 351a18415c
commit f9f9a09dfb
129 changed files with 4163 additions and 8227 deletions
+4 -4
View File
@@ -158,19 +158,19 @@ static void s_disable_dac(adc_oneshot_hal_ctx_t *hal, adc_channel_t channel)
#if CONFIG_IDF_TARGET_ESP32
if (hal->unit == ADC_UNIT_2) {
if (channel == ADC_CHANNEL_8) {
dac_ll_power_down(DAC_CHANNEL_1); // the same as DAC channel 1
dac_ll_power_down(DAC_CHAN_0); // the same as DAC channel 1
}
if (channel == ADC_CHANNEL_9) {
dac_ll_power_down(DAC_CHANNEL_2);
dac_ll_power_down(DAC_CHAN_1);
}
}
#elif CONFIG_IDF_TARGET_ESP32S2
if (hal->unit == ADC_UNIT_2) {
if (channel == ADC_CHANNEL_6) {
dac_ll_power_down(DAC_CHANNEL_1); // the same as DAC channel 1
dac_ll_power_down(DAC_CHAN_0); // the same as DAC channel 1
}
if (channel == ADC_CHANNEL_7) {
dac_ll_power_down(DAC_CHANNEL_2);
dac_ll_power_down(DAC_CHAN_1);
}
}
#else