ISR declaration syntax
Hello, In the help documentation, the following syntax is shown for declaring an ISR forARM:
void f () __attribute__ ((interrupt ("IRQ")))
When I use this I get the following build error: "Attributes should be specified before the declarator in a function definition".
My code is as follows:
void T0ISR() __attribute__ ((interrupt ("IRQ")))
{
long int Regval ;
Regval = T0IR ;
etc, etc.....
Can anyone advise what the correct syntax is? Thanks
Please sign in to leave a comment.
Comments
1 comment