Merge branch 'bugfix/fix_adc_dac_conflict' into 'master'

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

Closes IDF-1585

See merge request espressif/esp-idf!8364
This commit is contained in:
Michael (XIAO Xufeng)
2020-06-03 12:41:50 +08:00
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;