Re: Trouble using builtin function in ISR
Peter Bigot <[email protected]> Wed, 13 Aug 2014 13:37:47 -0500
| Newsgroups | gmane.comp.hardware.texas-instruments.msp430.gcc.user |
|---|---|
| Message-ID | <CAPOJ94NP9EbRTHt_bHHsmp3e-ni0tb5XHTSrvjSyPKcXeneN5w@mail.gmail.com> |
You're not using mspgcc, you're using msp430-elf which is the upstream version. It uses different functions; I don't remember offhand how they spelled the names, but they'll be in a header somewhere. Should also be compatible with any Code Composer Studio instructions you come across. Peter On Wed, Aug 13, 2014 at 12:58 PM, Christopher Toledo <[email protected]> wrote: > 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 > ------------------------------------------------------------------------------