This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

lib 91x_it.h interrupt definition

Hi all,

I want to have a timer1 interrupt every 1mS on my MCB-STR9 demo board.
To do this , I init Timer 1 as output compare.
In my interrupt routine I increment my compare register with a value correspondig with 1mS.

This works fine as long I use the __irq prefix before my interrupt function.

However, when I do this, the compiler gives an error :
declaration is incompatible with "void TIM1_IRQHandler(void)" (declared at line 44 of "C:\Keil\ARM\INC\ST\91x\91x_it.h").

I do not have that error in the blinky demo.
Whats wrong ?

Thanks

Luc