The preferred syntax is to make the use of function attributes
explicit, and to use the spelling that doesn't intrude on the user's
namespace (thus allowing -Wall -Werror  to work):

__attribute__ ((__interrupt__(TIMERA0_VECTOR)))
static void
timerA0_isr (void)
{
}

The macros in signal.h do essentially this (though maybe use
"attribute" and "interrupt" instead of the cleaner names).

Peter

On Tue, Feb 7, 2012 at 10:07 AM, J.C. Wren <jcw...@jcwren.com> wrote:
> I'm getting back into updating some old code, and have switched to the
> newest version of mspgcc. All the signal.h includes are throwing a warning,
> but what I haven't found is an example of the "correct way" to declare the
> interrupt function.
>
> Would someone mind posting what it should look like? Any interrupt is fine,
> I just need to know how it *should* be done.
>
> Thanks,
> --jc
>
> Save a life; adopt a shelter animal.
>
> ------------------------------------------------------------------------------
> Keep Your Developer Skills Current with LearnDevNow!
> The most comprehensive online learning library for Microsoft developers
> is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
> Metro Style Apps, more. Free future releases when you subscribe now!
> http://p.sf.net/sfu/learndevnow-d2d
> _______________________________________________
> Mspgcc-users mailing list
> Mspgcc-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/mspgcc-users
>

------------------------------------------------------------------------------
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d
_______________________________________________
Mspgcc-users mailing list
Mspgcc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mspgcc-users

Reply via email to