Reputation: 423
I'm new to embedded programming so I am not sure on the syntax. I need to make this available for the GCC toolchain. My driver was compiled using a different toolchain. I frankly haven't used compiler flags much at all so I'm a bit at a loss. This link gives the format I think I should be using: http://gcc.gnu.org/onlinedocs/gcc/Function-Attributes.html
I need to change the syntax of this line to match GCC:
#pragma interrupt int_cmt0_isr(vect=VECT(CMT0,CMI0))
I think it should look something like this:
void __attribute__ ((interrupt ("CMT0, CMI0"))) int_cmt0_isr ();
int_cmt0_isr() is a function that should be called when an iterrupt occurs at that location in the vectortable.
If you can help that would be great!
Thanks!
Upvotes: 0
Views: 2186
Reputation: 423
I needed to add special entries into a separate interrupt table for the version of GCC that I was using for this device. I ended up not using the #pragma at all.
Upvotes: 1