• Main Page
  • Data Structures
  • Files
  • File List
  • Globals

TI_USCI_UART_Regs.h

Go to the documentation of this file.
00001 //******************************************************************************
00002 //THIS PROGRAM IS PROVIDED "AS IS". TI MAKES NO WARRANTIES OR
00003 //REPRESENTATIONS, EITHER EXPRESS, IMPLIED OR STATUTORY,
00004 //INCLUDING ANY IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS
00005 //FOR A PARTICULAR PURPOSE, LACK OF VIRUSES, ACCURACY OR
00006 //COMPLETENESS OF RESPONSES, RESULTS AND LACK OF NEGLIGENCE.
00007 //TI DISCLAIMS ANY WARRANTY OF TITLE, QUIET ENJOYMENT, QUIET
00008 //POSSESSION, AND NON-INFRINGEMENT OF ANY THIRD PARTY
00009 //INTELLECTUAL PROPERTY RIGHTS WITH REGARD TO THE PROGRAM OR
00010 //YOUR USE OF THE PROGRAM.
00011 //
00012 //IN NO EVENT SHALL TI BE LIABLE FOR ANY SPECIAL, INCIDENTAL,
00013 //CONSEQUENTIAL OR INDIRECT DAMAGES, HOWEVER CAUSED, ON ANY
00014 //THEORY OF LIABILITY AND WHETHER OR NOT TI HAS BEEN ADVISED
00015 //OF THE POSSIBILITY OF SUCH DAMAGES, ARISING IN ANY WAY OUT
00016 //OF THIS AGREEMENT, THE PROGRAM, OR YOUR USE OF THE PROGRAM.
00017 //EXCLUDED DAMAGES INCLUDE, BUT ARE NOT LIMITED TO, COST OF
00018 //REMOVAL OR REINSTALLATION, COMPUTER TIME, LABOR COSTS, LOSS
00019 //OF GOODWILL, LOSS OF PROFITS, LOSS OF SAVINGS, OR LOSS OF
00020 //USE OR INTERRUPTION OF BUSINESS. IN NO EVENT WILL TI'S
00021 //AGGREGATE LIABILITY UNDER THIS AGREEMENT OR ARISING OUT OF
00022 //YOUR USE OF THE PROGRAM EXCEED FIVE HUNDRED DOLLARS
00023 //(U.S.$500).
00024 //
00025 //Unless otherwise stated, the Program written and copyrighted
00026 //by Texas Instruments is distributed as "freeware".  You may,
00027 //only under TI's copyright in the Program, use and modify the
00028 //Program without any charge or restriction.  You may
00029 //distribute to third parties, provided that you transfer a
00030 //copy of this license to the third party and the third party
00031 //agrees to these terms by its first use of the Program. You
00032 //must reproduce the copyright notice and any other legend of
00033 //ownership on each copy or partial copy, of the Program.
00034 //
00035 //You acknowledge and agree that the Program contains
00036 //copyrighted material, trade secrets and other TI proprietary
00037 //information and is protected by copyright laws,
00038 //international copyright treaties, and trade secret laws, as
00039 //well as other intellectual property laws.  To protect TI's
00040 //rights in the Program, you agree not to decompile, reverse
00041 //engineer, disassemble or otherwise translate any object code
00042 //versions of the Program to a human-readable form.  You agree
00043 //that in no event will you alter, remove or destroy any
00044 //copyright notice included in the Program.  TI reserves all
00045 //rights not specifically granted under this license. Except
00046 //as specifically provided herein, nothing in this agreement
00047 //shall be construed as conferring by implication, estoppel,
00048 //or otherwise, upon you, any license or other right under any
00049 //TI patents, copyrights or trade secrets.
00050 //
00051 //You may not use the Program in non-TI devices.
00052 //
00053 //
00054 //This software has been submitted to export control regulations
00055 //The ECCN is EAR99 
00067 #ifndef USCI_UART_REGS
00068 #define USCI_UART_REGS
00069 
00070 
00071 
00072 #if (USCI_A_MODULE == 0)
00073   #ifdef   __MSP430_HAS_USCI_A0__
00074     #define UCAxCTL0               UCA0CTL0             /* USCI Control Register 0 */   
00075     #define UCAxCTL1             UCA0CTL1               /* USCI Control Register 1 */
00076     #define UCAxBR         UCA0BRW
00077     #define UCAxBR0              UCA0BR0                        /* USCI Baud Rate 0 */
00078     #define UCAxBR1              UCA0BR1                        /* USCI Baud Rate 1 */
00079     #define UCAxMCTL       UCA0MCTL             /* USCI modulation control register*/
00080     #define UCAxSTAT             UCA0STAT               /* USCI Status Register */
00081     #define UCAxRXBUF            UCA0RXBUF              /* USCI Receive Buffer */
00082     #define UCAxTXBUF            UCA0TXBUF              /* USCI Transmit Buffer */
00083     #define UCAxABCTL            UCA0ABCTL              /* USCI auto baud control register*/
00084     #define UCAxIE                   UCA0IE                     /* USCI Interrupt Enable Register */
00085     #define UCAxIFG                  UCA0IFG                    /* USCI Interrupt Flags Register */                        
00086     #define UCAxIV         UCA0IV  /* USCI Interrupt Vector Register */
00087 
00088     #define UCAxRX_VECTOR  USCI_A0_VECTOR
00089 
00090     #define UCAxRXIE       BIT0
00091     #define UCAxTXIE       BIT1
00092     #define UCAxRXIFG      BIT0
00093     #define UCAxTXIFG      BIT1
00094   #endif
00095 #elif (USCI_A_MODULE == 1)
00096   #ifdef   __MSP430_HAS_USCI_A1__
00097     #define UCAxCTL0               UCA1CTL0                     /* USCI Control Register 0 */   
00098     #define UCAxCTL1             UCA1CTL1                       /* USCI Control Register 1 */
00099     #define UCAxBR         UCA1BRW
00100     #define UCAxBR0              UCA1BR0                        /* USCI Baud Rate 0 */
00101     #define UCAxBR1              UCA1BR1                        /* USCI Baud Rate 1 */
00102     #define UCAxMCTL       UCA1MCTL                     /* USCI modulation control register*/
00103     #define UCAxSTAT             UCA1STAT                       /* USCI Status Register */
00104     #define UCAxRXBUF            UCA1RXBUF                      /* USCI Receive Buffer  */
00105     #define UCAxTXBUF            UCA1TXBUF                      /* USCI Transmit Buffer */
00106     #define UCAxABCTL            UCA1ABCTL                      /* USCI auto baud control register*/
00107     #define UCAxIE                   UCA1IE                     /* USCI Interrupt Enable Register */
00108     #define UCAxIFG                  UCA1IFG                    /* USCI Interrupt Flags Register  */                        
00109     #define UCAxIV         UCA1IV   /* USCI Interrupt Vector Register */
00110     
00111     #define UCAxRX_VECTOR  USCI_A1_VECTOR
00112 
00113     #define UCAxRXIE       BIT0
00114     #define UCAxTXIE       BIT1
00115     #define UCAxRXIFG      BIT0
00116     #define UCAxTXIFG      BIT1
00117   #endif
00118 #else 
00119   #error "USCI Module not supported"
00120 #endif  
00121 
00122 #endif // USCI_UART_REGS
00123 
00124 

Generated on Fri Dec 17 2010 12:08:30 for Multi-cell Lithium-Ion Battery Manager System using MSP430 and BQ76PL536 by  doxygen 1.7.1