CVS: msp430-libc/include/msp430 adc10.h,1.7,1.8
Chris Liechti <[email protected]> Thu, 22 May 2008 09:01:22 -0700
| Newsgroups | gmane.comp.hardware.texas-instruments.msp430.gcc.cvs |
|---|---|
| Message-ID | <[email protected]> |
Update of /cvsroot/mspgcc/msp430-libc/include/msp430
In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv28091/msp430-libc/include/msp430
Modified Files:
adc10.h
Log Message:
old outstanding fixes from cholweck
Index: adc10.h
===================================================================
RCS file: /cvsroot/mspgcc/msp430-libc/include/msp430/adc10.h,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -w -d -r1.7 -r1.8
--- adc10.h 12 Jan 2006 00:47:21 -0000 1.7
+++ adc10.h 22 May 2008 16:01:19 -0000 1.8
@@ -18,8 +18,17 @@
sfrb(ADC10DTC0, ADC10DTC0_);
#define ADC10DTC1_ 0x0049 /* ADC10 Data Transfer Control 1 */
sfrb(ADC10DTC1, ADC10DTC1_);
-#define ADC10AE_ 0x004A /* ADC10 Analog Enable */
-sfrb(ADC10AE, ADC10AE_);
+#define ADC10AE0_ 0x004A /* ADC10 Analog Enable */
+sfrb(ADC10AE0, ADC10AE0_);
+
+#if defined(__msp430_have_adc10ae2)
+#define ADC10AE1_ 0x004B /* ADC10 Analog Enable */
+sfrb(ADC10AE1, ADC10AE1_);
+#endif
+
+/* Alternate register names */
+#define ADC10AE_ ADC10AE0_
+#define ADC10AE ADC10AE0
#define ADC10CTL0_ 0x01B0 /* ADC10 Control 0 */
sfrw(ADC10CTL0, ADC10CTL0_);
@@ -135,7 +144,7 @@
#define INCH_8 (8<<12) /* VeREF+ */
#define INCH_9 (9<<12) /* VREF-/VeREF- */
#define INCH_10 (10<<12) /* Temperature sensor */
-#define INCH_11 (11<<12) /* (VCC VSS) / 2 */
+#define INCH_11 (11<<12) /* (VCC - VSS) / 2 */
#define INCH_12 (12<<12) /* Selects channel 11 */
#define INCH_13 (13<<12) /* Selects channel 11 */
#define INCH_14 (14<<12) /* Selects channel 11 */
@@ -179,6 +188,6 @@
#define INCH_VEREF_PLUS INCH_8 /* VeREF+ */
#define INCH_VEREF_MINUS INCH_9 /* VREF-/VeREF- */
#define INCH_TEMP INCH_10 /* Temperature sensor */
-#define INCH_VCC2 INCH_11 /* (VCC VSS) / 2 */
+#define INCH_VCC2 INCH_11 /* (VCC - VSS) / 2 */
#endif
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Mspgcc-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mspgcc-commits