On Mar 27, 2008, at 8:39 AM, Alexandre Buist wrote:

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



Are you going through the Resource interface? If not, the SPI might not be on...

Phil
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to