cancel
Showing results for 
Search instead for 
Did you mean: 

Problem with HAL Timer Interrupt in KEIL MDK v5

TKlei.5
Associate III

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?

1 REPLY 1
TDK
Guru

> 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.

If you feel a post has answered your question, please click "Accept as Solution".