Skip to main content
irmakci2
Associate III
March 25, 2006
Question

cosmic_interrupts

  • March 25, 2006
  • 2 replies
  • 676 views
Posted on March 25, 2006 at 07:21

cosmic_interrupts

This topic has been closed for replies.

2 replies

irmakci2
irmakci2Author
Associate III
March 25, 2006
Posted on March 25, 2006 at 05:56

Hi.When I used functions in lite timer interrupt routine,

Cosmic compiles,but code doesnt run on the board.

And I understand that written functions in interrupt routine haven't been seen or I am making a mistake but what can?

void lite(void)//example at each 2ms

{

function()//

LTCSR;

}

info45
Associate
March 25, 2006
Posted on March 25, 2006 at 07:21

Hy,

the interrupt function in Cosmic compiler ,need to defined in following sintax :

@interrupt void NonHandledInterrupt (void)

{

/* in order to detect unexpected events during development,

it is recommended to set a breakpoint on the following instruction

*/

return;

}

For detailed information, please, use ST7 libraries, available on web, that allow either Cosmic either Metrowerks tools.

Bye