Trouble using builtin function in ISR

Christopher Toledo <[email protected]> Wed, 13 Aug 2014 10:58:17 -0700
Newsgroups gmane.comp.hardware.texas-instruments.msp430.gcc.user
Message-ID <CAGW8NS3qFyjapRNiNc0eNr2F476XDn8drB97+i1OsuW+kopN8A@mail.gmail.com>
I created a gist outlining my problem here:
https://gist.github.com/uberscientist/baa627f9779d2d08ca87

I'll summarize:
I create an ISR, attempt to use __bic_SR_register_on_exit inside it and I
get an error saying:
"error: MSP430 builtin functions only work inside interrupt handlers"

How do you manipulate the SR from ISRs? Thanks!

------------------------------------------------------------------------------

_______________________________________________
Mspgcc-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mspgcc-users