CVS: msp430-libc/include/msp430 opamp.h,1.3,1.4

Steve Underwood <[email protected]>
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-cvs1.sourceforge.net:/tmp/cvs-serv19702/msp430-libc/include/msp430

Modified Files:
	opamp.h 
Log Message:
oops. there was a global typo of zero instead of ooo :-(



Index: opamp.h
===================================================================
RCS file: /cvsroot/mspgcc/msp430-libc/include/msp430/opamp.h,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -w -d -r1.3 -r1.4
--- opamp.h	3 Nov 2004 14:29:10 -0000	1.3
+++ opamp.h	4 Nov 2004 00:18:58 -0000	1.4
@@ -26,52 +26,52 @@
 #define OA2CTL1_            0x00C5  /* OA2 Control register 1 */
 sfrb(OA2CTL1, OA2CTL1_);
 
-#define OAADC0              (0x01)    /* 0Ax output to ADC12 input channel select 0 */
-#define OAADC1              (0x02)    /* 0Ax output to ADC12 input channel select 1 */
-#define OAPM0               (0x04)    /* 0Ax Power mode select 0 */
-#define OAPM1               (0x08)    /* 0Ax Power mode select 1 */
-#define OAP0                (0x10)    /* 0Ax Inverting input select 0 */
-#define OAP1                (0x20)    /* 0Ax Inverting input select 1 */
-#define OAN0                (0x40)    /* 0Ax Non-inverting input select 0 */
-#define OAN1                (0x80)    /* 0Ax Non-inverting input select 1 */
+#define OAADC0              (0x01)    /* OAx output to ADC12 input channel select 0 */
+#define OAADC1              (0x02)    /* OAx output to ADC12 input channel select 1 */
+#define OAPM0               (0x04)    /* OAx Power mode select 0 */
+#define OAPM1               (0x08)    /* OAx Power mode select 1 */
+#define OAP0                (0x10)    /* OAx Inverting input select 0 */
+#define OAP1                (0x20)    /* OAx Inverting input select 1 */
+#define OAN0                (0x40)    /* OAx Non-inverting input select 0 */
+#define OAN1                (0x80)    /* OAx Non-inverting input select 1 */
 
-#define OAPM_0              (0x00)    /* 0Ax Power mode select: off */
-#define OAPM_1              (0x04)    /* 0Ax Power mode select: slow */
-#define OAPM_2              (0x08)    /* 0Ax Power mode select: medium */
-#define OAPM_3              (0x0C)    /* 0Ax Power mode select: fast */
-#define OAP_0               (0x00)    /* 0Ax Inverting input select 00 */
-#define OAP_1               (0x10)    /* 0Ax Inverting input select 01 */
-#define OAP_2               (0x20)    /* 0Ax Inverting input select 10 */
-#define OAP_3               (0x30)    /* 0Ax Inverting input select 11 */
-#define OAN_0               (0x40)    /* 0Ax Non-inverting input select 00 */
-#define OAN_1               (0x40)    /* 0Ax Non-inverting input select 01 */
-#define OAN_2               (0x80)    /* 0Ax Non-inverting input select 10 */
-#define OAN_3               (0x40)    /* 0Ax Non-inverting input select 11 */
+#define OAPM_0              (0x00)    /* OAx Power mode select: off */
+#define OAPM_1              (0x04)    /* OAx Power mode select: slow */
+#define OAPM_2              (0x08)    /* OAx Power mode select: medium */
+#define OAPM_3              (0x0C)    /* OAx Power mode select: fast */
+#define OAP_0               (0x00)    /* OAx Inverting input select 00 */
+#define OAP_1               (0x10)    /* OAx Inverting input select 01 */
+#define OAP_2               (0x20)    /* OAx Inverting input select 10 */
+#define OAP_3               (0x30)    /* OAx Inverting input select 11 */
+#define OAN_0               (0x40)    /* OAx Non-inverting input select 00 */
+#define OAN_1               (0x40)    /* OAx Non-inverting input select 01 */
+#define OAN_2               (0x80)    /* OAx Non-inverting input select 10 */
+#define OAN_3               (0x40)    /* OAx Non-inverting input select 11 */
 
-#define 0ARRIP              (0x01)    /* 0Ax Rail-to-Rail Input off */
+#define OARRIP              (0x01)    /* OAx Rail-to-Rail Input off */
 //#define Reserved          (0x02)    /* */
-#define 0AFC0               (0x04)    /* 0Ax Function control 0 */
-#define 0AFC1               (0x08)    /* 0Ax Function control 1 */
-#define 0AFC2               (0x10)    /* 0Ax Function control 2 */
-#define 0AFBR0              (0x20)    /* 0Ax Feedback resistor select 0 */
-#define 0AFBR1              (0x40)    /* 0Ax Feedback resistor select 1 */
-#define 0AFBR2              (0x80)    /* 0Ax Feedback resistor select 2 */
+#define OAFC0               (0x04)    /* OAx Function control 0 */
+#define OAFC1               (0x08)    /* OAx Function control 1 */
+#define OAFC2               (0x10)    /* OAx Function control 2 */
+#define OAFBR0              (0x20)    /* OAx Feedback resistor select 0 */
+#define OAFBR1              (0x40)    /* OAx Feedback resistor select 1 */
+#define OAFBR2              (0x80)    /* OAx Feedback resistor select 2 */
 
-#define 0AFC_0              (0x00)    /* 0Ax Function: Gen. Purpose */
-#define 0AFC_1              (0x04)    /* 0Ax Function: Comparing */
-#define 0AFC_2              (0x08)    /* 0Ax Function: Reserved */
-#define 0AFC_3              (0x0C)    /* 0Ax Function: Differential */
-#define 0AFC_4              (0x10)    /* 0Ax Function: Non-Inverting, PGA */
-#define 0AFC_5              (0x14)    /* 0Ax Function: Reserved */
-#define 0AFC_6              (0x18)    /* 0Ax Function: Inverting */
-#define 0AFC_7              (0x1C)    /* 0Ax Function: Differential */
-#define 0AFBR_0             (0x00)    /* 0Ax Feedback resistor: Tap 0 */
-#define 0AFBR_1             (0x20)    /* 0Ax Feedback resistor: Tap 1 */
-#define 0AFBR_2             (0x40)    /* 0Ax Feedback resistor: Tap 2 */
-#define 0AFBR_3             (0x60)    /* 0Ax Feedback resistor: Tap 3 */
-#define 0AFBR_4             (0x80)    /* 0Ax Feedback resistor: Tap 4 */
-#define 0AFBR_5             (0xA0)    /* 0Ax Feedback resistor: Tap 5 */
-#define 0AFBR_6             (0xC0)    /* 0Ax Feedback resistor: Tap 6 */
-#define 0AFBR_7             (0xE0)    /* 0Ax Feedback resistor: Tap 7 */
+#define OAFC_0              (0x00)    /* OAx Function: Gen. Purpose */
+#define OAFC_1              (0x04)    /* OAx Function: Comparing */
+#define OAFC_2              (0x08)    /* OAx Function: Reserved */
+#define OAFC_3              (0x0C)    /* OAx Function: Differential */
+#define OAFC_4              (0x10)    /* OAx Function: Non-Inverting, PGA */
+#define OAFC_5              (0x14)    /* OAx Function: Reserved */
+#define OAFC_6              (0x18)    /* OAx Function: Inverting */
+#define OAFC_7              (0x1C)    /* OAx Function: Differential */
+#define OAFBR_0             (0x00)    /* OAx Feedback resistor: Tap 0 */
+#define OAFBR_1             (0x20)    /* OAx Feedback resistor: Tap 1 */
+#define OAFBR_2             (0x40)    /* OAx Feedback resistor: Tap 2 */
+#define OAFBR_3             (0x60)    /* OAx Feedback resistor: Tap 3 */
+#define OAFBR_4             (0x80)    /* OAx Feedback resistor: Tap 4 */
+#define OAFBR_5             (0xA0)    /* OAx Feedback resistor: Tap 5 */
+#define OAFBR_6             (0xC0)    /* OAx Feedback resistor: Tap 6 */
+#define OAFBR_7             (0xE0)    /* OAx Feedback resistor: Tap 7 */
 
 #endif



-------------------------------------------------------
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.