Locate functions in RAM (RAMFUNC; .fastrun)

ckronen wrote on Thursday, July 21, 2011:

Hey,

since all the tasks are created in RAM, I was asking myself if it is also possible to put functions like Interrupt Handlers into the RAM, too. I found this description in the AT91 lib:

RAMFUNC
   Attribute which defines a function to be located
   in memory section .fastrun and called via “long calls”.
   See linker-skript and startup-code to see how the
   .fastrun-section is handled.
   The definition is not only useful for ISRs but since
   ISRs should be executed fast the macro is defined in
   this header
*/
#define RAMFUNC __attribute__ ((long_call, section (“.fastrun”)))

ckronen wrote on Thursday, July 21, 2011:

Thank you for your help, missing the “Edit” button *g*