Wish I could help more, but if you have to start digging:
tos/platform/mica2/{HPLADCM.nc,HPLUART0M.nc}
have examples of TOSH_SIGNAL and TOSH_INTERRUPT use.
MS
Mat Kotowsky wrote:
I have prototype for a new add-on board to a mica2 that is a low-power
voltage comparator that will (hopefully) wake up a sleeping mote in
order for it to take data based on an arbitrary external condition. It
is my understanding that the only way to wake up a mote if it is
sleeping (like, say, while running an Xmesh appliaction in LPL mode ...)
is by way of a hardware interrupt that causes a .fired() event to be
called. So I have this board that will generate an interrupt signal
that can be fed into INT 4, 5, 6, or 7 on the AVR, but what I do not
have is any low-level knowledge of how to add a new interrupt handler,
and then cause this interrupt handler to generate a .fired() event of
some sort. Rather than just poring through code, I'd hoped to get some
advice from you all as to where to start on this adventure.
Thank you for any tips you can offer,
-Mat
_______________________________________________
Tinyos-help mailing list
[email protected]
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
_______________________________________________
Tinyos-help mailing list
[email protected]
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help