[Tinyos-help] Spi com
Alexandre Buist
abuist at newtraxtech.com
Thu Mar 27 08:39:17 PDT 2008
Hi,
When try to use the SPI com, the spi.write hangs the system: leds 0 and 1
get ON but leds 2 stays OFF and no more Timer.fired() event come up.
event void Timer0.fired()
{
counter++;
call Wn100.cscomset();
call Leds.led0Toggle();
call Wn100.sendoxae();
call Leds.led2Toggle();
}
(uses interface SpiByte as WnSpi;)
command void Wn100.sendoxae()
{
uint8_t status;
call Leds.led1Toggle();
status = call WnSpi.write(0xae);
}
Do I need to initialize anything ? I look through BlinkConfig as it uses spi
for flash but enablespi() or whatever is never used.
Thanks
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://www.millennium.berkeley.edu/pipermail/tinyos-help/attachments/20080327/b1040ccd/attachment-0001.html
More information about the Tinyos-help
mailing list