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

 

 

 

_______________________________________________
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to