This may help with the TOSH_MAKE... part:
https://mail.millennium.berkeley.edu/pipermail/tinyos-help/2006-April/016161.html
MS
primalfear 69 wrote:
hello everybody........
In MICA2, the interface between CC1000 and the atmel is through SPI. Its
having just two pins.... i.e) DIO and Dclk. Its said that DIO is
bidirectional.Its obvious that the controller is master (thats what i
feel............:D ). Say when the CC1k is in transmit mode the it
should be in MISO and when in receive mode it should be in MOSI.
my first question is what makes the DIO pin of CC1k to be as an
input/ouput?
2) in tos/platform/mica2.......... HPLSpiM i find something called
TOSH_MAKE_SPI_SCK_INPUT();
TOSH_MAKE_MISO_INPUT(); // miso
TOSH_MAKE_MOSI_INPUT(); // mosi
where is the code for these...............? and what does
SpiByteFifo.initSlave() exactly do................. ?
Regards
Primalfear
------------------------------------------------------------------------
_______________________________________________
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
_______________________________________________
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help