I think this is due to it not being called.  I ran into a similar problem where 
interrupt handlers weren't being included in the app.c file, and what i realized was:

1. Functions that aren't called aren't included in the app.c file
2. Interrupt handlers are never explicity called

If you look in the tinyos-1.x/tos/platform/avrmote/avrhardware.h you'll see the 
following lines:

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

#define TOSH_INTERRUPT(signame)                         \
void signame() __attribute__ ((interrupt, spontaneous, C))

It looks like you are trying to redefine the attributes, so you might try modifying 
your code to look like this:

TOSH_SIGNAL(SIG_OVERFLOW1) {
    high16=++;
}

(not sure if this should be TOSH_INTERRUPT or TOSH_SIGNAL, I don't know the difference 
between them.)

Hope this helps!

-David

> Date: Mon, 10 Mar 2003 15:42:18 +0100
> From: Martin Leopold <[EMAIL PROTECTED]>
> To: [EMAIL PROTECTED]
> Subject: [Tinyos-users] Interrupt handler scraped by tool chain
> 
> Hi All.
> I noticed a very peculiar behavior of my tool chain: an interrupt handler
> mysteriously disappears between my .nc file and the app.c file!
> Specifically it is in the "SysTimeC.nc":
> 
>       TOSH_INTERRUPT(SIG_OVERFLOW1) { __attribute((spontaneous)){
>            high16=++;
>       }
> 
_______________________________________________
Tinyos-users mailing list
[EMAIL PROTECTED]
http://mail.Millennium.Berkeley.EDU/mailman/listinfo/tinyos-users

Reply via email to