2021-08-10 11:47 PM
Hello guys,
i want to program a timer interrupt with HAL in the KEIL MDK v5 IDE.
But i get a syntax error in the following line:
HAL_TIM_Start_IT(&htim2);
I get the following error message:
error: expected parameter declarator
error: expected ')'
warning: type specifier missing, defaults to 'int'
Can anybody help me?
2021-08-11 05:15 AM
> HAL_TIM_Start_IT(&htim2);
For starters, HAL_TIM_Start_IT isn't a HAL function.
https://github.com/search?q=HAL_TIM_Start_IT
Perhaps you want HAL_TIM_Base_Start_IT?
My guess is there's something else going on.