avr-libc-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [avr-libc-dev] Better Interrupt Macro


From: Henrik Brix Andersen
Subject: Re: [avr-libc-dev] Better Interrupt Macro
Date: Sun, 26 Nov 2006 16:32:22 +0100
User-agent: Mutt/1.5.13 (2006-08-11)

Hi Dean,

On Sun, Nov 26, 2006 at 10:13:55AM +1100, Dean Camera wrote:
> I've created a new and simple GCC API for the existing interrupt
> macro, ISR. The new API allows for more uniform ISRs, with the
> SIGNAL, INTERRUPT, NAKED and ALIAS facilities avaliable in a uniform
> manner to the programmer. I believe this new set of macros will
> allow for easier development, as the programmer will no longer have
> to worry about creating their own implementation of the now
> depricated INTERRUPT macro, amognst other things.

Nice work. I'm all for it :)

You header file includes many "fixes" similar to what is present in my
own, custom header file(s) - it would be nice if these changes could
be included in avr-libc proper.

I noticed that your ISR() macro is defined as:


   #define ISR(vector, ...)                       \
      void vector (void) ISR_BLOCK __VA_ARGS__;   \
      void vector (void)


Will this allow for the following syntax:


   ISR(VectorName, ISR_NOBLOCK)
   {
   // Code goes here
   }


Wouldn't this set both the 'interrupt' and 'signal' attributes at the
same time?

Regards,
Brix
-- 
Henrik Brix Andersen <address@hidden>

Attachment: pgpjhT0NAnZ5u.pgp
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]