X-Git-Url: https://oss.titaniummirror.com/gitweb/?a=blobdiff_plain;f=tos%2Fchips%2Frf2xx%2Frf230%2FRF230DriverLayerP.nc;h=b582d3cdd805d7836ad80f784d329862c825881e;hb=68ae4ee37ca8cde821a2a92e2d1281bebe6efcdd;hp=725796c550f008f762fdd75fdc1a94f3066a8e46;hpb=519673769e4a40805dc68b99f9e9ceb739d64800;p=tinyos-2.x.git diff --git a/tos/chips/rf2xx/rf230/RF230DriverLayerP.nc b/tos/chips/rf2xx/rf230/RF230DriverLayerP.nc index 725796c5..b582d3cd 100644 --- a/tos/chips/rf2xx/rf230/RF230DriverLayerP.nc +++ b/tos/chips/rf2xx/rf230/RF230DriverLayerP.nc @@ -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 )