I am using "wakeup" without any problem - I can see the relevant assembly instruction generated (right at the end of the funciton, before the reti), and it works fine. Are you using an older version of the compiler? Have you set the -mmcu=msp430-... flag correctly for the compiler?
mvh. David ----- Original Message ----- From: Peter Kenyon To: mspgcc-users@lists.sourceforge.net Sent: Wednesday, December 18, 2002 3:17 PM Subject: [Mspgcc-users] interrupt wakeup I am using the msp430 tool chain and jolly good it is to. Well done chaps. BUT I noticed that when I declared an interrupt function interrupt (TIMERA0_VECTOR) wakeup INT_TimerA_CCR0( void ) { } It seems the wakeup attribute is ignored and the compiler fails to insert the relevant asm( "bic #0xf0,0(r1)" ); I did notice that enablenested attribute works as expected.... peter