]> oss.titaniummirror.com Git - tinyos-2.x.git/commitdiff
MicaZ's CC2420 Transmit (?) has a problem where it's writing bytes to the SPI bus...
authorrincon <rincon>
Thu, 25 Jan 2007 19:12:23 +0000 (19:12 +0000)
committerrincon <rincon>
Thu, 25 Jan 2007 19:12:23 +0000 (19:12 +0000)
tos/chips/atm128/spi/Atm128SpiP.nc

index 4187412442816726a8b9c791b2d6e4088c24066d..65edf25eef4bc69e0820c63535bba7065bb63e12 100644 (file)
@@ -125,8 +125,10 @@ implementation {
     }
     call McuPowerState.update();
   }
-  
+
   async command uint8_t SpiByte.write( uint8_t tx ) {
+    call Spi.enableSpi(TRUE);
+    call McuPowerState.update();
     call Spi.write( tx );
     while ( !( SPSR & 0x80 ) );
     return call Spi.read();