CVS: msp430-libc/include/msp430 usci.h,1.5,1.6

Chris Liechti <[email protected]> Wed, 18 Jun 2008 15:25:55 -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-serv22332/msp430

Modified Files:
	usci.h 
Log Message:
header updates


Index: usci.h
===================================================================
RCS file: /cvsroot/mspgcc/msp430-libc/include/msp430/usci.h,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -w -d -r1.5 -r1.6
--- usci.h	15 May 2008 00:54:33 -0000	1.5
+++ usci.h	18 Jun 2008 22:25:52 -0000	1.6
@@ -10,6 +10,10 @@
  * Originally based in part on work by Texas Instruments Inc.
  *
  * $Id$
+ *
+ * 2008-02-05 - modifications by G.Lemm <[email protected]>
+ * - added UC1IE and UC1IFG registers
+ * - added UC*1*IE and UC*1*IFG bit definitions
  */
 
 /* Switches:
@@ -288,7 +292,7 @@
 #define UCB0I2CSA_          0x011A      /* USCI B0 I2C Slave Address */
 sfrw(UCB0I2CSA, UCB0I2CSA_);
 
-#if defined(__MSP430_HAS_USCI_AB1__)
+#if defined(__MSP430_HAS_USCI1__)
 
 /* -------- USCI1 */
 
@@ -341,6 +345,15 @@
 #define UC1IFG_             0x0007      /* USCI A1/B1 Interrupt flag register */
 sfrb(UC1IFG, UC1IFG_);
 
-#endif /* __MSP430_HAS_USCI_AB1__ */
+#define UCA1RXIE            (1<<0)
+#define UCA1TXIE            (1<<1)
+#define UCB1RXIE            (1<<2)
+#define UCB1TXIE            (1<<3)
+
+#define UCA1RXIFG           (1<<0)
+#define UCA1TXIFG           (1<<1)
+#define UCB1RXIFG           (1<<2)
+#define UCB1TXIFG           (1<<3)
+#endif /* __MSP430_HAS_USCI1__ */
 
 #endif


-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php