[Tinyos-beta-commits] CVS: tinyos-1.x/beta/Deluge/Deluge/TOSBoot/msp430 VoltageC.nc, 1.1, 1.2

Jonathan Hui jwhui at users.sourceforge.net
Thu Jun 9 12:37:29 PDT 2005


Update of /cvsroot/tinyos/tinyos-1.x/beta/Deluge/Deluge/TOSBoot/msp430
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv3378/msp430

Modified Files:
	VoltageC.nc 
Log Message:

Turn of ADC12 when done sampling. I guess it's good to put away what
you use.



Index: VoltageC.nc
===================================================================
RCS file: /cvsroot/tinyos/tinyos-1.x/beta/Deluge/Deluge/TOSBoot/msp430/VoltageC.nc,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** VoltageC.nc	9 Jun 2005 19:29:00 -0000	1.1
--- VoltageC.nc	9 Jun 2005 19:37:13 -0000	1.2
***************
*** 61,64 ****
--- 61,67 ----
      while ((ADC12IFG & BIT0) == 0);
  
+     // Turn off ADC12
+     ADC12CTL0 = 0;
+ 
      // Check if voltage is greater than 2.7V
      return ( ADC12MEM0 > VTHRESH );



More information about the Tinyos-beta-commits mailing list