cancel
Showing results for 
Search instead for 
Did you mean: 

cosmic_interrupts

irmakci2
Associate II
Posted on March 25, 2006 at 07:21

cosmic_interrupts

2 REPLIES 2
irmakci2
Associate II
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 II
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