1 //########################################################################### 2 // 3 // FILE: F2837xD_struct.c 4 // 5 // TITLE: F2837xD SDFM structure 6 // 7 //########################################################################### 8 // $TI Release: F2837xD Support Library v3.05.00.00 $ 9 // $Release Date: Tue Jun 26 03:15:23 CDT 2018 $ 10 // $Copyright: 11 // Copyright (C) 2013-2018 Texas Instruments Incorporated - http://www.ti.com/ 12 // 13 // Redistribution and use in source and binary forms, with or without 14 // modification, are permitted provided that the following conditions 15 // are met: 16 // 17 // Redistributions of source code must retain the above copyright 18 // notice, this list of conditions and the following disclaimer. 19 // 20 // Redistributions in binary form must reproduce the above copyright 21 // notice, this list of conditions and the following disclaimer in the 22 // documentation and/or other materials provided with the 23 // distribution. 24 // 25 // Neither the name of Texas Instruments Incorporated nor the names of 26 // its contributors may be used to endorse or promote products derived 27 // from this software without specific prior written permission. 28 // 29 // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 30 // "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 31 // LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 32 // A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 33 // OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 34 // SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 35 // LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 36 // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 37 // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 38 // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 39 // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 40 // $ 41 //########################################################################### 42 43 // 44 // Included Files 45 // 46 #include "F2837xD_device.h" 47 #include "F2837xD_struct.h" 48 49 // 50 // Globals 51 // 52 #if defined(CPU1) 53 volatile struct ADC_REGS *ADC[MAX_ADC] = 54 { 0, &AdcaRegs, &AdcbRegs, 55 &AdccRegs, &AdcdRegs }; 56 #endif 57 58 volatile struct ECAP_REGS *ECAP[MAX_ECAP] = 59 { 0, &ECap1Regs, &ECap2Regs, &ECap3Regs, 60 &ECap4Regs, &ECap5Regs, &ECap6Regs }; 61 62 volatile struct EPWM_REGS *EPWM[MAX_EPWM] = 63 { 0, &EPwm1Regs, &EPwm2Regs, &EPwm3Regs, 64 &EPwm4Regs, &EPwm5Regs, &EPwm6Regs, 65 &EPwm7Regs, &EPwm8Regs, &EPwm9Regs, 66 &EPwm10Regs, &EPwm11Regs, &EPwm12Regs }; 67 68 volatile struct EQEP_REGS *EQEP[MAX_EQEP] = 69 { 0, &EQep1Regs, &EQep2Regs, &EQep3Regs }; 70 71 volatile struct I2C_REGS *I2C[MAX_I2C] = 72 { 0, &I2caRegs }; 73 74 volatile struct McBSP_REGS *MCBSP[MAX_MCBSP] = 75 { 0, &McbspaRegs }; 76 77 volatile struct SCI_REGS *SCI[MAX_SCI] = 78 { 0, &SciaRegs }; 79 80 volatile struct SPI_REGS *SPI[MAX_SPI] = 81 { 0, &SpiaRegs, &SpibRegs, &SpicRegs }; 82 83 volatile struct SDFM_REGS *SDFM[MAX_SDFM] = 84 { 0, &Sdfm1Regs, &Sdfm2Regs}; 85 86 #if defined(CPU1) 87 volatile Uint16 *TRIP_SEL[MAX_TRIPSEL] = 88 { 0, &InputXbarRegs.INPUT1SELECT, &InputXbarRegs.INPUT2SELECT, 89 &InputXbarRegs.INPUT3SELECT, &InputXbarRegs.INPUT4SELECT, 90 &InputXbarRegs.INPUT5SELECT, &InputXbarRegs.INPUT6SELECT, 91 &InputXbarRegs.INPUT7SELECT, &InputXbarRegs.INPUT8SELECT, 92 &InputXbarRegs.INPUT9SELECT, &InputXbarRegs.INPUT10SELECT, 93 &InputXbarRegs.INPUT11SELECT, &InputXbarRegs.INPUT12SELECT, 94 &InputXbarRegs.INPUT13SELECT, &InputXbarRegs.INPUT14SELECT 95 }; 96 #endif 97 98 // 99 // End of file 100 // 101