[Tinyos-help] "__attribute__ ((signal, spontaneous, C))" and " __attribute__ ((interrupt, spontaneous, C))"

jiwen zhang zhangjiwen029 at gmail.com
Thu Nov 8 06:26:36 PST 2007


Hello all:
    I have some question about the codes below:
    1. what are the functions of  "__attribute__ ((signal, spontaneous, C))"
and " __attribute__ ((interrupt, spontaneous, C))"?
    2.what are the meanings of "singanl","spontaneous","C" and "interrupt"?
    3.what are the differences between "__attribute__ ((signal, spontaneous,
C))" and " __attribute__ ((interrupt, spontaneous, C))"?
   can you give me the answer? Thank you very much?

codes:

#define TOSH_SIGNAL(signame)     \
void signame() __attribute__ ((signal, spontaneous, C))

#define TOSH_INTERRUPT(signame)    \
void signame() __attribute__ ((interrupt, spontaneous, C))
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://www.millennium.berkeley.edu/pipermail/tinyos-help/attachments/20071108/da308508/attachment.htm


More information about the Tinyos-help mailing list