1    /* --COPYRIGHT--,EPL
     2     *  Copyright (c) 2008 Texas Instruments and others.
     3     *  All rights reserved. This program and the accompanying materials
     4     *  are made available under the terms of the Eclipse Public License v1.0
     5     *  which accompanies this distribution, and is available at
     6     *  http://www.eclipse.org/legal/epl-v10.html
     7     * 
     8     *  Contributors:
     9     *      Texas Instruments - initial implementation
    10     * 
    11     * --/COPYRIGHT--*/
    12    /*!
    13     * Universal Serial Communication Interface A1 SPI 2xx
    14     */
    15    metaonly interface IUSCI_A1_SPI inherits IUSCI_SPI {
    16    
    17    instance:
    18            /*! Control Register 0 */
    19        config UCxCTL0_t UCA1CTL0 = {
    20            UCCKPH      : UCCKPH_OFF,
    21            UCCKPL      : UCCKPL_OFF,
    22            UCMSB       : UCMSB_OFF,
    23            UC7BIT      : UC7BIT_OFF,
    24            UCMST       : UCMST_OFF,
    25            UCMODE      : UCMODE_0,
    26            UCSYNC      : UCSYNC,
    27        };
    28    
    29            /*! Control Register 1 */    
    30        config UCxCTL1_t UCA1CTL1 = {
    31            UCSSEL      : UCSSEL_0,
    32            UCSWRST     : UCSWRST,
    33        };
    34      
    35        /*! Status Register */
    36        config UCxSTAT_t UCA1STAT = {
    37            UCLISTEN    : UCLISTEN_OFF,
    38            UCFE        : UCFE_OFF,
    39            UCOE        : UCOE_OFF,
    40            UCBUSY      : UCBUSY,
    41        };
    42    
    43        /*! Bit Rate Control Register 0 */
    44        config Bits8 UCA1BR0 = 0;
    45        
    46        /*! Bit Rate Control Register 1 */
    47        config Bits8 UCA1BR1 = 0;
    48        
    49        /*! Receive Buffer Register */
    50        config Bits8 UCA1RXBUF = 0;
    51        
    52        /*! Transmit Buffer Register */
    53        config Bits8 UCA1TXBUF = 0;
    54    }