mirror of
https://github.com/espressif/esp-idf.git
synced 2026-10-02 03:00:34 +03:00
dac: update unit-test docs and examples for driver-NG
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user