Skip to content

Commit

Permalink
Merge pull request #328 from Candas1/g431_adc_calibration
Browse files Browse the repository at this point in the history
b_G431 adc calibration
  • Loading branch information
runger1101001 authored Oct 29, 2023
2 parents 2ba2e43 + e28e34d commit 1a8296a
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,9 @@ void* _configureADCLowSide(const void* driver_params, const int pinA,const int p
MX_ADC1_Init(&hadc1);
MX_ADC2_Init(&hadc2);

HAL_ADCEx_Calibration_Start(&hadc1,ADC_SINGLE_ENDED);
HAL_ADCEx_Calibration_Start(&hadc2,ADC_SINGLE_ENDED);

MX_DMA1_Init(&hadc1, &hdma_adc1, DMA1_Channel1, DMA_REQUEST_ADC1);
MX_DMA1_Init(&hadc2, &hdma_adc2, DMA1_Channel2, DMA_REQUEST_ADC2);

Expand Down

0 comments on commit 1a8296a

Please sign in to comment.