Driver(adc): Disable the synchronization operation function of ADC1 and DAC

Closes IDF-1585
This commit is contained in:
fuzhibo
2020-04-15 20:51:27 +08:00
parent ea78d06939
commit 3cc2d0e9a4
7 changed files with 70 additions and 29 deletions

View File

@@ -166,6 +166,7 @@ static int hall_sensor_get_value(void) //hall sensor without LNA
// set controller
adc_hal_set_controller( ADC_NUM_1, ADC_CTRL_RTC );
hall_value = adc_hal_hall_convert();
adc_hal_hall_disable();
ADC_EXIT_CRITICAL();
return hall_value;