Skip to content

Commit deb7ff7

Browse files
committed
Adc calibration
1 parent 4d117ba commit deb7ff7

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)