Hi Guys,

I checked how the interrupts work on avr platforms, and found this in the
atm128hardware.h:

/* We need slightly different defs than SIGNAL, INTERRUPT */
#define AVR_ATOMIC_HANDLER(signame) \
  void signame() __attribute__ ((signal)) @atomic_hwevent() @C()

#define AVR_NONATOMIC_HANDLER(signame) \
  void signame() __attribute__ ((interrupt)) @hwevent() @C()

Does anyone know what exactly was the problem with SIGNAL and INTERRUPT?

And since SIGNAL and INTERRUPT are obsolate now, couldn't we do it with a
correctly parametrized ISR macro?
I think ISR(signame, ISR_BLOCK) and ISR(signame, ISR_NOBLOCK) would be just
as good, but much more understandable.

Andras Biro
Software Engineer
Unicomp Ltd.
http://ucmote.com
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to