The GCC manual, chapter "Extensions to the C Language Family" section
"Function Attributes" documents the interrupt attribute:

          void f () __attribute__ ((interrupt (15)));

or
          void __attribute__ ((interrupt (15))) f ()
          {
          }

Note that the attribute tells gcc to create a section
__interrupt_vector_15 (in this case) that contains a pointer to the
function.  It's up to the linker to combine these sections into your
interrupt vector table, so make sure you either use TI's runtime or
understand what gcc is doing behind the scenes.  Use "msp430-elf-gcc
-S file.c" or "msp430-elf-gcc --save-temps ..." to get access to the
*.s assembly files to see what's going on.

------------------------------------------------------------------------------
Want excitement?
Manually upgrade your production database.
When you want reliability, choose Perforce
Perforce version control. Predictably reliable.
http://pubads.g.doubleclick.net/gampad/clk?id=157508191&iu=/4140/ostg.clktrk
_______________________________________________
Mspgcc-users mailing list
Mspgcc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mspgcc-users

Reply via email to