Skip to content

Commit 2ba2e43

Browse files
Merge pull request #327 from Candas1/f1_adc_calibration
STM32F1 Adc calibration
2 parents bc2349b + deb7ff7 commit 2ba2e43

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/current_sense/hardware_specific/stm32/stm32f1/stm32f1_mcu.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,10 @@ void _driverSyncLowSide(void* _driver_params, void* _cs_params){
6666
}
6767
// set the trigger output event
6868
LL_TIM_SetTriggerOutput(cs_params->timer_handle->getHandle()->Instance, LL_TIM_TRGO_UPDATE);
69+
70+
// Start the adc calibration
71+
HAL_ADCEx_Calibration_Start(cs_params->adc_handle);
72+
6973
// start the adc
7074
HAL_ADCEx_InjectedStart_IT(cs_params->adc_handle);
7175

0 commit comments

Comments
 (0)