Ahem. Let's try that again without pressing "send" prematurely:
That page suggests including <signal.h> and using the interrupt macro.
<signal.h> is deprecated; its content is in <legacymsp430.h> and you need
to include that file to use it without getting a warning at compile time.
If you tried it, you should have seen that warning.
I personally use the CCS syntax since that's now supported by mspgcc and
makes portability easier.
#pragma vector=TIMER0_A0_VECTOR
__interrupt void
ta0cc0_isr (void)
Under the covers this and the legacy method both use the native gcc syntax
which involves the interrupt attribute.
static void
__attribute__((__interrupt__(TIMER0_A0_VECTOR)))
isr_cc0_TA0 (void)
Hopefully this message will show up in the archive so others can find it.
Peter
On Tue, Mar 19, 2013 at 7:56 AM, Wayne Uroda <w.ur...@gmail.com> wrote:
> Hi,
>
> I just want to double check, is the interrupt syntax described here:
>
> http://mspgcc.sourceforge.net/manual/x918.html
>
> still modern and current? I know many parts of MSPGCC have changed, and
> I may be getting confused with IAR or code composer because somewhere I
> recall the ISR syntax changed from one version to another.
>
> Thanks,
>
> - Wayne
>
>
>
>
> ------------------------------------------------------------------------------
> Everyone hates slow websites. So do we.
> Make your web apps faster with AppDynamics
> Download AppDynamics Lite for free today:
> http://p.sf.net/sfu/appdyn_d2d_mar
> _______________________________________________
> Mspgcc-users mailing list
> Mspgcc-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/mspgcc-users
>
------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_mar
_______________________________________________
Mspgcc-users mailing list
Mspgcc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mspgcc-users