[Tinyos-contrib-commits] CVS: tinyos-1.x/contrib/handhelds/apps/ThreeAxisRecorder ThreeAxisRecorderM.nc, 1.1, 1.2

steve ayer ayer1 at users.sourceforge.net
Fri Sep 14 12:14:18 PDT 2007


Update of /cvsroot/tinyos/tinyos-1.x/contrib/handhelds/apps/ThreeAxisRecorder
In directory sc8-pr-cvs10.sourceforge.net:/tmp/cvs-serv31095

Modified Files:
	ThreeAxisRecorderM.nc 
Log Message:

major bug fix:  dma module was in repeat block transfer mode, though
a/d was doing single conversions.  dma module now doing single
transfers.

added dma0.begintransfer() to sampletimer event to keep things
rolling.

thanks to stephen linder for digging this out.


Index: ThreeAxisRecorderM.nc
===================================================================
RCS file: /cvsroot/tinyos/tinyos-1.x/contrib/handhelds/apps/ThreeAxisRecorder/ThreeAxisRecorderM.nc,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** ThreeAxisRecorderM.nc	12 Sep 2007 18:35:24 -0000	1.1
--- ThreeAxisRecorderM.nc	14 Sep 2007 19:14:13 -0000	1.2
***************
*** 178,182 ****
  
      // we want block transfer, repeated
!     DMA0CTL = DMADT_5 + DMADSTINCR_3 + DMASRCINCR_3;
      call DMA0.beginTransfer();
    }
--- 178,182 ----
  
      // we want block transfer, repeated
!     DMA0CTL = DMADT_1 + DMADSTINCR_3 + DMASRCINCR_3;
      call DMA0.beginTransfer();
    }
***************
*** 468,471 ****
--- 468,472 ----
    // time to take another sample...
    event result_t sampleTimer.fired() {
+     call DMA0.beginTransfer();
      call DMA0.ADCbeginConversion();
      return SUCCESS;



More information about the Tinyos-contrib-commits mailing list