]> oss.titaniummirror.com Git - tinyos-2.x.git/blobdiff - tos/chips/rf2xx/rf230/RF230DriverLayerP.nc
support slow SPI interfaces
[tinyos-2.x.git] / tos / chips / rf2xx / rf230 / RF230DriverLayerP.nc
index 725796c550f008f762fdd75fdc1a94f3066a8e46..b582d3cdd805d7836ad80f784d329862c825881e 100644 (file)
@@ -433,12 +433,14 @@ implementation
                        return EBUSY;
                }
 
+#ifndef RF230_SLOW_SPI
                atomic
                {
                        call SLP_TR.set();
                        time = call RadioAlarm.getNow() + TX_SFD_DELAY;
                }
                call SLP_TR.clr();
+#endif
 
                ASSERT( ! radioIrq );
 
@@ -466,6 +468,15 @@ implementation
                }
                while( --header != 0 );
 
+#ifdef RF230_SLOW_SPI
+               atomic
+               {
+                       call SLP_TR.set();
+                       time = call RadioAlarm.getNow() + TX_SFD_DELAY;
+               }
+               call SLP_TR.clr();
+#endif
+
                time32 += (int16_t)(time) - (int16_t)(time32);
 
                if( timesync != 0 )