mirror of
https://github.com/espressif/esp-idf.git
synced 2025-09-25 09:42:35 +00:00
system: reset dma when soft reset
This commit is contained in:

committed by
bot

parent
d35173c147
commit
d7d1dee208
@@ -18,6 +18,7 @@ Don't put any other code into this file. */
|
||||
|
||||
#include "adc2_wifi_private.h"
|
||||
#include "hal/adc_hal.h"
|
||||
#include "adc_cali.h"
|
||||
|
||||
/**
|
||||
* @brief Set initial code to ADC2 after calibration. ADC2 RTC and ADC2 PWDET controller share the initial code.
|
||||
@@ -28,7 +29,6 @@ static __attribute__((constructor)) void adc2_init_code_calibration(void)
|
||||
const adc_ll_num_t adc_n = ADC_NUM_2;
|
||||
const adc_atten_t atten = ADC_ATTEN_DB_11;
|
||||
const adc_channel_t channel = 0;
|
||||
extern esp_err_t adc_cal_offset(adc_ll_num_t adc_n, adc_channel_t channel, adc_atten_t atten);
|
||||
adc_cal_offset(adc_n, channel, atten);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user