I can't speak directly to T2, but in T1 TOSH_SET_##pin##_PIN is a macro generated macro so you will never find it in the source. I unearthed the location of the meta-macro once and have even posted messages about it in the past so you may be able to search it on the list. The basic paradigm is to TOSH_ASSIGN some port,pin to an arbitrary name, then TOSH_MAKE_name_OUTPUT() // or input, then TOSH_SET_name_PIN // or _CLR_
You should be able to find usage examples by searching on the first two words of any of the macros. hope that was the question... MS Julian Burrough Counihan wrote:
I am trying to send some current to the PW pins on a MicaZ mote. I was going to use the TOSH_SET_##pin##_PIN statements outline in avrhardware.h but Icannot find where these statements are defined in TinyOS 2.0?However I found the TOSH_ASSIGN pin statements in the chips/atm128 folder.thanks Julian Counihan _______________________________________________ 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
