Update repo
This commit is contained in:
1 parent
749dab5721
commit
ce65a0f59a
14950 files changed
+4408250
-1
No files matched your search
+391
@@ -0,0 +1,391 @@
|
||||
//###########################################################################
|
||||
//
|
||||
// FILE: adc_ppb_delay_cpu01.c
|
||||
//
|
||||
// TITLE: Post-Processing delay capture for F2837xD.
|
||||
//
|
||||
//! \addtogroup cpu01_example_list
|
||||
//! <h1> ADC PPB Delay Capture (adc_ppb_delay)</h1>
|
||||
//!
|
||||
//! This example demonstrates delay capture using the post-processing block.
|
||||
//!
|
||||
//! Two asynchronous ADC triggers are setup:\n
|
||||
//! - ePWM1, with period 2048, triggering SOC0 to convert on pin A0\n
|
||||
//! - ePWM1, with period 9999, triggering SOC1 to convert on pin A1\n
|
||||
//!
|
||||
//! Each conversion generates an ISR at the end of the conversion. In the
|
||||
//! ISR for SOC0, a conversion counter is incremented and the PPB is checked
|
||||
//! to determine if the sample was delayed.\n
|
||||
//!
|
||||
//! After the program runs, the memory will contain:\n
|
||||
//! - \b conversion \b: the sequence of conversions using SOC0 that were delayed
|
||||
//! - \b delay \b: the corresponding delay of each of the delayed conversions
|
||||
//!
|
||||
//
|
||||
//###########################################################################
|
||||
// $Copyright:
|
||||
// Copyright (C) 2013-2024 Texas Instruments Incorporated - http://www.ti.com/
|
||||
//
|
||||
// Redistribution and use in source and binary forms, with or without
|
||||
// modification, are permitted provided that the following conditions
|
||||
// are met:
|
||||
//
|
||||
// Redistributions of source code must retain the above copyright
|
||||
// notice, this list of conditions and the following disclaimer.
|
||||
//
|
||||
// Redistributions in binary form must reproduce the above copyright
|
||||
// notice, this list of conditions and the following disclaimer in the
|
||||
// documentation and/or other materials provided with the
|
||||
// distribution.
|
||||
//
|
||||
// Neither the name of Texas Instruments Incorporated nor the names of
|
||||
// its contributors may be used to endorse or promote products derived
|
||||
// from this software without specific prior written permission.
|
||||
//
|
||||
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||
// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||
// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
||||
// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
||||
// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||
// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||
// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
||||
// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
||||
// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
// $
|
||||
//###########################################################################
|
||||
|
||||
//
|
||||
// Included Files
|
||||
//
|
||||
#include "F28x_Project.h"
|
||||
|
||||
//
|
||||
// Function Prototypes
|
||||
//
|
||||
void ConfigureADC(void);
|
||||
void ConfigureEPWM(void);
|
||||
void SetupADCEpwm(Uint16 channel1, Uint16 channel2);
|
||||
interrupt void adca1_isr(void);
|
||||
interrupt void adca2_isr(void);
|
||||
|
||||
//
|
||||
// Defines
|
||||
//
|
||||
#define DELAY_BUFFER_SIZE 30
|
||||
|
||||
//
|
||||
// Globals
|
||||
//
|
||||
Uint32 conversion_count;
|
||||
Uint32 conversion[DELAY_BUFFER_SIZE];
|
||||
Uint16 delay[DELAY_BUFFER_SIZE];
|
||||
volatile Uint16 delay_index;
|
||||
|
||||
void main(void)
|
||||
{
|
||||
Uint16 adcChannelId0;
|
||||
Uint16 adcChannelId1;
|
||||
//
|
||||
// Step 1. Initialize System Control:
|
||||
// PLL, WatchDog, enable Peripheral Clocks
|
||||
// This example function is found in the F2837xD_SysCtrl.c file.
|
||||
//
|
||||
InitSysCtrl();
|
||||
|
||||
//
|
||||
// Step 2. Initialize GPIO:
|
||||
// This example function is found in the F2837xD_Gpio.c file and
|
||||
// illustrates how to set the GPIO to it's default state.
|
||||
//
|
||||
InitGpio(); // Skipped for this example
|
||||
|
||||
//
|
||||
// Step 3. Clear all interrupts and initialize PIE vector table:
|
||||
// Disable CPU interrupts
|
||||
//
|
||||
DINT;
|
||||
|
||||
//
|
||||
// Initialize the PIE control registers to their default state.
|
||||
// The default state is all PIE interrupts disabled and flags
|
||||
// are cleared.
|
||||
// This function is found in the F2837xD_PieCtrl.c file.
|
||||
//
|
||||
InitPieCtrl();
|
||||
|
||||
//
|
||||
// Disable CPU interrupts and clear all CPU interrupt flags:
|
||||
//
|
||||
IER = 0x0000;
|
||||
IFR = 0x0000;
|
||||
|
||||
//
|
||||
// Initialize the PIE vector table with pointers to the shell Interrupt
|
||||
// Service Routines (ISR).
|
||||
// This will populate the entire table, even if the interrupt
|
||||
// is not used in this example. This is useful for debug purposes.
|
||||
// The shell ISR routines are found in F2837xD_DefaultIsr.c.
|
||||
// This function is found in F2837xD_PieVect.c.
|
||||
//
|
||||
InitPieVectTable();
|
||||
|
||||
//
|
||||
// Map ISR functions
|
||||
//
|
||||
EALLOW;
|
||||
PieVectTable.ADCA1_INT = &adca1_isr; //function for ADCA interrupt 1
|
||||
PieVectTable.ADCA2_INT = &adca2_isr; //function for ADCA interrupt 2
|
||||
EDIS;
|
||||
|
||||
//
|
||||
// Configure the ADC and power it up
|
||||
//
|
||||
ConfigureADC();
|
||||
|
||||
//
|
||||
// Configure ePWM1 and ePWM2 with asynchronous periods
|
||||
//
|
||||
ConfigureEPWM();
|
||||
|
||||
//
|
||||
// Setup the ADC for ePWM triggered conversions on ADC channels 0 and 1
|
||||
//
|
||||
adcChannelId0 = ADC_CHANNEL_0;
|
||||
adcChannelId1 = ADC_CHANNEL_1;
|
||||
|
||||
SetupADCEpwm(adcChannelId0, adcChannelId1);
|
||||
|
||||
//
|
||||
// Setup the post-processing block to be associated with SOC0
|
||||
//
|
||||
AdcaRegs.ADCPPB1CONFIG.bit.CONFIG = 0;
|
||||
|
||||
//
|
||||
// Enable global Interrupts and higher priority real-time debug events:
|
||||
//
|
||||
IER |= M_INT1; //Enable group 1 interrupts
|
||||
IER |= M_INT10; //Enable group 1 interrupts
|
||||
EINT; // Enable Global interrupt INTM
|
||||
ERTM; // Enable Global realtime interrupt DBGM
|
||||
|
||||
//
|
||||
// enable PIE interrupt
|
||||
//
|
||||
PieCtrlRegs.PIEIER1.bit.INTx1 = 1;
|
||||
PieCtrlRegs.PIEIER10.bit.INTx2 = 1;
|
||||
|
||||
//
|
||||
// initialize program variables
|
||||
//
|
||||
conversion_count = 0;
|
||||
for(delay_index = 0; delay_index < DELAY_BUFFER_SIZE; delay_index++)
|
||||
{
|
||||
delay[delay_index] = 0;
|
||||
conversion[delay_index] = 0;
|
||||
}
|
||||
|
||||
//
|
||||
// Start ePWMs
|
||||
//
|
||||
EALLOW;
|
||||
CpuSysRegs.PCLKCR0.bit.TBCLKSYNC = 1;
|
||||
EPwm1Regs.ETSEL.bit.SOCAEN = 1; //enable SOCA
|
||||
EPwm1Regs.TBCTL.bit.CTRMODE = 0; //unfreeze, and enter up count mode
|
||||
EPwm2Regs.ETSEL.bit.SOCAEN = 1; //enable SOCA
|
||||
EPwm2Regs.TBCTL.bit.CTRMODE = 0; //unfreeze, and enter up count mode
|
||||
|
||||
do
|
||||
{
|
||||
delay_index = 0;
|
||||
|
||||
//
|
||||
//wait for list of delayed conversions to fill via interrupts
|
||||
//
|
||||
while(DELAY_BUFFER_SIZE > delay_index){}
|
||||
|
||||
//
|
||||
//software breakpoint
|
||||
//
|
||||
asm(" ESTOP0");
|
||||
|
||||
//
|
||||
//conversion[] will show which conversions were delayed
|
||||
//delay[] will show how long each conversion was delayed
|
||||
//conversion_count will show total number of conversions
|
||||
//conversion_count - DELAY_BUFFER_SIZE is the number of samples
|
||||
// that started immediately without any delay
|
||||
//
|
||||
}while(1);
|
||||
}
|
||||
|
||||
//
|
||||
// ConfigureADC - Write ADC configurations and power up the ADC for both
|
||||
// ADC A and ADC B
|
||||
//
|
||||
void ConfigureADC(void)
|
||||
{
|
||||
EALLOW;
|
||||
|
||||
//
|
||||
//write configurations
|
||||
//
|
||||
AdcaRegs.ADCCTL2.bit.PRESCALE = 6; //set ADCCLK divider to /4
|
||||
AdcSetMode(ADC_ADCA, ADC_RESOLUTION_12BIT, ADC_SIGNALMODE_SINGLE);
|
||||
|
||||
//
|
||||
//Set pulse positions to late
|
||||
//
|
||||
AdcaRegs.ADCCTL1.bit.INTPULSEPOS = 1;
|
||||
|
||||
//
|
||||
//power up the ADC
|
||||
//
|
||||
AdcaRegs.ADCCTL1.bit.ADCPWDNZ = 1;
|
||||
|
||||
//
|
||||
//delay for 1ms to allow ADC time to power up
|
||||
//
|
||||
DELAY_US(1000);
|
||||
|
||||
EDIS;
|
||||
}
|
||||
|
||||
//
|
||||
// ConfigureEPWM - setup PWM1 and PWM2 with asynchronous periods
|
||||
//
|
||||
void ConfigureEPWM(void)
|
||||
{
|
||||
EALLOW;
|
||||
//
|
||||
// Assumes ePWM clock is already enabled
|
||||
//
|
||||
EPwm1Regs.ETSEL.bit.SOCAEN = 0; // Disable SOC on A group
|
||||
EPwm1Regs.ETSEL.bit.SOCASEL = 4; // Select SOC on up-count
|
||||
EPwm1Regs.ETPS.bit.SOCAPRD = 1; // Generate pulse on 1st event
|
||||
EPwm1Regs.CMPA.bit.CMPA = 0x0400; // Set compare A value to 1024 counts
|
||||
EPwm1Regs.TBPRD = 0x0800; // Set period to 2048 counts
|
||||
EPwm1Regs.TBCTL.bit.CTRMODE = 3; // freeze counter
|
||||
|
||||
//
|
||||
// Assumes ePWM clock is already enabled
|
||||
//
|
||||
EPwm2Regs.ETSEL.bit.SOCAEN = 0; // Disable SOC on A group
|
||||
EPwm2Regs.ETSEL.bit.SOCASEL = 4; // Select SOC on up-count
|
||||
EPwm2Regs.ETPS.bit.SOCAPRD = 1; // Generate pulse on 1st event
|
||||
EPwm2Regs.CMPA.bit.CMPA = 0x0400; // Set compare A value to 1024 counts
|
||||
EPwm2Regs.TBPRD = 9999; // Set period to 9999 counts
|
||||
EPwm2Regs.TBCTL.bit.CTRMODE = 3; // freeze counter
|
||||
EDIS;
|
||||
}
|
||||
|
||||
//
|
||||
// SetupADCEpwm - Setup ADC SOC for EPWM
|
||||
//
|
||||
void SetupADCEpwm(Uint16 channel1, Uint16 channel2)
|
||||
{
|
||||
Uint16 acqps;
|
||||
|
||||
//
|
||||
// Determine minimum acquisition window (in SYSCLKS) based on resolution
|
||||
//
|
||||
if(ADC_RESOLUTION_12BIT == AdcaRegs.ADCCTL2.bit.RESOLUTION)
|
||||
{
|
||||
acqps = 14; //75ns
|
||||
}
|
||||
else //resolution is 16-bit
|
||||
{
|
||||
acqps = 63; //320ns
|
||||
}
|
||||
|
||||
//
|
||||
//Select the channels to convert and setup the end of conversion flag
|
||||
//ADCA
|
||||
//
|
||||
EALLOW;
|
||||
AdcaRegs.ADCSOC0CTL.bit.CHSEL = channel1; // ADC Channel to be converted on SOC0 trigger
|
||||
AdcaRegs.ADCSOC1CTL.bit.CHSEL = channel2; // ADC Channel to be converted on SOC1 trigger
|
||||
AdcaRegs.ADCSOC0CTL.bit.ACQPS = acqps; // sample window is 100 SYSCLK cycles
|
||||
AdcaRegs.ADCSOC1CTL.bit.ACQPS = acqps; // sample window is 100 SYSCLK cycles
|
||||
AdcaRegs.ADCSOC0CTL.bit.TRIGSEL = 5; // trigger on ePWM1 SOCA/C
|
||||
AdcaRegs.ADCSOC1CTL.bit.TRIGSEL = 7; // trigger on ePWM2 SOCA/C
|
||||
AdcaRegs.ADCINTSEL1N2.bit.INT1SEL = 0; // end of SOC0 will set INT1 flag
|
||||
AdcaRegs.ADCINTSEL1N2.bit.INT2SEL = 1; // end of SOC1 will set INT1 flag
|
||||
AdcaRegs.ADCINTSEL1N2.bit.INT1E = 1; // enable INT1 flag
|
||||
AdcaRegs.ADCINTSEL1N2.bit.INT2E = 1; // enable INT2 flag
|
||||
EDIS;
|
||||
}
|
||||
|
||||
//
|
||||
// adca1_isr - ADCA1 Interrupt Service Routine
|
||||
//
|
||||
interrupt void adca1_isr(void)
|
||||
{
|
||||
//
|
||||
//DLYSTAMP will read 2 if the sample was not delayed
|
||||
//
|
||||
if(2 < AdcaRegs.ADCPPB1STAMP.bit.DLYSTAMP)
|
||||
{
|
||||
//
|
||||
//if DLYSTAMP > 2, then the sample was delayed by (DLYSTAMP - 2)
|
||||
//cycles (SYSCLK)
|
||||
//
|
||||
conversion[delay_index] = conversion_count;
|
||||
delay[delay_index] = AdcaRegs.ADCPPB1STAMP.bit.DLYSTAMP - 2;
|
||||
delay_index++;
|
||||
|
||||
//
|
||||
//corrective action(s) for delayed sample can occur here
|
||||
//...
|
||||
//
|
||||
}
|
||||
|
||||
//
|
||||
//read ADC sample here
|
||||
//...
|
||||
//
|
||||
|
||||
conversion_count++;
|
||||
|
||||
AdcaRegs.ADCINTFLGCLR.bit.ADCINT1 = 1; //clear INT1 flag
|
||||
|
||||
//
|
||||
// Check if overflow has occurred
|
||||
//
|
||||
if(1 == AdcaRegs.ADCINTOVF.bit.ADCINT1)
|
||||
{
|
||||
AdcaRegs.ADCINTOVFCLR.bit.ADCINT1 = 1; //clear INT1 overflow flag
|
||||
AdcaRegs.ADCINTFLGCLR.bit.ADCINT1 = 1; //clear INT1 flag
|
||||
}
|
||||
|
||||
PieCtrlRegs.PIEACK.all = PIEACK_GROUP1;
|
||||
}
|
||||
|
||||
//
|
||||
// adca2_isr - ADCA2 Interrupt Service Routine
|
||||
//
|
||||
interrupt void adca2_isr(void)
|
||||
{
|
||||
//
|
||||
//read ADC sample
|
||||
//...
|
||||
//
|
||||
|
||||
AdcaRegs.ADCINTFLGCLR.bit.ADCINT2 = 1; //clear INT2 flag
|
||||
|
||||
//
|
||||
// Check if overflow has occurred
|
||||
//
|
||||
if(1 == AdcaRegs.ADCINTOVF.bit.ADCINT2)
|
||||
{
|
||||
AdcaRegs.ADCINTOVFCLR.bit.ADCINT2 = 1; //clear INT2 overflow flag
|
||||
AdcaRegs.ADCINTFLGCLR.bit.ADCINT2 = 1; //clear INT2 flag
|
||||
}
|
||||
|
||||
PieCtrlRegs.PIEACK.all = PIEACK_GROUP10;
|
||||
}
|
||||
|
||||
//
|
||||
// End of file
|
||||
//
|
||||
@@ -0,0 +1,12 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<?ccsproject version="1.0"?>
|
||||
<projectOptions>
|
||||
<deviceVariant value="com.ti.ccstudio.deviceModel.C2000.GenericC28xxDevice"/>
|
||||
<deviceFamily value="C2000"/>
|
||||
<codegenToolVersion value="6.3.0.A13150"/>
|
||||
<isElfFormat value="false"/>
|
||||
<connection value=""/>
|
||||
<rts value="libc.a"/>
|
||||
<templateProperties value="id=com.ti.common.project.core.emptyProjectTemplate,"/>
|
||||
<isTargetManual value="false"/>
|
||||
</projectOptions>
|
||||
@@ -0,0 +1,194 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<?fileVersion 4.0.0?><cproject storage_type_id="org.eclipse.cdt.core.XmlProjectDescriptionStorage">
|
||||
<storageModule configRelations="2" moduleId="org.eclipse.cdt.core.settings">
|
||||
<cconfiguration id="com.ti.ccstudio.buildDefinitions.C2000.Debug.2121059750">
|
||||
<storageModule buildSystemId="org.eclipse.cdt.managedbuilder.core.configurationDataProvider" id="com.ti.ccstudio.buildDefinitions.C2000.Debug.2121059750" moduleId="org.eclipse.cdt.core.settings" name="CPU1_RAM">
|
||||
<macros>
|
||||
<stringMacro name="INSTALLROOT_F2837XD" type="VALUE_PATH_DIR" value="${PROJECT_ROOT}/../../../../.."/>
|
||||
</macros>
|
||||
<externalSettings/>
|
||||
<extensions>
|
||||
<extension id="com.ti.ccstudio.errorparser.CoffErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
|
||||
<extension id="com.ti.ccstudio.errorparser.LinkErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
|
||||
<extension id="com.ti.ccstudio.errorparser.AsmErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
|
||||
<extension id="org.eclipse.cdt.core.GmakeErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
|
||||
<extension id="com.ti.ccstudio.binaryparser.CoffParser" point="org.eclipse.cdt.core.BinaryParser"/>
|
||||
</extensions>
|
||||
</storageModule>
|
||||
<storageModule moduleId="cdtBuildSystem" version="4.0.0">
|
||||
<configuration artifactExtension="out" artifactName="${ProjName}" buildProperties="" cleanCommand="${CG_CLEAN_CMD}" description="RAM Build Configuration w/Debugger Support for CPU1" id="com.ti.ccstudio.buildDefinitions.C2000.Debug.2121059750" name="CPU1_RAM" parent="com.ti.ccstudio.buildDefinitions.C2000.Debug">
|
||||
<folderInfo id="com.ti.ccstudio.buildDefinitions.C2000.Debug.2121059750." name="/" resourcePath="">
|
||||
<toolChain id="com.ti.ccstudio.buildDefinitions.C2000_15.12.exe.DebugToolchain.1044403979" name="TI Build Tools" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.exe.DebugToolchain" targetTool="com.ti.ccstudio.buildDefinitions.C2000_15.12.exe.linkerDebug.437105474">
|
||||
<option id="com.ti.ccstudio.buildDefinitions.core.OPT_TAGS.836365695" superClass="com.ti.ccstudio.buildDefinitions.core.OPT_TAGS" valueType="stringList">
|
||||
<listOptionValue builtIn="false" value="DEVICE_CONFIGURATION_ID=com.ti.ccstudio.deviceModel.C2000.GenericC28xxDevice"/>
|
||||
<listOptionValue builtIn="false" value="DEVICE_ENDIANNESS=little"/>
|
||||
<listOptionValue builtIn="false" value="OUTPUT_FORMAT=COFF"/>
|
||||
<listOptionValue builtIn="false" value="CCS_MBS_VERSION=6.1.3"/>
|
||||
<listOptionValue builtIn="false" value="RUNTIME_SUPPORT_LIBRARY=libc.a"/>
|
||||
<listOptionValue builtIn="false" value="OUTPUT_TYPE=executable"/>
|
||||
</option>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.core.OPT_CODEGEN_VERSION.1848077028" name="Compiler version" superClass="com.ti.ccstudio.buildDefinitions.core.OPT_CODEGEN_VERSION" value="15.12.1.LTS" valueType="string"/>
|
||||
<targetPlatform id="com.ti.ccstudio.buildDefinitions.C2000_15.12.exe.targetPlatformDebug.1384098166" name="Platform" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.exe.targetPlatformDebug"/>
|
||||
<builder buildPath="${BuildDirectory}" id="com.ti.ccstudio.buildDefinitions.C2000_15.12.exe.builderDebug.1297755562" keepEnvironmentInBuildfile="false" name="GNU Make" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.exe.builderDebug"/>
|
||||
<tool id="com.ti.ccstudio.buildDefinitions.C2000_15.12.exe.compilerDebug.1910933308" name="C2000 Compiler" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.exe.compilerDebug">
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.SILICON_VERSION.885036387" name="Processor version (--silicon_version, -v)" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.SILICON_VERSION" value="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.SILICON_VERSION.28" valueType="enumerated"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.LARGE_MEMORY_MODEL.1563491961" name="Option deprecated, set by default (--large_memory_model, -ml)" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.LARGE_MEMORY_MODEL" value="true" valueType="boolean"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.UNIFIED_MEMORY.1495003869" name="Unified memory (--unified_memory, -mt)" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.UNIFIED_MEMORY" value="true" valueType="boolean"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.CLA_SUPPORT.1167434977" name="Specify CLA support (--cla_support)" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.CLA_SUPPORT" value="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.CLA_SUPPORT.cla1" valueType="enumerated"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.FLOAT_SUPPORT.478997936" name="Specify floating point support (--float_support)" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.FLOAT_SUPPORT" value="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.FLOAT_SUPPORT.fpu32" valueType="enumerated"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.TMU_SUPPORT.853554093" name="Specify TMU support (--tmu_support)" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.TMU_SUPPORT" value="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.TMU_SUPPORT.tmu0" valueType="enumerated"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.VCU_SUPPORT.1452927355" name="Specify VCU support (--vcu_support)" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.VCU_SUPPORT" value="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.VCU_SUPPORT.vcu2" valueType="enumerated"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.INCLUDE_PATH.358837619" name="Add dir to #include search path (--include_path, -I)" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.INCLUDE_PATH" valueType="includePath">
|
||||
<listOptionValue builtIn="false" value=""${CG_TOOL_ROOT}/include""/>
|
||||
<listOptionValue builtIn="false" value=""${INSTALLROOT_F2837XD}/headers/include""/>
|
||||
<listOptionValue builtIn="false" value=""${INSTALLROOT_F2837XD}/common/include""/>
|
||||
</option>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.DEBUGGING_MODEL.944988908" name="Debugging model" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.DEBUGGING_MODEL" value="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.DEBUGGING_MODEL.SYMDEBUG__DWARF" valueType="enumerated"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.DEFINE.313935714" name="Pre-define NAME (--define, -D)" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.DEFINE" valueType="definedSymbols">
|
||||
<listOptionValue builtIn="false" value="CPU1"/>
|
||||
</option>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.DIAG_WARNING.1312357074" name="Treat diagnostic <id> as warning (--diag_warning, -pdsw)" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.DIAG_WARNING" valueType="stringList">
|
||||
<listOptionValue builtIn="false" value="225"/>
|
||||
</option>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.DISPLAY_ERROR_NUMBER.1793147392" name="Emit diagnostic identifier numbers (--display_error_number, -pden)" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.DISPLAY_ERROR_NUMBER" value="true" valueType="boolean"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.DIAG_SUPPRESS.963110033" name="Suppress diagnostic <id> (--diag_suppress, -pds)" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.DIAG_SUPPRESS" valueType="stringList">
|
||||
<listOptionValue builtIn="false" value="1311"/>
|
||||
</option>
|
||||
<inputType id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compiler.inputType__C_SRCS.1526411230" name="C Sources" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compiler.inputType__C_SRCS"/>
|
||||
<inputType id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compiler.inputType__CPP_SRCS.107194069" name="C++ Sources" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compiler.inputType__CPP_SRCS"/>
|
||||
<inputType id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compiler.inputType__ASM_SRCS.1553950018" name="Assembly Sources" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compiler.inputType__ASM_SRCS"/>
|
||||
<inputType id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compiler.inputType__ASM2_SRCS.896157101" name="Assembly Sources" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compiler.inputType__ASM2_SRCS"/>
|
||||
</tool>
|
||||
<tool id="com.ti.ccstudio.buildDefinitions.C2000_15.12.exe.linkerDebug.437105474" name="C2000 Linker" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.exe.linkerDebug">
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.OUTPUT_FILE.1302898029" name="Specify output file name (--output_file, -o)" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.OUTPUT_FILE" value=""${ProjName}.out"" valueType="string"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.MAP_FILE.100068696" name="Link information (map) listed into <file> (--map_file, -m)" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.MAP_FILE" value=""${ProjName}.map"" valueType="string"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.STACK_SIZE.718812265" name="Set C system stack size (--stack_size, -stack)" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.STACK_SIZE" value="0x100" valueType="string"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.LIBRARY.1691903961" name="Include library file or command file as input (--library, -l)" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.LIBRARY" valueType="libs">
|
||||
<listOptionValue builtIn="false" value=""rts2800_fpu32.lib""/>
|
||||
<listOptionValue builtIn="false" value=""2837xD_RAM_lnk_cpu1.cmd""/>
|
||||
<listOptionValue builtIn="false" value=""F2837xD_Headers_nonBIOS_cpu1.cmd""/>
|
||||
<listOptionValue builtIn="false" value=""libc.a""/>
|
||||
</option>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.SEARCH_PATH.1922173815" name="Add <dir> to library search path (--search_path, -i)" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.SEARCH_PATH" valueType="libPaths">
|
||||
<listOptionValue builtIn="false" value=""${CG_TOOL_ROOT}/lib""/>
|
||||
<listOptionValue builtIn="false" value=""${CG_TOOL_ROOT}/include""/>
|
||||
<listOptionValue builtIn="false" value=""${INSTALLROOT_F2837XD}/common/cmd""/>
|
||||
<listOptionValue builtIn="false" value=""${INSTALLROOT_F2837XD}/headers/cmd""/>
|
||||
</option>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.DISPLAY_ERROR_NUMBER.1047175704" name="Emit diagnostic identifier numbers (--display_error_number)" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.DISPLAY_ERROR_NUMBER" value="true" valueType="boolean"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.XML_LINK_INFO.260734420" name="Detailed link information data-base into <file> (--xml_link_info, -xml_link_info)" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.XML_LINK_INFO" value=""${ProjName}_linkInfo.xml"" valueType="string"/>
|
||||
<inputType id="com.ti.ccstudio.buildDefinitions.C2000_15.12.exeLinker.inputType__CMD_SRCS.1710138890" name="Linker Command Files" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.exeLinker.inputType__CMD_SRCS"/>
|
||||
<inputType id="com.ti.ccstudio.buildDefinitions.C2000_15.12.exeLinker.inputType__CMD2_SRCS.1448840974" name="Linker Command Files" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.exeLinker.inputType__CMD2_SRCS"/>
|
||||
<inputType id="com.ti.ccstudio.buildDefinitions.C2000_15.12.exeLinker.inputType__GEN_CMDS.2022776852" name="Generated Linker Command Files" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.exeLinker.inputType__GEN_CMDS"/>
|
||||
</tool>
|
||||
</toolChain>
|
||||
</folderInfo>
|
||||
</configuration>
|
||||
</storageModule>
|
||||
<storageModule moduleId="org.eclipse.cdt.core.externalSettings"/>
|
||||
</cconfiguration>
|
||||
<cconfiguration id="com.ti.ccstudio.buildDefinitions.C2000.Debug.2121059750.1690516423">
|
||||
<storageModule buildSystemId="org.eclipse.cdt.managedbuilder.core.configurationDataProvider" id="com.ti.ccstudio.buildDefinitions.C2000.Debug.2121059750.1690516423" moduleId="org.eclipse.cdt.core.settings" name="CPU1_FLASH">
|
||||
<macros>
|
||||
<stringMacro name="INSTALLROOT_F2837XD" type="VALUE_PATH_DIR" value="${PROJECT_ROOT}/../../../../.."/>
|
||||
</macros>
|
||||
<externalSettings/>
|
||||
<extensions>
|
||||
<extension id="com.ti.ccstudio.errorparser.CoffErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
|
||||
<extension id="com.ti.ccstudio.errorparser.LinkErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
|
||||
<extension id="com.ti.ccstudio.errorparser.AsmErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
|
||||
<extension id="org.eclipse.cdt.core.GmakeErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
|
||||
<extension id="com.ti.ccstudio.binaryparser.CoffParser" point="org.eclipse.cdt.core.BinaryParser"/>
|
||||
</extensions>
|
||||
</storageModule>
|
||||
<storageModule moduleId="cdtBuildSystem" version="4.0.0">
|
||||
<configuration artifactExtension="out" artifactName="${ProjName}" buildProperties="" cleanCommand="${CG_CLEAN_CMD}" description="Flash Build Configuration w/Debugger Support for CPU1" id="com.ti.ccstudio.buildDefinitions.C2000.Debug.2121059750.1690516423" name="CPU1_FLASH" parent="com.ti.ccstudio.buildDefinitions.C2000.Debug">
|
||||
<folderInfo id="com.ti.ccstudio.buildDefinitions.C2000.Debug.2121059750.1690516423." name="/" resourcePath="">
|
||||
<toolChain id="com.ti.ccstudio.buildDefinitions.C2000_15.12.exe.DebugToolchain.1246044329" name="TI Build Tools" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.exe.DebugToolchain" targetTool="com.ti.ccstudio.buildDefinitions.C2000_15.12.exe.linkerDebug.1219890128">
|
||||
<option id="com.ti.ccstudio.buildDefinitions.core.OPT_TAGS.413688758" superClass="com.ti.ccstudio.buildDefinitions.core.OPT_TAGS" valueType="stringList">
|
||||
<listOptionValue builtIn="false" value="DEVICE_CONFIGURATION_ID=com.ti.ccstudio.deviceModel.C2000.GenericC28xxDevice"/>
|
||||
<listOptionValue builtIn="false" value="DEVICE_ENDIANNESS=little"/>
|
||||
<listOptionValue builtIn="false" value="OUTPUT_FORMAT=COFF"/>
|
||||
<listOptionValue builtIn="false" value="CCS_MBS_VERSION=6.1.3"/>
|
||||
<listOptionValue builtIn="false" value="RUNTIME_SUPPORT_LIBRARY=libc.a"/>
|
||||
<listOptionValue builtIn="false" value="OUTPUT_TYPE=executable"/>
|
||||
</option>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.core.OPT_CODEGEN_VERSION.436900877" superClass="com.ti.ccstudio.buildDefinitions.core.OPT_CODEGEN_VERSION" value="15.12.1.LTS" valueType="string"/>
|
||||
<targetPlatform id="com.ti.ccstudio.buildDefinitions.C2000_15.12.exe.targetPlatformDebug.443111539" name="Platform" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.exe.targetPlatformDebug"/>
|
||||
<builder buildPath="${BuildDirectory}" id="com.ti.ccstudio.buildDefinitions.C2000_15.12.exe.builderDebug.924706473" name="GNU Make.CPU1_FLASH" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.exe.builderDebug"/>
|
||||
<tool id="com.ti.ccstudio.buildDefinitions.C2000_15.12.exe.compilerDebug.729520406" name="C2000 Compiler" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.exe.compilerDebug">
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.SILICON_VERSION.1062965680" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.SILICON_VERSION" value="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.SILICON_VERSION.28" valueType="enumerated"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.LARGE_MEMORY_MODEL.1519166186" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.LARGE_MEMORY_MODEL" value="true" valueType="boolean"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.UNIFIED_MEMORY.1498184758" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.UNIFIED_MEMORY" value="true" valueType="boolean"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.CLA_SUPPORT.758702021" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.CLA_SUPPORT" value="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.CLA_SUPPORT.cla1" valueType="enumerated"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.FLOAT_SUPPORT.1884538894" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.FLOAT_SUPPORT" value="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.FLOAT_SUPPORT.fpu32" valueType="enumerated"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.TMU_SUPPORT.383366705" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.TMU_SUPPORT" value="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.TMU_SUPPORT.tmu0" valueType="enumerated"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.VCU_SUPPORT.1511296601" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.VCU_SUPPORT" value="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.VCU_SUPPORT.vcu2" valueType="enumerated"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.INCLUDE_PATH.187081068" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.INCLUDE_PATH" valueType="includePath">
|
||||
<listOptionValue builtIn="false" value=""${CG_TOOL_ROOT}/include""/>
|
||||
<listOptionValue builtIn="false" value=""${INSTALLROOT_F2837XD}/headers/include""/>
|
||||
<listOptionValue builtIn="false" value=""${INSTALLROOT_F2837XD}/common/include""/>
|
||||
</option>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.DEBUGGING_MODEL.1641065799" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.DEBUGGING_MODEL" value="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.DEBUGGING_MODEL.SYMDEBUG__DWARF" valueType="enumerated"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.DEFINE.1102552099" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.DEFINE" valueType="definedSymbols">
|
||||
<listOptionValue builtIn="false" value="CPU1"/>
|
||||
<listOptionValue builtIn="false" value="_FLASH"/>
|
||||
</option>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.DIAG_WARNING.1896454911" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.DIAG_WARNING" valueType="stringList">
|
||||
<listOptionValue builtIn="false" value="225"/>
|
||||
</option>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.DISPLAY_ERROR_NUMBER.164329377" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.DISPLAY_ERROR_NUMBER" value="true" valueType="boolean"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.DIAG_SUPPRESS.1434221079" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.DIAG_SUPPRESS" valueType="stringList">
|
||||
<listOptionValue builtIn="false" value="1311"/>
|
||||
</option>
|
||||
<inputType id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compiler.inputType__C_SRCS.810334712" name="C Sources" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compiler.inputType__C_SRCS"/>
|
||||
<inputType id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compiler.inputType__CPP_SRCS.954004258" name="C++ Sources" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compiler.inputType__CPP_SRCS"/>
|
||||
<inputType id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compiler.inputType__ASM_SRCS.1403261713" name="Assembly Sources" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compiler.inputType__ASM_SRCS"/>
|
||||
<inputType id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compiler.inputType__ASM2_SRCS.1107067945" name="Assembly Sources" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compiler.inputType__ASM2_SRCS"/>
|
||||
</tool>
|
||||
<tool id="com.ti.ccstudio.buildDefinitions.C2000_15.12.exe.linkerDebug.1219890128" name="C2000 Linker" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.exe.linkerDebug">
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.OUTPUT_FILE.1019833240" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.OUTPUT_FILE" value=""${ProjName}.out"" valueType="string"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.MAP_FILE.814877001" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.MAP_FILE" value=""${ProjName}.map"" valueType="string"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.STACK_SIZE.557406301" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.STACK_SIZE" value="0x100" valueType="string"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.LIBRARY.728948895" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.LIBRARY" valueType="libs">
|
||||
<listOptionValue builtIn="false" value=""rts2800_fpu32.lib""/>
|
||||
<listOptionValue builtIn="false" value=""2837xD_FLASH_lnk_cpu1.cmd""/>
|
||||
<listOptionValue builtIn="false" value=""F2837xD_Headers_nonBIOS_cpu1.cmd""/>
|
||||
<listOptionValue builtIn="false" value=""libc.a""/>
|
||||
</option>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.SEARCH_PATH.1355430099" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.SEARCH_PATH" valueType="libPaths">
|
||||
<listOptionValue builtIn="false" value=""${CG_TOOL_ROOT}/lib""/>
|
||||
<listOptionValue builtIn="false" value=""${CG_TOOL_ROOT}/include""/>
|
||||
<listOptionValue builtIn="false" value=""${INSTALLROOT_F2837XD}/common/cmd""/>
|
||||
<listOptionValue builtIn="false" value=""${INSTALLROOT_F2837XD}/headers/cmd""/>
|
||||
</option>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.DISPLAY_ERROR_NUMBER.1758123077" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.DISPLAY_ERROR_NUMBER" value="true" valueType="boolean"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.XML_LINK_INFO.25242848" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.XML_LINK_INFO" value=""${ProjName}_linkInfo.xml"" valueType="string"/>
|
||||
<inputType id="com.ti.ccstudio.buildDefinitions.C2000_15.12.exeLinker.inputType__CMD_SRCS.1090095505" name="Linker Command Files" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.exeLinker.inputType__CMD_SRCS"/>
|
||||
<inputType id="com.ti.ccstudio.buildDefinitions.C2000_15.12.exeLinker.inputType__CMD2_SRCS.884083652" name="Linker Command Files" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.exeLinker.inputType__CMD2_SRCS"/>
|
||||
<inputType id="com.ti.ccstudio.buildDefinitions.C2000_15.12.exeLinker.inputType__GEN_CMDS.65923690" name="Generated Linker Command Files" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.exeLinker.inputType__GEN_CMDS"/>
|
||||
</tool>
|
||||
</toolChain>
|
||||
</folderInfo>
|
||||
</configuration>
|
||||
</storageModule>
|
||||
<storageModule moduleId="org.eclipse.cdt.core.externalSettings"/>
|
||||
</cconfiguration>
|
||||
</storageModule>
|
||||
<storageModule moduleId="org.eclipse.cdt.core.LanguageSettingsProviders"/>
|
||||
<storageModule moduleId="cdtBuildSystem" version="4.0.0">
|
||||
<project id="adc_ppb_delay_dc_cpu01.com.ti.ccstudio.buildDefinitions.C2000.ProjectType.253935156" name="C2000" projectType="com.ti.ccstudio.buildDefinitions.C2000.ProjectType"/>
|
||||
</storageModule>
|
||||
<storageModule moduleId="scannerConfiguration"/>
|
||||
<storageModule moduleId="org.eclipse.cdt.core.language.mapping">
|
||||
<project-mappings>
|
||||
<content-type-mapping configuration="" content-type="org.eclipse.cdt.core.asmSource" language="com.ti.ccstudio.core.TIASMLanguage"/>
|
||||
<content-type-mapping configuration="" content-type="org.eclipse.cdt.core.cHeader" language="com.ti.ccstudio.core.TIGCCLanguage"/>
|
||||
<content-type-mapping configuration="" content-type="org.eclipse.cdt.core.cSource" language="com.ti.ccstudio.core.TIGCCLanguage"/>
|
||||
<content-type-mapping configuration="" content-type="org.eclipse.cdt.core.cxxHeader" language="com.ti.ccstudio.core.TIGPPLanguage"/>
|
||||
<content-type-mapping configuration="" content-type="org.eclipse.cdt.core.cxxSource" language="com.ti.ccstudio.core.TIGPPLanguage"/>
|
||||
</project-mappings>
|
||||
</storageModule>
|
||||
<storageModule moduleId="null.endianPreference"/>
|
||||
<storageModule moduleId="cpuFamily"/>
|
||||
</cproject>
|
||||
@@ -0,0 +1,90 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<projectDescription>
|
||||
<name>adc_ppb_delay_cpu01</name>
|
||||
<comment></comment>
|
||||
<projects>
|
||||
</projects>
|
||||
<buildSpec>
|
||||
<buildCommand>
|
||||
<name>org.eclipse.cdt.managedbuilder.core.genmakebuilder</name>
|
||||
<arguments>
|
||||
</arguments>
|
||||
</buildCommand>
|
||||
<buildCommand>
|
||||
<name>org.eclipse.cdt.managedbuilder.core.ScannerConfigBuilder</name>
|
||||
<triggers>full,incremental,</triggers>
|
||||
<arguments>
|
||||
</arguments>
|
||||
</buildCommand>
|
||||
</buildSpec>
|
||||
<natures>
|
||||
<nature>com.ti.ccstudio.core.ccsNature</nature>
|
||||
<nature>org.eclipse.cdt.core.cnature</nature>
|
||||
<nature>org.eclipse.cdt.managedbuilder.core.managedBuildNature</nature>
|
||||
<nature>org.eclipse.cdt.core.ccnature</nature>
|
||||
<nature>org.eclipse.cdt.managedbuilder.core.ScannerConfigNature</nature>
|
||||
</natures>
|
||||
<linkedResources>
|
||||
<link>
|
||||
<name>F2837xD_Adc.c</name>
|
||||
<type>1</type>
|
||||
<locationURI>PARENT-5-PROJECT_LOC/common/source/F2837xD_Adc.c</locationURI>
|
||||
</link>
|
||||
<link>
|
||||
<name>F2837xD_CodeStartBranch.asm</name>
|
||||
<type>1</type>
|
||||
<locationURI>PARENT-5-PROJECT_LOC/common/source/F2837xD_CodeStartBranch.asm</locationURI>
|
||||
</link>
|
||||
<link>
|
||||
<name>F2837xD_DefaultISR.c</name>
|
||||
<type>1</type>
|
||||
<locationURI>PARENT-5-PROJECT_LOC/common/source/F2837xD_DefaultISR.c</locationURI>
|
||||
</link>
|
||||
<link>
|
||||
<name>F2837xD_GlobalVariableDefs.c</name>
|
||||
<type>1</type>
|
||||
<locationURI>PARENT-5-PROJECT_LOC/headers/source/F2837xD_GlobalVariableDefs.c</locationURI>
|
||||
</link>
|
||||
<link>
|
||||
<name>F2837xD_Gpio.c</name>
|
||||
<type>1</type>
|
||||
<locationURI>PARENT-5-PROJECT_LOC/common/source/F2837xD_Gpio.c</locationURI>
|
||||
</link>
|
||||
<link>
|
||||
<name>F2837xD_Ipc.c</name>
|
||||
<type>1</type>
|
||||
<locationURI>PARENT-5-PROJECT_LOC/common/source/F2837xD_Ipc.c</locationURI>
|
||||
</link>
|
||||
<link>
|
||||
<name>F2837xD_PieCtrl.c</name>
|
||||
<type>1</type>
|
||||
<locationURI>PARENT-5-PROJECT_LOC/common/source/F2837xD_PieCtrl.c</locationURI>
|
||||
</link>
|
||||
<link>
|
||||
<name>F2837xD_PieVect.c</name>
|
||||
<type>1</type>
|
||||
<locationURI>PARENT-5-PROJECT_LOC/common/source/F2837xD_PieVect.c</locationURI>
|
||||
</link>
|
||||
<link>
|
||||
<name>F2837xD_SysCtrl.c</name>
|
||||
<type>1</type>
|
||||
<locationURI>PARENT-5-PROJECT_LOC/common/source/F2837xD_SysCtrl.c</locationURI>
|
||||
</link>
|
||||
<link>
|
||||
<name>F2837xD_usDelay.asm</name>
|
||||
<type>1</type>
|
||||
<locationURI>PARENT-5-PROJECT_LOC/common/source/F2837xD_usDelay.asm</locationURI>
|
||||
</link>
|
||||
<link>
|
||||
<name>adc_ppb_delay_cpu01.c</name>
|
||||
<type>1</type>
|
||||
<locationURI>PARENT-1-PROJECT_LOC/adc_ppb_delay_cpu01.c</locationURI>
|
||||
</link>
|
||||
</linkedResources>
|
||||
<variableList>
|
||||
<variable>
|
||||
<name>INSTALLROOT_F2837XD</name>
|
||||
<value>$%7BPARENT-4-PROJECT_LOC%7D</value>
|
||||
</variable>
|
||||
</variableList>
|
||||
</projectDescription>
|
||||
+22
@@ -0,0 +1,22 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<configurations XML_version="1.2" id="configurations_0">
|
||||
<configuration XML_version="1.2" id="Texas Instruments XDS100v2 USB Debug Probe_0">
|
||||
<instance XML_version="1.2" desc="Texas Instruments XDS100v2 USB Debug Probe_0" href="connections/TIXDS100v2_Connection.xml" id="Texas Instruments XDS100v2 USB Debug Probe_0" xml="TIXDS100v2_Connection.xml" xmlpath="connections"/>
|
||||
<connection XML_version="1.2" id="Texas Instruments XDS100v2 USB Debug Probe_0">
|
||||
<instance XML_version="1.2" href="drivers/tixds100v2icepick_c.xml" id="drivers" xml="tixds100v2icepick_c.xml" xmlpath="drivers"/>
|
||||
<instance XML_version="1.2" href="drivers/tixds100v2c28x.xml" id="drivers" xml="tixds100v2c28x.xml" xmlpath="drivers"/>
|
||||
<instance XML_version="1.2" href="drivers/tixds100v2cla1.xml" id="drivers" xml="tixds100v2cla1.xml" xmlpath="drivers"/>
|
||||
<instance XML_version="1.2" href="drivers/tixds100v2cs_child.xml" id="drivers" xml="tixds100v2cs_child.xml" xmlpath="drivers"/>
|
||||
<platform XML_version="1.2" id="platform_0">
|
||||
<instance XML_version="1.2" desc="TMS320F28377D_0" href="devices/tms320f28377d.xml" id="TMS320F28377D_0" xml="tms320f28377d.xml" xmlpath="devices"/>
|
||||
<device HW_revision="1" XML_version="1.2" description="" id="TMS320F28377D_0" partnum="TMS320F28377D">
|
||||
<router HW_revision="1.0" XML_version="1.2" description="ICEPick_C router" id="IcePick_C_0" isa="ICEPICK_C">
|
||||
<subpath id="Subpath_1">
|
||||
<property Type="numericfield" Value="0x11" desc="Port Number_0" id="Port Number"/>
|
||||
</subpath>
|
||||
</router>
|
||||
</device>
|
||||
</platform>
|
||||
</connection>
|
||||
</configuration>
|
||||
</configurations>
|
||||
+321
@@ -0,0 +1,321 @@
|
||||
//###########################################################################
|
||||
//
|
||||
// FILE: adc_ppb_limits_cpu01.c
|
||||
//
|
||||
// TITLE: ADC limits check using post-processing block for F2837xD.
|
||||
//
|
||||
//! \addtogroup cpu01_example_list
|
||||
//! <h1> ADC PPB Limits (adc_ppb_limits)</h1>
|
||||
//!
|
||||
//! This example sets up the ePWM to periodically trigger the ADC. If the
|
||||
//! results are outside of the defined range, the post-processing block
|
||||
//! will generate an interrupt.
|
||||
//!
|
||||
//! The default limits are 1000LSBs and 3000LSBs. With VREFHI set to 3.3V, the
|
||||
//! PPB will generate an interrupt if the input voltage goes above about
|
||||
//! 2.4V or below about 0.8V.
|
||||
//!
|
||||
//
|
||||
//###########################################################################
|
||||
//
|
||||
//
|
||||
// $Copyright:
|
||||
// Copyright (C) 2013-2024 Texas Instruments Incorporated - http://www.ti.com/
|
||||
//
|
||||
// Redistribution and use in source and binary forms, with or without
|
||||
// modification, are permitted provided that the following conditions
|
||||
// are met:
|
||||
//
|
||||
// Redistributions of source code must retain the above copyright
|
||||
// notice, this list of conditions and the following disclaimer.
|
||||
//
|
||||
// Redistributions in binary form must reproduce the above copyright
|
||||
// notice, this list of conditions and the following disclaimer in the
|
||||
// documentation and/or other materials provided with the
|
||||
// distribution.
|
||||
//
|
||||
// Neither the name of Texas Instruments Incorporated nor the names of
|
||||
// its contributors may be used to endorse or promote products derived
|
||||
// from this software without specific prior written permission.
|
||||
//
|
||||
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||
// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||
// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
||||
// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
||||
// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||
// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||
// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
||||
// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
||||
// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
// $
|
||||
//###########################################################################
|
||||
|
||||
//
|
||||
// Included Files
|
||||
//
|
||||
#include "F28x_Project.h"
|
||||
|
||||
//
|
||||
// Functional Prototypes
|
||||
//
|
||||
void ConfigureADC(void);
|
||||
void ConfigureEPWM(void);
|
||||
void ConfigurePPB1Limits(Uint16 soc, Uint16 limitHigh, Uint16 limitLow);
|
||||
void SetupADCEpwm(Uint16 channel);
|
||||
interrupt void adca_ppb_isr(void);
|
||||
|
||||
void main(void)
|
||||
{
|
||||
//
|
||||
// Step 1. Initialize System Control:
|
||||
// PLL, WatchDog, enable Peripheral Clocks
|
||||
// This example function is found in the F2837xD_SysCtrl.c file.
|
||||
//
|
||||
InitSysCtrl();
|
||||
|
||||
//
|
||||
// Step 2. Initialize GPIO:
|
||||
// This example function is found in the F2837xD_Gpio.c file and
|
||||
// illustrates how to set the GPIO to it's default state.
|
||||
//
|
||||
InitGpio(); // Skipped for this example
|
||||
|
||||
//
|
||||
// Step 3. Clear all interrupts and initialize PIE vector table:
|
||||
// Disable CPU interrupts
|
||||
//
|
||||
DINT;
|
||||
|
||||
//
|
||||
// Initialize the PIE control registers to their default state.
|
||||
// The default state is all PIE interrupts disabled and flags
|
||||
// are cleared.
|
||||
// This function is found in the F2837xD_PieCtrl.c file.
|
||||
//
|
||||
InitPieCtrl();
|
||||
|
||||
//
|
||||
// Disable CPU interrupts and clear all CPU interrupt flags:
|
||||
//
|
||||
IER = 0x0000;
|
||||
IFR = 0x0000;
|
||||
|
||||
//
|
||||
// Initialize the PIE vector table with pointers to the shell Interrupt
|
||||
// Service Routines (ISR).
|
||||
// This will populate the entire table, even if the interrupt
|
||||
// is not used in this example. This is useful for debug purposes.
|
||||
// The shell ISR routines are found in F2837xD_DefaultIsr.c.
|
||||
// This function is found in F2837xD_PieVect.c.
|
||||
//
|
||||
InitPieVectTable();
|
||||
|
||||
//
|
||||
// Map ISR functions
|
||||
//
|
||||
EALLOW;
|
||||
PieVectTable.ADCA_EVT_INT = &adca_ppb_isr; //function for ADCA PPB
|
||||
EDIS;
|
||||
|
||||
//
|
||||
// Configure the ADC and power it up
|
||||
//
|
||||
ConfigureADC();
|
||||
|
||||
//
|
||||
// Configure the ePWM
|
||||
//
|
||||
ConfigureEPWM();
|
||||
|
||||
//
|
||||
// Setup the ADC for ePWM triggered conversions on channel 0
|
||||
//
|
||||
SetupADCEpwm(0);
|
||||
|
||||
//
|
||||
// Configure ADC post-processing limits
|
||||
// SOC0 will generate an interrupt if conversion is above or below limits
|
||||
//
|
||||
ConfigurePPB1Limits(0,3000,1000);
|
||||
|
||||
//
|
||||
// Enable global Interrupts and higher priority real-time debug events:
|
||||
//
|
||||
IER |= M_INT10; //Enable group 10 interrupts
|
||||
EINT; // Enable Global interrupt INTM
|
||||
ERTM; // Enable Global realtime interrupt DBGM
|
||||
|
||||
//
|
||||
// enable PIE interrupt
|
||||
//
|
||||
PieCtrlRegs.PIEIER10.bit.INTx1 = 1;
|
||||
|
||||
//
|
||||
// Start ePWM
|
||||
//
|
||||
EALLOW;
|
||||
CpuSysRegs.PCLKCR0.bit.TBCLKSYNC = 1;
|
||||
EPwm1Regs.ETSEL.bit.SOCAEN = 1; //enable SOCA
|
||||
EPwm1Regs.TBCTL.bit.CTRMODE = 0; //unfreeze, and enter up count mode
|
||||
|
||||
//
|
||||
//take conversions indefinitely in loop
|
||||
//
|
||||
do
|
||||
{
|
||||
//
|
||||
//wait while ePWM causes ADC conversions
|
||||
//if the ADC conversions exceed the PPB limits, then an interrupt
|
||||
//will be generated
|
||||
//
|
||||
}while(1);
|
||||
}
|
||||
|
||||
//
|
||||
// ConfigureADC - Write ADC configurations and power up the ADC for both
|
||||
// ADC A and ADC B
|
||||
//
|
||||
void ConfigureADC(void)
|
||||
{
|
||||
EALLOW;
|
||||
|
||||
//
|
||||
//write configurations
|
||||
//
|
||||
AdcaRegs.ADCCTL2.bit.PRESCALE = 6; //set ADCCLK divider to /4
|
||||
AdcSetMode(ADC_ADCA, ADC_RESOLUTION_12BIT, ADC_SIGNALMODE_SINGLE);
|
||||
|
||||
//
|
||||
//Set pulse positions to late
|
||||
//
|
||||
AdcaRegs.ADCCTL1.bit.INTPULSEPOS = 1;
|
||||
|
||||
//
|
||||
//power up the ADC
|
||||
//
|
||||
AdcaRegs.ADCCTL1.bit.ADCPWDNZ = 1;
|
||||
|
||||
//
|
||||
//delay for 1ms to allow ADC time to power up
|
||||
//
|
||||
DELAY_US(1000);
|
||||
|
||||
EDIS;
|
||||
}
|
||||
|
||||
//
|
||||
// ConfigureEPWM - Setup SOC and compare values for EPWM
|
||||
//
|
||||
void ConfigureEPWM(void)
|
||||
{
|
||||
EALLOW;
|
||||
//
|
||||
// Assumes ePWM clock is already enabled
|
||||
//
|
||||
EPwm1Regs.ETSEL.bit.SOCAEN = 0; // Disable SOC on A group
|
||||
EPwm1Regs.ETSEL.bit.SOCASEL = 4; // Select SOC on up-count
|
||||
EPwm1Regs.ETPS.bit.SOCAPRD = 1; // Generate pulse on 1st event
|
||||
EPwm1Regs.CMPA.bit.CMPA = 0x0800; // Set compare A value to 2048 counts
|
||||
EPwm1Regs.TBPRD = 0x1000; // Set period to 4096 counts
|
||||
EPwm1Regs.TBCTL.bit.CTRMODE = 3; // freeze counter
|
||||
EDIS;
|
||||
}
|
||||
|
||||
//
|
||||
// ConfigurePPB1Limits - Configure high and low limits for ADCPPB
|
||||
//
|
||||
void ConfigurePPB1Limits(Uint16 soc, Uint16 limitHigh, Uint16 limitLow)
|
||||
{
|
||||
EALLOW;
|
||||
|
||||
AdcaRegs.ADCPPB1CONFIG.bit.CONFIG = soc; //PPB1 is associated with soc
|
||||
|
||||
//
|
||||
//set high and low limits
|
||||
//
|
||||
AdcaRegs.ADCPPB1TRIPHI.bit.LIMITHI = limitHigh;
|
||||
AdcaRegs.ADCPPB1TRIPLO.bit.LIMITLO = limitLow;
|
||||
|
||||
//
|
||||
//enable high and low limit events to generate interrupt
|
||||
//
|
||||
AdcaRegs.ADCEVTINTSEL.bit.PPB1TRIPHI = 1;
|
||||
AdcaRegs.ADCEVTINTSEL.bit.PPB1TRIPLO = 1;
|
||||
|
||||
EDIS;
|
||||
}
|
||||
|
||||
//
|
||||
// SetupADCEpwm - Setup ADC EPWM channel and trigger settings
|
||||
//
|
||||
void SetupADCEpwm(Uint16 channel)
|
||||
{
|
||||
Uint16 acqps;
|
||||
|
||||
//
|
||||
// Determine minimum acquisition window (in SYSCLKS) based on resolution
|
||||
//
|
||||
if(ADC_RESOLUTION_12BIT == AdcaRegs.ADCCTL2.bit.RESOLUTION)
|
||||
{
|
||||
acqps = 14; //75ns
|
||||
}
|
||||
else //resolution is 16-bit
|
||||
{
|
||||
acqps = 63; //320ns
|
||||
}
|
||||
|
||||
//
|
||||
//Select the channels to convert and setup end of conversion flag
|
||||
//ADCA
|
||||
//
|
||||
EALLOW;
|
||||
AdcaRegs.ADCSOC0CTL.bit.CHSEL = channel; //SOC0 will convert pin A0
|
||||
AdcaRegs.ADCSOC0CTL.bit.ACQPS = acqps; //sample window is 100 SYSCLK cycles
|
||||
AdcaRegs.ADCSOC0CTL.bit.TRIGSEL = 5; //trigger on ePWM1 SOCA/C
|
||||
AdcaRegs.ADCINTSEL1N2.bit.INT1SEL = 0; //end of SOC0 will set INT1 flag
|
||||
AdcaRegs.ADCINTSEL1N2.bit.INT1E = 1; //enable INT1 flag
|
||||
AdcaRegs.ADCINTFLGCLR.bit.ADCINT1 = 1; //make sure INT1 flag is cleared
|
||||
EDIS;
|
||||
}
|
||||
|
||||
//
|
||||
// adca_ppb_isr - ISR for ADCA PPB
|
||||
//
|
||||
interrupt void adca_ppb_isr(void)
|
||||
{
|
||||
//
|
||||
//warning, you are outside of PPB limits
|
||||
//
|
||||
if(AdcaRegs.ADCEVTSTAT.bit.PPB1TRIPHI)
|
||||
{
|
||||
//
|
||||
//voltage exceeded high limit
|
||||
//
|
||||
asm(" ESTOP0");
|
||||
|
||||
//
|
||||
//clear the trip flag and continue
|
||||
//
|
||||
AdcaRegs.ADCEVTCLR.bit.PPB1TRIPHI = 1;
|
||||
}
|
||||
if(AdcaRegs.ADCEVTSTAT.bit.PPB1TRIPLO)
|
||||
{
|
||||
//
|
||||
//voltage exceeded low limit
|
||||
//
|
||||
asm(" ESTOP0");
|
||||
|
||||
//
|
||||
//clear the trip flag and continue
|
||||
//
|
||||
AdcaRegs.ADCEVTCLR.bit.PPB1TRIPLO = 1;
|
||||
}
|
||||
|
||||
PieCtrlRegs.PIEACK.all = PIEACK_GROUP10;
|
||||
}
|
||||
|
||||
//
|
||||
// End of file
|
||||
//
|
||||
@@ -0,0 +1,12 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<?ccsproject version="1.0"?>
|
||||
<projectOptions>
|
||||
<deviceVariant value="com.ti.ccstudio.deviceModel.C2000.GenericC28xxDevice"/>
|
||||
<deviceFamily value="C2000"/>
|
||||
<codegenToolVersion value="6.3.0.A13150"/>
|
||||
<isElfFormat value="false"/>
|
||||
<connection value=""/>
|
||||
<rts value="libc.a"/>
|
||||
<templateProperties value="id=com.ti.common.project.core.emptyProjectTemplate,"/>
|
||||
<isTargetManual value="false"/>
|
||||
</projectOptions>
|
||||
@@ -0,0 +1,194 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<?fileVersion 4.0.0?><cproject storage_type_id="org.eclipse.cdt.core.XmlProjectDescriptionStorage">
|
||||
<storageModule configRelations="2" moduleId="org.eclipse.cdt.core.settings">
|
||||
<cconfiguration id="com.ti.ccstudio.buildDefinitions.C2000.Debug.2121059750">
|
||||
<storageModule buildSystemId="org.eclipse.cdt.managedbuilder.core.configurationDataProvider" id="com.ti.ccstudio.buildDefinitions.C2000.Debug.2121059750" moduleId="org.eclipse.cdt.core.settings" name="CPU1_RAM">
|
||||
<macros>
|
||||
<stringMacro name="INSTALLROOT_F2837XD" type="VALUE_PATH_DIR" value="${PROJECT_ROOT}/../../../../.."/>
|
||||
</macros>
|
||||
<externalSettings/>
|
||||
<extensions>
|
||||
<extension id="com.ti.ccstudio.errorparser.CoffErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
|
||||
<extension id="com.ti.ccstudio.errorparser.LinkErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
|
||||
<extension id="com.ti.ccstudio.errorparser.AsmErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
|
||||
<extension id="org.eclipse.cdt.core.GmakeErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
|
||||
<extension id="com.ti.ccstudio.binaryparser.CoffParser" point="org.eclipse.cdt.core.BinaryParser"/>
|
||||
</extensions>
|
||||
</storageModule>
|
||||
<storageModule moduleId="cdtBuildSystem" version="4.0.0">
|
||||
<configuration artifactExtension="out" artifactName="${ProjName}" buildProperties="" cleanCommand="${CG_CLEAN_CMD}" description="RAM Build Configuration w/Debugger Support for CPU1" id="com.ti.ccstudio.buildDefinitions.C2000.Debug.2121059750" name="CPU1_RAM" parent="com.ti.ccstudio.buildDefinitions.C2000.Debug">
|
||||
<folderInfo id="com.ti.ccstudio.buildDefinitions.C2000.Debug.2121059750." name="/" resourcePath="">
|
||||
<toolChain id="com.ti.ccstudio.buildDefinitions.C2000_15.12.exe.DebugToolchain.2043451160" name="TI Build Tools" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.exe.DebugToolchain" targetTool="com.ti.ccstudio.buildDefinitions.C2000_15.12.exe.linkerDebug.1254524907">
|
||||
<option id="com.ti.ccstudio.buildDefinitions.core.OPT_TAGS.2125076504" superClass="com.ti.ccstudio.buildDefinitions.core.OPT_TAGS" valueType="stringList">
|
||||
<listOptionValue builtIn="false" value="DEVICE_CONFIGURATION_ID=com.ti.ccstudio.deviceModel.C2000.GenericC28xxDevice"/>
|
||||
<listOptionValue builtIn="false" value="DEVICE_ENDIANNESS=little"/>
|
||||
<listOptionValue builtIn="false" value="OUTPUT_FORMAT=COFF"/>
|
||||
<listOptionValue builtIn="false" value="CCS_MBS_VERSION=6.1.3"/>
|
||||
<listOptionValue builtIn="false" value="RUNTIME_SUPPORT_LIBRARY=libc.a"/>
|
||||
<listOptionValue builtIn="false" value="OUTPUT_TYPE=executable"/>
|
||||
</option>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.core.OPT_CODEGEN_VERSION.1266516147" name="Compiler version" superClass="com.ti.ccstudio.buildDefinitions.core.OPT_CODEGEN_VERSION" value="15.12.1.LTS" valueType="string"/>
|
||||
<targetPlatform id="com.ti.ccstudio.buildDefinitions.C2000_15.12.exe.targetPlatformDebug.118499051" name="Platform" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.exe.targetPlatformDebug"/>
|
||||
<builder buildPath="${BuildDirectory}" id="com.ti.ccstudio.buildDefinitions.C2000_15.12.exe.builderDebug.1302307837" keepEnvironmentInBuildfile="false" name="GNU Make" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.exe.builderDebug"/>
|
||||
<tool id="com.ti.ccstudio.buildDefinitions.C2000_15.12.exe.compilerDebug.450594910" name="C2000 Compiler" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.exe.compilerDebug">
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.SILICON_VERSION.190126531" name="Processor version (--silicon_version, -v)" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.SILICON_VERSION" value="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.SILICON_VERSION.28" valueType="enumerated"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.LARGE_MEMORY_MODEL.1123771365" name="Option deprecated, set by default (--large_memory_model, -ml)" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.LARGE_MEMORY_MODEL" value="true" valueType="boolean"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.UNIFIED_MEMORY.1540167588" name="Unified memory (--unified_memory, -mt)" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.UNIFIED_MEMORY" value="true" valueType="boolean"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.CLA_SUPPORT.2085604728" name="Specify CLA support (--cla_support)" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.CLA_SUPPORT" value="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.CLA_SUPPORT.cla1" valueType="enumerated"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.FLOAT_SUPPORT.1349168431" name="Specify floating point support (--float_support)" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.FLOAT_SUPPORT" value="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.FLOAT_SUPPORT.fpu32" valueType="enumerated"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.TMU_SUPPORT.1213549126" name="Specify TMU support (--tmu_support)" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.TMU_SUPPORT" value="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.TMU_SUPPORT.tmu0" valueType="enumerated"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.VCU_SUPPORT.487619956" name="Specify VCU support (--vcu_support)" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.VCU_SUPPORT" value="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.VCU_SUPPORT.vcu2" valueType="enumerated"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.INCLUDE_PATH.782447945" name="Add dir to #include search path (--include_path, -I)" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.INCLUDE_PATH" valueType="includePath">
|
||||
<listOptionValue builtIn="false" value=""${CG_TOOL_ROOT}/include""/>
|
||||
<listOptionValue builtIn="false" value=""${INSTALLROOT_F2837XD}/headers/include""/>
|
||||
<listOptionValue builtIn="false" value=""${INSTALLROOT_F2837XD}/common/include""/>
|
||||
</option>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.DEBUGGING_MODEL.773617910" name="Debugging model" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.DEBUGGING_MODEL" value="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.DEBUGGING_MODEL.SYMDEBUG__DWARF" valueType="enumerated"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.DEFINE.1621189475" name="Pre-define NAME (--define, -D)" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.DEFINE" valueType="definedSymbols">
|
||||
<listOptionValue builtIn="false" value="CPU1"/>
|
||||
</option>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.DIAG_WARNING.1525525047" name="Treat diagnostic <id> as warning (--diag_warning, -pdsw)" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.DIAG_WARNING" valueType="stringList">
|
||||
<listOptionValue builtIn="false" value="225"/>
|
||||
</option>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.DISPLAY_ERROR_NUMBER.1491322198" name="Emit diagnostic identifier numbers (--display_error_number, -pden)" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.DISPLAY_ERROR_NUMBER" value="true" valueType="boolean"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.DIAG_SUPPRESS.1083471770" name="Suppress diagnostic <id> (--diag_suppress, -pds)" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.DIAG_SUPPRESS" valueType="stringList">
|
||||
<listOptionValue builtIn="false" value="1311"/>
|
||||
</option>
|
||||
<inputType id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compiler.inputType__C_SRCS.1365874391" name="C Sources" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compiler.inputType__C_SRCS"/>
|
||||
<inputType id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compiler.inputType__CPP_SRCS.490161072" name="C++ Sources" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compiler.inputType__CPP_SRCS"/>
|
||||
<inputType id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compiler.inputType__ASM_SRCS.1982705516" name="Assembly Sources" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compiler.inputType__ASM_SRCS"/>
|
||||
<inputType id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compiler.inputType__ASM2_SRCS.124730344" name="Assembly Sources" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compiler.inputType__ASM2_SRCS"/>
|
||||
</tool>
|
||||
<tool id="com.ti.ccstudio.buildDefinitions.C2000_15.12.exe.linkerDebug.1254524907" name="C2000 Linker" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.exe.linkerDebug">
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.OUTPUT_FILE.915411270" name="Specify output file name (--output_file, -o)" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.OUTPUT_FILE" value=""${ProjName}.out"" valueType="string"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.MAP_FILE.1494188809" name="Link information (map) listed into <file> (--map_file, -m)" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.MAP_FILE" value=""${ProjName}.map"" valueType="string"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.STACK_SIZE.1170137210" name="Set C system stack size (--stack_size, -stack)" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.STACK_SIZE" value="0x100" valueType="string"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.LIBRARY.1950220983" name="Include library file or command file as input (--library, -l)" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.LIBRARY" valueType="libs">
|
||||
<listOptionValue builtIn="false" value=""rts2800_fpu32.lib""/>
|
||||
<listOptionValue builtIn="false" value=""2837xD_RAM_lnk_cpu1.cmd""/>
|
||||
<listOptionValue builtIn="false" value=""F2837xD_Headers_nonBIOS_cpu1.cmd""/>
|
||||
<listOptionValue builtIn="false" value=""libc.a""/>
|
||||
</option>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.SEARCH_PATH.855314603" name="Add <dir> to library search path (--search_path, -i)" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.SEARCH_PATH" valueType="libPaths">
|
||||
<listOptionValue builtIn="false" value=""${CG_TOOL_ROOT}/lib""/>
|
||||
<listOptionValue builtIn="false" value=""${CG_TOOL_ROOT}/include""/>
|
||||
<listOptionValue builtIn="false" value=""${INSTALLROOT_F2837XD}/common/cmd""/>
|
||||
<listOptionValue builtIn="false" value=""${INSTALLROOT_F2837XD}/headers/cmd""/>
|
||||
</option>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.DISPLAY_ERROR_NUMBER.2132674280" name="Emit diagnostic identifier numbers (--display_error_number)" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.DISPLAY_ERROR_NUMBER" value="true" valueType="boolean"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.XML_LINK_INFO.801312017" name="Detailed link information data-base into <file> (--xml_link_info, -xml_link_info)" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.XML_LINK_INFO" value=""${ProjName}_linkInfo.xml"" valueType="string"/>
|
||||
<inputType id="com.ti.ccstudio.buildDefinitions.C2000_15.12.exeLinker.inputType__CMD_SRCS.2057116662" name="Linker Command Files" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.exeLinker.inputType__CMD_SRCS"/>
|
||||
<inputType id="com.ti.ccstudio.buildDefinitions.C2000_15.12.exeLinker.inputType__CMD2_SRCS.1498520622" name="Linker Command Files" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.exeLinker.inputType__CMD2_SRCS"/>
|
||||
<inputType id="com.ti.ccstudio.buildDefinitions.C2000_15.12.exeLinker.inputType__GEN_CMDS.1496143656" name="Generated Linker Command Files" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.exeLinker.inputType__GEN_CMDS"/>
|
||||
</tool>
|
||||
</toolChain>
|
||||
</folderInfo>
|
||||
</configuration>
|
||||
</storageModule>
|
||||
<storageModule moduleId="org.eclipse.cdt.core.externalSettings"/>
|
||||
</cconfiguration>
|
||||
<cconfiguration id="com.ti.ccstudio.buildDefinitions.C2000.Debug.2121059750.2074380629">
|
||||
<storageModule buildSystemId="org.eclipse.cdt.managedbuilder.core.configurationDataProvider" id="com.ti.ccstudio.buildDefinitions.C2000.Debug.2121059750.2074380629" moduleId="org.eclipse.cdt.core.settings" name="CPU1_FLASH">
|
||||
<macros>
|
||||
<stringMacro name="INSTALLROOT_F2837XD" type="VALUE_PATH_DIR" value="${PROJECT_ROOT}/../../../../.."/>
|
||||
</macros>
|
||||
<externalSettings/>
|
||||
<extensions>
|
||||
<extension id="com.ti.ccstudio.errorparser.CoffErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
|
||||
<extension id="com.ti.ccstudio.errorparser.LinkErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
|
||||
<extension id="com.ti.ccstudio.errorparser.AsmErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
|
||||
<extension id="org.eclipse.cdt.core.GmakeErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
|
||||
<extension id="com.ti.ccstudio.binaryparser.CoffParser" point="org.eclipse.cdt.core.BinaryParser"/>
|
||||
</extensions>
|
||||
</storageModule>
|
||||
<storageModule moduleId="cdtBuildSystem" version="4.0.0">
|
||||
<configuration artifactExtension="out" artifactName="${ProjName}" buildProperties="" cleanCommand="${CG_CLEAN_CMD}" description="Flash Build Configuration w/Debugger Support for CPU1" id="com.ti.ccstudio.buildDefinitions.C2000.Debug.2121059750.2074380629" name="CPU1_FLASH" parent="com.ti.ccstudio.buildDefinitions.C2000.Debug">
|
||||
<folderInfo id="com.ti.ccstudio.buildDefinitions.C2000.Debug.2121059750.2074380629." name="/" resourcePath="">
|
||||
<toolChain id="com.ti.ccstudio.buildDefinitions.C2000_15.12.exe.DebugToolchain.1638368045" name="TI Build Tools" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.exe.DebugToolchain" targetTool="com.ti.ccstudio.buildDefinitions.C2000_15.12.exe.linkerDebug.859906680">
|
||||
<option id="com.ti.ccstudio.buildDefinitions.core.OPT_TAGS.918363276" superClass="com.ti.ccstudio.buildDefinitions.core.OPT_TAGS" valueType="stringList">
|
||||
<listOptionValue builtIn="false" value="DEVICE_CONFIGURATION_ID=com.ti.ccstudio.deviceModel.C2000.GenericC28xxDevice"/>
|
||||
<listOptionValue builtIn="false" value="DEVICE_ENDIANNESS=little"/>
|
||||
<listOptionValue builtIn="false" value="OUTPUT_FORMAT=COFF"/>
|
||||
<listOptionValue builtIn="false" value="CCS_MBS_VERSION=6.1.3"/>
|
||||
<listOptionValue builtIn="false" value="RUNTIME_SUPPORT_LIBRARY=libc.a"/>
|
||||
<listOptionValue builtIn="false" value="OUTPUT_TYPE=executable"/>
|
||||
</option>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.core.OPT_CODEGEN_VERSION.941671302" superClass="com.ti.ccstudio.buildDefinitions.core.OPT_CODEGEN_VERSION" value="15.12.1.LTS" valueType="string"/>
|
||||
<targetPlatform id="com.ti.ccstudio.buildDefinitions.C2000_15.12.exe.targetPlatformDebug.1047101058" name="Platform" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.exe.targetPlatformDebug"/>
|
||||
<builder buildPath="${BuildDirectory}" id="com.ti.ccstudio.buildDefinitions.C2000_15.12.exe.builderDebug.667126156" name="GNU Make.CPU1_FLASH" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.exe.builderDebug"/>
|
||||
<tool id="com.ti.ccstudio.buildDefinitions.C2000_15.12.exe.compilerDebug.1724759351" name="C2000 Compiler" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.exe.compilerDebug">
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.SILICON_VERSION.300309750" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.SILICON_VERSION" value="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.SILICON_VERSION.28" valueType="enumerated"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.LARGE_MEMORY_MODEL.258711557" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.LARGE_MEMORY_MODEL" value="true" valueType="boolean"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.UNIFIED_MEMORY.1212404406" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.UNIFIED_MEMORY" value="true" valueType="boolean"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.CLA_SUPPORT.957392828" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.CLA_SUPPORT" value="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.CLA_SUPPORT.cla1" valueType="enumerated"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.FLOAT_SUPPORT.1021743197" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.FLOAT_SUPPORT" value="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.FLOAT_SUPPORT.fpu32" valueType="enumerated"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.TMU_SUPPORT.1793341894" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.TMU_SUPPORT" value="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.TMU_SUPPORT.tmu0" valueType="enumerated"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.VCU_SUPPORT.663739534" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.VCU_SUPPORT" value="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.VCU_SUPPORT.vcu2" valueType="enumerated"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.INCLUDE_PATH.2019087447" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.INCLUDE_PATH" valueType="includePath">
|
||||
<listOptionValue builtIn="false" value=""${CG_TOOL_ROOT}/include""/>
|
||||
<listOptionValue builtIn="false" value=""${INSTALLROOT_F2837XD}/headers/include""/>
|
||||
<listOptionValue builtIn="false" value=""${INSTALLROOT_F2837XD}/common/include""/>
|
||||
</option>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.DEBUGGING_MODEL.676925206" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.DEBUGGING_MODEL" value="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.DEBUGGING_MODEL.SYMDEBUG__DWARF" valueType="enumerated"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.DEFINE.50863674" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.DEFINE" valueType="definedSymbols">
|
||||
<listOptionValue builtIn="false" value="CPU1"/>
|
||||
<listOptionValue builtIn="false" value="_FLASH"/>
|
||||
</option>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.DIAG_WARNING.1862043385" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.DIAG_WARNING" valueType="stringList">
|
||||
<listOptionValue builtIn="false" value="225"/>
|
||||
</option>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.DISPLAY_ERROR_NUMBER.51040173" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.DISPLAY_ERROR_NUMBER" value="true" valueType="boolean"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.DIAG_SUPPRESS.1844238068" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.DIAG_SUPPRESS" valueType="stringList">
|
||||
<listOptionValue builtIn="false" value="1311"/>
|
||||
</option>
|
||||
<inputType id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compiler.inputType__C_SRCS.1640891575" name="C Sources" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compiler.inputType__C_SRCS"/>
|
||||
<inputType id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compiler.inputType__CPP_SRCS.388947376" name="C++ Sources" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compiler.inputType__CPP_SRCS"/>
|
||||
<inputType id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compiler.inputType__ASM_SRCS.729624451" name="Assembly Sources" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compiler.inputType__ASM_SRCS"/>
|
||||
<inputType id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compiler.inputType__ASM2_SRCS.834266717" name="Assembly Sources" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compiler.inputType__ASM2_SRCS"/>
|
||||
</tool>
|
||||
<tool id="com.ti.ccstudio.buildDefinitions.C2000_15.12.exe.linkerDebug.859906680" name="C2000 Linker" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.exe.linkerDebug">
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.OUTPUT_FILE.290482570" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.OUTPUT_FILE" value=""${ProjName}.out"" valueType="string"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.MAP_FILE.1768922327" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.MAP_FILE" value=""${ProjName}.map"" valueType="string"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.STACK_SIZE.1735755453" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.STACK_SIZE" value="0x100" valueType="string"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.LIBRARY.639336177" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.LIBRARY" valueType="libs">
|
||||
<listOptionValue builtIn="false" value=""rts2800_fpu32.lib""/>
|
||||
<listOptionValue builtIn="false" value=""2837xD_FLASH_lnk_cpu1.cmd""/>
|
||||
<listOptionValue builtIn="false" value=""F2837xD_Headers_nonBIOS_cpu1.cmd""/>
|
||||
<listOptionValue builtIn="false" value=""libc.a""/>
|
||||
</option>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.SEARCH_PATH.415367834" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.SEARCH_PATH" valueType="libPaths">
|
||||
<listOptionValue builtIn="false" value=""${CG_TOOL_ROOT}/lib""/>
|
||||
<listOptionValue builtIn="false" value=""${CG_TOOL_ROOT}/include""/>
|
||||
<listOptionValue builtIn="false" value=""${INSTALLROOT_F2837XD}/common/cmd""/>
|
||||
<listOptionValue builtIn="false" value=""${INSTALLROOT_F2837XD}/headers/cmd""/>
|
||||
</option>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.DISPLAY_ERROR_NUMBER.1378225747" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.DISPLAY_ERROR_NUMBER" value="true" valueType="boolean"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.XML_LINK_INFO.346764927" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.XML_LINK_INFO" value=""${ProjName}_linkInfo.xml"" valueType="string"/>
|
||||
<inputType id="com.ti.ccstudio.buildDefinitions.C2000_15.12.exeLinker.inputType__CMD_SRCS.1632176439" name="Linker Command Files" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.exeLinker.inputType__CMD_SRCS"/>
|
||||
<inputType id="com.ti.ccstudio.buildDefinitions.C2000_15.12.exeLinker.inputType__CMD2_SRCS.860284417" name="Linker Command Files" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.exeLinker.inputType__CMD2_SRCS"/>
|
||||
<inputType id="com.ti.ccstudio.buildDefinitions.C2000_15.12.exeLinker.inputType__GEN_CMDS.1546099696" name="Generated Linker Command Files" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.exeLinker.inputType__GEN_CMDS"/>
|
||||
</tool>
|
||||
</toolChain>
|
||||
</folderInfo>
|
||||
</configuration>
|
||||
</storageModule>
|
||||
<storageModule moduleId="org.eclipse.cdt.core.externalSettings"/>
|
||||
</cconfiguration>
|
||||
</storageModule>
|
||||
<storageModule moduleId="org.eclipse.cdt.core.LanguageSettingsProviders"/>
|
||||
<storageModule moduleId="cdtBuildSystem" version="4.0.0">
|
||||
<project id="adc_ppb_limits_dc_cpu01.com.ti.ccstudio.buildDefinitions.C2000.ProjectType.253935156" name="C2000" projectType="com.ti.ccstudio.buildDefinitions.C2000.ProjectType"/>
|
||||
</storageModule>
|
||||
<storageModule moduleId="scannerConfiguration"/>
|
||||
<storageModule moduleId="org.eclipse.cdt.core.language.mapping">
|
||||
<project-mappings>
|
||||
<content-type-mapping configuration="" content-type="org.eclipse.cdt.core.asmSource" language="com.ti.ccstudio.core.TIASMLanguage"/>
|
||||
<content-type-mapping configuration="" content-type="org.eclipse.cdt.core.cHeader" language="com.ti.ccstudio.core.TIGCCLanguage"/>
|
||||
<content-type-mapping configuration="" content-type="org.eclipse.cdt.core.cSource" language="com.ti.ccstudio.core.TIGCCLanguage"/>
|
||||
<content-type-mapping configuration="" content-type="org.eclipse.cdt.core.cxxHeader" language="com.ti.ccstudio.core.TIGPPLanguage"/>
|
||||
<content-type-mapping configuration="" content-type="org.eclipse.cdt.core.cxxSource" language="com.ti.ccstudio.core.TIGPPLanguage"/>
|
||||
</project-mappings>
|
||||
</storageModule>
|
||||
<storageModule moduleId="null.endianPreference"/>
|
||||
<storageModule moduleId="cpuFamily"/>
|
||||
</cproject>
|
||||
@@ -0,0 +1,90 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<projectDescription>
|
||||
<name>adc_ppb_limits_cpu01</name>
|
||||
<comment></comment>
|
||||
<projects>
|
||||
</projects>
|
||||
<buildSpec>
|
||||
<buildCommand>
|
||||
<name>org.eclipse.cdt.managedbuilder.core.genmakebuilder</name>
|
||||
<arguments>
|
||||
</arguments>
|
||||
</buildCommand>
|
||||
<buildCommand>
|
||||
<name>org.eclipse.cdt.managedbuilder.core.ScannerConfigBuilder</name>
|
||||
<triggers>full,incremental,</triggers>
|
||||
<arguments>
|
||||
</arguments>
|
||||
</buildCommand>
|
||||
</buildSpec>
|
||||
<natures>
|
||||
<nature>com.ti.ccstudio.core.ccsNature</nature>
|
||||
<nature>org.eclipse.cdt.core.cnature</nature>
|
||||
<nature>org.eclipse.cdt.managedbuilder.core.managedBuildNature</nature>
|
||||
<nature>org.eclipse.cdt.core.ccnature</nature>
|
||||
<nature>org.eclipse.cdt.managedbuilder.core.ScannerConfigNature</nature>
|
||||
</natures>
|
||||
<linkedResources>
|
||||
<link>
|
||||
<name>F2837xD_Adc.c</name>
|
||||
<type>1</type>
|
||||
<locationURI>PARENT-5-PROJECT_LOC/common/source/F2837xD_Adc.c</locationURI>
|
||||
</link>
|
||||
<link>
|
||||
<name>F2837xD_CodeStartBranch.asm</name>
|
||||
<type>1</type>
|
||||
<locationURI>PARENT-5-PROJECT_LOC/common/source/F2837xD_CodeStartBranch.asm</locationURI>
|
||||
</link>
|
||||
<link>
|
||||
<name>F2837xD_DefaultISR.c</name>
|
||||
<type>1</type>
|
||||
<locationURI>PARENT-5-PROJECT_LOC/common/source/F2837xD_DefaultISR.c</locationURI>
|
||||
</link>
|
||||
<link>
|
||||
<name>F2837xD_GlobalVariableDefs.c</name>
|
||||
<type>1</type>
|
||||
<locationURI>PARENT-5-PROJECT_LOC/headers/source/F2837xD_GlobalVariableDefs.c</locationURI>
|
||||
</link>
|
||||
<link>
|
||||
<name>F2837xD_Gpio.c</name>
|
||||
<type>1</type>
|
||||
<locationURI>PARENT-5-PROJECT_LOC/common/source/F2837xD_Gpio.c</locationURI>
|
||||
</link>
|
||||
<link>
|
||||
<name>F2837xD_Ipc.c</name>
|
||||
<type>1</type>
|
||||
<locationURI>PARENT-5-PROJECT_LOC/common/source/F2837xD_Ipc.c</locationURI>
|
||||
</link>
|
||||
<link>
|
||||
<name>F2837xD_PieCtrl.c</name>
|
||||
<type>1</type>
|
||||
<locationURI>PARENT-5-PROJECT_LOC/common/source/F2837xD_PieCtrl.c</locationURI>
|
||||
</link>
|
||||
<link>
|
||||
<name>F2837xD_PieVect.c</name>
|
||||
<type>1</type>
|
||||
<locationURI>PARENT-5-PROJECT_LOC/common/source/F2837xD_PieVect.c</locationURI>
|
||||
</link>
|
||||
<link>
|
||||
<name>F2837xD_SysCtrl.c</name>
|
||||
<type>1</type>
|
||||
<locationURI>PARENT-5-PROJECT_LOC/common/source/F2837xD_SysCtrl.c</locationURI>
|
||||
</link>
|
||||
<link>
|
||||
<name>F2837xD_usDelay.asm</name>
|
||||
<type>1</type>
|
||||
<locationURI>PARENT-5-PROJECT_LOC/common/source/F2837xD_usDelay.asm</locationURI>
|
||||
</link>
|
||||
<link>
|
||||
<name>adc_ppb_limits_cpu01.c</name>
|
||||
<type>1</type>
|
||||
<locationURI>PARENT-1-PROJECT_LOC/adc_ppb_limits_cpu01.c</locationURI>
|
||||
</link>
|
||||
</linkedResources>
|
||||
<variableList>
|
||||
<variable>
|
||||
<name>INSTALLROOT_F2837XD</name>
|
||||
<value>$%7BPARENT-4-PROJECT_LOC%7D</value>
|
||||
</variable>
|
||||
</variableList>
|
||||
</projectDescription>
|
||||
+22
@@ -0,0 +1,22 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<configurations XML_version="1.2" id="configurations_0">
|
||||
<configuration XML_version="1.2" id="Texas Instruments XDS100v2 USB Debug Probe_0">
|
||||
<instance XML_version="1.2" desc="Texas Instruments XDS100v2 USB Debug Probe_0" href="connections/TIXDS100v2_Connection.xml" id="Texas Instruments XDS100v2 USB Debug Probe_0" xml="TIXDS100v2_Connection.xml" xmlpath="connections"/>
|
||||
<connection XML_version="1.2" id="Texas Instruments XDS100v2 USB Debug Probe_0">
|
||||
<instance XML_version="1.2" href="drivers/tixds100v2icepick_c.xml" id="drivers" xml="tixds100v2icepick_c.xml" xmlpath="drivers"/>
|
||||
<instance XML_version="1.2" href="drivers/tixds100v2c28x.xml" id="drivers" xml="tixds100v2c28x.xml" xmlpath="drivers"/>
|
||||
<instance XML_version="1.2" href="drivers/tixds100v2cla1.xml" id="drivers" xml="tixds100v2cla1.xml" xmlpath="drivers"/>
|
||||
<instance XML_version="1.2" href="drivers/tixds100v2cs_child.xml" id="drivers" xml="tixds100v2cs_child.xml" xmlpath="drivers"/>
|
||||
<platform XML_version="1.2" id="platform_0">
|
||||
<instance XML_version="1.2" desc="TMS320F28377D_0" href="devices/tms320f28377d.xml" id="TMS320F28377D_0" xml="tms320f28377d.xml" xmlpath="devices"/>
|
||||
<device HW_revision="1" XML_version="1.2" description="" id="TMS320F28377D_0" partnum="TMS320F28377D">
|
||||
<router HW_revision="1.0" XML_version="1.2" description="ICEPick_C router" id="IcePick_C_0" isa="ICEPICK_C">
|
||||
<subpath id="Subpath_1">
|
||||
<property Type="numericfield" Value="0x11" desc="Port Number_0" id="Port Number"/>
|
||||
</subpath>
|
||||
</router>
|
||||
</device>
|
||||
</platform>
|
||||
</connection>
|
||||
</configuration>
|
||||
</configurations>
|
||||
+292
@@ -0,0 +1,292 @@
|
||||
//###########################################################################
|
||||
//
|
||||
// FILE: adc_ppb_offset_cpu01.c
|
||||
//
|
||||
// TITLE: ADC offset adjust using post-processing block for F2837xD.
|
||||
//
|
||||
//! \addtogroup cpu01_example_list
|
||||
//! <h1> ADC PPB Offset (adc_ppb_offset)</h1>
|
||||
//!
|
||||
//! This example software triggers the ADC. Some SOCs have automatic offset
|
||||
//! adjustment applied by the post-processing block.
|
||||
//!
|
||||
//! After the program runs, the memory will contain:\n
|
||||
//!
|
||||
//! - \b AdcaResult \b: a digital representation of the voltage on pin A0
|
||||
//! - \b AdcaResult_offsetAdjusted \b : a digital representation of the voltage
|
||||
//! on pin A0, plus 100 LSBs of automatically added offset
|
||||
//! - \b AdcbResult \b: a digital representation of the voltage on pin B0
|
||||
//! - \b AdcbResult_offsetAdjusted \b : a digital representation of the voltage
|
||||
//! on pin B0 minus 100 LSBs of automatically added offset
|
||||
//
|
||||
//###########################################################################
|
||||
//
|
||||
//
|
||||
// $Copyright:
|
||||
// Copyright (C) 2013-2024 Texas Instruments Incorporated - http://www.ti.com/
|
||||
//
|
||||
// Redistribution and use in source and binary forms, with or without
|
||||
// modification, are permitted provided that the following conditions
|
||||
// are met:
|
||||
//
|
||||
// Redistributions of source code must retain the above copyright
|
||||
// notice, this list of conditions and the following disclaimer.
|
||||
//
|
||||
// Redistributions in binary form must reproduce the above copyright
|
||||
// notice, this list of conditions and the following disclaimer in the
|
||||
// documentation and/or other materials provided with the
|
||||
// distribution.
|
||||
//
|
||||
// Neither the name of Texas Instruments Incorporated nor the names of
|
||||
// its contributors may be used to endorse or promote products derived
|
||||
// from this software without specific prior written permission.
|
||||
//
|
||||
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||
// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||
// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
||||
// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
||||
// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||
// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||
// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
||||
// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
||||
// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
// $
|
||||
//###########################################################################
|
||||
|
||||
//
|
||||
// Included Files
|
||||
//
|
||||
#include "F28x_Project.h"
|
||||
|
||||
//
|
||||
// Function Prototypes
|
||||
//
|
||||
void ConfigureADC(void);
|
||||
void SetupADCSoftware(Uint16 channel);
|
||||
void SetupPPBOffset(int16 aOffset, int16 bOffset);
|
||||
|
||||
//
|
||||
// Globals
|
||||
//
|
||||
Uint16 AdcaResult;
|
||||
Uint16 AdcaResult_offsetAdjusted;
|
||||
Uint16 AdcbResult;
|
||||
Uint16 AdcbResult_offsetAdjusted;
|
||||
|
||||
void main(void)
|
||||
{
|
||||
Uint16 adcChannelId;
|
||||
//
|
||||
// Step 1. Initialize System Control:
|
||||
// PLL, WatchDog, enable Peripheral Clocks
|
||||
// This example function is found in the F2837xD_SysCtrl.c file.
|
||||
//
|
||||
InitSysCtrl();
|
||||
|
||||
//
|
||||
// Step 2. Initialize GPIO:
|
||||
// This example function is found in the F2837xD_Gpio.c file and
|
||||
// illustrates how to set the GPIO to it's default state.
|
||||
//
|
||||
InitGpio();
|
||||
|
||||
//
|
||||
// Step 3. Clear all interrupts and initialize PIE vector table:
|
||||
// Disable CPU interrupts
|
||||
//
|
||||
DINT;
|
||||
|
||||
//
|
||||
// Initialize the PIE control registers to their default state.
|
||||
// The default state is all PIE interrupts disabled and flags
|
||||
// are cleared.
|
||||
// This function is found in the F2837xD_PieCtrl.c file.
|
||||
//
|
||||
InitPieCtrl();
|
||||
|
||||
//
|
||||
// Disable CPU interrupts and clear all CPU interrupt flags:
|
||||
//
|
||||
IER = 0x0000;
|
||||
IFR = 0x0000;
|
||||
|
||||
//
|
||||
// Initialize the PIE vector table with pointers to the shell Interrupt
|
||||
// Service Routines (ISR).
|
||||
// This will populate the entire table, even if the interrupt
|
||||
// is not used in this example. This is useful for debug purposes.
|
||||
// The shell ISR routines are found in F2837xD_DefaultIsr.c.
|
||||
// This function is found in F2837xD_PieVect.c.
|
||||
//
|
||||
InitPieVectTable();
|
||||
|
||||
//
|
||||
// Enable global Interrupts and higher priority real-time debug events:
|
||||
//
|
||||
EINT; // Enable Global interrupt INTM
|
||||
ERTM; // Enable Global realtime interrupt DBGM
|
||||
|
||||
//
|
||||
//Configure the ADCs and power them up
|
||||
//
|
||||
ConfigureADC();
|
||||
|
||||
//
|
||||
//Setup the ADCs for software conversions
|
||||
//
|
||||
adcChannelId = ADC_CHANNEL_0;
|
||||
|
||||
SetupADCSoftware(adcChannelId);
|
||||
|
||||
//
|
||||
//Setup PPB offset correction
|
||||
//conversion on channel A will subtract 100
|
||||
//conversion on channel B will add 100
|
||||
//
|
||||
SetupPPBOffset(100, -100);
|
||||
|
||||
//
|
||||
//take conversions indefinitely in loop
|
||||
//
|
||||
do
|
||||
{
|
||||
//
|
||||
//convert, wait for completion, and store results
|
||||
//start conversions immediately via software, ADCA
|
||||
//
|
||||
AdcaRegs.ADCSOCFRC1.all = 0x0003; //SOC0 and SOC1
|
||||
|
||||
//
|
||||
//start conversions immediately via software, ADCB
|
||||
//
|
||||
AdcbRegs.ADCSOCFRC1.all = 0x0003; //SOC0 and SOC1
|
||||
|
||||
//
|
||||
//wait for ADCA to complete, then acknowledge flag
|
||||
//
|
||||
while(AdcaRegs.ADCINTFLG.bit.ADCINT1 == 0);
|
||||
AdcaRegs.ADCINTFLGCLR.bit.ADCINT1 = 1;
|
||||
|
||||
//
|
||||
//wait for ADCB to complete, then acknowledge flag
|
||||
//
|
||||
while(AdcbRegs.ADCINTFLG.bit.ADCINT1 == 0);
|
||||
AdcbRegs.ADCINTFLGCLR.bit.ADCINT1 = 1;
|
||||
|
||||
//
|
||||
//store results
|
||||
//
|
||||
AdcaResult = AdcaResultRegs.ADCRESULT0;
|
||||
AdcaResult_offsetAdjusted = AdcaResultRegs.ADCRESULT1;
|
||||
AdcbResult = AdcbResultRegs.ADCRESULT0;
|
||||
AdcbResult_offsetAdjusted = AdcbResultRegs.ADCRESULT1;
|
||||
|
||||
//
|
||||
//software breakpoint, hit run again to get updated conversions
|
||||
//
|
||||
asm(" ESTOP0");
|
||||
|
||||
}while(1);
|
||||
}
|
||||
|
||||
//
|
||||
// ConfigureADC - Write ADC configurations and power up the ADC for both
|
||||
// ADC A and ADC B
|
||||
//
|
||||
void ConfigureADC(void)
|
||||
{
|
||||
EALLOW;
|
||||
|
||||
//
|
||||
//write configurations
|
||||
//
|
||||
AdcaRegs.ADCCTL2.bit.PRESCALE = 6; //set ADCCLK divider to /4
|
||||
AdcbRegs.ADCCTL2.bit.PRESCALE = 6; //set ADCCLK divider to /4
|
||||
AdcSetMode(ADC_ADCA, ADC_RESOLUTION_12BIT, ADC_SIGNALMODE_SINGLE);
|
||||
AdcSetMode(ADC_ADCB, ADC_RESOLUTION_12BIT, ADC_SIGNALMODE_SINGLE);
|
||||
|
||||
//
|
||||
//Set pulse positions to late
|
||||
//
|
||||
AdcaRegs.ADCCTL1.bit.INTPULSEPOS = 1;
|
||||
AdcbRegs.ADCCTL1.bit.INTPULSEPOS = 1;
|
||||
|
||||
//
|
||||
//power up the ADCs
|
||||
//
|
||||
AdcaRegs.ADCCTL1.bit.ADCPWDNZ = 1;
|
||||
AdcbRegs.ADCCTL1.bit.ADCPWDNZ = 1;
|
||||
|
||||
//
|
||||
//delay for 1ms to allow ADC time to power up
|
||||
//
|
||||
DELAY_US(1000);
|
||||
|
||||
EDIS;
|
||||
}
|
||||
|
||||
//
|
||||
// SetupADCSoftware - Configure ADC SOC and acquisition window
|
||||
//
|
||||
void SetupADCSoftware(Uint16 channel)
|
||||
{
|
||||
Uint16 acqps;
|
||||
|
||||
//
|
||||
// Determine minimum acquisition window (in SYSCLKS) based on resolution
|
||||
//
|
||||
if(ADC_RESOLUTION_12BIT == AdcaRegs.ADCCTL2.bit.RESOLUTION)
|
||||
{
|
||||
acqps = 14; //75ns
|
||||
}
|
||||
else //resolution is 16-bit
|
||||
{
|
||||
acqps = 63; //320ns
|
||||
}
|
||||
|
||||
//
|
||||
//Select the channels to convert and end of conversion flag
|
||||
//ADCA
|
||||
//
|
||||
EALLOW;
|
||||
AdcaRegs.ADCSOC0CTL.bit.CHSEL = channel; // ADC Channel to be converted on SOC0 trigger
|
||||
AdcaRegs.ADCSOC0CTL.bit.ACQPS = acqps; // sample window is 100 SYSCLK cycles
|
||||
AdcaRegs.ADCSOC1CTL.bit.CHSEL = channel; // ADC Channel to be converted on SOC1 trigger
|
||||
AdcaRegs.ADCSOC1CTL.bit.ACQPS = acqps; // sample window is 100 SYSCLK cycles
|
||||
AdcaRegs.ADCINTSEL1N2.bit.INT1SEL = 1; // end of SOC1 will set INT1 flag
|
||||
AdcaRegs.ADCINTSEL1N2.bit.INT1E = 1; // enable INT1 flag
|
||||
AdcaRegs.ADCINTFLGCLR.bit.ADCINT1 = 1; // make sure INT1 flag is cleared
|
||||
//
|
||||
//ADCB
|
||||
//
|
||||
AdcbRegs.ADCSOC0CTL.bit.CHSEL = channel; // ADC Channel to be converted on SOC0 trigger
|
||||
AdcbRegs.ADCSOC0CTL.bit.ACQPS = acqps; // sample window is 100 SYSCLK cycles
|
||||
AdcbRegs.ADCSOC1CTL.bit.CHSEL = channel; // ADC Channel to be converted on SOC1 trigger
|
||||
AdcbRegs.ADCSOC1CTL.bit.ACQPS = acqps; // sample window is 100 SYSCLK cycles
|
||||
AdcbRegs.ADCINTSEL1N2.bit.INT1SEL = 1; // end of SOC1 will set INT1 flag
|
||||
AdcbRegs.ADCINTSEL1N2.bit.INT1E = 1; // enable INT1 flag
|
||||
AdcbRegs.ADCINTFLGCLR.bit.ADCINT1 = 1; // make sure INT1 flag is cleared
|
||||
EDIS;
|
||||
}
|
||||
|
||||
//
|
||||
// SetupPPBOffset - Configure PPB for SOC
|
||||
//
|
||||
void SetupPPBOffset(int16 aOffset, int16 bOffset)
|
||||
{
|
||||
EALLOW;
|
||||
AdcaRegs.ADCPPB1CONFIG.bit.CONFIG = 1; //PPB1 is associated with SOC1
|
||||
AdcaRegs.ADCPPB1OFFCAL.all = aOffset; //PPB1 will subtract OFFCAL value
|
||||
//to associated SOC
|
||||
|
||||
AdcbRegs.ADCPPB1CONFIG.bit.CONFIG = 1; //PPB1 is associated with SOC1
|
||||
AdcbRegs.ADCPPB1OFFCAL.all = bOffset; //PPB1 will subtract OFFCAL value
|
||||
//to associated SOC
|
||||
EDIS;
|
||||
}
|
||||
|
||||
//
|
||||
// End of file
|
||||
//
|
||||
@@ -0,0 +1,12 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<?ccsproject version="1.0"?>
|
||||
<projectOptions>
|
||||
<deviceVariant value="com.ti.ccstudio.deviceModel.C2000.GenericC28xxDevice"/>
|
||||
<deviceFamily value="C2000"/>
|
||||
<codegenToolVersion value="6.3.0.A13150"/>
|
||||
<isElfFormat value="false"/>
|
||||
<connection value=""/>
|
||||
<rts value="libc.a"/>
|
||||
<templateProperties value="id=com.ti.common.project.core.emptyProjectTemplate,"/>
|
||||
<isTargetManual value="false"/>
|
||||
</projectOptions>
|
||||
@@ -0,0 +1,194 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<?fileVersion 4.0.0?><cproject storage_type_id="org.eclipse.cdt.core.XmlProjectDescriptionStorage">
|
||||
<storageModule configRelations="2" moduleId="org.eclipse.cdt.core.settings">
|
||||
<cconfiguration id="com.ti.ccstudio.buildDefinitions.C2000.Debug.2121059750">
|
||||
<storageModule buildSystemId="org.eclipse.cdt.managedbuilder.core.configurationDataProvider" id="com.ti.ccstudio.buildDefinitions.C2000.Debug.2121059750" moduleId="org.eclipse.cdt.core.settings" name="CPU1_RAM">
|
||||
<macros>
|
||||
<stringMacro name="INSTALLROOT_F2837XD" type="VALUE_PATH_DIR" value="${PROJECT_ROOT}/../../../../.."/>
|
||||
</macros>
|
||||
<externalSettings/>
|
||||
<extensions>
|
||||
<extension id="com.ti.ccstudio.errorparser.CoffErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
|
||||
<extension id="com.ti.ccstudio.errorparser.LinkErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
|
||||
<extension id="com.ti.ccstudio.errorparser.AsmErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
|
||||
<extension id="org.eclipse.cdt.core.GmakeErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
|
||||
<extension id="com.ti.ccstudio.binaryparser.CoffParser" point="org.eclipse.cdt.core.BinaryParser"/>
|
||||
</extensions>
|
||||
</storageModule>
|
||||
<storageModule moduleId="cdtBuildSystem" version="4.0.0">
|
||||
<configuration artifactExtension="out" artifactName="${ProjName}" buildProperties="" cleanCommand="${CG_CLEAN_CMD}" description="RAM Build Configuration w/Debugger Support for CPU1" id="com.ti.ccstudio.buildDefinitions.C2000.Debug.2121059750" name="CPU1_RAM" parent="com.ti.ccstudio.buildDefinitions.C2000.Debug">
|
||||
<folderInfo id="com.ti.ccstudio.buildDefinitions.C2000.Debug.2121059750." name="/" resourcePath="">
|
||||
<toolChain id="com.ti.ccstudio.buildDefinitions.C2000_15.12.exe.DebugToolchain.13745358" name="TI Build Tools" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.exe.DebugToolchain" targetTool="com.ti.ccstudio.buildDefinitions.C2000_15.12.exe.linkerDebug.2126634946">
|
||||
<option id="com.ti.ccstudio.buildDefinitions.core.OPT_TAGS.795208723" superClass="com.ti.ccstudio.buildDefinitions.core.OPT_TAGS" valueType="stringList">
|
||||
<listOptionValue builtIn="false" value="DEVICE_CONFIGURATION_ID=com.ti.ccstudio.deviceModel.C2000.GenericC28xxDevice"/>
|
||||
<listOptionValue builtIn="false" value="DEVICE_ENDIANNESS=little"/>
|
||||
<listOptionValue builtIn="false" value="OUTPUT_FORMAT=COFF"/>
|
||||
<listOptionValue builtIn="false" value="CCS_MBS_VERSION=6.1.3"/>
|
||||
<listOptionValue builtIn="false" value="RUNTIME_SUPPORT_LIBRARY=libc.a"/>
|
||||
<listOptionValue builtIn="false" value="OUTPUT_TYPE=executable"/>
|
||||
</option>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.core.OPT_CODEGEN_VERSION.1261346151" name="Compiler version" superClass="com.ti.ccstudio.buildDefinitions.core.OPT_CODEGEN_VERSION" value="15.12.1.LTS" valueType="string"/>
|
||||
<targetPlatform id="com.ti.ccstudio.buildDefinitions.C2000_15.12.exe.targetPlatformDebug.1872227978" name="Platform" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.exe.targetPlatformDebug"/>
|
||||
<builder buildPath="${BuildDirectory}" id="com.ti.ccstudio.buildDefinitions.C2000_15.12.exe.builderDebug.1235989385" keepEnvironmentInBuildfile="false" name="GNU Make" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.exe.builderDebug"/>
|
||||
<tool id="com.ti.ccstudio.buildDefinitions.C2000_15.12.exe.compilerDebug.361879672" name="C2000 Compiler" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.exe.compilerDebug">
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.SILICON_VERSION.1424170642" name="Processor version (--silicon_version, -v)" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.SILICON_VERSION" value="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.SILICON_VERSION.28" valueType="enumerated"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.LARGE_MEMORY_MODEL.740700841" name="Option deprecated, set by default (--large_memory_model, -ml)" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.LARGE_MEMORY_MODEL" value="true" valueType="boolean"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.UNIFIED_MEMORY.1111723036" name="Unified memory (--unified_memory, -mt)" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.UNIFIED_MEMORY" value="true" valueType="boolean"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.CLA_SUPPORT.1577431473" name="Specify CLA support (--cla_support)" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.CLA_SUPPORT" value="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.CLA_SUPPORT.cla1" valueType="enumerated"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.FLOAT_SUPPORT.632544863" name="Specify floating point support (--float_support)" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.FLOAT_SUPPORT" value="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.FLOAT_SUPPORT.fpu32" valueType="enumerated"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.TMU_SUPPORT.74132821" name="Specify TMU support (--tmu_support)" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.TMU_SUPPORT" value="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.TMU_SUPPORT.tmu0" valueType="enumerated"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.VCU_SUPPORT.282599354" name="Specify VCU support (--vcu_support)" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.VCU_SUPPORT" value="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.VCU_SUPPORT.vcu2" valueType="enumerated"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.INCLUDE_PATH.1043174456" name="Add dir to #include search path (--include_path, -I)" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.INCLUDE_PATH" valueType="includePath">
|
||||
<listOptionValue builtIn="false" value=""${CG_TOOL_ROOT}/include""/>
|
||||
<listOptionValue builtIn="false" value=""${INSTALLROOT_F2837XD}/headers/include""/>
|
||||
<listOptionValue builtIn="false" value=""${INSTALLROOT_F2837XD}/common/include""/>
|
||||
</option>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.DEBUGGING_MODEL.1154812973" name="Debugging model" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.DEBUGGING_MODEL" value="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.DEBUGGING_MODEL.SYMDEBUG__DWARF" valueType="enumerated"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.DEFINE.1162170415" name="Pre-define NAME (--define, -D)" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.DEFINE" valueType="definedSymbols">
|
||||
<listOptionValue builtIn="false" value="CPU1"/>
|
||||
</option>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.DIAG_WARNING.798345309" name="Treat diagnostic <id> as warning (--diag_warning, -pdsw)" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.DIAG_WARNING" valueType="stringList">
|
||||
<listOptionValue builtIn="false" value="225"/>
|
||||
</option>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.DISPLAY_ERROR_NUMBER.2047907810" name="Emit diagnostic identifier numbers (--display_error_number, -pden)" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.DISPLAY_ERROR_NUMBER" value="true" valueType="boolean"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.DIAG_SUPPRESS.1216111373" name="Suppress diagnostic <id> (--diag_suppress, -pds)" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.DIAG_SUPPRESS" valueType="stringList">
|
||||
<listOptionValue builtIn="false" value="1311"/>
|
||||
</option>
|
||||
<inputType id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compiler.inputType__C_SRCS.1469023395" name="C Sources" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compiler.inputType__C_SRCS"/>
|
||||
<inputType id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compiler.inputType__CPP_SRCS.1057000025" name="C++ Sources" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compiler.inputType__CPP_SRCS"/>
|
||||
<inputType id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compiler.inputType__ASM_SRCS.486963023" name="Assembly Sources" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compiler.inputType__ASM_SRCS"/>
|
||||
<inputType id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compiler.inputType__ASM2_SRCS.464022983" name="Assembly Sources" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compiler.inputType__ASM2_SRCS"/>
|
||||
</tool>
|
||||
<tool id="com.ti.ccstudio.buildDefinitions.C2000_15.12.exe.linkerDebug.2126634946" name="C2000 Linker" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.exe.linkerDebug">
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.OUTPUT_FILE.1611827661" name="Specify output file name (--output_file, -o)" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.OUTPUT_FILE" value=""${ProjName}.out"" valueType="string"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.MAP_FILE.10068258" name="Link information (map) listed into <file> (--map_file, -m)" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.MAP_FILE" value=""${ProjName}.map"" valueType="string"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.STACK_SIZE.1686132845" name="Set C system stack size (--stack_size, -stack)" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.STACK_SIZE" value="0x100" valueType="string"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.LIBRARY.591397422" name="Include library file or command file as input (--library, -l)" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.LIBRARY" valueType="libs">
|
||||
<listOptionValue builtIn="false" value=""rts2800_fpu32.lib""/>
|
||||
<listOptionValue builtIn="false" value=""2837xD_RAM_lnk_cpu1.cmd""/>
|
||||
<listOptionValue builtIn="false" value=""F2837xD_Headers_nonBIOS_cpu1.cmd""/>
|
||||
<listOptionValue builtIn="false" value=""libc.a""/>
|
||||
</option>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.SEARCH_PATH.1995027757" name="Add <dir> to library search path (--search_path, -i)" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.SEARCH_PATH" valueType="libPaths">
|
||||
<listOptionValue builtIn="false" value=""${CG_TOOL_ROOT}/lib""/>
|
||||
<listOptionValue builtIn="false" value=""${CG_TOOL_ROOT}/include""/>
|
||||
<listOptionValue builtIn="false" value=""${INSTALLROOT_F2837XD}/common/cmd""/>
|
||||
<listOptionValue builtIn="false" value=""${INSTALLROOT_F2837XD}/headers/cmd""/>
|
||||
</option>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.DISPLAY_ERROR_NUMBER.1987854827" name="Emit diagnostic identifier numbers (--display_error_number)" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.DISPLAY_ERROR_NUMBER" value="true" valueType="boolean"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.XML_LINK_INFO.299208939" name="Detailed link information data-base into <file> (--xml_link_info, -xml_link_info)" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.XML_LINK_INFO" value=""${ProjName}_linkInfo.xml"" valueType="string"/>
|
||||
<inputType id="com.ti.ccstudio.buildDefinitions.C2000_15.12.exeLinker.inputType__CMD_SRCS.563181474" name="Linker Command Files" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.exeLinker.inputType__CMD_SRCS"/>
|
||||
<inputType id="com.ti.ccstudio.buildDefinitions.C2000_15.12.exeLinker.inputType__CMD2_SRCS.609063641" name="Linker Command Files" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.exeLinker.inputType__CMD2_SRCS"/>
|
||||
<inputType id="com.ti.ccstudio.buildDefinitions.C2000_15.12.exeLinker.inputType__GEN_CMDS.507067781" name="Generated Linker Command Files" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.exeLinker.inputType__GEN_CMDS"/>
|
||||
</tool>
|
||||
</toolChain>
|
||||
</folderInfo>
|
||||
</configuration>
|
||||
</storageModule>
|
||||
<storageModule moduleId="org.eclipse.cdt.core.externalSettings"/>
|
||||
</cconfiguration>
|
||||
<cconfiguration id="com.ti.ccstudio.buildDefinitions.C2000.Debug.2121059750.66789042">
|
||||
<storageModule buildSystemId="org.eclipse.cdt.managedbuilder.core.configurationDataProvider" id="com.ti.ccstudio.buildDefinitions.C2000.Debug.2121059750.66789042" moduleId="org.eclipse.cdt.core.settings" name="CPU1_FLASH">
|
||||
<macros>
|
||||
<stringMacro name="INSTALLROOT_F2837XD" type="VALUE_PATH_DIR" value="${PROJECT_ROOT}/../../../../.."/>
|
||||
</macros>
|
||||
<externalSettings/>
|
||||
<extensions>
|
||||
<extension id="com.ti.ccstudio.errorparser.CoffErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
|
||||
<extension id="com.ti.ccstudio.errorparser.LinkErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
|
||||
<extension id="com.ti.ccstudio.errorparser.AsmErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
|
||||
<extension id="org.eclipse.cdt.core.GmakeErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
|
||||
<extension id="com.ti.ccstudio.binaryparser.CoffParser" point="org.eclipse.cdt.core.BinaryParser"/>
|
||||
</extensions>
|
||||
</storageModule>
|
||||
<storageModule moduleId="cdtBuildSystem" version="4.0.0">
|
||||
<configuration artifactExtension="out" artifactName="${ProjName}" buildProperties="" cleanCommand="${CG_CLEAN_CMD}" description="Flash Build Configuration w/Debugger Support for CPU1" id="com.ti.ccstudio.buildDefinitions.C2000.Debug.2121059750.66789042" name="CPU1_FLASH" parent="com.ti.ccstudio.buildDefinitions.C2000.Debug">
|
||||
<folderInfo id="com.ti.ccstudio.buildDefinitions.C2000.Debug.2121059750.66789042." name="/" resourcePath="">
|
||||
<toolChain id="com.ti.ccstudio.buildDefinitions.C2000_15.12.exe.DebugToolchain.1673022751" name="TI Build Tools" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.exe.DebugToolchain" targetTool="com.ti.ccstudio.buildDefinitions.C2000_15.12.exe.linkerDebug.1094251837">
|
||||
<option id="com.ti.ccstudio.buildDefinitions.core.OPT_TAGS.2130018703" superClass="com.ti.ccstudio.buildDefinitions.core.OPT_TAGS" valueType="stringList">
|
||||
<listOptionValue builtIn="false" value="DEVICE_CONFIGURATION_ID=com.ti.ccstudio.deviceModel.C2000.GenericC28xxDevice"/>
|
||||
<listOptionValue builtIn="false" value="DEVICE_ENDIANNESS=little"/>
|
||||
<listOptionValue builtIn="false" value="OUTPUT_FORMAT=COFF"/>
|
||||
<listOptionValue builtIn="false" value="CCS_MBS_VERSION=6.1.3"/>
|
||||
<listOptionValue builtIn="false" value="RUNTIME_SUPPORT_LIBRARY=libc.a"/>
|
||||
<listOptionValue builtIn="false" value="OUTPUT_TYPE=executable"/>
|
||||
</option>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.core.OPT_CODEGEN_VERSION.1244637946" superClass="com.ti.ccstudio.buildDefinitions.core.OPT_CODEGEN_VERSION" value="15.12.1.LTS" valueType="string"/>
|
||||
<targetPlatform id="com.ti.ccstudio.buildDefinitions.C2000_15.12.exe.targetPlatformDebug.1807661461" name="Platform" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.exe.targetPlatformDebug"/>
|
||||
<builder buildPath="${BuildDirectory}" id="com.ti.ccstudio.buildDefinitions.C2000_15.12.exe.builderDebug.1404730969" name="GNU Make.CPU1_FLASH" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.exe.builderDebug"/>
|
||||
<tool id="com.ti.ccstudio.buildDefinitions.C2000_15.12.exe.compilerDebug.323660727" name="C2000 Compiler" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.exe.compilerDebug">
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.SILICON_VERSION.1840414532" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.SILICON_VERSION" value="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.SILICON_VERSION.28" valueType="enumerated"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.LARGE_MEMORY_MODEL.33593549" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.LARGE_MEMORY_MODEL" value="true" valueType="boolean"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.UNIFIED_MEMORY.458423823" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.UNIFIED_MEMORY" value="true" valueType="boolean"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.CLA_SUPPORT.424659605" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.CLA_SUPPORT" value="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.CLA_SUPPORT.cla1" valueType="enumerated"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.FLOAT_SUPPORT.570729588" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.FLOAT_SUPPORT" value="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.FLOAT_SUPPORT.fpu32" valueType="enumerated"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.TMU_SUPPORT.1649766472" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.TMU_SUPPORT" value="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.TMU_SUPPORT.tmu0" valueType="enumerated"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.VCU_SUPPORT.1544526590" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.VCU_SUPPORT" value="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.VCU_SUPPORT.vcu2" valueType="enumerated"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.INCLUDE_PATH.1888000075" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.INCLUDE_PATH" valueType="includePath">
|
||||
<listOptionValue builtIn="false" value=""${CG_TOOL_ROOT}/include""/>
|
||||
<listOptionValue builtIn="false" value=""${INSTALLROOT_F2837XD}/headers/include""/>
|
||||
<listOptionValue builtIn="false" value=""${INSTALLROOT_F2837XD}/common/include""/>
|
||||
</option>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.DEBUGGING_MODEL.719345528" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.DEBUGGING_MODEL" value="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.DEBUGGING_MODEL.SYMDEBUG__DWARF" valueType="enumerated"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.DEFINE.1046406422" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.DEFINE" valueType="definedSymbols">
|
||||
<listOptionValue builtIn="false" value="CPU1"/>
|
||||
<listOptionValue builtIn="false" value="_FLASH"/>
|
||||
</option>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.DIAG_WARNING.554537472" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.DIAG_WARNING" valueType="stringList">
|
||||
<listOptionValue builtIn="false" value="225"/>
|
||||
</option>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.DISPLAY_ERROR_NUMBER.1415202679" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.DISPLAY_ERROR_NUMBER" value="true" valueType="boolean"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.DIAG_SUPPRESS.1474340860" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.DIAG_SUPPRESS" valueType="stringList">
|
||||
<listOptionValue builtIn="false" value="1311"/>
|
||||
</option>
|
||||
<inputType id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compiler.inputType__C_SRCS.439371608" name="C Sources" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compiler.inputType__C_SRCS"/>
|
||||
<inputType id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compiler.inputType__CPP_SRCS.1149892823" name="C++ Sources" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compiler.inputType__CPP_SRCS"/>
|
||||
<inputType id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compiler.inputType__ASM_SRCS.733715518" name="Assembly Sources" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compiler.inputType__ASM_SRCS"/>
|
||||
<inputType id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compiler.inputType__ASM2_SRCS.1171379263" name="Assembly Sources" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compiler.inputType__ASM2_SRCS"/>
|
||||
</tool>
|
||||
<tool id="com.ti.ccstudio.buildDefinitions.C2000_15.12.exe.linkerDebug.1094251837" name="C2000 Linker" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.exe.linkerDebug">
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.OUTPUT_FILE.245965099" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.OUTPUT_FILE" value=""${ProjName}.out"" valueType="string"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.MAP_FILE.490509105" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.MAP_FILE" value=""${ProjName}.map"" valueType="string"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.STACK_SIZE.69106210" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.STACK_SIZE" value="0x100" valueType="string"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.LIBRARY.891048002" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.LIBRARY" valueType="libs">
|
||||
<listOptionValue builtIn="false" value=""rts2800_fpu32.lib""/>
|
||||
<listOptionValue builtIn="false" value=""2837xD_FLASH_lnk_cpu1.cmd""/>
|
||||
<listOptionValue builtIn="false" value=""F2837xD_Headers_nonBIOS_cpu1.cmd""/>
|
||||
<listOptionValue builtIn="false" value=""libc.a""/>
|
||||
</option>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.SEARCH_PATH.123028631" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.SEARCH_PATH" valueType="libPaths">
|
||||
<listOptionValue builtIn="false" value=""${CG_TOOL_ROOT}/lib""/>
|
||||
<listOptionValue builtIn="false" value=""${CG_TOOL_ROOT}/include""/>
|
||||
<listOptionValue builtIn="false" value=""${INSTALLROOT_F2837XD}/common/cmd""/>
|
||||
<listOptionValue builtIn="false" value=""${INSTALLROOT_F2837XD}/headers/cmd""/>
|
||||
</option>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.DISPLAY_ERROR_NUMBER.1187855844" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.DISPLAY_ERROR_NUMBER" value="true" valueType="boolean"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.XML_LINK_INFO.1226242232" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.XML_LINK_INFO" value=""${ProjName}_linkInfo.xml"" valueType="string"/>
|
||||
<inputType id="com.ti.ccstudio.buildDefinitions.C2000_15.12.exeLinker.inputType__CMD_SRCS.478252899" name="Linker Command Files" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.exeLinker.inputType__CMD_SRCS"/>
|
||||
<inputType id="com.ti.ccstudio.buildDefinitions.C2000_15.12.exeLinker.inputType__CMD2_SRCS.1386151302" name="Linker Command Files" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.exeLinker.inputType__CMD2_SRCS"/>
|
||||
<inputType id="com.ti.ccstudio.buildDefinitions.C2000_15.12.exeLinker.inputType__GEN_CMDS.1130305218" name="Generated Linker Command Files" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.exeLinker.inputType__GEN_CMDS"/>
|
||||
</tool>
|
||||
</toolChain>
|
||||
</folderInfo>
|
||||
</configuration>
|
||||
</storageModule>
|
||||
<storageModule moduleId="org.eclipse.cdt.core.externalSettings"/>
|
||||
</cconfiguration>
|
||||
</storageModule>
|
||||
<storageModule moduleId="org.eclipse.cdt.core.LanguageSettingsProviders"/>
|
||||
<storageModule moduleId="cdtBuildSystem" version="4.0.0">
|
||||
<project id="adc_ppb_offset_dc_cpu01.com.ti.ccstudio.buildDefinitions.C2000.ProjectType.253935156" name="C2000" projectType="com.ti.ccstudio.buildDefinitions.C2000.ProjectType"/>
|
||||
</storageModule>
|
||||
<storageModule moduleId="scannerConfiguration"/>
|
||||
<storageModule moduleId="org.eclipse.cdt.core.language.mapping">
|
||||
<project-mappings>
|
||||
<content-type-mapping configuration="" content-type="org.eclipse.cdt.core.asmSource" language="com.ti.ccstudio.core.TIASMLanguage"/>
|
||||
<content-type-mapping configuration="" content-type="org.eclipse.cdt.core.cHeader" language="com.ti.ccstudio.core.TIGCCLanguage"/>
|
||||
<content-type-mapping configuration="" content-type="org.eclipse.cdt.core.cSource" language="com.ti.ccstudio.core.TIGCCLanguage"/>
|
||||
<content-type-mapping configuration="" content-type="org.eclipse.cdt.core.cxxHeader" language="com.ti.ccstudio.core.TIGPPLanguage"/>
|
||||
<content-type-mapping configuration="" content-type="org.eclipse.cdt.core.cxxSource" language="com.ti.ccstudio.core.TIGPPLanguage"/>
|
||||
</project-mappings>
|
||||
</storageModule>
|
||||
<storageModule moduleId="null.endianPreference"/>
|
||||
<storageModule moduleId="cpuFamily"/>
|
||||
</cproject>
|
||||
@@ -0,0 +1,90 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<projectDescription>
|
||||
<name>adc_ppb_offset_cpu01</name>
|
||||
<comment></comment>
|
||||
<projects>
|
||||
</projects>
|
||||
<buildSpec>
|
||||
<buildCommand>
|
||||
<name>org.eclipse.cdt.managedbuilder.core.genmakebuilder</name>
|
||||
<arguments>
|
||||
</arguments>
|
||||
</buildCommand>
|
||||
<buildCommand>
|
||||
<name>org.eclipse.cdt.managedbuilder.core.ScannerConfigBuilder</name>
|
||||
<triggers>full,incremental,</triggers>
|
||||
<arguments>
|
||||
</arguments>
|
||||
</buildCommand>
|
||||
</buildSpec>
|
||||
<natures>
|
||||
<nature>com.ti.ccstudio.core.ccsNature</nature>
|
||||
<nature>org.eclipse.cdt.core.cnature</nature>
|
||||
<nature>org.eclipse.cdt.managedbuilder.core.managedBuildNature</nature>
|
||||
<nature>org.eclipse.cdt.core.ccnature</nature>
|
||||
<nature>org.eclipse.cdt.managedbuilder.core.ScannerConfigNature</nature>
|
||||
</natures>
|
||||
<linkedResources>
|
||||
<link>
|
||||
<name>F2837xD_Adc.c</name>
|
||||
<type>1</type>
|
||||
<locationURI>PARENT-5-PROJECT_LOC/common/source/F2837xD_Adc.c</locationURI>
|
||||
</link>
|
||||
<link>
|
||||
<name>F2837xD_CodeStartBranch.asm</name>
|
||||
<type>1</type>
|
||||
<locationURI>PARENT-5-PROJECT_LOC/common/source/F2837xD_CodeStartBranch.asm</locationURI>
|
||||
</link>
|
||||
<link>
|
||||
<name>F2837xD_DefaultISR.c</name>
|
||||
<type>1</type>
|
||||
<locationURI>PARENT-5-PROJECT_LOC/common/source/F2837xD_DefaultISR.c</locationURI>
|
||||
</link>
|
||||
<link>
|
||||
<name>F2837xD_GlobalVariableDefs.c</name>
|
||||
<type>1</type>
|
||||
<locationURI>PARENT-5-PROJECT_LOC/headers/source/F2837xD_GlobalVariableDefs.c</locationURI>
|
||||
</link>
|
||||
<link>
|
||||
<name>F2837xD_Gpio.c</name>
|
||||
<type>1</type>
|
||||
<locationURI>PARENT-5-PROJECT_LOC/common/source/F2837xD_Gpio.c</locationURI>
|
||||
</link>
|
||||
<link>
|
||||
<name>F2837xD_Ipc.c</name>
|
||||
<type>1</type>
|
||||
<locationURI>PARENT-5-PROJECT_LOC/common/source/F2837xD_Ipc.c</locationURI>
|
||||
</link>
|
||||
<link>
|
||||
<name>F2837xD_PieCtrl.c</name>
|
||||
<type>1</type>
|
||||
<locationURI>PARENT-5-PROJECT_LOC/common/source/F2837xD_PieCtrl.c</locationURI>
|
||||
</link>
|
||||
<link>
|
||||
<name>F2837xD_PieVect.c</name>
|
||||
<type>1</type>
|
||||
<locationURI>PARENT-5-PROJECT_LOC/common/source/F2837xD_PieVect.c</locationURI>
|
||||
</link>
|
||||
<link>
|
||||
<name>F2837xD_SysCtrl.c</name>
|
||||
<type>1</type>
|
||||
<locationURI>PARENT-5-PROJECT_LOC/common/source/F2837xD_SysCtrl.c</locationURI>
|
||||
</link>
|
||||
<link>
|
||||
<name>F2837xD_usDelay.asm</name>
|
||||
<type>1</type>
|
||||
<locationURI>PARENT-5-PROJECT_LOC/common/source/F2837xD_usDelay.asm</locationURI>
|
||||
</link>
|
||||
<link>
|
||||
<name>adc_ppb_offset_cpu01.c</name>
|
||||
<type>1</type>
|
||||
<locationURI>PARENT-1-PROJECT_LOC/adc_ppb_offset_cpu01.c</locationURI>
|
||||
</link>
|
||||
</linkedResources>
|
||||
<variableList>
|
||||
<variable>
|
||||
<name>INSTALLROOT_F2837XD</name>
|
||||
<value>$%7BPARENT-4-PROJECT_LOC%7D</value>
|
||||
</variable>
|
||||
</variableList>
|
||||
</projectDescription>
|
||||
+22
@@ -0,0 +1,22 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<configurations XML_version="1.2" id="configurations_0">
|
||||
<configuration XML_version="1.2" id="Texas Instruments XDS100v2 USB Debug Probe_0">
|
||||
<instance XML_version="1.2" desc="Texas Instruments XDS100v2 USB Debug Probe_0" href="connections/TIXDS100v2_Connection.xml" id="Texas Instruments XDS100v2 USB Debug Probe_0" xml="TIXDS100v2_Connection.xml" xmlpath="connections"/>
|
||||
<connection XML_version="1.2" id="Texas Instruments XDS100v2 USB Debug Probe_0">
|
||||
<instance XML_version="1.2" href="drivers/tixds100v2icepick_c.xml" id="drivers" xml="tixds100v2icepick_c.xml" xmlpath="drivers"/>
|
||||
<instance XML_version="1.2" href="drivers/tixds100v2c28x.xml" id="drivers" xml="tixds100v2c28x.xml" xmlpath="drivers"/>
|
||||
<instance XML_version="1.2" href="drivers/tixds100v2cla1.xml" id="drivers" xml="tixds100v2cla1.xml" xmlpath="drivers"/>
|
||||
<instance XML_version="1.2" href="drivers/tixds100v2cs_child.xml" id="drivers" xml="tixds100v2cs_child.xml" xmlpath="drivers"/>
|
||||
<platform XML_version="1.2" id="platform_0">
|
||||
<instance XML_version="1.2" desc="TMS320F28377D_0" href="devices/tms320f28377d.xml" id="TMS320F28377D_0" xml="tms320f28377d.xml" xmlpath="devices"/>
|
||||
<device HW_revision="1" XML_version="1.2" description="" id="TMS320F28377D_0" partnum="TMS320F28377D">
|
||||
<router HW_revision="1.0" XML_version="1.2" description="ICEPick_C router" id="IcePick_C_0" isa="ICEPICK_C">
|
||||
<subpath id="Subpath_1">
|
||||
<property Type="numericfield" Value="0x11" desc="Port Number_0" id="Port Number"/>
|
||||
</subpath>
|
||||
</router>
|
||||
</device>
|
||||
</platform>
|
||||
</connection>
|
||||
</configuration>
|
||||
</configurations>
|
||||
+402
@@ -0,0 +1,402 @@
|
||||
//###########################################################################
|
||||
//
|
||||
// FILE: adc_soc_continuous_cpu01.c
|
||||
//
|
||||
// TITLE: ADC continuous self-triggering for F2837xD.
|
||||
//
|
||||
//! \addtogroup cpu01_example_list
|
||||
//! <h1> ADC Continuous Triggering (adc_soc_continuous)</h1>
|
||||
//!
|
||||
//! This example sets up the ADC to convert continuously, achieving maximum
|
||||
//! sampling rate.\n
|
||||
//!
|
||||
//! After the program runs, the memory will contain:
|
||||
//!
|
||||
//! - \b AdcaResults \b: A sequence of analog-to-digital conversion samples
|
||||
//! from pin A0. The time between samples is the minimum possible based on the
|
||||
//! ADC speed.
|
||||
//
|
||||
//###########################################################################
|
||||
//
|
||||
// $Release Date: $
|
||||
// $Copyright:
|
||||
// Copyright (C) 2013-2024 Texas Instruments Incorporated - http://www.ti.com/
|
||||
//
|
||||
// Redistribution and use in source and binary forms, with or without
|
||||
// modification, are permitted provided that the following conditions
|
||||
// are met:
|
||||
//
|
||||
// Redistributions of source code must retain the above copyright
|
||||
// notice, this list of conditions and the following disclaimer.
|
||||
//
|
||||
// Redistributions in binary form must reproduce the above copyright
|
||||
// notice, this list of conditions and the following disclaimer in the
|
||||
// documentation and/or other materials provided with the
|
||||
// distribution.
|
||||
//
|
||||
// Neither the name of Texas Instruments Incorporated nor the names of
|
||||
// its contributors may be used to endorse or promote products derived
|
||||
// from this software without specific prior written permission.
|
||||
//
|
||||
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||
// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||
// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
||||
// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
||||
// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||
// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||
// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
||||
// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
||||
// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
// $
|
||||
//###########################################################################
|
||||
|
||||
//
|
||||
// Included Files
|
||||
//
|
||||
#include "F28x_Project.h"
|
||||
|
||||
//
|
||||
// Function Prototypes
|
||||
//
|
||||
void ConfigureADC(void);
|
||||
void SetupADCContinuous(Uint16 channel);
|
||||
|
||||
//
|
||||
// Defines
|
||||
//
|
||||
#define RESULTS_BUFFER_SIZE 256 //buffer for storing conversion results
|
||||
//(size must be multiple of 16)
|
||||
|
||||
//
|
||||
// Globals
|
||||
//
|
||||
Uint16 AdcaResults[RESULTS_BUFFER_SIZE];
|
||||
Uint16 resultsIndex;
|
||||
|
||||
void main(void)
|
||||
{
|
||||
//
|
||||
// Step 1. Initialize System Control:
|
||||
// PLL, WatchDog, enable Peripheral Clocks
|
||||
// This example function is found in the F2837xD_SysCtrl.c file.
|
||||
//
|
||||
InitSysCtrl();
|
||||
|
||||
//
|
||||
// Step 2. Initialize GPIO:
|
||||
// This example function is found in the F2837xD_Gpio.c file and
|
||||
// illustrates how to set the GPIO to it's default state.
|
||||
//
|
||||
InitGpio(); // Skipped for this example
|
||||
|
||||
//
|
||||
// Step 3. Clear all interrupts and initialize PIE vector table:
|
||||
// Disable CPU interrupts
|
||||
//
|
||||
DINT;
|
||||
|
||||
//
|
||||
// Initialize the PIE control registers to their default state.
|
||||
// The default state is all PIE interrupts disabled and flags
|
||||
// are cleared.
|
||||
// This function is found in the F2837xD_PieCtrl.c file.
|
||||
//
|
||||
InitPieCtrl();
|
||||
|
||||
//
|
||||
// Disable CPU interrupts and clear all CPU interrupt flags:
|
||||
//
|
||||
IER = 0x0000;
|
||||
IFR = 0x0000;
|
||||
|
||||
//
|
||||
// Initialize the PIE vector table with pointers to the shell Interrupt
|
||||
// Service Routines (ISR).
|
||||
// This will populate the entire table, even if the interrupt
|
||||
// is not used in this example. This is useful for debug purposes.
|
||||
// The shell ISR routines are found in F2837xD_DefaultIsr.c.
|
||||
// This function is found in F2837xD_PieVect.c.
|
||||
//
|
||||
InitPieVectTable();
|
||||
|
||||
//
|
||||
// Configure the ADC and power it up
|
||||
//
|
||||
ConfigureADC();
|
||||
|
||||
//
|
||||
// Setup the ADC for continuous conversions on channel 0
|
||||
//
|
||||
SetupADCContinuous(0);
|
||||
|
||||
//
|
||||
// Enable global Interrupts and higher priority real-time debug events:
|
||||
//
|
||||
EINT; // Enable Global interrupt INTM
|
||||
ERTM; // Enable Global realtime interrupt DBGM
|
||||
|
||||
//
|
||||
// Initialize results buffer
|
||||
//
|
||||
for(resultsIndex = 0; resultsIndex < RESULTS_BUFFER_SIZE; resultsIndex++)
|
||||
{
|
||||
AdcaResults[resultsIndex] = 0;
|
||||
}
|
||||
resultsIndex = 0;
|
||||
|
||||
//
|
||||
// take conversions indefinitely in loop
|
||||
//
|
||||
do
|
||||
{
|
||||
//
|
||||
//enable ADCINT flags
|
||||
//
|
||||
EALLOW;
|
||||
AdcaRegs.ADCINTSEL1N2.bit.INT1E = 1;
|
||||
AdcaRegs.ADCINTSEL1N2.bit.INT2E = 1;
|
||||
AdcaRegs.ADCINTSEL3N4.bit.INT3E = 1;
|
||||
AdcaRegs.ADCINTSEL3N4.bit.INT4E = 1;
|
||||
AdcaRegs.ADCINTFLGCLR.all = 0x000F;
|
||||
EDIS;
|
||||
|
||||
//
|
||||
//initialize results index
|
||||
//
|
||||
resultsIndex = 0;
|
||||
|
||||
//
|
||||
//software force start SOC0 to SOC7
|
||||
//
|
||||
AdcaRegs.ADCSOCFRC1.all = 0x00FF;
|
||||
|
||||
//
|
||||
//keep taking samples until the results buffer is full
|
||||
//
|
||||
while(resultsIndex < RESULTS_BUFFER_SIZE)
|
||||
{
|
||||
//
|
||||
//wait for first set of 8 conversions to complete
|
||||
//
|
||||
while(0 == AdcaRegs.ADCINTFLG.bit.ADCINT3);
|
||||
|
||||
//
|
||||
//clear both INT flags generated by first 8 conversions
|
||||
//
|
||||
AdcaRegs.ADCINTFLGCLR.bit.ADCINT1 = 1;
|
||||
AdcaRegs.ADCINTFLGCLR.bit.ADCINT3 = 1;
|
||||
|
||||
//
|
||||
//save results for first 8 conversions
|
||||
//
|
||||
//note that during this time, the second 8 conversions have
|
||||
//already been triggered by EOC6->ADCIN1 and will be actively
|
||||
//converting while first 8 results are being saved
|
||||
//
|
||||
AdcaResults[resultsIndex++] = AdcaResultRegs.ADCRESULT0;
|
||||
AdcaResults[resultsIndex++] = AdcaResultRegs.ADCRESULT1;
|
||||
AdcaResults[resultsIndex++] = AdcaResultRegs.ADCRESULT2;
|
||||
AdcaResults[resultsIndex++] = AdcaResultRegs.ADCRESULT3;
|
||||
AdcaResults[resultsIndex++] = AdcaResultRegs.ADCRESULT4;
|
||||
AdcaResults[resultsIndex++] = AdcaResultRegs.ADCRESULT5;
|
||||
AdcaResults[resultsIndex++] = AdcaResultRegs.ADCRESULT6;
|
||||
AdcaResults[resultsIndex++] = AdcaResultRegs.ADCRESULT7;
|
||||
|
||||
//
|
||||
//wait for the second set of 8 conversions to complete
|
||||
//
|
||||
while(0 == AdcaRegs.ADCINTFLG.bit.ADCINT4);
|
||||
|
||||
//
|
||||
//clear both INT flags generated by second 8 conversions
|
||||
//
|
||||
AdcaRegs.ADCINTFLGCLR.bit.ADCINT2 = 1;
|
||||
AdcaRegs.ADCINTFLGCLR.bit.ADCINT4 = 1;
|
||||
|
||||
//
|
||||
//save results for second 8 conversions
|
||||
//
|
||||
//note that during this time, the first 8 conversions have
|
||||
//already been triggered by EOC14->ADCIN2 and will be actively
|
||||
//converting while second 8 results are being saved
|
||||
//
|
||||
AdcaResults[resultsIndex++] = AdcaResultRegs.ADCRESULT8;
|
||||
AdcaResults[resultsIndex++] = AdcaResultRegs.ADCRESULT9;
|
||||
AdcaResults[resultsIndex++] = AdcaResultRegs.ADCRESULT10;
|
||||
AdcaResults[resultsIndex++] = AdcaResultRegs.ADCRESULT11;
|
||||
AdcaResults[resultsIndex++] = AdcaResultRegs.ADCRESULT12;
|
||||
AdcaResults[resultsIndex++] = AdcaResultRegs.ADCRESULT13;
|
||||
AdcaResults[resultsIndex++] = AdcaResultRegs.ADCRESULT14;
|
||||
AdcaResults[resultsIndex++] = AdcaResultRegs.ADCRESULT15;
|
||||
}
|
||||
|
||||
//
|
||||
//disable all ADCINT flags to stop sampling
|
||||
//
|
||||
EALLOW;
|
||||
AdcaRegs.ADCINTSEL1N2.bit.INT1E = 0;
|
||||
AdcaRegs.ADCINTSEL1N2.bit.INT2E = 0;
|
||||
AdcaRegs.ADCINTSEL3N4.bit.INT3E = 0;
|
||||
AdcaRegs.ADCINTSEL3N4.bit.INT4E = 0;
|
||||
EDIS;
|
||||
|
||||
//
|
||||
//at this point, AdcaResults[] contains a sequence of conversions
|
||||
//from the selected channel
|
||||
//
|
||||
|
||||
//
|
||||
//software breakpoint, hit run again to get updated conversions
|
||||
//
|
||||
asm(" ESTOP0");
|
||||
}while(1);
|
||||
}
|
||||
|
||||
//
|
||||
// ConfigureADC - Write ADC configurations and power up the ADC for both
|
||||
// ADC A and ADC B
|
||||
//
|
||||
void ConfigureADC(void)
|
||||
{
|
||||
EALLOW;
|
||||
|
||||
//
|
||||
//write configurations
|
||||
//
|
||||
AdcaRegs.ADCCTL2.bit.PRESCALE = 6; //set ADCCLK divider to /4
|
||||
AdcSetMode(ADC_ADCA, ADC_RESOLUTION_12BIT, ADC_SIGNALMODE_SINGLE);
|
||||
|
||||
//
|
||||
//Set pulse positions to late
|
||||
//
|
||||
AdcaRegs.ADCCTL1.bit.INTPULSEPOS = 1;
|
||||
|
||||
//
|
||||
//power up the ADC
|
||||
//
|
||||
AdcaRegs.ADCCTL1.bit.ADCPWDNZ = 1;
|
||||
|
||||
//
|
||||
//delay for 1ms to allow ADC time to power up
|
||||
//
|
||||
DELAY_US(1000);
|
||||
|
||||
EDIS;
|
||||
}
|
||||
|
||||
//
|
||||
// SetupADCContinuous - setup the ADC to continuously convert on one channel
|
||||
//
|
||||
void SetupADCContinuous(Uint16 channel)
|
||||
{
|
||||
Uint16 acqps;
|
||||
|
||||
//
|
||||
// Determine minimum acquisition window (in SYSCLKS) based on resolution
|
||||
//
|
||||
if(ADC_RESOLUTION_12BIT == AdcaRegs.ADCCTL2.bit.RESOLUTION)
|
||||
{
|
||||
acqps = 14; //75ns
|
||||
}
|
||||
else //resolution is 16-bit
|
||||
{
|
||||
acqps = 63; //320ns
|
||||
}
|
||||
|
||||
EALLOW;
|
||||
AdcaRegs.ADCSOC0CTL.bit.CHSEL = channel; //SOC will convert on channel
|
||||
AdcaRegs.ADCSOC1CTL.bit.CHSEL = channel; //SOC will convert on channel
|
||||
AdcaRegs.ADCSOC2CTL.bit.CHSEL = channel; //SOC will convert on channel
|
||||
AdcaRegs.ADCSOC3CTL.bit.CHSEL = channel; //SOC will convert on channel
|
||||
AdcaRegs.ADCSOC4CTL.bit.CHSEL = channel; //SOC will convert on channel
|
||||
AdcaRegs.ADCSOC5CTL.bit.CHSEL = channel; //SOC will convert on channel
|
||||
AdcaRegs.ADCSOC6CTL.bit.CHSEL = channel; //SOC will convert on channel
|
||||
AdcaRegs.ADCSOC7CTL.bit.CHSEL = channel; //SOC will convert on channel
|
||||
AdcaRegs.ADCSOC8CTL.bit.CHSEL = channel; //SOC will convert on channel
|
||||
AdcaRegs.ADCSOC9CTL.bit.CHSEL = channel; //SOC will convert on channel
|
||||
AdcaRegs.ADCSOC10CTL.bit.CHSEL = channel; //SOC will convert on channel
|
||||
AdcaRegs.ADCSOC11CTL.bit.CHSEL = channel; //SOC will convert on channel
|
||||
AdcaRegs.ADCSOC12CTL.bit.CHSEL = channel; //SOC will convert on channel
|
||||
AdcaRegs.ADCSOC13CTL.bit.CHSEL = channel; //SOC will convert on channel
|
||||
AdcaRegs.ADCSOC14CTL.bit.CHSEL = channel; //SOC will convert on channel
|
||||
AdcaRegs.ADCSOC15CTL.bit.CHSEL = channel; //SOC will convert on channel
|
||||
|
||||
AdcaRegs.ADCSOC0CTL.bit.ACQPS = acqps; //sample window is acqps +
|
||||
//1 SYSCLK cycles
|
||||
AdcaRegs.ADCSOC1CTL.bit.ACQPS = acqps; //sample window is acqps +
|
||||
//1 SYSCLK cycles
|
||||
AdcaRegs.ADCSOC2CTL.bit.ACQPS = acqps; //sample window is acqps +
|
||||
//1 SYSCLK cycles
|
||||
AdcaRegs.ADCSOC3CTL.bit.ACQPS = acqps; //sample window is acqps +
|
||||
//1 SYSCLK cycles
|
||||
AdcaRegs.ADCSOC4CTL.bit.ACQPS = acqps; //sample window is acqps +
|
||||
//1 SYSCLK cycles
|
||||
AdcaRegs.ADCSOC5CTL.bit.ACQPS = acqps; //sample window is acqps +
|
||||
//1 SYSCLK cycles
|
||||
AdcaRegs.ADCSOC6CTL.bit.ACQPS = acqps; //sample window is acqps +
|
||||
//1 SYSCLK cycles
|
||||
AdcaRegs.ADCSOC7CTL.bit.ACQPS = acqps; //sample window is acqps +
|
||||
//1 SYSCLK cycles
|
||||
AdcaRegs.ADCSOC8CTL.bit.ACQPS = acqps; //sample window is acqps +
|
||||
//1 SYSCLK cycles
|
||||
AdcaRegs.ADCSOC9CTL.bit.ACQPS = acqps; //sample window is acqps +
|
||||
//1 SYSCLK cycles
|
||||
AdcaRegs.ADCSOC10CTL.bit.ACQPS = acqps; //sample window is acqps +
|
||||
//1 SYSCLK cycles
|
||||
AdcaRegs.ADCSOC11CTL.bit.ACQPS = acqps; //sample window is acqps +
|
||||
//1 SYSCLK cycles
|
||||
AdcaRegs.ADCSOC12CTL.bit.ACQPS = acqps; //sample window is acqps +
|
||||
//1 SYSCLK cycles
|
||||
AdcaRegs.ADCSOC13CTL.bit.ACQPS = acqps; //sample window is acqps +
|
||||
//1 SYSCLK cycles
|
||||
AdcaRegs.ADCSOC14CTL.bit.ACQPS = acqps; //sample window is acqps +
|
||||
//1 SYSCLK cycles
|
||||
AdcaRegs.ADCSOC15CTL.bit.ACQPS = acqps; //sample window is acqps +
|
||||
//1 SYSCLK cycles
|
||||
|
||||
AdcaRegs.ADCINTSEL1N2.bit.INT1E = 0; //disable INT1 flag
|
||||
AdcaRegs.ADCINTSEL1N2.bit.INT2E = 0; //disable INT2 flag
|
||||
AdcaRegs.ADCINTSEL3N4.bit.INT3E = 0; //disable INT3 flag
|
||||
AdcaRegs.ADCINTSEL3N4.bit.INT4E = 0; //disable INT4 flag
|
||||
|
||||
AdcaRegs.ADCINTSEL1N2.bit.INT1CONT = 0;
|
||||
AdcaRegs.ADCINTSEL1N2.bit.INT2CONT = 0;
|
||||
AdcaRegs.ADCINTSEL3N4.bit.INT3CONT = 0;
|
||||
AdcaRegs.ADCINTSEL3N4.bit.INT4CONT = 0;
|
||||
|
||||
AdcaRegs.ADCINTSEL1N2.bit.INT1SEL = 6; //end of SOC6 will set INT1 flag
|
||||
AdcaRegs.ADCINTSEL1N2.bit.INT2SEL = 14; //end of SOC14 will set INT2 flag
|
||||
AdcaRegs.ADCINTSEL3N4.bit.INT3SEL = 7; //end of SOC7 will set INT3 flag
|
||||
AdcaRegs.ADCINTSEL3N4.bit.INT4SEL = 15; //end of SOC15 will set INT4 flag
|
||||
|
||||
//
|
||||
//ADCINT2 will trigger first 8 SOCs
|
||||
//
|
||||
AdcaRegs.ADCINTSOCSEL1.bit.SOC0 = 2;
|
||||
AdcaRegs.ADCINTSOCSEL1.bit.SOC1 = 2;
|
||||
AdcaRegs.ADCINTSOCSEL1.bit.SOC2 = 2;
|
||||
AdcaRegs.ADCINTSOCSEL1.bit.SOC3 = 2;
|
||||
AdcaRegs.ADCINTSOCSEL1.bit.SOC4 = 2;
|
||||
AdcaRegs.ADCINTSOCSEL1.bit.SOC5 = 2;
|
||||
AdcaRegs.ADCINTSOCSEL1.bit.SOC6 = 2;
|
||||
AdcaRegs.ADCINTSOCSEL1.bit.SOC7 = 2;
|
||||
|
||||
//
|
||||
//ADCINT1 will trigger second 8 SOCs
|
||||
//
|
||||
AdcaRegs.ADCINTSOCSEL2.bit.SOC8 = 1;
|
||||
AdcaRegs.ADCINTSOCSEL2.bit.SOC9 = 1;
|
||||
AdcaRegs.ADCINTSOCSEL2.bit.SOC10 = 1;
|
||||
AdcaRegs.ADCINTSOCSEL2.bit.SOC11 = 1;
|
||||
AdcaRegs.ADCINTSOCSEL2.bit.SOC12 = 1;
|
||||
AdcaRegs.ADCINTSOCSEL2.bit.SOC13 = 1;
|
||||
AdcaRegs.ADCINTSOCSEL2.bit.SOC14 = 1;
|
||||
AdcaRegs.ADCINTSOCSEL2.bit.SOC15 = 1;
|
||||
EDIS;
|
||||
}
|
||||
|
||||
//
|
||||
// End of file
|
||||
//
|
||||
+12
@@ -0,0 +1,12 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<?ccsproject version="1.0"?>
|
||||
<projectOptions>
|
||||
<deviceVariant value="com.ti.ccstudio.deviceModel.C2000.GenericC28xxDevice"/>
|
||||
<deviceFamily value="C2000"/>
|
||||
<codegenToolVersion value="6.3.0.A13150"/>
|
||||
<isElfFormat value="false"/>
|
||||
<connection value=""/>
|
||||
<rts value="libc.a"/>
|
||||
<templateProperties value="id=com.ti.common.project.core.emptyProjectTemplate,"/>
|
||||
<isTargetManual value="false"/>
|
||||
</projectOptions>
|
||||
+194
@@ -0,0 +1,194 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<?fileVersion 4.0.0?><cproject storage_type_id="org.eclipse.cdt.core.XmlProjectDescriptionStorage">
|
||||
<storageModule configRelations="2" moduleId="org.eclipse.cdt.core.settings">
|
||||
<cconfiguration id="com.ti.ccstudio.buildDefinitions.C2000.Debug.2121059750">
|
||||
<storageModule buildSystemId="org.eclipse.cdt.managedbuilder.core.configurationDataProvider" id="com.ti.ccstudio.buildDefinitions.C2000.Debug.2121059750" moduleId="org.eclipse.cdt.core.settings" name="CPU1_RAM">
|
||||
<macros>
|
||||
<stringMacro name="INSTALLROOT_F2837XD" type="VALUE_PATH_DIR" value="${PROJECT_ROOT}/../../../../.."/>
|
||||
</macros>
|
||||
<externalSettings/>
|
||||
<extensions>
|
||||
<extension id="com.ti.ccstudio.errorparser.CoffErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
|
||||
<extension id="com.ti.ccstudio.errorparser.LinkErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
|
||||
<extension id="com.ti.ccstudio.errorparser.AsmErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
|
||||
<extension id="org.eclipse.cdt.core.GmakeErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
|
||||
<extension id="com.ti.ccstudio.binaryparser.CoffParser" point="org.eclipse.cdt.core.BinaryParser"/>
|
||||
</extensions>
|
||||
</storageModule>
|
||||
<storageModule moduleId="cdtBuildSystem" version="4.0.0">
|
||||
<configuration artifactExtension="out" artifactName="${ProjName}" buildProperties="" cleanCommand="${CG_CLEAN_CMD}" description="RAM Build Configuration w/Debugger Support for CPU1" id="com.ti.ccstudio.buildDefinitions.C2000.Debug.2121059750" name="CPU1_RAM" parent="com.ti.ccstudio.buildDefinitions.C2000.Debug">
|
||||
<folderInfo id="com.ti.ccstudio.buildDefinitions.C2000.Debug.2121059750." name="/" resourcePath="">
|
||||
<toolChain id="com.ti.ccstudio.buildDefinitions.C2000_15.12.exe.DebugToolchain.1764265206" name="TI Build Tools" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.exe.DebugToolchain" targetTool="com.ti.ccstudio.buildDefinitions.C2000_15.12.exe.linkerDebug.209139873">
|
||||
<option id="com.ti.ccstudio.buildDefinitions.core.OPT_TAGS.1000242668" superClass="com.ti.ccstudio.buildDefinitions.core.OPT_TAGS" valueType="stringList">
|
||||
<listOptionValue builtIn="false" value="DEVICE_CONFIGURATION_ID=com.ti.ccstudio.deviceModel.C2000.GenericC28xxDevice"/>
|
||||
<listOptionValue builtIn="false" value="DEVICE_ENDIANNESS=little"/>
|
||||
<listOptionValue builtIn="false" value="OUTPUT_FORMAT=COFF"/>
|
||||
<listOptionValue builtIn="false" value="CCS_MBS_VERSION=6.1.3"/>
|
||||
<listOptionValue builtIn="false" value="RUNTIME_SUPPORT_LIBRARY=libc.a"/>
|
||||
<listOptionValue builtIn="false" value="OUTPUT_TYPE=executable"/>
|
||||
</option>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.core.OPT_CODEGEN_VERSION.1900504569" name="Compiler version" superClass="com.ti.ccstudio.buildDefinitions.core.OPT_CODEGEN_VERSION" value="15.12.1.LTS" valueType="string"/>
|
||||
<targetPlatform id="com.ti.ccstudio.buildDefinitions.C2000_15.12.exe.targetPlatformDebug.403123223" name="Platform" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.exe.targetPlatformDebug"/>
|
||||
<builder buildPath="${BuildDirectory}" id="com.ti.ccstudio.buildDefinitions.C2000_15.12.exe.builderDebug.1116390094" keepEnvironmentInBuildfile="false" name="GNU Make" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.exe.builderDebug"/>
|
||||
<tool id="com.ti.ccstudio.buildDefinitions.C2000_15.12.exe.compilerDebug.2130354690" name="C2000 Compiler" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.exe.compilerDebug">
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.SILICON_VERSION.222287645" name="Processor version (--silicon_version, -v)" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.SILICON_VERSION" value="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.SILICON_VERSION.28" valueType="enumerated"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.LARGE_MEMORY_MODEL.941039687" name="Option deprecated, set by default (--large_memory_model, -ml)" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.LARGE_MEMORY_MODEL" value="true" valueType="boolean"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.UNIFIED_MEMORY.610139697" name="Unified memory (--unified_memory, -mt)" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.UNIFIED_MEMORY" value="true" valueType="boolean"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.CLA_SUPPORT.137452837" name="Specify CLA support (--cla_support)" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.CLA_SUPPORT" value="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.CLA_SUPPORT.cla1" valueType="enumerated"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.FLOAT_SUPPORT.313027692" name="Specify floating point support (--float_support)" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.FLOAT_SUPPORT" value="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.FLOAT_SUPPORT.fpu32" valueType="enumerated"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.TMU_SUPPORT.1131496084" name="Specify TMU support (--tmu_support)" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.TMU_SUPPORT" value="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.TMU_SUPPORT.tmu0" valueType="enumerated"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.VCU_SUPPORT.2025529873" name="Specify VCU support (--vcu_support)" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.VCU_SUPPORT" value="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.VCU_SUPPORT.vcu2" valueType="enumerated"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.INCLUDE_PATH.1881232447" name="Add dir to #include search path (--include_path, -I)" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.INCLUDE_PATH" valueType="includePath">
|
||||
<listOptionValue builtIn="false" value=""${CG_TOOL_ROOT}/include""/>
|
||||
<listOptionValue builtIn="false" value=""${INSTALLROOT_F2837XD}/headers/include""/>
|
||||
<listOptionValue builtIn="false" value=""${INSTALLROOT_F2837XD}/common/include""/>
|
||||
</option>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.DEBUGGING_MODEL.313533304" name="Debugging model" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.DEBUGGING_MODEL" value="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.DEBUGGING_MODEL.SYMDEBUG__DWARF" valueType="enumerated"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.DEFINE.816031680" name="Pre-define NAME (--define, -D)" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.DEFINE" valueType="definedSymbols">
|
||||
<listOptionValue builtIn="false" value="CPU1"/>
|
||||
</option>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.DIAG_WARNING.1768978238" name="Treat diagnostic <id> as warning (--diag_warning, -pdsw)" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.DIAG_WARNING" valueType="stringList">
|
||||
<listOptionValue builtIn="false" value="225"/>
|
||||
</option>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.DISPLAY_ERROR_NUMBER.1607927470" name="Emit diagnostic identifier numbers (--display_error_number, -pden)" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.DISPLAY_ERROR_NUMBER" value="true" valueType="boolean"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.DIAG_SUPPRESS.711020639" name="Suppress diagnostic <id> (--diag_suppress, -pds)" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.DIAG_SUPPRESS" valueType="stringList">
|
||||
<listOptionValue builtIn="false" value="1311"/>
|
||||
</option>
|
||||
<inputType id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compiler.inputType__C_SRCS.355093095" name="C Sources" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compiler.inputType__C_SRCS"/>
|
||||
<inputType id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compiler.inputType__CPP_SRCS.1712902671" name="C++ Sources" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compiler.inputType__CPP_SRCS"/>
|
||||
<inputType id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compiler.inputType__ASM_SRCS.1592598383" name="Assembly Sources" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compiler.inputType__ASM_SRCS"/>
|
||||
<inputType id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compiler.inputType__ASM2_SRCS.426463782" name="Assembly Sources" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compiler.inputType__ASM2_SRCS"/>
|
||||
</tool>
|
||||
<tool id="com.ti.ccstudio.buildDefinitions.C2000_15.12.exe.linkerDebug.209139873" name="C2000 Linker" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.exe.linkerDebug">
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.OUTPUT_FILE.1397560466" name="Specify output file name (--output_file, -o)" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.OUTPUT_FILE" value=""${ProjName}.out"" valueType="string"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.MAP_FILE.1854078177" name="Link information (map) listed into <file> (--map_file, -m)" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.MAP_FILE" value=""${ProjName}.map"" valueType="string"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.STACK_SIZE.1543815842" name="Set C system stack size (--stack_size, -stack)" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.STACK_SIZE" value="0x100" valueType="string"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.LIBRARY.137101201" name="Include library file or command file as input (--library, -l)" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.LIBRARY" valueType="libs">
|
||||
<listOptionValue builtIn="false" value=""rts2800_fpu32.lib""/>
|
||||
<listOptionValue builtIn="false" value=""2837xD_RAM_lnk_cpu1.cmd""/>
|
||||
<listOptionValue builtIn="false" value=""F2837xD_Headers_nonBIOS_cpu1.cmd""/>
|
||||
<listOptionValue builtIn="false" value=""libc.a""/>
|
||||
</option>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.SEARCH_PATH.508377242" name="Add <dir> to library search path (--search_path, -i)" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.SEARCH_PATH" valueType="libPaths">
|
||||
<listOptionValue builtIn="false" value=""${CG_TOOL_ROOT}/lib""/>
|
||||
<listOptionValue builtIn="false" value=""${CG_TOOL_ROOT}/include""/>
|
||||
<listOptionValue builtIn="false" value=""${INSTALLROOT_F2837XD}/common/cmd""/>
|
||||
<listOptionValue builtIn="false" value=""${INSTALLROOT_F2837XD}/headers/cmd""/>
|
||||
</option>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.DISPLAY_ERROR_NUMBER.170926000" name="Emit diagnostic identifier numbers (--display_error_number)" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.DISPLAY_ERROR_NUMBER" value="true" valueType="boolean"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.XML_LINK_INFO.764171776" name="Detailed link information data-base into <file> (--xml_link_info, -xml_link_info)" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.XML_LINK_INFO" value=""${ProjName}_linkInfo.xml"" valueType="string"/>
|
||||
<inputType id="com.ti.ccstudio.buildDefinitions.C2000_15.12.exeLinker.inputType__CMD_SRCS.4108620" name="Linker Command Files" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.exeLinker.inputType__CMD_SRCS"/>
|
||||
<inputType id="com.ti.ccstudio.buildDefinitions.C2000_15.12.exeLinker.inputType__CMD2_SRCS.1661357083" name="Linker Command Files" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.exeLinker.inputType__CMD2_SRCS"/>
|
||||
<inputType id="com.ti.ccstudio.buildDefinitions.C2000_15.12.exeLinker.inputType__GEN_CMDS.415568767" name="Generated Linker Command Files" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.exeLinker.inputType__GEN_CMDS"/>
|
||||
</tool>
|
||||
</toolChain>
|
||||
</folderInfo>
|
||||
</configuration>
|
||||
</storageModule>
|
||||
<storageModule moduleId="org.eclipse.cdt.core.externalSettings"/>
|
||||
</cconfiguration>
|
||||
<cconfiguration id="com.ti.ccstudio.buildDefinitions.C2000.Debug.2121059750.89498793">
|
||||
<storageModule buildSystemId="org.eclipse.cdt.managedbuilder.core.configurationDataProvider" id="com.ti.ccstudio.buildDefinitions.C2000.Debug.2121059750.89498793" moduleId="org.eclipse.cdt.core.settings" name="CPU1_FLASH">
|
||||
<macros>
|
||||
<stringMacro name="INSTALLROOT_F2837XD" type="VALUE_PATH_DIR" value="${PROJECT_ROOT}/../../../../.."/>
|
||||
</macros>
|
||||
<externalSettings/>
|
||||
<extensions>
|
||||
<extension id="com.ti.ccstudio.errorparser.CoffErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
|
||||
<extension id="com.ti.ccstudio.errorparser.LinkErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
|
||||
<extension id="com.ti.ccstudio.errorparser.AsmErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
|
||||
<extension id="org.eclipse.cdt.core.GmakeErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
|
||||
<extension id="com.ti.ccstudio.binaryparser.CoffParser" point="org.eclipse.cdt.core.BinaryParser"/>
|
||||
</extensions>
|
||||
</storageModule>
|
||||
<storageModule moduleId="cdtBuildSystem" version="4.0.0">
|
||||
<configuration artifactExtension="out" artifactName="${ProjName}" buildProperties="" cleanCommand="${CG_CLEAN_CMD}" description="Flash Build Configuration w/Debugger Support for CPU1" id="com.ti.ccstudio.buildDefinitions.C2000.Debug.2121059750.89498793" name="CPU1_FLASH" parent="com.ti.ccstudio.buildDefinitions.C2000.Debug">
|
||||
<folderInfo id="com.ti.ccstudio.buildDefinitions.C2000.Debug.2121059750.89498793." name="/" resourcePath="">
|
||||
<toolChain id="com.ti.ccstudio.buildDefinitions.C2000_15.12.exe.DebugToolchain.787452043" name="TI Build Tools" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.exe.DebugToolchain" targetTool="com.ti.ccstudio.buildDefinitions.C2000_15.12.exe.linkerDebug.148939393">
|
||||
<option id="com.ti.ccstudio.buildDefinitions.core.OPT_TAGS.1037374823" superClass="com.ti.ccstudio.buildDefinitions.core.OPT_TAGS" valueType="stringList">
|
||||
<listOptionValue builtIn="false" value="DEVICE_CONFIGURATION_ID=com.ti.ccstudio.deviceModel.C2000.GenericC28xxDevice"/>
|
||||
<listOptionValue builtIn="false" value="DEVICE_ENDIANNESS=little"/>
|
||||
<listOptionValue builtIn="false" value="OUTPUT_FORMAT=COFF"/>
|
||||
<listOptionValue builtIn="false" value="CCS_MBS_VERSION=6.1.3"/>
|
||||
<listOptionValue builtIn="false" value="RUNTIME_SUPPORT_LIBRARY=libc.a"/>
|
||||
<listOptionValue builtIn="false" value="OUTPUT_TYPE=executable"/>
|
||||
</option>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.core.OPT_CODEGEN_VERSION.1532841525" superClass="com.ti.ccstudio.buildDefinitions.core.OPT_CODEGEN_VERSION" value="15.12.1.LTS" valueType="string"/>
|
||||
<targetPlatform id="com.ti.ccstudio.buildDefinitions.C2000_15.12.exe.targetPlatformDebug.1626786802" name="Platform" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.exe.targetPlatformDebug"/>
|
||||
<builder buildPath="${BuildDirectory}" id="com.ti.ccstudio.buildDefinitions.C2000_15.12.exe.builderDebug.119462248" name="GNU Make.CPU1_FLASH" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.exe.builderDebug"/>
|
||||
<tool id="com.ti.ccstudio.buildDefinitions.C2000_15.12.exe.compilerDebug.1170140744" name="C2000 Compiler" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.exe.compilerDebug">
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.SILICON_VERSION.707226131" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.SILICON_VERSION" value="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.SILICON_VERSION.28" valueType="enumerated"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.LARGE_MEMORY_MODEL.183499577" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.LARGE_MEMORY_MODEL" value="true" valueType="boolean"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.UNIFIED_MEMORY.581199430" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.UNIFIED_MEMORY" value="true" valueType="boolean"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.CLA_SUPPORT.396214592" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.CLA_SUPPORT" value="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.CLA_SUPPORT.cla1" valueType="enumerated"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.FLOAT_SUPPORT.296383966" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.FLOAT_SUPPORT" value="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.FLOAT_SUPPORT.fpu32" valueType="enumerated"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.TMU_SUPPORT.246418219" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.TMU_SUPPORT" value="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.TMU_SUPPORT.tmu0" valueType="enumerated"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.VCU_SUPPORT.150263646" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.VCU_SUPPORT" value="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.VCU_SUPPORT.vcu2" valueType="enumerated"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.INCLUDE_PATH.1833457179" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.INCLUDE_PATH" valueType="includePath">
|
||||
<listOptionValue builtIn="false" value=""${CG_TOOL_ROOT}/include""/>
|
||||
<listOptionValue builtIn="false" value=""${INSTALLROOT_F2837XD}/headers/include""/>
|
||||
<listOptionValue builtIn="false" value=""${INSTALLROOT_F2837XD}/common/include""/>
|
||||
</option>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.DEBUGGING_MODEL.1557021009" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.DEBUGGING_MODEL" value="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.DEBUGGING_MODEL.SYMDEBUG__DWARF" valueType="enumerated"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.DEFINE.1601229823" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.DEFINE" valueType="definedSymbols">
|
||||
<listOptionValue builtIn="false" value="CPU1"/>
|
||||
<listOptionValue builtIn="false" value="_FLASH"/>
|
||||
</option>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.DIAG_WARNING.1039567521" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.DIAG_WARNING" valueType="stringList">
|
||||
<listOptionValue builtIn="false" value="225"/>
|
||||
</option>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.DISPLAY_ERROR_NUMBER.173534662" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.DISPLAY_ERROR_NUMBER" value="true" valueType="boolean"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.DIAG_SUPPRESS.1383008168" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.DIAG_SUPPRESS" valueType="stringList">
|
||||
<listOptionValue builtIn="false" value="1311"/>
|
||||
</option>
|
||||
<inputType id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compiler.inputType__C_SRCS.2003589484" name="C Sources" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compiler.inputType__C_SRCS"/>
|
||||
<inputType id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compiler.inputType__CPP_SRCS.1314964669" name="C++ Sources" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compiler.inputType__CPP_SRCS"/>
|
||||
<inputType id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compiler.inputType__ASM_SRCS.879952695" name="Assembly Sources" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compiler.inputType__ASM_SRCS"/>
|
||||
<inputType id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compiler.inputType__ASM2_SRCS.2010017530" name="Assembly Sources" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compiler.inputType__ASM2_SRCS"/>
|
||||
</tool>
|
||||
<tool id="com.ti.ccstudio.buildDefinitions.C2000_15.12.exe.linkerDebug.148939393" name="C2000 Linker" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.exe.linkerDebug">
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.OUTPUT_FILE.1078838215" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.OUTPUT_FILE" value=""${ProjName}.out"" valueType="string"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.MAP_FILE.1509685109" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.MAP_FILE" value=""${ProjName}.map"" valueType="string"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.STACK_SIZE.1798429709" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.STACK_SIZE" value="0x100" valueType="string"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.LIBRARY.863336779" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.LIBRARY" valueType="libs">
|
||||
<listOptionValue builtIn="false" value=""rts2800_fpu32.lib""/>
|
||||
<listOptionValue builtIn="false" value=""2837xD_FLASH_lnk_cpu1.cmd""/>
|
||||
<listOptionValue builtIn="false" value=""F2837xD_Headers_nonBIOS_cpu1.cmd""/>
|
||||
<listOptionValue builtIn="false" value=""libc.a""/>
|
||||
</option>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.SEARCH_PATH.1961911736" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.SEARCH_PATH" valueType="libPaths">
|
||||
<listOptionValue builtIn="false" value=""${CG_TOOL_ROOT}/lib""/>
|
||||
<listOptionValue builtIn="false" value=""${CG_TOOL_ROOT}/include""/>
|
||||
<listOptionValue builtIn="false" value=""${INSTALLROOT_F2837XD}/common/cmd""/>
|
||||
<listOptionValue builtIn="false" value=""${INSTALLROOT_F2837XD}/headers/cmd""/>
|
||||
</option>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.DISPLAY_ERROR_NUMBER.149063070" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.DISPLAY_ERROR_NUMBER" value="true" valueType="boolean"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.XML_LINK_INFO.2114654677" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.XML_LINK_INFO" value=""${ProjName}_linkInfo.xml"" valueType="string"/>
|
||||
<inputType id="com.ti.ccstudio.buildDefinitions.C2000_15.12.exeLinker.inputType__CMD_SRCS.1659991256" name="Linker Command Files" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.exeLinker.inputType__CMD_SRCS"/>
|
||||
<inputType id="com.ti.ccstudio.buildDefinitions.C2000_15.12.exeLinker.inputType__CMD2_SRCS.1128415034" name="Linker Command Files" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.exeLinker.inputType__CMD2_SRCS"/>
|
||||
<inputType id="com.ti.ccstudio.buildDefinitions.C2000_15.12.exeLinker.inputType__GEN_CMDS.1570829747" name="Generated Linker Command Files" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.exeLinker.inputType__GEN_CMDS"/>
|
||||
</tool>
|
||||
</toolChain>
|
||||
</folderInfo>
|
||||
</configuration>
|
||||
</storageModule>
|
||||
<storageModule moduleId="org.eclipse.cdt.core.externalSettings"/>
|
||||
</cconfiguration>
|
||||
</storageModule>
|
||||
<storageModule moduleId="org.eclipse.cdt.core.LanguageSettingsProviders"/>
|
||||
<storageModule moduleId="cdtBuildSystem" version="4.0.0">
|
||||
<project id="adc_soc_continuous_dc_cpu01.com.ti.ccstudio.buildDefinitions.C2000.ProjectType.253935156" name="C2000" projectType="com.ti.ccstudio.buildDefinitions.C2000.ProjectType"/>
|
||||
</storageModule>
|
||||
<storageModule moduleId="scannerConfiguration"/>
|
||||
<storageModule moduleId="org.eclipse.cdt.core.language.mapping">
|
||||
<project-mappings>
|
||||
<content-type-mapping configuration="" content-type="org.eclipse.cdt.core.asmSource" language="com.ti.ccstudio.core.TIASMLanguage"/>
|
||||
<content-type-mapping configuration="" content-type="org.eclipse.cdt.core.cHeader" language="com.ti.ccstudio.core.TIGCCLanguage"/>
|
||||
<content-type-mapping configuration="" content-type="org.eclipse.cdt.core.cSource" language="com.ti.ccstudio.core.TIGCCLanguage"/>
|
||||
<content-type-mapping configuration="" content-type="org.eclipse.cdt.core.cxxHeader" language="com.ti.ccstudio.core.TIGPPLanguage"/>
|
||||
<content-type-mapping configuration="" content-type="org.eclipse.cdt.core.cxxSource" language="com.ti.ccstudio.core.TIGPPLanguage"/>
|
||||
</project-mappings>
|
||||
</storageModule>
|
||||
<storageModule moduleId="null.endianPreference"/>
|
||||
<storageModule moduleId="cpuFamily"/>
|
||||
</cproject>
|
||||
@@ -0,0 +1,90 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<projectDescription>
|
||||
<name>adc_soc_continuous_cpu01</name>
|
||||
<comment></comment>
|
||||
<projects>
|
||||
</projects>
|
||||
<buildSpec>
|
||||
<buildCommand>
|
||||
<name>org.eclipse.cdt.managedbuilder.core.genmakebuilder</name>
|
||||
<arguments>
|
||||
</arguments>
|
||||
</buildCommand>
|
||||
<buildCommand>
|
||||
<name>org.eclipse.cdt.managedbuilder.core.ScannerConfigBuilder</name>
|
||||
<triggers>full,incremental,</triggers>
|
||||
<arguments>
|
||||
</arguments>
|
||||
</buildCommand>
|
||||
</buildSpec>
|
||||
<natures>
|
||||
<nature>com.ti.ccstudio.core.ccsNature</nature>
|
||||
<nature>org.eclipse.cdt.core.cnature</nature>
|
||||
<nature>org.eclipse.cdt.managedbuilder.core.managedBuildNature</nature>
|
||||
<nature>org.eclipse.cdt.core.ccnature</nature>
|
||||
<nature>org.eclipse.cdt.managedbuilder.core.ScannerConfigNature</nature>
|
||||
</natures>
|
||||
<linkedResources>
|
||||
<link>
|
||||
<name>F2837xD_Adc.c</name>
|
||||
<type>1</type>
|
||||
<locationURI>PARENT-5-PROJECT_LOC/common/source/F2837xD_Adc.c</locationURI>
|
||||
</link>
|
||||
<link>
|
||||
<name>F2837xD_CodeStartBranch.asm</name>
|
||||
<type>1</type>
|
||||
<locationURI>PARENT-5-PROJECT_LOC/common/source/F2837xD_CodeStartBranch.asm</locationURI>
|
||||
</link>
|
||||
<link>
|
||||
<name>F2837xD_DefaultISR.c</name>
|
||||
<type>1</type>
|
||||
<locationURI>PARENT-5-PROJECT_LOC/common/source/F2837xD_DefaultISR.c</locationURI>
|
||||
</link>
|
||||
<link>
|
||||
<name>F2837xD_GlobalVariableDefs.c</name>
|
||||
<type>1</type>
|
||||
<locationURI>PARENT-5-PROJECT_LOC/headers/source/F2837xD_GlobalVariableDefs.c</locationURI>
|
||||
</link>
|
||||
<link>
|
||||
<name>F2837xD_Gpio.c</name>
|
||||
<type>1</type>
|
||||
<locationURI>PARENT-5-PROJECT_LOC/common/source/F2837xD_Gpio.c</locationURI>
|
||||
</link>
|
||||
<link>
|
||||
<name>F2837xD_Ipc.c</name>
|
||||
<type>1</type>
|
||||
<locationURI>PARENT-5-PROJECT_LOC/common/source/F2837xD_Ipc.c</locationURI>
|
||||
</link>
|
||||
<link>
|
||||
<name>F2837xD_PieCtrl.c</name>
|
||||
<type>1</type>
|
||||
<locationURI>PARENT-5-PROJECT_LOC/common/source/F2837xD_PieCtrl.c</locationURI>
|
||||
</link>
|
||||
<link>
|
||||
<name>F2837xD_PieVect.c</name>
|
||||
<type>1</type>
|
||||
<locationURI>PARENT-5-PROJECT_LOC/common/source/F2837xD_PieVect.c</locationURI>
|
||||
</link>
|
||||
<link>
|
||||
<name>F2837xD_SysCtrl.c</name>
|
||||
<type>1</type>
|
||||
<locationURI>PARENT-5-PROJECT_LOC/common/source/F2837xD_SysCtrl.c</locationURI>
|
||||
</link>
|
||||
<link>
|
||||
<name>F2837xD_usDelay.asm</name>
|
||||
<type>1</type>
|
||||
<locationURI>PARENT-5-PROJECT_LOC/common/source/F2837xD_usDelay.asm</locationURI>
|
||||
</link>
|
||||
<link>
|
||||
<name>adc_soc_continuous_cpu01.c</name>
|
||||
<type>1</type>
|
||||
<locationURI>PARENT-1-PROJECT_LOC/adc_soc_continuous_cpu01.c</locationURI>
|
||||
</link>
|
||||
</linkedResources>
|
||||
<variableList>
|
||||
<variable>
|
||||
<name>INSTALLROOT_F2837XD</name>
|
||||
<value>$%7BPARENT-4-PROJECT_LOC%7D</value>
|
||||
</variable>
|
||||
</variableList>
|
||||
</projectDescription>
|
||||
+22
@@ -0,0 +1,22 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<configurations XML_version="1.2" id="configurations_0">
|
||||
<configuration XML_version="1.2" id="Texas Instruments XDS100v2 USB Debug Probe_0">
|
||||
<instance XML_version="1.2" desc="Texas Instruments XDS100v2 USB Debug Probe_0" href="connections/TIXDS100v2_Connection.xml" id="Texas Instruments XDS100v2 USB Debug Probe_0" xml="TIXDS100v2_Connection.xml" xmlpath="connections"/>
|
||||
<connection XML_version="1.2" id="Texas Instruments XDS100v2 USB Debug Probe_0">
|
||||
<instance XML_version="1.2" href="drivers/tixds100v2icepick_c.xml" id="drivers" xml="tixds100v2icepick_c.xml" xmlpath="drivers"/>
|
||||
<instance XML_version="1.2" href="drivers/tixds100v2c28x.xml" id="drivers" xml="tixds100v2c28x.xml" xmlpath="drivers"/>
|
||||
<instance XML_version="1.2" href="drivers/tixds100v2cla1.xml" id="drivers" xml="tixds100v2cla1.xml" xmlpath="drivers"/>
|
||||
<instance XML_version="1.2" href="drivers/tixds100v2cs_child.xml" id="drivers" xml="tixds100v2cs_child.xml" xmlpath="drivers"/>
|
||||
<platform XML_version="1.2" id="platform_0">
|
||||
<instance XML_version="1.2" desc="TMS320F28377D_0" href="devices/tms320f28377d.xml" id="TMS320F28377D_0" xml="tms320f28377d.xml" xmlpath="devices"/>
|
||||
<device HW_revision="1" XML_version="1.2" description="" id="TMS320F28377D_0" partnum="TMS320F28377D">
|
||||
<router HW_revision="1.0" XML_version="1.2" description="ICEPick_C router" id="IcePick_C_0" isa="ICEPICK_C">
|
||||
<subpath id="Subpath_1">
|
||||
<property Type="numericfield" Value="0x11" desc="Port Number_0" id="Port Number"/>
|
||||
</subpath>
|
||||
</router>
|
||||
</device>
|
||||
</platform>
|
||||
</connection>
|
||||
</configuration>
|
||||
</configurations>
|
||||
+541
@@ -0,0 +1,541 @@
|
||||
//###########################################################################
|
||||
//
|
||||
// FILE: adc_soc_continuous_dma_cpu01.c
|
||||
//
|
||||
// TITLE: ADC continuous conversions read by DMA for F2837xD.
|
||||
//
|
||||
//! \addtogroup cpu01_example_list
|
||||
//! <h1> ADC Continuous Conversions Read by DMA (adc_soc_continuous_dma)</h1>
|
||||
//!
|
||||
//! This example sets up two ADC channels to convert simultaneously. The
|
||||
//! results will be transferred by the DMA into a buffer in RAM.
|
||||
//!
|
||||
//! After the program runs, the memory will contain:
|
||||
//!
|
||||
//! - \b adcData0 \b: a digital representation of the voltage on pin A3\n
|
||||
//! - \b adcData1 \b: a digital representation of the voltage on pin B3\n
|
||||
//!
|
||||
//
|
||||
//###########################################################################
|
||||
//
|
||||
// $Release Date: $
|
||||
// $Copyright:
|
||||
// Copyright (C) 2013-2024 Texas Instruments Incorporated - http://www.ti.com/
|
||||
//
|
||||
// Redistribution and use in source and binary forms, with or without
|
||||
// modification, are permitted provided that the following conditions
|
||||
// are met:
|
||||
//
|
||||
// Redistributions of source code must retain the above copyright
|
||||
// notice, this list of conditions and the following disclaimer.
|
||||
//
|
||||
// Redistributions in binary form must reproduce the above copyright
|
||||
// notice, this list of conditions and the following disclaimer in the
|
||||
// documentation and/or other materials provided with the
|
||||
// distribution.
|
||||
//
|
||||
// Neither the name of Texas Instruments Incorporated nor the names of
|
||||
// its contributors may be used to endorse or promote products derived
|
||||
// from this software without specific prior written permission.
|
||||
//
|
||||
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||
// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||
// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
||||
// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
||||
// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||
// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||
// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
||||
// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
||||
// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
// $
|
||||
//###########################################################################
|
||||
|
||||
//
|
||||
// Included Files
|
||||
//
|
||||
#include "F28x_Project.h"
|
||||
|
||||
//
|
||||
// Function Prototypes
|
||||
//
|
||||
__interrupt void adca1_isr(void);
|
||||
__interrupt void dmach1_isr(void);
|
||||
|
||||
void ConfigureEPWM(void);
|
||||
void ConfigureADC(void);
|
||||
void SetupADCContinuous(volatile struct ADC_REGS * adcRegs, Uint16 channel);
|
||||
void DMAInit(void);
|
||||
|
||||
//
|
||||
// Defines
|
||||
//
|
||||
#define RESULTS_BUFFER_SIZE 1024 // Buffer for storing conversion results
|
||||
// (size must be multiple of 16)
|
||||
|
||||
//
|
||||
// Globals
|
||||
//
|
||||
#pragma DATA_SECTION(adcData0, "ramgs0");
|
||||
#pragma DATA_SECTION(adcData1, "ramgs0");
|
||||
Uint16 adcData0[RESULTS_BUFFER_SIZE];
|
||||
Uint16 adcData1[RESULTS_BUFFER_SIZE];
|
||||
volatile Uint16 done;
|
||||
|
||||
void main(void)
|
||||
{
|
||||
Uint16 resultsIndex;
|
||||
|
||||
//
|
||||
// Step 1. Initialize System Control:
|
||||
// PLL, WatchDog, enable Peripheral Clocks
|
||||
// This example function is found in the F2837xD_SysCtrl.c file.
|
||||
//
|
||||
InitSysCtrl();
|
||||
|
||||
//
|
||||
// Step 2. Initialize GPIO:
|
||||
// This example function is found in the F2837xD_Gpio.c file and
|
||||
// illustrates how to set the GPIO to it's default state.
|
||||
//
|
||||
InitGpio();
|
||||
|
||||
//
|
||||
// Step 3. Clear all interrupts and initialize PIE vector table:
|
||||
// Disable CPU interrupts
|
||||
//
|
||||
DINT;
|
||||
|
||||
//
|
||||
// Initialize the PIE control registers to their default state.
|
||||
// The default state is all PIE interrupts disabled and flags
|
||||
// are cleared.
|
||||
// This function is found in the F2837xD_PieCtrl.c file.
|
||||
//
|
||||
InitPieCtrl();
|
||||
|
||||
//
|
||||
// Disable CPU interrupts and clear all CPU interrupt flags:
|
||||
//
|
||||
IER = 0x0000;
|
||||
IFR = 0x0000;
|
||||
|
||||
//
|
||||
// Initialize the PIE vector table with pointers to the shell Interrupt
|
||||
// Service Routines (ISR).
|
||||
// This will populate the entire table, even if the interrupt
|
||||
// is not used in this example. This is useful for debug purposes.
|
||||
// The shell ISR routines are found in F2837xD_DefaultIsr.c.
|
||||
// This function is found in F2837xD_PieVect.c.
|
||||
//
|
||||
InitPieVectTable();
|
||||
|
||||
//
|
||||
// Set up ISRs used by this example
|
||||
//
|
||||
// ISR for ADCA INT1 - occurs after first conversion
|
||||
// ISR for DMA ch1 - occurs when DMA transfer is complete
|
||||
//
|
||||
EALLOW;
|
||||
PieVectTable.ADCA1_INT = &adca1_isr;
|
||||
PieVectTable.DMA_CH1_INT = &dmach1_isr;
|
||||
EDIS;
|
||||
|
||||
//
|
||||
// Enable specific CPU interrupts: INT1 for ADCs and INT7 for DMA
|
||||
//
|
||||
IER |= M_INT1;
|
||||
IER |= M_INT7;
|
||||
|
||||
//
|
||||
// Enable specific PIE interrupts
|
||||
//
|
||||
// ADCA INT1 - Group 1, interrupt 1
|
||||
// DMA interrupt - Group 7, interrupt 1
|
||||
//
|
||||
PieCtrlRegs.PIEIER1.bit.INTx1 = 1;
|
||||
PieCtrlRegs.PIEIER7.bit.INTx1 = 1;
|
||||
|
||||
//
|
||||
// Stop the ePWM clock
|
||||
//
|
||||
EALLOW;
|
||||
CpuSysRegs.PCLKCR0.bit.TBCLKSYNC = 0;
|
||||
EDIS;
|
||||
|
||||
//
|
||||
// Call the set up function for ePWM 2
|
||||
//
|
||||
ConfigureEPWM();
|
||||
|
||||
//
|
||||
// Start the ePWM clock
|
||||
//
|
||||
EALLOW;
|
||||
CpuSysRegs.PCLKCR0.bit.TBCLKSYNC = 1;
|
||||
EDIS;
|
||||
|
||||
//
|
||||
// Configure the ADC and power it up
|
||||
//
|
||||
ConfigureADC();
|
||||
|
||||
//
|
||||
// Setup the ADC for continuous conversions on channels A3 and B3
|
||||
//
|
||||
SetupADCContinuous(&AdcaRegs, 3);
|
||||
SetupADCContinuous(&AdcbRegs, 3);
|
||||
|
||||
//
|
||||
// Initialize the DMA
|
||||
//
|
||||
DMAInit();
|
||||
|
||||
//
|
||||
// Enable global Interrupts and higher priority real-time debug events:
|
||||
//
|
||||
EINT; // Enable Global interrupt INTM
|
||||
ERTM; // Enable Global realtime interrupt DBGM
|
||||
|
||||
//
|
||||
// Initialize results buffer
|
||||
//
|
||||
for(resultsIndex = 0; resultsIndex < RESULTS_BUFFER_SIZE; resultsIndex++)
|
||||
{
|
||||
adcData0[resultsIndex] = 0;
|
||||
adcData1[resultsIndex] = 0;
|
||||
}
|
||||
|
||||
//
|
||||
// Clearing all pending interrupt flags
|
||||
//
|
||||
EALLOW;
|
||||
|
||||
DmaRegs.CH1.CONTROL.bit.PERINTCLR = 1;
|
||||
DmaRegs.CH2.CONTROL.bit.PERINTCLR = 1;
|
||||
AdcaRegs.ADCINTFLGCLR.all = 0x3;
|
||||
AdcbRegs.ADCINTFLGCLR.all = 0x3;
|
||||
EPwm2Regs.ETCNTINITCTL.bit.SOCAINITFRC = 1;
|
||||
EPwm2Regs.ETCLR.bit.SOCA = 1;
|
||||
|
||||
//
|
||||
// Enable continuous operation by setting the last SOC to re-trigger the first
|
||||
//
|
||||
AdcaRegs.ADCINTSOCSEL1.bit.SOC0 = 2;
|
||||
AdcbRegs.ADCINTSOCSEL1.bit.SOC0 = 2;
|
||||
|
||||
EDIS;
|
||||
|
||||
//
|
||||
// Start DMA
|
||||
//
|
||||
done = 0;
|
||||
StartDMACH1();
|
||||
StartDMACH2();
|
||||
|
||||
//
|
||||
// Finally, enable the SOCA trigger from ePWM. This will kick off
|
||||
// conversions at the next ePWM event.
|
||||
//
|
||||
EPwm2Regs.ETSEL.bit.SOCAEN = 1;
|
||||
|
||||
//
|
||||
// Loop until the ISR signals the transfer is complete
|
||||
//
|
||||
while(done == 0)
|
||||
{
|
||||
__asm(" NOP");
|
||||
}
|
||||
ESTOP0;
|
||||
}
|
||||
|
||||
//
|
||||
// adca1_isr - This is called after the very first conversion and will disable
|
||||
// the ePWM SOC to avoid re-triggering problems.
|
||||
//
|
||||
#pragma CODE_SECTION(adca1_isr, ".TI.ramfunc");
|
||||
__interrupt void adca1_isr(void)
|
||||
{
|
||||
//
|
||||
// Remove ePWM trigger
|
||||
//
|
||||
EPwm2Regs.ETSEL.bit.SOCAEN = 0;
|
||||
|
||||
//
|
||||
// Disable this interrupt from happening again
|
||||
//
|
||||
PieCtrlRegs.PIEIER1.bit.INTx1 = 0;
|
||||
|
||||
//
|
||||
// Acknowledge
|
||||
//
|
||||
PieCtrlRegs.PIEACK.all = PIEACK_GROUP1;
|
||||
}
|
||||
|
||||
//
|
||||
// dmach1_isr - This is called at the end of the DMA transfer, the conversions
|
||||
// are stopped by removing the trigger of the first SOC from
|
||||
// the last.
|
||||
//
|
||||
#pragma CODE_SECTION(dmach1_isr, ".TI.ramfunc");
|
||||
__interrupt void dmach1_isr(void)
|
||||
{
|
||||
//
|
||||
// Stop the ADC by removing the trigger for SOC0
|
||||
//
|
||||
EALLOW;
|
||||
AdcaRegs.ADCINTSOCSEL1.bit.SOC0 = 0;
|
||||
AdcbRegs.ADCINTSOCSEL1.bit.SOC0 = 0;
|
||||
EDIS;
|
||||
|
||||
done = 1;
|
||||
|
||||
//
|
||||
// Acknowledge
|
||||
//
|
||||
PieCtrlRegs.PIEACK.all = PIEACK_GROUP7;
|
||||
}
|
||||
|
||||
|
||||
//
|
||||
// ConfigureEPWM - Set up the ePWM2 module so that the A output has a period
|
||||
// of 40us with a 50% duty. The SOCA signal is coincident with
|
||||
// the rising edge of this.
|
||||
//
|
||||
void ConfigureEPWM(void)
|
||||
{
|
||||
//
|
||||
// Make the timer count up with a period of 40us
|
||||
//
|
||||
EPwm2Regs.TBCTL.all = 0x0000;
|
||||
EPwm2Regs.TBPRD = 4000;
|
||||
|
||||
//
|
||||
// Set the A output on zero and reset on CMPA
|
||||
//
|
||||
EPwm2Regs.AQCTLA.bit.ZRO = AQ_SET;
|
||||
EPwm2Regs.AQCTLA.bit.CAU = AQ_CLEAR;
|
||||
|
||||
//
|
||||
// Set CMPA to 20us to get a 50% duty
|
||||
//
|
||||
EPwm2Regs.CMPA.bit.CMPA = 2000;
|
||||
|
||||
//
|
||||
// Start ADC when timer equals zero (note: don't enable yet)
|
||||
//
|
||||
EPwm2Regs.ETSEL.bit.SOCASEL = ET_CTR_ZERO;
|
||||
EPwm2Regs.ETPS.bit.SOCAPRD = ET_1ST;
|
||||
|
||||
//
|
||||
// Enable initialization of the SOCA event counter. Since we are
|
||||
// disabling the ETSEL.SOCAEN bit, we need a way to reset the SOCACNT.
|
||||
// Hence, enable the counter initialize control.
|
||||
//
|
||||
EPwm2Regs.ETCNTINITCTL.bit.SOCAINITEN = 1;
|
||||
}
|
||||
|
||||
//
|
||||
// ConfigureADC - Write ADC configurations and power up the ADC for both
|
||||
// ADC A and ADC B
|
||||
//
|
||||
void ConfigureADC(void)
|
||||
{
|
||||
EALLOW;
|
||||
|
||||
//
|
||||
// Write prescale configurations
|
||||
//
|
||||
AdcaRegs.ADCCTL2.bit.PRESCALE = 6; // Set ADCCLK divider to /4
|
||||
AdcbRegs.ADCCTL2.bit.PRESCALE = 6;
|
||||
|
||||
//
|
||||
// Set mode
|
||||
//
|
||||
AdcSetMode(ADC_ADCA, ADC_RESOLUTION_12BIT, ADC_SIGNALMODE_SINGLE);
|
||||
AdcSetMode(ADC_ADCB, ADC_RESOLUTION_12BIT, ADC_SIGNALMODE_SINGLE);
|
||||
|
||||
//
|
||||
// Set pulse positions to late
|
||||
//
|
||||
AdcaRegs.ADCCTL1.bit.INTPULSEPOS = 1;
|
||||
AdcbRegs.ADCCTL1.bit.INTPULSEPOS = 1;
|
||||
|
||||
//
|
||||
// Power up the ADC
|
||||
//
|
||||
AdcaRegs.ADCCTL1.bit.ADCPWDNZ = 1;
|
||||
AdcbRegs.ADCCTL1.bit.ADCPWDNZ = 1;
|
||||
|
||||
//
|
||||
// Delay for 1ms to allow ADCs time to power up
|
||||
//
|
||||
DELAY_US(1000);
|
||||
|
||||
EDIS;
|
||||
}
|
||||
|
||||
//
|
||||
// SetupADCContinuous - setup the ADC to continuously convert on one channel
|
||||
//
|
||||
void SetupADCContinuous(volatile struct ADC_REGS * adcRegs, Uint16 channel)
|
||||
{
|
||||
Uint16 acqps;
|
||||
|
||||
//
|
||||
// Determine minimum acquisition window (in SYSCLKS) based on resolution
|
||||
//
|
||||
if(ADC_RESOLUTION_12BIT == AdcaRegs.ADCCTL2.bit.RESOLUTION)
|
||||
{
|
||||
acqps = 14; // 75ns
|
||||
}
|
||||
else // Resolution is 16-bit
|
||||
{
|
||||
acqps = 63; // 320ns
|
||||
}
|
||||
|
||||
EALLOW;
|
||||
|
||||
//
|
||||
// SOCs will convert on same specified channel
|
||||
//
|
||||
adcRegs->ADCSOC0CTL.bit.CHSEL = channel;
|
||||
adcRegs->ADCSOC1CTL.bit.CHSEL = channel;
|
||||
adcRegs->ADCSOC2CTL.bit.CHSEL = channel;
|
||||
adcRegs->ADCSOC3CTL.bit.CHSEL = channel;
|
||||
adcRegs->ADCSOC4CTL.bit.CHSEL = channel;
|
||||
adcRegs->ADCSOC5CTL.bit.CHSEL = channel;
|
||||
adcRegs->ADCSOC6CTL.bit.CHSEL = channel;
|
||||
adcRegs->ADCSOC7CTL.bit.CHSEL = channel;
|
||||
adcRegs->ADCSOC8CTL.bit.CHSEL = channel;
|
||||
adcRegs->ADCSOC9CTL.bit.CHSEL = channel;
|
||||
adcRegs->ADCSOC10CTL.bit.CHSEL = channel;
|
||||
adcRegs->ADCSOC11CTL.bit.CHSEL = channel;
|
||||
adcRegs->ADCSOC12CTL.bit.CHSEL = channel;
|
||||
adcRegs->ADCSOC13CTL.bit.CHSEL = channel;
|
||||
adcRegs->ADCSOC14CTL.bit.CHSEL = channel;
|
||||
adcRegs->ADCSOC15CTL.bit.CHSEL = channel;
|
||||
|
||||
//
|
||||
// Sample window is acqps + 1 SYSCLK cycles
|
||||
//
|
||||
adcRegs->ADCSOC0CTL.bit.ACQPS = acqps;
|
||||
adcRegs->ADCSOC1CTL.bit.ACQPS = acqps;
|
||||
adcRegs->ADCSOC2CTL.bit.ACQPS = acqps;
|
||||
adcRegs->ADCSOC3CTL.bit.ACQPS = acqps;
|
||||
adcRegs->ADCSOC4CTL.bit.ACQPS = acqps;
|
||||
adcRegs->ADCSOC5CTL.bit.ACQPS = acqps;
|
||||
adcRegs->ADCSOC6CTL.bit.ACQPS = acqps;
|
||||
adcRegs->ADCSOC7CTL.bit.ACQPS = acqps;
|
||||
adcRegs->ADCSOC9CTL.bit.ACQPS = acqps;
|
||||
adcRegs->ADCSOC10CTL.bit.ACQPS = acqps;
|
||||
adcRegs->ADCSOC11CTL.bit.ACQPS = acqps;
|
||||
adcRegs->ADCSOC12CTL.bit.ACQPS = acqps;
|
||||
adcRegs->ADCSOC13CTL.bit.ACQPS = acqps;
|
||||
adcRegs->ADCSOC14CTL.bit.ACQPS = acqps;
|
||||
adcRegs->ADCSOC15CTL.bit.ACQPS = acqps;
|
||||
|
||||
//
|
||||
// Trigger SCO0 from EPWM2SOCA
|
||||
//
|
||||
adcRegs->ADCSOC0CTL.bit.TRIGSEL = 7;
|
||||
|
||||
//
|
||||
// Trigger all other SOCs from INT1 (EOC on SOC0)
|
||||
//
|
||||
adcRegs->ADCINTSOCSEL1.bit.SOC1 = 1;
|
||||
adcRegs->ADCINTSOCSEL1.bit.SOC2 = 1;
|
||||
adcRegs->ADCINTSOCSEL1.bit.SOC3 = 1;
|
||||
adcRegs->ADCINTSOCSEL1.bit.SOC4 = 1;
|
||||
adcRegs->ADCINTSOCSEL1.bit.SOC5 = 1;
|
||||
adcRegs->ADCINTSOCSEL1.bit.SOC6 = 1;
|
||||
adcRegs->ADCINTSOCSEL1.bit.SOC7 = 1;
|
||||
adcRegs->ADCINTSOCSEL2.bit.SOC8 = 1;
|
||||
adcRegs->ADCINTSOCSEL2.bit.SOC9 = 1;
|
||||
adcRegs->ADCINTSOCSEL2.bit.SOC10 = 1;
|
||||
adcRegs->ADCINTSOCSEL2.bit.SOC11 = 1;
|
||||
adcRegs->ADCINTSOCSEL2.bit.SOC12 = 1;
|
||||
adcRegs->ADCINTSOCSEL2.bit.SOC13 = 1;
|
||||
adcRegs->ADCINTSOCSEL2.bit.SOC14 = 1;
|
||||
adcRegs->ADCINTSOCSEL2.bit.SOC15 = 1;
|
||||
|
||||
adcRegs->ADCINTSEL1N2.bit.INT1E = 1; // Enable INT1 flag
|
||||
adcRegs->ADCINTSEL1N2.bit.INT2E = 1; // Enable INT2 flag
|
||||
adcRegs->ADCINTSEL3N4.bit.INT3E = 0; // Disable INT3 flag
|
||||
adcRegs->ADCINTSEL3N4.bit.INT4E = 0; // Disable INT4 flag
|
||||
|
||||
adcRegs->ADCINTSEL1N2.bit.INT1CONT = 1;
|
||||
adcRegs->ADCINTSEL1N2.bit.INT2CONT = 1;
|
||||
|
||||
adcRegs->ADCINTSEL1N2.bit.INT1SEL = 0; // End of SOC0
|
||||
adcRegs->ADCINTSEL1N2.bit.INT2SEL = 15; // End of SOC15
|
||||
|
||||
EDIS;
|
||||
}
|
||||
|
||||
//
|
||||
// DMAInit - Initialize DMA ch 1 to transfer ADCA results and DMA ch 2 to
|
||||
// transfer ADCB results
|
||||
//
|
||||
void DMAInit(void)
|
||||
{
|
||||
//
|
||||
// Initialize DMA
|
||||
//
|
||||
DMAInitialize();
|
||||
|
||||
//
|
||||
// DMA set up for first ADC
|
||||
//
|
||||
DMACH1AddrConfig(adcData0, &AdcaResultRegs.ADCRESULT0);
|
||||
|
||||
//
|
||||
// Perform enough 16-word bursts to fill the results buffer. Data will be
|
||||
// transferred 32 bits at a time hence the address steps below.
|
||||
//
|
||||
// Enable the DMA channel 1 interrupt
|
||||
//
|
||||
DMACH1BurstConfig(15, 2, 2);
|
||||
DMACH1TransferConfig((RESULTS_BUFFER_SIZE >> 4) - 1, -14, 2);
|
||||
DMACH1ModeConfig(
|
||||
DMA_ADCAINT2,
|
||||
PERINT_ENABLE,
|
||||
ONESHOT_DISABLE,
|
||||
CONT_DISABLE,
|
||||
SYNC_DISABLE,
|
||||
SYNC_SRC,
|
||||
OVRFLOW_DISABLE,
|
||||
THIRTYTWO_BIT,
|
||||
CHINT_END,
|
||||
CHINT_ENABLE
|
||||
);
|
||||
|
||||
//
|
||||
// DMA set up for second ADC
|
||||
//
|
||||
DMACH2AddrConfig(adcData1, &AdcbResultRegs.ADCRESULT0);
|
||||
|
||||
//
|
||||
// Perform enough 16-word bursts to fill the results buffer. Data will be
|
||||
// transferred 32 bits at a time hence the address steps below.
|
||||
//
|
||||
DMACH2BurstConfig(15, 2, 2);
|
||||
DMACH2TransferConfig((RESULTS_BUFFER_SIZE >> 4) - 1, -14, 2);
|
||||
DMACH2ModeConfig(
|
||||
DMA_ADCAINT2,
|
||||
PERINT_ENABLE,
|
||||
ONESHOT_DISABLE,
|
||||
CONT_DISABLE,
|
||||
SYNC_DISABLE,
|
||||
SYNC_SRC,
|
||||
OVRFLOW_DISABLE,
|
||||
THIRTYTWO_BIT,
|
||||
CHINT_END,
|
||||
CHINT_DISABLE
|
||||
);
|
||||
}
|
||||
|
||||
//
|
||||
// End of file
|
||||
//
|
||||
+12
@@ -0,0 +1,12 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<?ccsproject version="1.0"?>
|
||||
<projectOptions>
|
||||
<deviceVariant value="com.ti.ccstudio.deviceModel.C2000.GenericC28xxDevice"/>
|
||||
<deviceFamily value="C2000"/>
|
||||
<codegenToolVersion value="6.3.0.A13150"/>
|
||||
<isElfFormat value="false"/>
|
||||
<connection value=""/>
|
||||
<rts value="libc.a"/>
|
||||
<templateProperties value="id=com.ti.common.project.core.emptyProjectTemplate,"/>
|
||||
<isTargetManual value="false"/>
|
||||
</projectOptions>
|
||||
+197
@@ -0,0 +1,197 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<?fileVersion 4.0.0?><cproject storage_type_id="org.eclipse.cdt.core.XmlProjectDescriptionStorage">
|
||||
<storageModule configRelations="2" moduleId="org.eclipse.cdt.core.settings">
|
||||
<cconfiguration id="com.ti.ccstudio.buildDefinitions.C2000.Debug.2121059750">
|
||||
<storageModule buildSystemId="org.eclipse.cdt.managedbuilder.core.configurationDataProvider" id="com.ti.ccstudio.buildDefinitions.C2000.Debug.2121059750" moduleId="org.eclipse.cdt.core.settings" name="CPU1_RAM">
|
||||
<macros>
|
||||
<stringMacro name="INSTALLROOT_F2837XD" type="VALUE_PATH_DIR" value="${PROJECT_ROOT}/../../../../.."/>
|
||||
</macros>
|
||||
<externalSettings/>
|
||||
<extensions>
|
||||
<extension id="com.ti.ccstudio.errorparser.CoffErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
|
||||
<extension id="com.ti.ccstudio.errorparser.LinkErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
|
||||
<extension id="com.ti.ccstudio.errorparser.AsmErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
|
||||
<extension id="org.eclipse.cdt.core.GmakeErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
|
||||
<extension id="com.ti.ccstudio.binaryparser.CoffParser" point="org.eclipse.cdt.core.BinaryParser"/>
|
||||
</extensions>
|
||||
</storageModule>
|
||||
<storageModule moduleId="cdtBuildSystem" version="4.0.0">
|
||||
<configuration artifactExtension="out" artifactName="${ProjName}" buildProperties="" cleanCommand="${CG_CLEAN_CMD}" description="RAM Build Configuration w/Debugger Support for CPU1" id="com.ti.ccstudio.buildDefinitions.C2000.Debug.2121059750" name="CPU1_RAM" parent="com.ti.ccstudio.buildDefinitions.C2000.Debug">
|
||||
<folderInfo id="com.ti.ccstudio.buildDefinitions.C2000.Debug.2121059750." name="/" resourcePath="">
|
||||
<toolChain id="com.ti.ccstudio.buildDefinitions.C2000_15.12.exe.DebugToolchain.1764265206" name="TI Build Tools" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.exe.DebugToolchain" targetTool="com.ti.ccstudio.buildDefinitions.C2000_15.12.exe.linkerDebug.209139873">
|
||||
<option id="com.ti.ccstudio.buildDefinitions.core.OPT_TAGS.1000242668" superClass="com.ti.ccstudio.buildDefinitions.core.OPT_TAGS" valueType="stringList">
|
||||
<listOptionValue builtIn="false" value="DEVICE_CONFIGURATION_ID=com.ti.ccstudio.deviceModel.C2000.GenericC28xxDevice"/>
|
||||
<listOptionValue builtIn="false" value="DEVICE_ENDIANNESS=little"/>
|
||||
<listOptionValue builtIn="false" value="OUTPUT_FORMAT=COFF"/>
|
||||
<listOptionValue builtIn="false" value="CCS_MBS_VERSION=6.1.3"/>
|
||||
<listOptionValue builtIn="false" value="RUNTIME_SUPPORT_LIBRARY=libc.a"/>
|
||||
<listOptionValue builtIn="false" value="OUTPUT_TYPE=executable"/>
|
||||
</option>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.core.OPT_CODEGEN_VERSION.1900504569" name="Compiler version" superClass="com.ti.ccstudio.buildDefinitions.core.OPT_CODEGEN_VERSION" value="15.12.1.LTS" valueType="string"/>
|
||||
<targetPlatform id="com.ti.ccstudio.buildDefinitions.C2000_15.12.exe.targetPlatformDebug.403123223" name="Platform" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.exe.targetPlatformDebug"/>
|
||||
<builder buildPath="${BuildDirectory}" id="com.ti.ccstudio.buildDefinitions.C2000_15.12.exe.builderDebug.1116390094" keepEnvironmentInBuildfile="false" name="GNU Make" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.exe.builderDebug"/>
|
||||
<tool id="com.ti.ccstudio.buildDefinitions.C2000_15.12.exe.compilerDebug.2130354690" name="C2000 Compiler" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.exe.compilerDebug">
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.SILICON_VERSION.222287645" name="Processor version (--silicon_version, -v)" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.SILICON_VERSION" value="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.SILICON_VERSION.28" valueType="enumerated"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.LARGE_MEMORY_MODEL.941039687" name="Option deprecated, set by default (--large_memory_model, -ml)" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.LARGE_MEMORY_MODEL" value="true" valueType="boolean"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.UNIFIED_MEMORY.610139697" name="Unified memory (--unified_memory, -mt)" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.UNIFIED_MEMORY" value="true" valueType="boolean"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.CLA_SUPPORT.137452837" name="Specify CLA support (--cla_support)" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.CLA_SUPPORT" value="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.CLA_SUPPORT.cla1" valueType="enumerated"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.FLOAT_SUPPORT.313027692" name="Specify floating point support (--float_support)" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.FLOAT_SUPPORT" value="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.FLOAT_SUPPORT.fpu32" valueType="enumerated"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.TMU_SUPPORT.1131496084" name="Specify TMU support (--tmu_support)" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.TMU_SUPPORT" value="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.TMU_SUPPORT.tmu0" valueType="enumerated"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.VCU_SUPPORT.2025529873" name="Specify VCU support (--vcu_support)" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.VCU_SUPPORT" value="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.VCU_SUPPORT.vcu2" valueType="enumerated"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.INCLUDE_PATH.1881232447" name="Add dir to #include search path (--include_path, -I)" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.INCLUDE_PATH" valueType="includePath">
|
||||
<listOptionValue builtIn="false" value=""${CG_TOOL_ROOT}/include""/>
|
||||
<listOptionValue builtIn="false" value=""${INSTALLROOT_F2837XD}/headers/include""/>
|
||||
<listOptionValue builtIn="false" value=""${INSTALLROOT_F2837XD}/common/include""/>
|
||||
</option>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.DEBUGGING_MODEL.313533304" name="Debugging model" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.DEBUGGING_MODEL" value="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.DEBUGGING_MODEL.SYMDEBUG__DWARF" valueType="enumerated"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.DEFINE.816031680" name="Pre-define NAME (--define, -D)" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.DEFINE" valueType="definedSymbols">
|
||||
<listOptionValue builtIn="false" value="CPU1"/>
|
||||
</option>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.DIAG_WARNING.1768978238" name="Treat diagnostic <id> as warning (--diag_warning, -pdsw)" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.DIAG_WARNING" valueType="stringList">
|
||||
<listOptionValue builtIn="false" value="225"/>
|
||||
</option>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.DISPLAY_ERROR_NUMBER.1607927470" name="Emit diagnostic identifier numbers (--display_error_number, -pden)" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.DISPLAY_ERROR_NUMBER" value="true" valueType="boolean"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.DIAG_SUPPRESS.711020639" name="Suppress diagnostic <id> (--diag_suppress, -pds)" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.DIAG_SUPPRESS" valueType="stringList">
|
||||
<listOptionValue builtIn="false" value="1311"/>
|
||||
</option>
|
||||
<inputType id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compiler.inputType__C_SRCS.355093095" name="C Sources" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compiler.inputType__C_SRCS"/>
|
||||
<inputType id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compiler.inputType__CPP_SRCS.1712902671" name="C++ Sources" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compiler.inputType__CPP_SRCS"/>
|
||||
<inputType id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compiler.inputType__ASM_SRCS.1592598383" name="Assembly Sources" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compiler.inputType__ASM_SRCS"/>
|
||||
<inputType id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compiler.inputType__ASM2_SRCS.426463782" name="Assembly Sources" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compiler.inputType__ASM2_SRCS"/>
|
||||
</tool>
|
||||
<tool id="com.ti.ccstudio.buildDefinitions.C2000_15.12.exe.linkerDebug.209139873" name="C2000 Linker" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.exe.linkerDebug">
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.OUTPUT_FILE.1397560466" name="Specify output file name (--output_file, -o)" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.OUTPUT_FILE" value=""${ProjName}.out"" valueType="string"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.MAP_FILE.1854078177" name="Link information (map) listed into <file> (--map_file, -m)" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.MAP_FILE" value=""${ProjName}.map"" valueType="string"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.STACK_SIZE.1543815842" name="Set C system stack size (--stack_size, -stack)" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.STACK_SIZE" value="0x100" valueType="string"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.LIBRARY.137101201" name="Include library file or command file as input (--library, -l)" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.LIBRARY" valueType="libs">
|
||||
<listOptionValue builtIn="false" value=""rts2800_fpu32.lib""/>
|
||||
<listOptionValue builtIn="false" value=""2837xD_RAM_lnk_cpu1.cmd""/>
|
||||
<listOptionValue builtIn="false" value=""F2837xD_Headers_nonBIOS_cpu1.cmd""/>
|
||||
<listOptionValue builtIn="false" value=""libc.a""/>
|
||||
</option>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.SEARCH_PATH.508377242" name="Add <dir> to library search path (--search_path, -i)" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.SEARCH_PATH" valueType="libPaths">
|
||||
<listOptionValue builtIn="false" value=""${CG_TOOL_ROOT}/lib""/>
|
||||
<listOptionValue builtIn="false" value=""${CG_TOOL_ROOT}/include""/>
|
||||
<listOptionValue builtIn="false" value=""${INSTALLROOT_F2837XD}/common/cmd""/>
|
||||
<listOptionValue builtIn="false" value=""${INSTALLROOT_F2837XD}/headers/cmd""/>
|
||||
</option>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.DISPLAY_ERROR_NUMBER.170926000" name="Emit diagnostic identifier numbers (--display_error_number)" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.DISPLAY_ERROR_NUMBER" value="true" valueType="boolean"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.XML_LINK_INFO.764171776" name="Detailed link information data-base into <file> (--xml_link_info, -xml_link_info)" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.XML_LINK_INFO" value=""${ProjName}_linkInfo.xml"" valueType="string"/>
|
||||
<inputType id="com.ti.ccstudio.buildDefinitions.C2000_15.12.exeLinker.inputType__CMD_SRCS.4108620" name="Linker Command Files" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.exeLinker.inputType__CMD_SRCS"/>
|
||||
<inputType id="com.ti.ccstudio.buildDefinitions.C2000_15.12.exeLinker.inputType__CMD2_SRCS.1661357083" name="Linker Command Files" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.exeLinker.inputType__CMD2_SRCS"/>
|
||||
<inputType id="com.ti.ccstudio.buildDefinitions.C2000_15.12.exeLinker.inputType__GEN_CMDS.415568767" name="Generated Linker Command Files" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.exeLinker.inputType__GEN_CMDS"/>
|
||||
</tool>
|
||||
</toolChain>
|
||||
</folderInfo>
|
||||
<sourceEntries>
|
||||
<entry flags="VALUE_WORKSPACE_PATH|RESOLVED" kind="sourcePath" name=""/>
|
||||
</sourceEntries>
|
||||
</configuration>
|
||||
</storageModule>
|
||||
<storageModule moduleId="org.eclipse.cdt.core.externalSettings"/>
|
||||
</cconfiguration>
|
||||
<cconfiguration id="com.ti.ccstudio.buildDefinitions.C2000.Debug.2121059750.89498793">
|
||||
<storageModule buildSystemId="org.eclipse.cdt.managedbuilder.core.configurationDataProvider" id="com.ti.ccstudio.buildDefinitions.C2000.Debug.2121059750.89498793" moduleId="org.eclipse.cdt.core.settings" name="CPU1_FLASH">
|
||||
<macros>
|
||||
<stringMacro name="INSTALLROOT_F2837XD" type="VALUE_PATH_DIR" value="${PROJECT_ROOT}/../../../../.."/>
|
||||
</macros>
|
||||
<externalSettings/>
|
||||
<extensions>
|
||||
<extension id="com.ti.ccstudio.errorparser.CoffErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
|
||||
<extension id="com.ti.ccstudio.errorparser.LinkErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
|
||||
<extension id="com.ti.ccstudio.errorparser.AsmErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
|
||||
<extension id="org.eclipse.cdt.core.GmakeErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
|
||||
<extension id="com.ti.ccstudio.binaryparser.CoffParser" point="org.eclipse.cdt.core.BinaryParser"/>
|
||||
</extensions>
|
||||
</storageModule>
|
||||
<storageModule moduleId="cdtBuildSystem" version="4.0.0">
|
||||
<configuration artifactExtension="out" artifactName="${ProjName}" buildProperties="" cleanCommand="${CG_CLEAN_CMD}" description="Flash Build Configuration w/Debugger Support for CPU1" id="com.ti.ccstudio.buildDefinitions.C2000.Debug.2121059750.89498793" name="CPU1_FLASH" parent="com.ti.ccstudio.buildDefinitions.C2000.Debug">
|
||||
<folderInfo id="com.ti.ccstudio.buildDefinitions.C2000.Debug.2121059750.89498793." name="/" resourcePath="">
|
||||
<toolChain id="com.ti.ccstudio.buildDefinitions.C2000_15.12.exe.DebugToolchain.787452043" name="TI Build Tools" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.exe.DebugToolchain" targetTool="com.ti.ccstudio.buildDefinitions.C2000_15.12.exe.linkerDebug.148939393">
|
||||
<option id="com.ti.ccstudio.buildDefinitions.core.OPT_TAGS.1037374823" superClass="com.ti.ccstudio.buildDefinitions.core.OPT_TAGS" valueType="stringList">
|
||||
<listOptionValue builtIn="false" value="DEVICE_CONFIGURATION_ID=com.ti.ccstudio.deviceModel.C2000.GenericC28xxDevice"/>
|
||||
<listOptionValue builtIn="false" value="DEVICE_ENDIANNESS=little"/>
|
||||
<listOptionValue builtIn="false" value="OUTPUT_FORMAT=COFF"/>
|
||||
<listOptionValue builtIn="false" value="CCS_MBS_VERSION=6.1.3"/>
|
||||
<listOptionValue builtIn="false" value="RUNTIME_SUPPORT_LIBRARY=libc.a"/>
|
||||
<listOptionValue builtIn="false" value="OUTPUT_TYPE=executable"/>
|
||||
</option>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.core.OPT_CODEGEN_VERSION.1532841525" superClass="com.ti.ccstudio.buildDefinitions.core.OPT_CODEGEN_VERSION" value="15.12.1.LTS" valueType="string"/>
|
||||
<targetPlatform id="com.ti.ccstudio.buildDefinitions.C2000_15.12.exe.targetPlatformDebug.1626786802" name="Platform" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.exe.targetPlatformDebug"/>
|
||||
<builder buildPath="${BuildDirectory}" id="com.ti.ccstudio.buildDefinitions.C2000_15.12.exe.builderDebug.119462248" name="GNU Make.CPU1_FLASH" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.exe.builderDebug"/>
|
||||
<tool id="com.ti.ccstudio.buildDefinitions.C2000_15.12.exe.compilerDebug.1170140744" name="C2000 Compiler" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.exe.compilerDebug">
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.SILICON_VERSION.707226131" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.SILICON_VERSION" value="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.SILICON_VERSION.28" valueType="enumerated"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.LARGE_MEMORY_MODEL.183499577" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.LARGE_MEMORY_MODEL" value="true" valueType="boolean"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.UNIFIED_MEMORY.581199430" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.UNIFIED_MEMORY" value="true" valueType="boolean"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.CLA_SUPPORT.396214592" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.CLA_SUPPORT" value="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.CLA_SUPPORT.cla1" valueType="enumerated"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.FLOAT_SUPPORT.296383966" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.FLOAT_SUPPORT" value="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.FLOAT_SUPPORT.fpu32" valueType="enumerated"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.TMU_SUPPORT.246418219" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.TMU_SUPPORT" value="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.TMU_SUPPORT.tmu0" valueType="enumerated"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.VCU_SUPPORT.150263646" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.VCU_SUPPORT" value="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.VCU_SUPPORT.vcu2" valueType="enumerated"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.INCLUDE_PATH.1833457179" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.INCLUDE_PATH" valueType="includePath">
|
||||
<listOptionValue builtIn="false" value=""${CG_TOOL_ROOT}/include""/>
|
||||
<listOptionValue builtIn="false" value=""${INSTALLROOT_F2837XD}/headers/include""/>
|
||||
<listOptionValue builtIn="false" value=""${INSTALLROOT_F2837XD}/common/include""/>
|
||||
</option>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.DEBUGGING_MODEL.1557021009" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.DEBUGGING_MODEL" value="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.DEBUGGING_MODEL.SYMDEBUG__DWARF" valueType="enumerated"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.DEFINE.1601229823" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.DEFINE" valueType="definedSymbols">
|
||||
<listOptionValue builtIn="false" value="CPU1"/>
|
||||
<listOptionValue builtIn="false" value="_FLASH"/>
|
||||
</option>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.DIAG_WARNING.1039567521" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.DIAG_WARNING" valueType="stringList">
|
||||
<listOptionValue builtIn="false" value="225"/>
|
||||
</option>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.DISPLAY_ERROR_NUMBER.173534662" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.DISPLAY_ERROR_NUMBER" value="true" valueType="boolean"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.DIAG_SUPPRESS.1383008168" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.DIAG_SUPPRESS" valueType="stringList">
|
||||
<listOptionValue builtIn="false" value="1311"/>
|
||||
</option>
|
||||
<inputType id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compiler.inputType__C_SRCS.2003589484" name="C Sources" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compiler.inputType__C_SRCS"/>
|
||||
<inputType id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compiler.inputType__CPP_SRCS.1314964669" name="C++ Sources" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compiler.inputType__CPP_SRCS"/>
|
||||
<inputType id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compiler.inputType__ASM_SRCS.879952695" name="Assembly Sources" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compiler.inputType__ASM_SRCS"/>
|
||||
<inputType id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compiler.inputType__ASM2_SRCS.2010017530" name="Assembly Sources" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compiler.inputType__ASM2_SRCS"/>
|
||||
</tool>
|
||||
<tool id="com.ti.ccstudio.buildDefinitions.C2000_15.12.exe.linkerDebug.148939393" name="C2000 Linker" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.exe.linkerDebug">
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.OUTPUT_FILE.1078838215" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.OUTPUT_FILE" value=""${ProjName}.out"" valueType="string"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.MAP_FILE.1509685109" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.MAP_FILE" value=""${ProjName}.map"" valueType="string"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.STACK_SIZE.1798429709" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.STACK_SIZE" value="0x100" valueType="string"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.LIBRARY.863336779" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.LIBRARY" valueType="libs">
|
||||
<listOptionValue builtIn="false" value=""rts2800_fpu32.lib""/>
|
||||
<listOptionValue builtIn="false" value=""2837xD_FLASH_lnk_cpu1.cmd""/>
|
||||
<listOptionValue builtIn="false" value=""F2837xD_Headers_nonBIOS_cpu1.cmd""/>
|
||||
<listOptionValue builtIn="false" value=""libc.a""/>
|
||||
</option>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.SEARCH_PATH.1961911736" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.SEARCH_PATH" valueType="libPaths">
|
||||
<listOptionValue builtIn="false" value=""${CG_TOOL_ROOT}/lib""/>
|
||||
<listOptionValue builtIn="false" value=""${CG_TOOL_ROOT}/include""/>
|
||||
<listOptionValue builtIn="false" value=""${INSTALLROOT_F2837XD}/common/cmd""/>
|
||||
<listOptionValue builtIn="false" value=""${INSTALLROOT_F2837XD}/headers/cmd""/>
|
||||
</option>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.DISPLAY_ERROR_NUMBER.149063070" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.DISPLAY_ERROR_NUMBER" value="true" valueType="boolean"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.XML_LINK_INFO.2114654677" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.XML_LINK_INFO" value=""${ProjName}_linkInfo.xml"" valueType="string"/>
|
||||
<inputType id="com.ti.ccstudio.buildDefinitions.C2000_15.12.exeLinker.inputType__CMD_SRCS.1659991256" name="Linker Command Files" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.exeLinker.inputType__CMD_SRCS"/>
|
||||
<inputType id="com.ti.ccstudio.buildDefinitions.C2000_15.12.exeLinker.inputType__CMD2_SRCS.1128415034" name="Linker Command Files" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.exeLinker.inputType__CMD2_SRCS"/>
|
||||
<inputType id="com.ti.ccstudio.buildDefinitions.C2000_15.12.exeLinker.inputType__GEN_CMDS.1570829747" name="Generated Linker Command Files" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.exeLinker.inputType__GEN_CMDS"/>
|
||||
</tool>
|
||||
</toolChain>
|
||||
</folderInfo>
|
||||
</configuration>
|
||||
</storageModule>
|
||||
<storageModule moduleId="org.eclipse.cdt.core.externalSettings"/>
|
||||
</cconfiguration>
|
||||
</storageModule>
|
||||
<storageModule moduleId="org.eclipse.cdt.core.LanguageSettingsProviders"/>
|
||||
<storageModule moduleId="cdtBuildSystem" version="4.0.0">
|
||||
<project id="adc_soc_continuous_dma_dc_cpu01.com.ti.ccstudio.buildDefinitions.C2000.ProjectType.253935156" name="C2000" projectType="com.ti.ccstudio.buildDefinitions.C2000.ProjectType"/>
|
||||
</storageModule>
|
||||
<storageModule moduleId="scannerConfiguration"/>
|
||||
<storageModule moduleId="org.eclipse.cdt.core.language.mapping">
|
||||
<project-mappings>
|
||||
<content-type-mapping configuration="" content-type="org.eclipse.cdt.core.asmSource" language="com.ti.ccstudio.core.TIASMLanguage"/>
|
||||
<content-type-mapping configuration="" content-type="org.eclipse.cdt.core.cHeader" language="com.ti.ccstudio.core.TIGCCLanguage"/>
|
||||
<content-type-mapping configuration="" content-type="org.eclipse.cdt.core.cSource" language="com.ti.ccstudio.core.TIGCCLanguage"/>
|
||||
<content-type-mapping configuration="" content-type="org.eclipse.cdt.core.cxxHeader" language="com.ti.ccstudio.core.TIGPPLanguage"/>
|
||||
<content-type-mapping configuration="" content-type="org.eclipse.cdt.core.cxxSource" language="com.ti.ccstudio.core.TIGPPLanguage"/>
|
||||
</project-mappings>
|
||||
</storageModule>
|
||||
<storageModule moduleId="null.endianPreference"/>
|
||||
<storageModule moduleId="cpuFamily"/>
|
||||
</cproject>
|
||||
+95
@@ -0,0 +1,95 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<projectDescription>
|
||||
<name>adc_soc_continuous_dma_cpu01</name>
|
||||
<comment></comment>
|
||||
<projects>
|
||||
</projects>
|
||||
<buildSpec>
|
||||
<buildCommand>
|
||||
<name>org.eclipse.cdt.managedbuilder.core.genmakebuilder</name>
|
||||
<arguments>
|
||||
</arguments>
|
||||
</buildCommand>
|
||||
<buildCommand>
|
||||
<name>org.eclipse.cdt.managedbuilder.core.ScannerConfigBuilder</name>
|
||||
<triggers>full,incremental,</triggers>
|
||||
<arguments>
|
||||
</arguments>
|
||||
</buildCommand>
|
||||
</buildSpec>
|
||||
<natures>
|
||||
<nature>com.ti.ccstudio.core.ccsNature</nature>
|
||||
<nature>org.eclipse.cdt.core.cnature</nature>
|
||||
<nature>org.eclipse.cdt.managedbuilder.core.managedBuildNature</nature>
|
||||
<nature>org.eclipse.cdt.core.ccnature</nature>
|
||||
<nature>org.eclipse.cdt.managedbuilder.core.ScannerConfigNature</nature>
|
||||
</natures>
|
||||
<linkedResources>
|
||||
<link>
|
||||
<name>F2837xD_Adc.c</name>
|
||||
<type>1</type>
|
||||
<locationURI>PARENT-5-PROJECT_LOC/common/source/F2837xD_Adc.c</locationURI>
|
||||
</link>
|
||||
<link>
|
||||
<name>F2837xD_CodeStartBranch.asm</name>
|
||||
<type>1</type>
|
||||
<locationURI>PARENT-5-PROJECT_LOC/common/source/F2837xD_CodeStartBranch.asm</locationURI>
|
||||
</link>
|
||||
<link>
|
||||
<name>F2837xD_DefaultISR.c</name>
|
||||
<type>1</type>
|
||||
<locationURI>PARENT-5-PROJECT_LOC/common/source/F2837xD_DefaultISR.c</locationURI>
|
||||
</link>
|
||||
<link>
|
||||
<name>F2837xD_Dma.c</name>
|
||||
<type>1</type>
|
||||
<locationURI>PARENT-5-PROJECT_LOC/common/source/F2837xD_Dma.c</locationURI>
|
||||
</link>
|
||||
<link>
|
||||
<name>F2837xD_GlobalVariableDefs.c</name>
|
||||
<type>1</type>
|
||||
<locationURI>PARENT-5-PROJECT_LOC/headers/source/F2837xD_GlobalVariableDefs.c</locationURI>
|
||||
</link>
|
||||
<link>
|
||||
<name>F2837xD_Gpio.c</name>
|
||||
<type>1</type>
|
||||
<locationURI>PARENT-5-PROJECT_LOC/common/source/F2837xD_Gpio.c</locationURI>
|
||||
</link>
|
||||
<link>
|
||||
<name>F2837xD_Ipc.c</name>
|
||||
<type>1</type>
|
||||
<locationURI>PARENT-5-PROJECT_LOC/common/source/F2837xD_Ipc.c</locationURI>
|
||||
</link>
|
||||
<link>
|
||||
<name>F2837xD_PieCtrl.c</name>
|
||||
<type>1</type>
|
||||
<locationURI>PARENT-5-PROJECT_LOC/common/source/F2837xD_PieCtrl.c</locationURI>
|
||||
</link>
|
||||
<link>
|
||||
<name>F2837xD_PieVect.c</name>
|
||||
<type>1</type>
|
||||
<locationURI>PARENT-5-PROJECT_LOC/common/source/F2837xD_PieVect.c</locationURI>
|
||||
</link>
|
||||
<link>
|
||||
<name>F2837xD_SysCtrl.c</name>
|
||||
<type>1</type>
|
||||
<locationURI>PARENT-5-PROJECT_LOC/common/source/F2837xD_SysCtrl.c</locationURI>
|
||||
</link>
|
||||
<link>
|
||||
<name>F2837xD_usDelay.asm</name>
|
||||
<type>1</type>
|
||||
<locationURI>PARENT-5-PROJECT_LOC/common/source/F2837xD_usDelay.asm</locationURI>
|
||||
</link>
|
||||
<link>
|
||||
<name>adc_soc_continuous_dma_cpu01.c</name>
|
||||
<type>1</type>
|
||||
<locationURI>PARENT-1-PROJECT_LOC/adc_soc_continuous_dma_cpu01.c</locationURI>
|
||||
</link>
|
||||
</linkedResources>
|
||||
<variableList>
|
||||
<variable>
|
||||
<name>INSTALLROOT_F2837XD</name>
|
||||
<value>$%7BPARENT-4-PROJECT_LOC%7D</value>
|
||||
</variable>
|
||||
</variableList>
|
||||
</projectDescription>
|
||||
+22
@@ -0,0 +1,22 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<configurations XML_version="1.2" id="configurations_0">
|
||||
<configuration XML_version="1.2" id="Texas Instruments XDS100v2 USB Debug Probe_0">
|
||||
<instance XML_version="1.2" desc="Texas Instruments XDS100v2 USB Debug Probe_0" href="connections/TIXDS100v2_Connection.xml" id="Texas Instruments XDS100v2 USB Debug Probe_0" xml="TIXDS100v2_Connection.xml" xmlpath="connections"/>
|
||||
<connection XML_version="1.2" id="Texas Instruments XDS100v2 USB Debug Probe_0">
|
||||
<instance XML_version="1.2" href="drivers/tixds100v2icepick_c.xml" id="drivers" xml="tixds100v2icepick_c.xml" xmlpath="drivers"/>
|
||||
<instance XML_version="1.2" href="drivers/tixds100v2c28x.xml" id="drivers" xml="tixds100v2c28x.xml" xmlpath="drivers"/>
|
||||
<instance XML_version="1.2" href="drivers/tixds100v2cla1.xml" id="drivers" xml="tixds100v2cla1.xml" xmlpath="drivers"/>
|
||||
<instance XML_version="1.2" href="drivers/tixds100v2cs_child.xml" id="drivers" xml="tixds100v2cs_child.xml" xmlpath="drivers"/>
|
||||
<platform XML_version="1.2" id="platform_0">
|
||||
<instance XML_version="1.2" desc="TMS320F28377D_0" href="devices/tms320f28377d.xml" id="TMS320F28377D_0" xml="tms320f28377d.xml" xmlpath="devices"/>
|
||||
<device HW_revision="1" XML_version="1.2" description="" id="TMS320F28377D_0" partnum="TMS320F28377D">
|
||||
<router HW_revision="1.0" XML_version="1.2" description="ICEPick_C router" id="IcePick_C_0" isa="ICEPICK_C">
|
||||
<subpath id="Subpath_1">
|
||||
<property Type="numericfield" Value="0x11" desc="Port Number_0" id="Port Number"/>
|
||||
</subpath>
|
||||
</router>
|
||||
</device>
|
||||
</platform>
|
||||
</connection>
|
||||
</configuration>
|
||||
</configurations>
|
||||
+319
@@ -0,0 +1,319 @@
|
||||
//###########################################################################
|
||||
//
|
||||
// FILE: adc_soc_epwm_cpu01.c
|
||||
//
|
||||
// TITLE: ADC triggering via epwm for F2837xD.
|
||||
//
|
||||
//! \addtogroup cpu01_example_list
|
||||
//! <h1> ADC ePWM Triggering (adc_soc_epwm)</h1>
|
||||
//!
|
||||
//! This example sets up the ePWM to periodically trigger the ADC.
|
||||
//!
|
||||
//! After the program runs, the memory will contain:\n
|
||||
//! - \b AdcaResults \b: A sequence of analog-to-digital conversion samples from
|
||||
//! pin A0. The time between samples is determined based on the period
|
||||
//! of the ePWM timer.
|
||||
//
|
||||
//###########################################################################
|
||||
//
|
||||
// $Release Date: $
|
||||
// $Copyright:
|
||||
// Copyright (C) 2013-2024 Texas Instruments Incorporated - http://www.ti.com/
|
||||
//
|
||||
// Redistribution and use in source and binary forms, with or without
|
||||
// modification, are permitted provided that the following conditions
|
||||
// are met:
|
||||
//
|
||||
// Redistributions of source code must retain the above copyright
|
||||
// notice, this list of conditions and the following disclaimer.
|
||||
//
|
||||
// Redistributions in binary form must reproduce the above copyright
|
||||
// notice, this list of conditions and the following disclaimer in the
|
||||
// documentation and/or other materials provided with the
|
||||
// distribution.
|
||||
//
|
||||
// Neither the name of Texas Instruments Incorporated nor the names of
|
||||
// its contributors may be used to endorse or promote products derived
|
||||
// from this software without specific prior written permission.
|
||||
//
|
||||
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||
// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||
// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
||||
// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
||||
// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||
// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||
// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
||||
// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
||||
// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
// $
|
||||
//###########################################################################
|
||||
|
||||
//
|
||||
// Included Files
|
||||
//
|
||||
#include "F28x_Project.h"
|
||||
|
||||
//
|
||||
// Function Prototypes
|
||||
//
|
||||
void ConfigureADC(void);
|
||||
void ConfigureEPWM(void);
|
||||
void SetupADCEpwm(Uint16 channel);
|
||||
interrupt void adca1_isr(void);
|
||||
|
||||
//
|
||||
// Defines
|
||||
//
|
||||
#define RESULTS_BUFFER_SIZE 256
|
||||
|
||||
//
|
||||
// Globals
|
||||
//
|
||||
Uint16 AdcaResults[RESULTS_BUFFER_SIZE];
|
||||
Uint16 resultsIndex;
|
||||
volatile Uint16 bufferFull;
|
||||
|
||||
void main(void)
|
||||
{
|
||||
//
|
||||
// Step 1. Initialize System Control:
|
||||
// PLL, WatchDog, enable Peripheral Clocks
|
||||
// This example function is found in the F2837xD_SysCtrl.c file.
|
||||
//
|
||||
InitSysCtrl();
|
||||
|
||||
//
|
||||
// Step 2. Initialize GPIO:
|
||||
// This example function is found in the F2837xD_Gpio.c file and
|
||||
// illustrates how to set the GPIO to it's default state.
|
||||
//
|
||||
InitGpio(); // Skipped for this example
|
||||
|
||||
//
|
||||
// Step 3. Clear all interrupts and initialize PIE vector table:
|
||||
// Disable CPU interrupts
|
||||
//
|
||||
DINT;
|
||||
|
||||
//
|
||||
// Initialize the PIE control registers to their default state.
|
||||
// The default state is all PIE interrupts disabled and flags
|
||||
// are cleared.
|
||||
// This function is found in the F2837xD_PieCtrl.c file.
|
||||
//
|
||||
InitPieCtrl();
|
||||
|
||||
//
|
||||
// Disable CPU interrupts and clear all CPU interrupt flags:
|
||||
//
|
||||
IER = 0x0000;
|
||||
IFR = 0x0000;
|
||||
|
||||
//
|
||||
// Initialize the PIE vector table with pointers to the shell Interrupt
|
||||
// Service Routines (ISR).
|
||||
// This will populate the entire table, even if the interrupt
|
||||
// is not used in this example. This is useful for debug purposes.
|
||||
// The shell ISR routines are found in F2837xD_DefaultIsr.c.
|
||||
// This function is found in F2837xD_PieVect.c.
|
||||
//
|
||||
InitPieVectTable();
|
||||
|
||||
//
|
||||
// Map ISR functions
|
||||
//
|
||||
EALLOW;
|
||||
PieVectTable.ADCA1_INT = &adca1_isr; //function for ADCA interrupt 1
|
||||
EDIS;
|
||||
|
||||
//
|
||||
// Configure the ADC and power it up
|
||||
//
|
||||
ConfigureADC();
|
||||
|
||||
//
|
||||
// Configure the ePWM
|
||||
//
|
||||
ConfigureEPWM();
|
||||
|
||||
//
|
||||
// Setup the ADC for ePWM triggered conversions on channel 0
|
||||
//
|
||||
SetupADCEpwm(0);
|
||||
|
||||
//
|
||||
// Enable global Interrupts and higher priority real-time debug events:
|
||||
//
|
||||
IER |= M_INT1; //Enable group 1 interrupts
|
||||
EINT; // Enable Global interrupt INTM
|
||||
ERTM; // Enable Global realtime interrupt DBGM
|
||||
|
||||
//
|
||||
// Initialize results buffer
|
||||
//
|
||||
for(resultsIndex = 0; resultsIndex < RESULTS_BUFFER_SIZE; resultsIndex++)
|
||||
{
|
||||
AdcaResults[resultsIndex] = 0;
|
||||
}
|
||||
resultsIndex = 0;
|
||||
bufferFull = 0;
|
||||
|
||||
//
|
||||
// enable PIE interrupt
|
||||
//
|
||||
PieCtrlRegs.PIEIER1.bit.INTx1 = 1;
|
||||
|
||||
//
|
||||
// sync ePWM
|
||||
//
|
||||
EALLOW;
|
||||
CpuSysRegs.PCLKCR0.bit.TBCLKSYNC = 1;
|
||||
|
||||
//
|
||||
//take conversions indefinitely in loop
|
||||
//
|
||||
do
|
||||
{
|
||||
//
|
||||
//start ePWM
|
||||
//
|
||||
EPwm1Regs.ETSEL.bit.SOCAEN = 1; //enable SOCA
|
||||
EPwm1Regs.TBCTL.bit.CTRMODE = 0; //unfreeze, and enter up count mode
|
||||
|
||||
//
|
||||
//wait while ePWM causes ADC conversions, which then cause interrupts,
|
||||
//which fill the results buffer, eventually setting the bufferFull
|
||||
//flag
|
||||
//
|
||||
while(!bufferFull);
|
||||
bufferFull = 0; //clear the buffer full flag
|
||||
|
||||
//
|
||||
//stop ePWM
|
||||
//
|
||||
EPwm1Regs.ETSEL.bit.SOCAEN = 0; //disable SOCA
|
||||
EPwm1Regs.TBCTL.bit.CTRMODE = 3; //freeze counter
|
||||
|
||||
//
|
||||
//at this point, AdcaResults[] contains a sequence of conversions
|
||||
//from the selected channel
|
||||
//
|
||||
|
||||
//
|
||||
//software breakpoint, hit run again to get updated conversions
|
||||
//
|
||||
asm(" ESTOP0");
|
||||
}while(1);
|
||||
}
|
||||
|
||||
//
|
||||
// ConfigureADC - Write ADC configurations and power up the ADC for both
|
||||
// ADC A and ADC B
|
||||
//
|
||||
void ConfigureADC(void)
|
||||
{
|
||||
EALLOW;
|
||||
|
||||
//
|
||||
//write configurations
|
||||
//
|
||||
AdcaRegs.ADCCTL2.bit.PRESCALE = 6; //set ADCCLK divider to /4
|
||||
AdcSetMode(ADC_ADCA, ADC_RESOLUTION_12BIT, ADC_SIGNALMODE_SINGLE);
|
||||
|
||||
//
|
||||
//Set pulse positions to late
|
||||
//
|
||||
AdcaRegs.ADCCTL1.bit.INTPULSEPOS = 1;
|
||||
|
||||
//
|
||||
//power up the ADC
|
||||
//
|
||||
AdcaRegs.ADCCTL1.bit.ADCPWDNZ = 1;
|
||||
|
||||
//
|
||||
//delay for 1ms to allow ADC time to power up
|
||||
//
|
||||
DELAY_US(1000);
|
||||
|
||||
EDIS;
|
||||
}
|
||||
|
||||
//
|
||||
// ConfigureEPWM - Configure EPWM SOC and compare values
|
||||
//
|
||||
void ConfigureEPWM(void)
|
||||
{
|
||||
EALLOW;
|
||||
// Assumes ePWM clock is already enabled
|
||||
EPwm1Regs.ETSEL.bit.SOCAEN = 0; // Disable SOC on A group
|
||||
EPwm1Regs.ETSEL.bit.SOCASEL = 4; // Select SOC on up-count
|
||||
EPwm1Regs.ETPS.bit.SOCAPRD = 1; // Generate pulse on 1st event
|
||||
EPwm1Regs.CMPA.bit.CMPA = 0x0800; // Set compare A value to 2048 counts
|
||||
EPwm1Regs.TBPRD = 0x1000; // Set period to 4096 counts
|
||||
EPwm1Regs.TBCTL.bit.CTRMODE = 3; // freeze counter
|
||||
EDIS;
|
||||
}
|
||||
|
||||
//
|
||||
// SetupADCEpwm - Setup ADC EPWM acquisition window
|
||||
//
|
||||
void SetupADCEpwm(Uint16 channel)
|
||||
{
|
||||
Uint16 acqps;
|
||||
|
||||
//
|
||||
// Determine minimum acquisition window (in SYSCLKS) based on resolution
|
||||
//
|
||||
if(ADC_RESOLUTION_12BIT == AdcaRegs.ADCCTL2.bit.RESOLUTION)
|
||||
{
|
||||
acqps = 14; //75ns
|
||||
}
|
||||
else //resolution is 16-bit
|
||||
{
|
||||
acqps = 63; //320ns
|
||||
}
|
||||
|
||||
//
|
||||
//Select the channels to convert and end of conversion flag
|
||||
//
|
||||
EALLOW;
|
||||
AdcaRegs.ADCSOC0CTL.bit.CHSEL = channel; //SOC0 will convert pin A0
|
||||
AdcaRegs.ADCSOC0CTL.bit.ACQPS = acqps; //sample window is 100 SYSCLK cycles
|
||||
AdcaRegs.ADCSOC0CTL.bit.TRIGSEL = 5; //trigger on ePWM1 SOCA/C
|
||||
AdcaRegs.ADCINTSEL1N2.bit.INT1SEL = 0; //end of SOC0 will set INT1 flag
|
||||
AdcaRegs.ADCINTSEL1N2.bit.INT1E = 1; //enable INT1 flag
|
||||
AdcaRegs.ADCINTFLGCLR.bit.ADCINT1 = 1; //make sure INT1 flag is cleared
|
||||
EDIS;
|
||||
}
|
||||
|
||||
//
|
||||
// adca1_isr - Read ADC Buffer in ISR
|
||||
//
|
||||
interrupt void adca1_isr(void)
|
||||
{
|
||||
AdcaResults[resultsIndex++] = AdcaResultRegs.ADCRESULT0;
|
||||
if(RESULTS_BUFFER_SIZE <= resultsIndex)
|
||||
{
|
||||
resultsIndex = 0;
|
||||
bufferFull = 1;
|
||||
}
|
||||
|
||||
AdcaRegs.ADCINTFLGCLR.bit.ADCINT1 = 1; //clear INT1 flag
|
||||
|
||||
//
|
||||
// Check if overflow has occurred
|
||||
//
|
||||
if(1 == AdcaRegs.ADCINTOVF.bit.ADCINT1)
|
||||
{
|
||||
AdcaRegs.ADCINTOVFCLR.bit.ADCINT1 = 1; //clear INT1 overflow flag
|
||||
AdcaRegs.ADCINTFLGCLR.bit.ADCINT1 = 1; //clear INT1 flag
|
||||
}
|
||||
|
||||
PieCtrlRegs.PIEACK.all = PIEACK_GROUP1;
|
||||
}
|
||||
|
||||
//
|
||||
// End of file
|
||||
//
|
||||
@@ -0,0 +1,12 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<?ccsproject version="1.0"?>
|
||||
<projectOptions>
|
||||
<deviceVariant value="com.ti.ccstudio.deviceModel.C2000.GenericC28xxDevice"/>
|
||||
<deviceFamily value="C2000"/>
|
||||
<codegenToolVersion value="6.3.0.A13150"/>
|
||||
<isElfFormat value="false"/>
|
||||
<connection value=""/>
|
||||
<rts value="libc.a"/>
|
||||
<templateProperties value="id=com.ti.common.project.core.emptyProjectTemplate,"/>
|
||||
<isTargetManual value="false"/>
|
||||
</projectOptions>
|
||||
@@ -0,0 +1,194 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<?fileVersion 4.0.0?><cproject storage_type_id="org.eclipse.cdt.core.XmlProjectDescriptionStorage">
|
||||
<storageModule configRelations="2" moduleId="org.eclipse.cdt.core.settings">
|
||||
<cconfiguration id="com.ti.ccstudio.buildDefinitions.C2000.Debug.2121059750">
|
||||
<storageModule buildSystemId="org.eclipse.cdt.managedbuilder.core.configurationDataProvider" id="com.ti.ccstudio.buildDefinitions.C2000.Debug.2121059750" moduleId="org.eclipse.cdt.core.settings" name="CPU1_RAM">
|
||||
<macros>
|
||||
<stringMacro name="INSTALLROOT_F2837XD" type="VALUE_PATH_DIR" value="${PROJECT_ROOT}/../../../../.."/>
|
||||
</macros>
|
||||
<externalSettings/>
|
||||
<extensions>
|
||||
<extension id="com.ti.ccstudio.errorparser.CoffErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
|
||||
<extension id="com.ti.ccstudio.errorparser.LinkErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
|
||||
<extension id="com.ti.ccstudio.errorparser.AsmErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
|
||||
<extension id="org.eclipse.cdt.core.GmakeErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
|
||||
<extension id="com.ti.ccstudio.binaryparser.CoffParser" point="org.eclipse.cdt.core.BinaryParser"/>
|
||||
</extensions>
|
||||
</storageModule>
|
||||
<storageModule moduleId="cdtBuildSystem" version="4.0.0">
|
||||
<configuration artifactExtension="out" artifactName="${ProjName}" buildProperties="" cleanCommand="${CG_CLEAN_CMD}" description="RAM Build Configuration w/Debugger Support for CPU1" id="com.ti.ccstudio.buildDefinitions.C2000.Debug.2121059750" name="CPU1_RAM" parent="com.ti.ccstudio.buildDefinitions.C2000.Debug">
|
||||
<folderInfo id="com.ti.ccstudio.buildDefinitions.C2000.Debug.2121059750." name="/" resourcePath="">
|
||||
<toolChain id="com.ti.ccstudio.buildDefinitions.C2000_15.12.exe.DebugToolchain.368085381" name="TI Build Tools" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.exe.DebugToolchain" targetTool="com.ti.ccstudio.buildDefinitions.C2000_15.12.exe.linkerDebug.1750375085">
|
||||
<option id="com.ti.ccstudio.buildDefinitions.core.OPT_TAGS.491423631" superClass="com.ti.ccstudio.buildDefinitions.core.OPT_TAGS" valueType="stringList">
|
||||
<listOptionValue builtIn="false" value="DEVICE_CONFIGURATION_ID=com.ti.ccstudio.deviceModel.C2000.GenericC28xxDevice"/>
|
||||
<listOptionValue builtIn="false" value="DEVICE_ENDIANNESS=little"/>
|
||||
<listOptionValue builtIn="false" value="OUTPUT_FORMAT=COFF"/>
|
||||
<listOptionValue builtIn="false" value="CCS_MBS_VERSION=6.1.3"/>
|
||||
<listOptionValue builtIn="false" value="RUNTIME_SUPPORT_LIBRARY=libc.a"/>
|
||||
<listOptionValue builtIn="false" value="OUTPUT_TYPE=executable"/>
|
||||
</option>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.core.OPT_CODEGEN_VERSION.1886598005" name="Compiler version" superClass="com.ti.ccstudio.buildDefinitions.core.OPT_CODEGEN_VERSION" value="15.12.1.LTS" valueType="string"/>
|
||||
<targetPlatform id="com.ti.ccstudio.buildDefinitions.C2000_15.12.exe.targetPlatformDebug.1740361630" name="Platform" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.exe.targetPlatformDebug"/>
|
||||
<builder buildPath="${BuildDirectory}" id="com.ti.ccstudio.buildDefinitions.C2000_15.12.exe.builderDebug.733262734" keepEnvironmentInBuildfile="false" name="GNU Make" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.exe.builderDebug"/>
|
||||
<tool id="com.ti.ccstudio.buildDefinitions.C2000_15.12.exe.compilerDebug.990334661" name="C2000 Compiler" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.exe.compilerDebug">
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.SILICON_VERSION.549711195" name="Processor version (--silicon_version, -v)" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.SILICON_VERSION" value="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.SILICON_VERSION.28" valueType="enumerated"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.LARGE_MEMORY_MODEL.131214445" name="Option deprecated, set by default (--large_memory_model, -ml)" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.LARGE_MEMORY_MODEL" value="true" valueType="boolean"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.UNIFIED_MEMORY.1689767234" name="Unified memory (--unified_memory, -mt)" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.UNIFIED_MEMORY" value="true" valueType="boolean"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.CLA_SUPPORT.1360152120" name="Specify CLA support (--cla_support)" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.CLA_SUPPORT" value="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.CLA_SUPPORT.cla1" valueType="enumerated"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.FLOAT_SUPPORT.504024588" name="Specify floating point support (--float_support)" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.FLOAT_SUPPORT" value="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.FLOAT_SUPPORT.fpu32" valueType="enumerated"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.TMU_SUPPORT.1135155222" name="Specify TMU support (--tmu_support)" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.TMU_SUPPORT" value="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.TMU_SUPPORT.tmu0" valueType="enumerated"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.VCU_SUPPORT.1733848821" name="Specify VCU support (--vcu_support)" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.VCU_SUPPORT" value="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.VCU_SUPPORT.vcu2" valueType="enumerated"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.INCLUDE_PATH.868624339" name="Add dir to #include search path (--include_path, -I)" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.INCLUDE_PATH" valueType="includePath">
|
||||
<listOptionValue builtIn="false" value=""${CG_TOOL_ROOT}/include""/>
|
||||
<listOptionValue builtIn="false" value=""${INSTALLROOT_F2837XD}/headers/include""/>
|
||||
<listOptionValue builtIn="false" value=""${INSTALLROOT_F2837XD}/common/include""/>
|
||||
</option>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.DEBUGGING_MODEL.548658085" name="Debugging model" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.DEBUGGING_MODEL" value="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.DEBUGGING_MODEL.SYMDEBUG__DWARF" valueType="enumerated"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.DEFINE.2003974011" name="Pre-define NAME (--define, -D)" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.DEFINE" valueType="definedSymbols">
|
||||
<listOptionValue builtIn="false" value="CPU1"/>
|
||||
</option>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.DIAG_WARNING.2061391397" name="Treat diagnostic <id> as warning (--diag_warning, -pdsw)" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.DIAG_WARNING" valueType="stringList">
|
||||
<listOptionValue builtIn="false" value="225"/>
|
||||
</option>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.DISPLAY_ERROR_NUMBER.427479773" name="Emit diagnostic identifier numbers (--display_error_number, -pden)" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.DISPLAY_ERROR_NUMBER" value="true" valueType="boolean"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.DIAG_SUPPRESS.611094770" name="Suppress diagnostic <id> (--diag_suppress, -pds)" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.DIAG_SUPPRESS" valueType="stringList">
|
||||
<listOptionValue builtIn="false" value="1311"/>
|
||||
</option>
|
||||
<inputType id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compiler.inputType__C_SRCS.92189577" name="C Sources" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compiler.inputType__C_SRCS"/>
|
||||
<inputType id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compiler.inputType__CPP_SRCS.534391944" name="C++ Sources" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compiler.inputType__CPP_SRCS"/>
|
||||
<inputType id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compiler.inputType__ASM_SRCS.1336515855" name="Assembly Sources" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compiler.inputType__ASM_SRCS"/>
|
||||
<inputType id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compiler.inputType__ASM2_SRCS.1804006881" name="Assembly Sources" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compiler.inputType__ASM2_SRCS"/>
|
||||
</tool>
|
||||
<tool id="com.ti.ccstudio.buildDefinitions.C2000_15.12.exe.linkerDebug.1750375085" name="C2000 Linker" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.exe.linkerDebug">
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.OUTPUT_FILE.1947376325" name="Specify output file name (--output_file, -o)" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.OUTPUT_FILE" value=""${ProjName}.out"" valueType="string"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.MAP_FILE.565282597" name="Link information (map) listed into <file> (--map_file, -m)" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.MAP_FILE" value=""${ProjName}.map"" valueType="string"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.STACK_SIZE.1167026071" name="Set C system stack size (--stack_size, -stack)" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.STACK_SIZE" value="0x100" valueType="string"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.LIBRARY.1723233555" name="Include library file or command file as input (--library, -l)" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.LIBRARY" valueType="libs">
|
||||
<listOptionValue builtIn="false" value=""rts2800_fpu32.lib""/>
|
||||
<listOptionValue builtIn="false" value=""2837xD_RAM_lnk_cpu1.cmd""/>
|
||||
<listOptionValue builtIn="false" value=""F2837xD_Headers_nonBIOS_cpu1.cmd""/>
|
||||
<listOptionValue builtIn="false" value=""libc.a""/>
|
||||
</option>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.SEARCH_PATH.285230259" name="Add <dir> to library search path (--search_path, -i)" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.SEARCH_PATH" valueType="libPaths">
|
||||
<listOptionValue builtIn="false" value=""${CG_TOOL_ROOT}/lib""/>
|
||||
<listOptionValue builtIn="false" value=""${CG_TOOL_ROOT}/include""/>
|
||||
<listOptionValue builtIn="false" value=""${INSTALLROOT_F2837XD}/common/cmd""/>
|
||||
<listOptionValue builtIn="false" value=""${INSTALLROOT_F2837XD}/headers/cmd""/>
|
||||
</option>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.DISPLAY_ERROR_NUMBER.654687055" name="Emit diagnostic identifier numbers (--display_error_number)" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.DISPLAY_ERROR_NUMBER" value="true" valueType="boolean"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.XML_LINK_INFO.1705770188" name="Detailed link information data-base into <file> (--xml_link_info, -xml_link_info)" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.XML_LINK_INFO" value=""${ProjName}_linkInfo.xml"" valueType="string"/>
|
||||
<inputType id="com.ti.ccstudio.buildDefinitions.C2000_15.12.exeLinker.inputType__CMD_SRCS.1316907541" name="Linker Command Files" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.exeLinker.inputType__CMD_SRCS"/>
|
||||
<inputType id="com.ti.ccstudio.buildDefinitions.C2000_15.12.exeLinker.inputType__CMD2_SRCS.150662891" name="Linker Command Files" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.exeLinker.inputType__CMD2_SRCS"/>
|
||||
<inputType id="com.ti.ccstudio.buildDefinitions.C2000_15.12.exeLinker.inputType__GEN_CMDS.1047106675" name="Generated Linker Command Files" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.exeLinker.inputType__GEN_CMDS"/>
|
||||
</tool>
|
||||
</toolChain>
|
||||
</folderInfo>
|
||||
</configuration>
|
||||
</storageModule>
|
||||
<storageModule moduleId="org.eclipse.cdt.core.externalSettings"/>
|
||||
</cconfiguration>
|
||||
<cconfiguration id="com.ti.ccstudio.buildDefinitions.C2000.Debug.2121059750.2104318735">
|
||||
<storageModule buildSystemId="org.eclipse.cdt.managedbuilder.core.configurationDataProvider" id="com.ti.ccstudio.buildDefinitions.C2000.Debug.2121059750.2104318735" moduleId="org.eclipse.cdt.core.settings" name="CPU1_FLASH">
|
||||
<macros>
|
||||
<stringMacro name="INSTALLROOT_F2837XD" type="VALUE_PATH_DIR" value="${PROJECT_ROOT}/../../../../.."/>
|
||||
</macros>
|
||||
<externalSettings/>
|
||||
<extensions>
|
||||
<extension id="com.ti.ccstudio.errorparser.CoffErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
|
||||
<extension id="com.ti.ccstudio.errorparser.LinkErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
|
||||
<extension id="com.ti.ccstudio.errorparser.AsmErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
|
||||
<extension id="org.eclipse.cdt.core.GmakeErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
|
||||
<extension id="com.ti.ccstudio.binaryparser.CoffParser" point="org.eclipse.cdt.core.BinaryParser"/>
|
||||
</extensions>
|
||||
</storageModule>
|
||||
<storageModule moduleId="cdtBuildSystem" version="4.0.0">
|
||||
<configuration artifactExtension="out" artifactName="${ProjName}" buildProperties="" cleanCommand="${CG_CLEAN_CMD}" description="Flash Build Configuration w/Debugger Support for CPU1" id="com.ti.ccstudio.buildDefinitions.C2000.Debug.2121059750.2104318735" name="CPU1_FLASH" parent="com.ti.ccstudio.buildDefinitions.C2000.Debug">
|
||||
<folderInfo id="com.ti.ccstudio.buildDefinitions.C2000.Debug.2121059750.2104318735." name="/" resourcePath="">
|
||||
<toolChain id="com.ti.ccstudio.buildDefinitions.C2000_15.12.exe.DebugToolchain.2018965429" name="TI Build Tools" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.exe.DebugToolchain" targetTool="com.ti.ccstudio.buildDefinitions.C2000_15.12.exe.linkerDebug.1869879179">
|
||||
<option id="com.ti.ccstudio.buildDefinitions.core.OPT_TAGS.755018927" superClass="com.ti.ccstudio.buildDefinitions.core.OPT_TAGS" valueType="stringList">
|
||||
<listOptionValue builtIn="false" value="DEVICE_CONFIGURATION_ID=com.ti.ccstudio.deviceModel.C2000.GenericC28xxDevice"/>
|
||||
<listOptionValue builtIn="false" value="DEVICE_ENDIANNESS=little"/>
|
||||
<listOptionValue builtIn="false" value="OUTPUT_FORMAT=COFF"/>
|
||||
<listOptionValue builtIn="false" value="CCS_MBS_VERSION=6.1.3"/>
|
||||
<listOptionValue builtIn="false" value="RUNTIME_SUPPORT_LIBRARY=libc.a"/>
|
||||
<listOptionValue builtIn="false" value="OUTPUT_TYPE=executable"/>
|
||||
</option>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.core.OPT_CODEGEN_VERSION.35780789" superClass="com.ti.ccstudio.buildDefinitions.core.OPT_CODEGEN_VERSION" value="15.12.1.LTS" valueType="string"/>
|
||||
<targetPlatform id="com.ti.ccstudio.buildDefinitions.C2000_15.12.exe.targetPlatformDebug.168432365" name="Platform" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.exe.targetPlatformDebug"/>
|
||||
<builder buildPath="${BuildDirectory}" id="com.ti.ccstudio.buildDefinitions.C2000_15.12.exe.builderDebug.1167883375" name="GNU Make.CPU1_FLASH" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.exe.builderDebug"/>
|
||||
<tool id="com.ti.ccstudio.buildDefinitions.C2000_15.12.exe.compilerDebug.265661584" name="C2000 Compiler" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.exe.compilerDebug">
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.SILICON_VERSION.331180314" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.SILICON_VERSION" value="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.SILICON_VERSION.28" valueType="enumerated"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.LARGE_MEMORY_MODEL.1318279538" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.LARGE_MEMORY_MODEL" value="true" valueType="boolean"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.UNIFIED_MEMORY.308022822" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.UNIFIED_MEMORY" value="true" valueType="boolean"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.CLA_SUPPORT.1214248331" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.CLA_SUPPORT" value="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.CLA_SUPPORT.cla1" valueType="enumerated"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.FLOAT_SUPPORT.737424609" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.FLOAT_SUPPORT" value="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.FLOAT_SUPPORT.fpu32" valueType="enumerated"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.TMU_SUPPORT.334176297" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.TMU_SUPPORT" value="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.TMU_SUPPORT.tmu0" valueType="enumerated"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.VCU_SUPPORT.1746551602" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.VCU_SUPPORT" value="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.VCU_SUPPORT.vcu2" valueType="enumerated"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.INCLUDE_PATH.1042839909" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.INCLUDE_PATH" valueType="includePath">
|
||||
<listOptionValue builtIn="false" value=""${CG_TOOL_ROOT}/include""/>
|
||||
<listOptionValue builtIn="false" value=""${INSTALLROOT_F2837XD}/headers/include""/>
|
||||
<listOptionValue builtIn="false" value=""${INSTALLROOT_F2837XD}/common/include""/>
|
||||
</option>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.DEBUGGING_MODEL.1385517197" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.DEBUGGING_MODEL" value="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.DEBUGGING_MODEL.SYMDEBUG__DWARF" valueType="enumerated"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.DEFINE.2126220584" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.DEFINE" valueType="definedSymbols">
|
||||
<listOptionValue builtIn="false" value="CPU1"/>
|
||||
<listOptionValue builtIn="false" value="_FLASH"/>
|
||||
</option>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.DIAG_WARNING.299697656" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.DIAG_WARNING" valueType="stringList">
|
||||
<listOptionValue builtIn="false" value="225"/>
|
||||
</option>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.DISPLAY_ERROR_NUMBER.1043183838" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.DISPLAY_ERROR_NUMBER" value="true" valueType="boolean"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.DIAG_SUPPRESS.257714372" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.DIAG_SUPPRESS" valueType="stringList">
|
||||
<listOptionValue builtIn="false" value="1311"/>
|
||||
</option>
|
||||
<inputType id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compiler.inputType__C_SRCS.2059990129" name="C Sources" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compiler.inputType__C_SRCS"/>
|
||||
<inputType id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compiler.inputType__CPP_SRCS.466274792" name="C++ Sources" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compiler.inputType__CPP_SRCS"/>
|
||||
<inputType id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compiler.inputType__ASM_SRCS.1268223564" name="Assembly Sources" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compiler.inputType__ASM_SRCS"/>
|
||||
<inputType id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compiler.inputType__ASM2_SRCS.1009150172" name="Assembly Sources" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compiler.inputType__ASM2_SRCS"/>
|
||||
</tool>
|
||||
<tool id="com.ti.ccstudio.buildDefinitions.C2000_15.12.exe.linkerDebug.1869879179" name="C2000 Linker" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.exe.linkerDebug">
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.OUTPUT_FILE.736172630" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.OUTPUT_FILE" value=""${ProjName}.out"" valueType="string"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.MAP_FILE.2131617187" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.MAP_FILE" value=""${ProjName}.map"" valueType="string"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.STACK_SIZE.1016204702" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.STACK_SIZE" value="0x100" valueType="string"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.LIBRARY.1741374795" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.LIBRARY" valueType="libs">
|
||||
<listOptionValue builtIn="false" value=""rts2800_fpu32.lib""/>
|
||||
<listOptionValue builtIn="false" value=""2837xD_FLASH_lnk_cpu1.cmd""/>
|
||||
<listOptionValue builtIn="false" value=""F2837xD_Headers_nonBIOS_cpu1.cmd""/>
|
||||
<listOptionValue builtIn="false" value=""libc.a""/>
|
||||
</option>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.SEARCH_PATH.2024494782" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.SEARCH_PATH" valueType="libPaths">
|
||||
<listOptionValue builtIn="false" value=""${CG_TOOL_ROOT}/lib""/>
|
||||
<listOptionValue builtIn="false" value=""${CG_TOOL_ROOT}/include""/>
|
||||
<listOptionValue builtIn="false" value=""${INSTALLROOT_F2837XD}/common/cmd""/>
|
||||
<listOptionValue builtIn="false" value=""${INSTALLROOT_F2837XD}/headers/cmd""/>
|
||||
</option>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.DISPLAY_ERROR_NUMBER.463606933" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.DISPLAY_ERROR_NUMBER" value="true" valueType="boolean"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.XML_LINK_INFO.1084900631" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.XML_LINK_INFO" value=""${ProjName}_linkInfo.xml"" valueType="string"/>
|
||||
<inputType id="com.ti.ccstudio.buildDefinitions.C2000_15.12.exeLinker.inputType__CMD_SRCS.871986687" name="Linker Command Files" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.exeLinker.inputType__CMD_SRCS"/>
|
||||
<inputType id="com.ti.ccstudio.buildDefinitions.C2000_15.12.exeLinker.inputType__CMD2_SRCS.966927759" name="Linker Command Files" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.exeLinker.inputType__CMD2_SRCS"/>
|
||||
<inputType id="com.ti.ccstudio.buildDefinitions.C2000_15.12.exeLinker.inputType__GEN_CMDS.1985707181" name="Generated Linker Command Files" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.exeLinker.inputType__GEN_CMDS"/>
|
||||
</tool>
|
||||
</toolChain>
|
||||
</folderInfo>
|
||||
</configuration>
|
||||
</storageModule>
|
||||
<storageModule moduleId="org.eclipse.cdt.core.externalSettings"/>
|
||||
</cconfiguration>
|
||||
</storageModule>
|
||||
<storageModule moduleId="org.eclipse.cdt.core.LanguageSettingsProviders"/>
|
||||
<storageModule moduleId="cdtBuildSystem" version="4.0.0">
|
||||
<project id="adc_soc_epwm_dc_cpu01.com.ti.ccstudio.buildDefinitions.C2000.ProjectType.253935156" name="C2000" projectType="com.ti.ccstudio.buildDefinitions.C2000.ProjectType"/>
|
||||
</storageModule>
|
||||
<storageModule moduleId="scannerConfiguration"/>
|
||||
<storageModule moduleId="org.eclipse.cdt.core.language.mapping">
|
||||
<project-mappings>
|
||||
<content-type-mapping configuration="" content-type="org.eclipse.cdt.core.asmSource" language="com.ti.ccstudio.core.TIASMLanguage"/>
|
||||
<content-type-mapping configuration="" content-type="org.eclipse.cdt.core.cHeader" language="com.ti.ccstudio.core.TIGCCLanguage"/>
|
||||
<content-type-mapping configuration="" content-type="org.eclipse.cdt.core.cSource" language="com.ti.ccstudio.core.TIGCCLanguage"/>
|
||||
<content-type-mapping configuration="" content-type="org.eclipse.cdt.core.cxxHeader" language="com.ti.ccstudio.core.TIGPPLanguage"/>
|
||||
<content-type-mapping configuration="" content-type="org.eclipse.cdt.core.cxxSource" language="com.ti.ccstudio.core.TIGPPLanguage"/>
|
||||
</project-mappings>
|
||||
</storageModule>
|
||||
<storageModule moduleId="null.endianPreference"/>
|
||||
<storageModule moduleId="cpuFamily"/>
|
||||
</cproject>
|
||||
@@ -0,0 +1,90 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<projectDescription>
|
||||
<name>adc_soc_epwm_cpu01</name>
|
||||
<comment></comment>
|
||||
<projects>
|
||||
</projects>
|
||||
<buildSpec>
|
||||
<buildCommand>
|
||||
<name>org.eclipse.cdt.managedbuilder.core.genmakebuilder</name>
|
||||
<arguments>
|
||||
</arguments>
|
||||
</buildCommand>
|
||||
<buildCommand>
|
||||
<name>org.eclipse.cdt.managedbuilder.core.ScannerConfigBuilder</name>
|
||||
<triggers>full,incremental,</triggers>
|
||||
<arguments>
|
||||
</arguments>
|
||||
</buildCommand>
|
||||
</buildSpec>
|
||||
<natures>
|
||||
<nature>com.ti.ccstudio.core.ccsNature</nature>
|
||||
<nature>org.eclipse.cdt.core.cnature</nature>
|
||||
<nature>org.eclipse.cdt.managedbuilder.core.managedBuildNature</nature>
|
||||
<nature>org.eclipse.cdt.core.ccnature</nature>
|
||||
<nature>org.eclipse.cdt.managedbuilder.core.ScannerConfigNature</nature>
|
||||
</natures>
|
||||
<linkedResources>
|
||||
<link>
|
||||
<name>F2837xD_Adc.c</name>
|
||||
<type>1</type>
|
||||
<locationURI>PARENT-5-PROJECT_LOC/common/source/F2837xD_Adc.c</locationURI>
|
||||
</link>
|
||||
<link>
|
||||
<name>F2837xD_CodeStartBranch.asm</name>
|
||||
<type>1</type>
|
||||
<locationURI>PARENT-5-PROJECT_LOC/common/source/F2837xD_CodeStartBranch.asm</locationURI>
|
||||
</link>
|
||||
<link>
|
||||
<name>F2837xD_DefaultISR.c</name>
|
||||
<type>1</type>
|
||||
<locationURI>PARENT-5-PROJECT_LOC/common/source/F2837xD_DefaultISR.c</locationURI>
|
||||
</link>
|
||||
<link>
|
||||
<name>F2837xD_GlobalVariableDefs.c</name>
|
||||
<type>1</type>
|
||||
<locationURI>PARENT-5-PROJECT_LOC/headers/source/F2837xD_GlobalVariableDefs.c</locationURI>
|
||||
</link>
|
||||
<link>
|
||||
<name>F2837xD_Gpio.c</name>
|
||||
<type>1</type>
|
||||
<locationURI>PARENT-5-PROJECT_LOC/common/source/F2837xD_Gpio.c</locationURI>
|
||||
</link>
|
||||
<link>
|
||||
<name>F2837xD_Ipc.c</name>
|
||||
<type>1</type>
|
||||
<locationURI>PARENT-5-PROJECT_LOC/common/source/F2837xD_Ipc.c</locationURI>
|
||||
</link>
|
||||
<link>
|
||||
<name>F2837xD_PieCtrl.c</name>
|
||||
<type>1</type>
|
||||
<locationURI>PARENT-5-PROJECT_LOC/common/source/F2837xD_PieCtrl.c</locationURI>
|
||||
</link>
|
||||
<link>
|
||||
<name>F2837xD_PieVect.c</name>
|
||||
<type>1</type>
|
||||
<locationURI>PARENT-5-PROJECT_LOC/common/source/F2837xD_PieVect.c</locationURI>
|
||||
</link>
|
||||
<link>
|
||||
<name>F2837xD_SysCtrl.c</name>
|
||||
<type>1</type>
|
||||
<locationURI>PARENT-5-PROJECT_LOC/common/source/F2837xD_SysCtrl.c</locationURI>
|
||||
</link>
|
||||
<link>
|
||||
<name>F2837xD_usDelay.asm</name>
|
||||
<type>1</type>
|
||||
<locationURI>PARENT-5-PROJECT_LOC/common/source/F2837xD_usDelay.asm</locationURI>
|
||||
</link>
|
||||
<link>
|
||||
<name>adc_soc_epwm_cpu01.c</name>
|
||||
<type>1</type>
|
||||
<locationURI>PARENT-1-PROJECT_LOC/adc_soc_epwm_cpu01.c</locationURI>
|
||||
</link>
|
||||
</linkedResources>
|
||||
<variableList>
|
||||
<variable>
|
||||
<name>INSTALLROOT_F2837XD</name>
|
||||
<value>$%7BPARENT-4-PROJECT_LOC%7D</value>
|
||||
</variable>
|
||||
</variableList>
|
||||
</projectDescription>
|
||||
+22
@@ -0,0 +1,22 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<configurations XML_version="1.2" id="configurations_0">
|
||||
<configuration XML_version="1.2" id="Texas Instruments XDS100v2 USB Debug Probe_0">
|
||||
<instance XML_version="1.2" desc="Texas Instruments XDS100v2 USB Debug Probe_0" href="connections/TIXDS100v2_Connection.xml" id="Texas Instruments XDS100v2 USB Debug Probe_0" xml="TIXDS100v2_Connection.xml" xmlpath="connections"/>
|
||||
<connection XML_version="1.2" id="Texas Instruments XDS100v2 USB Debug Probe_0">
|
||||
<instance XML_version="1.2" href="drivers/tixds100v2icepick_c.xml" id="drivers" xml="tixds100v2icepick_c.xml" xmlpath="drivers"/>
|
||||
<instance XML_version="1.2" href="drivers/tixds100v2c28x.xml" id="drivers" xml="tixds100v2c28x.xml" xmlpath="drivers"/>
|
||||
<instance XML_version="1.2" href="drivers/tixds100v2cla1.xml" id="drivers" xml="tixds100v2cla1.xml" xmlpath="drivers"/>
|
||||
<instance XML_version="1.2" href="drivers/tixds100v2cs_child.xml" id="drivers" xml="tixds100v2cs_child.xml" xmlpath="drivers"/>
|
||||
<platform XML_version="1.2" id="platform_0">
|
||||
<instance XML_version="1.2" desc="TMS320F28377D_0" href="devices/tms320f28377d.xml" id="TMS320F28377D_0" xml="tms320f28377d.xml" xmlpath="devices"/>
|
||||
<device HW_revision="1" XML_version="1.2" description="" id="TMS320F28377D_0" partnum="TMS320F28377D">
|
||||
<router HW_revision="1.0" XML_version="1.2" description="ICEPick_C router" id="IcePick_C_0" isa="ICEPICK_C">
|
||||
<subpath id="Subpath_1">
|
||||
<property Type="numericfield" Value="0x11" desc="Port Number_0" id="Port Number"/>
|
||||
</subpath>
|
||||
</router>
|
||||
</device>
|
||||
</platform>
|
||||
</connection>
|
||||
</configuration>
|
||||
</configurations>
|
||||
+279
@@ -0,0 +1,279 @@
|
||||
//###########################################################################
|
||||
//
|
||||
// FILE: adc_soc_epwm_tempsensor_cpu01.c
|
||||
//
|
||||
// TITLE: Sample temperature sensor and convert to temperature for F2837xD.
|
||||
//
|
||||
//! \addtogroup cpu01_example_list
|
||||
//! <h1> ADC temperature sensor conversion (adc_soc_epwm_tempsensor)</h1>
|
||||
//!
|
||||
//! This example sets up the ePWM to periodically trigger the ADC. The
|
||||
//! ADC converts the internal connection to the temperature sensor,
|
||||
//! which is then interpreted as a temperature by calling the
|
||||
//! GetTemperatureC function.
|
||||
//!
|
||||
//! After the program runs, the memory will contain:\n
|
||||
//! - \b sensorSample \b : The raw reading from the temperature sensor. \n
|
||||
//! - \b sensorTemp \b : The interpretation of the sensor sample as a
|
||||
//! temperature in degrees Celsius.
|
||||
//!
|
||||
//
|
||||
//###########################################################################
|
||||
//
|
||||
//
|
||||
// $Copyright:
|
||||
// Copyright (C) 2013-2024 Texas Instruments Incorporated - http://www.ti.com/
|
||||
//
|
||||
// Redistribution and use in source and binary forms, with or without
|
||||
// modification, are permitted provided that the following conditions
|
||||
// are met:
|
||||
//
|
||||
// Redistributions of source code must retain the above copyright
|
||||
// notice, this list of conditions and the following disclaimer.
|
||||
//
|
||||
// Redistributions in binary form must reproduce the above copyright
|
||||
// notice, this list of conditions and the following disclaimer in the
|
||||
// documentation and/or other materials provided with the
|
||||
// distribution.
|
||||
//
|
||||
// Neither the name of Texas Instruments Incorporated nor the names of
|
||||
// its contributors may be used to endorse or promote products derived
|
||||
// from this software without specific prior written permission.
|
||||
//
|
||||
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||
// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||
// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
||||
// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
||||
// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||
// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||
// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
||||
// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
||||
// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
// $
|
||||
//###########################################################################
|
||||
|
||||
//
|
||||
// Included Files
|
||||
//
|
||||
#include "F28x_Project.h"
|
||||
|
||||
//
|
||||
// Function Prototypes
|
||||
//
|
||||
void ConfigureADC(void);
|
||||
void ConfigureEPWM(void);
|
||||
void SetupADCEpwm(void);
|
||||
interrupt void adca1_isr(void);
|
||||
|
||||
//
|
||||
// Globals
|
||||
//
|
||||
Uint16 sensorSample;
|
||||
int16 sensorTemp;
|
||||
|
||||
void main(void)
|
||||
{
|
||||
//
|
||||
// Step 1. Initialize System Control:
|
||||
// PLL, WatchDog, enable Peripheral Clocks
|
||||
// This example function is found in the F2837xD_SysCtrl.c file.
|
||||
//
|
||||
InitSysCtrl();
|
||||
|
||||
//
|
||||
// Step 2. Initialize GPIO:
|
||||
// This example function is found in the F2837xD_Gpio.c file and
|
||||
// illustrates how to set the GPIO to it's default state.
|
||||
//
|
||||
InitGpio(); // Skipped for this example
|
||||
|
||||
//
|
||||
// Step 3. Clear all interrupts and initialize PIE vector table:
|
||||
// Disable CPU interrupts
|
||||
//
|
||||
DINT;
|
||||
|
||||
//
|
||||
// Initialize the PIE control registers to their default state.
|
||||
// The default state is all PIE interrupts disabled and flags
|
||||
// are cleared.
|
||||
// This function is found in the F2837xD_PieCtrl.c file.
|
||||
//
|
||||
InitPieCtrl();
|
||||
|
||||
//
|
||||
// Disable CPU interrupts and clear all CPU interrupt flags:
|
||||
//
|
||||
IER = 0x0000;
|
||||
IFR = 0x0000;
|
||||
|
||||
//
|
||||
// Initialize the PIE vector table with pointers to the shell Interrupt
|
||||
// Service Routines (ISR).
|
||||
// This will populate the entire table, even if the interrupt
|
||||
// is not used in this example. This is useful for debug purposes.
|
||||
// The shell ISR routines are found in F2837xD_DefaultIsr.c.
|
||||
// This function is found in F2837xD_PieVect.c.
|
||||
//
|
||||
InitPieVectTable();
|
||||
|
||||
//
|
||||
// Map ISR functions
|
||||
//
|
||||
EALLOW;
|
||||
PieVectTable.ADCA1_INT = &adca1_isr; //function for ADCA interrupt 1
|
||||
EDIS;
|
||||
|
||||
//
|
||||
// Configure the ADC and power it up
|
||||
//
|
||||
ConfigureADC();
|
||||
|
||||
//
|
||||
// Initialize the temperature sensor
|
||||
// Note: The argument needs to change if using a VREFHI voltage other than 3.0V
|
||||
//
|
||||
InitTempSensor(3.0);
|
||||
|
||||
//
|
||||
// Configure the ePWM
|
||||
//
|
||||
ConfigureEPWM();
|
||||
|
||||
//
|
||||
// Setup the ADC for ePWM triggered conversions on temperature sensor
|
||||
//
|
||||
SetupADCEpwm();
|
||||
|
||||
//
|
||||
// Enable global Interrupts and higher priority real-time debug events:
|
||||
//
|
||||
IER |= M_INT1; //Enable group 1 interrupts
|
||||
EINT; // Enable Global interrupt INTM
|
||||
ERTM; // Enable Global realtime interrupt DBGM
|
||||
|
||||
//
|
||||
// enable PIE interrupt
|
||||
//
|
||||
PieCtrlRegs.PIEIER1.bit.INTx1 = 1;
|
||||
|
||||
//
|
||||
// sync ePWM
|
||||
//
|
||||
EALLOW;
|
||||
CpuSysRegs.PCLKCR0.bit.TBCLKSYNC = 1;
|
||||
|
||||
//
|
||||
// start ePWM
|
||||
//
|
||||
EPwm1Regs.ETSEL.bit.SOCAEN = 1; //enable SOCA
|
||||
EPwm1Regs.TBCTL.bit.CTRMODE = 0; //unfreeze, and enter up count mode
|
||||
|
||||
//
|
||||
// take conversions indefinitely in loop
|
||||
//
|
||||
while(1);
|
||||
}
|
||||
|
||||
//
|
||||
// ConfigureADC - Write ADC configurations and power up the ADC for both
|
||||
// ADC A and ADC B
|
||||
//
|
||||
void ConfigureADC(void)
|
||||
{
|
||||
EALLOW;
|
||||
|
||||
//
|
||||
//write configurations
|
||||
//
|
||||
AdcaRegs.ADCCTL2.bit.PRESCALE = 6; //set ADCCLK divider to /4
|
||||
AdcSetMode(ADC_ADCA, ADC_RESOLUTION_12BIT, ADC_SIGNALMODE_SINGLE);
|
||||
|
||||
//
|
||||
//Set pulse positions to late
|
||||
//
|
||||
AdcaRegs.ADCCTL1.bit.INTPULSEPOS = 1;
|
||||
|
||||
//
|
||||
//power up the ADC
|
||||
//
|
||||
AdcaRegs.ADCCTL1.bit.ADCPWDNZ = 1;
|
||||
|
||||
//
|
||||
//delay for 1ms to allow ADC time to power up
|
||||
//
|
||||
DELAY_US(1000);
|
||||
|
||||
EDIS;
|
||||
}
|
||||
|
||||
//
|
||||
// ConfigureEPWM - Configure EPWM SOC and compare values
|
||||
//
|
||||
void ConfigureEPWM(void)
|
||||
{
|
||||
EALLOW;
|
||||
//
|
||||
// Assumes ePWM clock is already enabled
|
||||
//
|
||||
EPwm1Regs.ETSEL.bit.SOCAEN = 0; // Disable SOC on A group
|
||||
EPwm1Regs.ETSEL.bit.SOCASEL = 4; // Select SOC on up-count
|
||||
EPwm1Regs.ETPS.bit.SOCAPRD = 1; // Generate pulse on 1st event
|
||||
EPwm1Regs.CMPA.bit.CMPA = 0x0800; // Set compare A value to 2048 counts
|
||||
EPwm1Regs.TBPRD = 0x1000; // Set period to 4096 counts
|
||||
EPwm1Regs.TBCTL.bit.CTRMODE = 3; // freeze counter
|
||||
EDIS;
|
||||
}
|
||||
|
||||
//
|
||||
// SetupADCEpwm - Configure ADC EPWM acquisition window and trigger
|
||||
//
|
||||
void SetupADCEpwm(void)
|
||||
{
|
||||
Uint16 tempsensor_acqps;
|
||||
|
||||
tempsensor_acqps = 139; //temperature sensor needs at least 700ns
|
||||
//acquisition time
|
||||
|
||||
//
|
||||
//Select the channels to convert and end of conversion flag
|
||||
//
|
||||
EALLOW;
|
||||
AdcaRegs.ADCSOC0CTL.bit.CHSEL = 13; //SOC0 will convert internal
|
||||
//connection A13
|
||||
AdcaRegs.ADCSOC0CTL.bit.ACQPS = tempsensor_acqps; //sample window is 100
|
||||
//SYSCLK cycles
|
||||
AdcaRegs.ADCSOC0CTL.bit.TRIGSEL = 5; //trigger on ePWM1 SOCA/C
|
||||
AdcaRegs.ADCINTSEL1N2.bit.INT1SEL = 0; //end of SOC0 will set INT1 flag
|
||||
AdcaRegs.ADCINTSEL1N2.bit.INT1E = 1; //enable INT1 flag
|
||||
AdcaRegs.ADCINTFLGCLR.bit.ADCINT1 = 1; //make sure INT1 flag is cleared
|
||||
EDIS;
|
||||
}
|
||||
|
||||
//
|
||||
// adca1_isr - Read Temperature ISR
|
||||
//
|
||||
interrupt void adca1_isr(void)
|
||||
{
|
||||
sensorSample = AdcaResultRegs.ADCRESULT0;
|
||||
sensorTemp = GetTemperatureC(sensorSample);
|
||||
|
||||
AdcaRegs.ADCINTFLGCLR.bit.ADCINT1 = 1; //clear INT1 flag
|
||||
|
||||
//
|
||||
// Check if overflow has occurred
|
||||
//
|
||||
if(1 == AdcaRegs.ADCINTOVF.bit.ADCINT1)
|
||||
{
|
||||
AdcaRegs.ADCINTOVFCLR.bit.ADCINT1 = 1; //clear INT1 overflow flag
|
||||
AdcaRegs.ADCINTFLGCLR.bit.ADCINT1 = 1; //clear INT1 flag
|
||||
}
|
||||
|
||||
PieCtrlRegs.PIEACK.all = PIEACK_GROUP1;
|
||||
}
|
||||
|
||||
//
|
||||
// End of file
|
||||
//
|
||||
+12
@@ -0,0 +1,12 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<?ccsproject version="1.0"?>
|
||||
<projectOptions>
|
||||
<deviceVariant value="com.ti.ccstudio.deviceModel.C2000.GenericC28xxDevice"/>
|
||||
<deviceFamily value="C2000"/>
|
||||
<codegenToolVersion value="6.3.0.A13150"/>
|
||||
<isElfFormat value="false"/>
|
||||
<connection value=""/>
|
||||
<rts value="libc.a"/>
|
||||
<templateProperties value="id=com.ti.common.project.core.emptyProjectTemplate,"/>
|
||||
<isTargetManual value="false"/>
|
||||
</projectOptions>
|
||||
+194
@@ -0,0 +1,194 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<?fileVersion 4.0.0?><cproject storage_type_id="org.eclipse.cdt.core.XmlProjectDescriptionStorage">
|
||||
<storageModule configRelations="2" moduleId="org.eclipse.cdt.core.settings">
|
||||
<cconfiguration id="com.ti.ccstudio.buildDefinitions.C2000.Debug.2121059750">
|
||||
<storageModule buildSystemId="org.eclipse.cdt.managedbuilder.core.configurationDataProvider" id="com.ti.ccstudio.buildDefinitions.C2000.Debug.2121059750" moduleId="org.eclipse.cdt.core.settings" name="CPU1_RAM">
|
||||
<macros>
|
||||
<stringMacro name="INSTALLROOT_F2837XD" type="VALUE_PATH_DIR" value="${PROJECT_ROOT}/../../../../.."/>
|
||||
</macros>
|
||||
<externalSettings/>
|
||||
<extensions>
|
||||
<extension id="com.ti.ccstudio.errorparser.CoffErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
|
||||
<extension id="com.ti.ccstudio.errorparser.LinkErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
|
||||
<extension id="com.ti.ccstudio.errorparser.AsmErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
|
||||
<extension id="org.eclipse.cdt.core.GmakeErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
|
||||
<extension id="com.ti.ccstudio.binaryparser.CoffParser" point="org.eclipse.cdt.core.BinaryParser"/>
|
||||
</extensions>
|
||||
</storageModule>
|
||||
<storageModule moduleId="cdtBuildSystem" version="4.0.0">
|
||||
<configuration artifactExtension="out" artifactName="${ProjName}" buildProperties="" cleanCommand="${CG_CLEAN_CMD}" description="RAM Build Configuration w/Debugger Support for CPU1" id="com.ti.ccstudio.buildDefinitions.C2000.Debug.2121059750" name="CPU1_RAM" parent="com.ti.ccstudio.buildDefinitions.C2000.Debug">
|
||||
<folderInfo id="com.ti.ccstudio.buildDefinitions.C2000.Debug.2121059750." name="/" resourcePath="">
|
||||
<toolChain id="com.ti.ccstudio.buildDefinitions.C2000_15.12.exe.DebugToolchain.304077543" name="TI Build Tools" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.exe.DebugToolchain" targetTool="com.ti.ccstudio.buildDefinitions.C2000_15.12.exe.linkerDebug.1482849005">
|
||||
<option id="com.ti.ccstudio.buildDefinitions.core.OPT_TAGS.2019351289" superClass="com.ti.ccstudio.buildDefinitions.core.OPT_TAGS" valueType="stringList">
|
||||
<listOptionValue builtIn="false" value="DEVICE_CONFIGURATION_ID=com.ti.ccstudio.deviceModel.C2000.GenericC28xxDevice"/>
|
||||
<listOptionValue builtIn="false" value="DEVICE_ENDIANNESS=little"/>
|
||||
<listOptionValue builtIn="false" value="OUTPUT_FORMAT=COFF"/>
|
||||
<listOptionValue builtIn="false" value="CCS_MBS_VERSION=6.1.3"/>
|
||||
<listOptionValue builtIn="false" value="RUNTIME_SUPPORT_LIBRARY=libc.a"/>
|
||||
<listOptionValue builtIn="false" value="OUTPUT_TYPE=executable"/>
|
||||
</option>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.core.OPT_CODEGEN_VERSION.980917544" name="Compiler version" superClass="com.ti.ccstudio.buildDefinitions.core.OPT_CODEGEN_VERSION" value="15.12.1.LTS" valueType="string"/>
|
||||
<targetPlatform id="com.ti.ccstudio.buildDefinitions.C2000_15.12.exe.targetPlatformDebug.1204669679" name="Platform" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.exe.targetPlatformDebug"/>
|
||||
<builder buildPath="${BuildDirectory}" id="com.ti.ccstudio.buildDefinitions.C2000_15.12.exe.builderDebug.2074246302" keepEnvironmentInBuildfile="false" name="GNU Make" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.exe.builderDebug"/>
|
||||
<tool id="com.ti.ccstudio.buildDefinitions.C2000_15.12.exe.compilerDebug.99399257" name="C2000 Compiler" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.exe.compilerDebug">
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.SILICON_VERSION.1743492180" name="Processor version (--silicon_version, -v)" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.SILICON_VERSION" value="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.SILICON_VERSION.28" valueType="enumerated"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.LARGE_MEMORY_MODEL.1368299489" name="Option deprecated, set by default (--large_memory_model, -ml)" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.LARGE_MEMORY_MODEL" value="true" valueType="boolean"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.UNIFIED_MEMORY.590559104" name="Unified memory (--unified_memory, -mt)" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.UNIFIED_MEMORY" value="true" valueType="boolean"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.CLA_SUPPORT.1791356193" name="Specify CLA support (--cla_support)" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.CLA_SUPPORT" value="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.CLA_SUPPORT.cla1" valueType="enumerated"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.FLOAT_SUPPORT.1956285311" name="Specify floating point support (--float_support)" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.FLOAT_SUPPORT" value="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.FLOAT_SUPPORT.fpu32" valueType="enumerated"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.TMU_SUPPORT.1740619161" name="Specify TMU support (--tmu_support)" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.TMU_SUPPORT" value="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.TMU_SUPPORT.tmu0" valueType="enumerated"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.VCU_SUPPORT.602720723" name="Specify VCU support (--vcu_support)" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.VCU_SUPPORT" value="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.VCU_SUPPORT.vcu2" valueType="enumerated"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.INCLUDE_PATH.784536944" name="Add dir to #include search path (--include_path, -I)" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.INCLUDE_PATH" valueType="includePath">
|
||||
<listOptionValue builtIn="false" value=""${CG_TOOL_ROOT}/include""/>
|
||||
<listOptionValue builtIn="false" value=""${INSTALLROOT_F2837XD}/headers/include""/>
|
||||
<listOptionValue builtIn="false" value=""${INSTALLROOT_F2837XD}/common/include""/>
|
||||
</option>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.DEBUGGING_MODEL.917662104" name="Debugging model" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.DEBUGGING_MODEL" value="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.DEBUGGING_MODEL.SYMDEBUG__DWARF" valueType="enumerated"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.DEFINE.26332675" name="Pre-define NAME (--define, -D)" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.DEFINE" valueType="definedSymbols">
|
||||
<listOptionValue builtIn="false" value="CPU1"/>
|
||||
</option>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.DIAG_WARNING.1618746981" name="Treat diagnostic <id> as warning (--diag_warning, -pdsw)" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.DIAG_WARNING" valueType="stringList">
|
||||
<listOptionValue builtIn="false" value="225"/>
|
||||
</option>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.DISPLAY_ERROR_NUMBER.1534077181" name="Emit diagnostic identifier numbers (--display_error_number, -pden)" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.DISPLAY_ERROR_NUMBER" value="true" valueType="boolean"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.DIAG_SUPPRESS.1971988063" name="Suppress diagnostic <id> (--diag_suppress, -pds)" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.DIAG_SUPPRESS" valueType="stringList">
|
||||
<listOptionValue builtIn="false" value="1311"/>
|
||||
</option>
|
||||
<inputType id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compiler.inputType__C_SRCS.1558935247" name="C Sources" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compiler.inputType__C_SRCS"/>
|
||||
<inputType id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compiler.inputType__CPP_SRCS.1094824318" name="C++ Sources" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compiler.inputType__CPP_SRCS"/>
|
||||
<inputType id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compiler.inputType__ASM_SRCS.1252517277" name="Assembly Sources" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compiler.inputType__ASM_SRCS"/>
|
||||
<inputType id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compiler.inputType__ASM2_SRCS.2147473401" name="Assembly Sources" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compiler.inputType__ASM2_SRCS"/>
|
||||
</tool>
|
||||
<tool id="com.ti.ccstudio.buildDefinitions.C2000_15.12.exe.linkerDebug.1482849005" name="C2000 Linker" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.exe.linkerDebug">
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.OUTPUT_FILE.518570441" name="Specify output file name (--output_file, -o)" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.OUTPUT_FILE" value=""${ProjName}.out"" valueType="string"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.MAP_FILE.880645711" name="Link information (map) listed into <file> (--map_file, -m)" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.MAP_FILE" value=""${ProjName}.map"" valueType="string"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.STACK_SIZE.506033793" name="Set C system stack size (--stack_size, -stack)" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.STACK_SIZE" value="0x100" valueType="string"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.LIBRARY.1821737160" name="Include library file or command file as input (--library, -l)" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.LIBRARY" valueType="libs">
|
||||
<listOptionValue builtIn="false" value=""rts2800_fpu32.lib""/>
|
||||
<listOptionValue builtIn="false" value=""2837xD_RAM_lnk_cpu1.cmd""/>
|
||||
<listOptionValue builtIn="false" value=""F2837xD_Headers_nonBIOS_cpu1.cmd""/>
|
||||
<listOptionValue builtIn="false" value=""libc.a""/>
|
||||
</option>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.SEARCH_PATH.1240261295" name="Add <dir> to library search path (--search_path, -i)" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.SEARCH_PATH" valueType="libPaths">
|
||||
<listOptionValue builtIn="false" value=""${CG_TOOL_ROOT}/lib""/>
|
||||
<listOptionValue builtIn="false" value=""${CG_TOOL_ROOT}/include""/>
|
||||
<listOptionValue builtIn="false" value=""${INSTALLROOT_F2837XD}/common/cmd""/>
|
||||
<listOptionValue builtIn="false" value=""${INSTALLROOT_F2837XD}/headers/cmd""/>
|
||||
</option>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.DISPLAY_ERROR_NUMBER.659064926" name="Emit diagnostic identifier numbers (--display_error_number)" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.DISPLAY_ERROR_NUMBER" value="true" valueType="boolean"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.XML_LINK_INFO.741285494" name="Detailed link information data-base into <file> (--xml_link_info, -xml_link_info)" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.XML_LINK_INFO" value=""${ProjName}_linkInfo.xml"" valueType="string"/>
|
||||
<inputType id="com.ti.ccstudio.buildDefinitions.C2000_15.12.exeLinker.inputType__CMD_SRCS.274481951" name="Linker Command Files" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.exeLinker.inputType__CMD_SRCS"/>
|
||||
<inputType id="com.ti.ccstudio.buildDefinitions.C2000_15.12.exeLinker.inputType__CMD2_SRCS.803018592" name="Linker Command Files" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.exeLinker.inputType__CMD2_SRCS"/>
|
||||
<inputType id="com.ti.ccstudio.buildDefinitions.C2000_15.12.exeLinker.inputType__GEN_CMDS.263626589" name="Generated Linker Command Files" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.exeLinker.inputType__GEN_CMDS"/>
|
||||
</tool>
|
||||
</toolChain>
|
||||
</folderInfo>
|
||||
</configuration>
|
||||
</storageModule>
|
||||
<storageModule moduleId="org.eclipse.cdt.core.externalSettings"/>
|
||||
</cconfiguration>
|
||||
<cconfiguration id="com.ti.ccstudio.buildDefinitions.C2000.Debug.2121059750.2104318735">
|
||||
<storageModule buildSystemId="org.eclipse.cdt.managedbuilder.core.configurationDataProvider" id="com.ti.ccstudio.buildDefinitions.C2000.Debug.2121059750.2104318735" moduleId="org.eclipse.cdt.core.settings" name="CPU1_FLASH">
|
||||
<macros>
|
||||
<stringMacro name="INSTALLROOT_F2837XD" type="VALUE_PATH_DIR" value="${PROJECT_ROOT}/../../../../.."/>
|
||||
</macros>
|
||||
<externalSettings/>
|
||||
<extensions>
|
||||
<extension id="com.ti.ccstudio.errorparser.CoffErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
|
||||
<extension id="com.ti.ccstudio.errorparser.LinkErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
|
||||
<extension id="com.ti.ccstudio.errorparser.AsmErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
|
||||
<extension id="org.eclipse.cdt.core.GmakeErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
|
||||
<extension id="com.ti.ccstudio.binaryparser.CoffParser" point="org.eclipse.cdt.core.BinaryParser"/>
|
||||
</extensions>
|
||||
</storageModule>
|
||||
<storageModule moduleId="cdtBuildSystem" version="4.0.0">
|
||||
<configuration artifactExtension="out" artifactName="${ProjName}" buildProperties="" cleanCommand="${CG_CLEAN_CMD}" description="Flash Build Configuration w/Debugger Support for CPU1" id="com.ti.ccstudio.buildDefinitions.C2000.Debug.2121059750.2104318735" name="CPU1_FLASH" parent="com.ti.ccstudio.buildDefinitions.C2000.Debug">
|
||||
<folderInfo id="com.ti.ccstudio.buildDefinitions.C2000.Debug.2121059750.2104318735." name="/" resourcePath="">
|
||||
<toolChain id="com.ti.ccstudio.buildDefinitions.C2000_15.12.exe.DebugToolchain.2007773895" name="TI Build Tools" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.exe.DebugToolchain" targetTool="com.ti.ccstudio.buildDefinitions.C2000_15.12.exe.linkerDebug.1196780935">
|
||||
<option id="com.ti.ccstudio.buildDefinitions.core.OPT_TAGS.1260865171" superClass="com.ti.ccstudio.buildDefinitions.core.OPT_TAGS" valueType="stringList">
|
||||
<listOptionValue builtIn="false" value="DEVICE_CONFIGURATION_ID=com.ti.ccstudio.deviceModel.C2000.GenericC28xxDevice"/>
|
||||
<listOptionValue builtIn="false" value="DEVICE_ENDIANNESS=little"/>
|
||||
<listOptionValue builtIn="false" value="OUTPUT_FORMAT=COFF"/>
|
||||
<listOptionValue builtIn="false" value="CCS_MBS_VERSION=6.1.3"/>
|
||||
<listOptionValue builtIn="false" value="RUNTIME_SUPPORT_LIBRARY=libc.a"/>
|
||||
<listOptionValue builtIn="false" value="OUTPUT_TYPE=executable"/>
|
||||
</option>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.core.OPT_CODEGEN_VERSION.171731318" superClass="com.ti.ccstudio.buildDefinitions.core.OPT_CODEGEN_VERSION" value="15.12.1.LTS" valueType="string"/>
|
||||
<targetPlatform id="com.ti.ccstudio.buildDefinitions.C2000_15.12.exe.targetPlatformDebug.998560962" name="Platform" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.exe.targetPlatformDebug"/>
|
||||
<builder buildPath="${BuildDirectory}" id="com.ti.ccstudio.buildDefinitions.C2000_15.12.exe.builderDebug.1026523860" name="GNU Make.CPU1_FLASH" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.exe.builderDebug"/>
|
||||
<tool id="com.ti.ccstudio.buildDefinitions.C2000_15.12.exe.compilerDebug.1983273396" name="C2000 Compiler" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.exe.compilerDebug">
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.SILICON_VERSION.1746640428" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.SILICON_VERSION" value="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.SILICON_VERSION.28" valueType="enumerated"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.LARGE_MEMORY_MODEL.483780224" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.LARGE_MEMORY_MODEL" value="true" valueType="boolean"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.UNIFIED_MEMORY.844023505" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.UNIFIED_MEMORY" value="true" valueType="boolean"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.CLA_SUPPORT.592436223" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.CLA_SUPPORT" value="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.CLA_SUPPORT.cla1" valueType="enumerated"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.FLOAT_SUPPORT.2082978677" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.FLOAT_SUPPORT" value="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.FLOAT_SUPPORT.fpu32" valueType="enumerated"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.TMU_SUPPORT.325365233" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.TMU_SUPPORT" value="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.TMU_SUPPORT.tmu0" valueType="enumerated"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.VCU_SUPPORT.1132825626" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.VCU_SUPPORT" value="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.VCU_SUPPORT.vcu2" valueType="enumerated"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.INCLUDE_PATH.139250776" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.INCLUDE_PATH" valueType="includePath">
|
||||
<listOptionValue builtIn="false" value=""${CG_TOOL_ROOT}/include""/>
|
||||
<listOptionValue builtIn="false" value=""${INSTALLROOT_F2837XD}/headers/include""/>
|
||||
<listOptionValue builtIn="false" value=""${INSTALLROOT_F2837XD}/common/include""/>
|
||||
</option>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.DEBUGGING_MODEL.10260223" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.DEBUGGING_MODEL" value="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.DEBUGGING_MODEL.SYMDEBUG__DWARF" valueType="enumerated"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.DEFINE.1231636774" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.DEFINE" valueType="definedSymbols">
|
||||
<listOptionValue builtIn="false" value="CPU1"/>
|
||||
<listOptionValue builtIn="false" value="_FLASH"/>
|
||||
</option>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.DIAG_WARNING.919348326" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.DIAG_WARNING" valueType="stringList">
|
||||
<listOptionValue builtIn="false" value="225"/>
|
||||
</option>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.DISPLAY_ERROR_NUMBER.1935308309" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.DISPLAY_ERROR_NUMBER" value="true" valueType="boolean"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.DIAG_SUPPRESS.1374542657" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.DIAG_SUPPRESS" valueType="stringList">
|
||||
<listOptionValue builtIn="false" value="1311"/>
|
||||
</option>
|
||||
<inputType id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compiler.inputType__C_SRCS.999626653" name="C Sources" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compiler.inputType__C_SRCS"/>
|
||||
<inputType id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compiler.inputType__CPP_SRCS.1678633851" name="C++ Sources" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compiler.inputType__CPP_SRCS"/>
|
||||
<inputType id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compiler.inputType__ASM_SRCS.883274384" name="Assembly Sources" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compiler.inputType__ASM_SRCS"/>
|
||||
<inputType id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compiler.inputType__ASM2_SRCS.1372498627" name="Assembly Sources" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compiler.inputType__ASM2_SRCS"/>
|
||||
</tool>
|
||||
<tool id="com.ti.ccstudio.buildDefinitions.C2000_15.12.exe.linkerDebug.1196780935" name="C2000 Linker" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.exe.linkerDebug">
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.OUTPUT_FILE.1624960285" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.OUTPUT_FILE" value=""${ProjName}.out"" valueType="string"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.MAP_FILE.1720440422" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.MAP_FILE" value=""${ProjName}.map"" valueType="string"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.STACK_SIZE.1035698357" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.STACK_SIZE" value="0x100" valueType="string"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.LIBRARY.613124616" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.LIBRARY" valueType="libs">
|
||||
<listOptionValue builtIn="false" value=""rts2800_fpu32.lib""/>
|
||||
<listOptionValue builtIn="false" value=""2837xD_FLASH_lnk_cpu1.cmd""/>
|
||||
<listOptionValue builtIn="false" value=""F2837xD_Headers_nonBIOS_cpu1.cmd""/>
|
||||
<listOptionValue builtIn="false" value=""libc.a""/>
|
||||
</option>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.SEARCH_PATH.1311265795" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.SEARCH_PATH" valueType="libPaths">
|
||||
<listOptionValue builtIn="false" value=""${CG_TOOL_ROOT}/lib""/>
|
||||
<listOptionValue builtIn="false" value=""${CG_TOOL_ROOT}/include""/>
|
||||
<listOptionValue builtIn="false" value=""${INSTALLROOT_F2837XD}/common/cmd""/>
|
||||
<listOptionValue builtIn="false" value=""${INSTALLROOT_F2837XD}/headers/cmd""/>
|
||||
</option>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.DISPLAY_ERROR_NUMBER.464752910" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.DISPLAY_ERROR_NUMBER" value="true" valueType="boolean"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.XML_LINK_INFO.795874685" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.XML_LINK_INFO" value=""${ProjName}_linkInfo.xml"" valueType="string"/>
|
||||
<inputType id="com.ti.ccstudio.buildDefinitions.C2000_15.12.exeLinker.inputType__CMD_SRCS.1147591927" name="Linker Command Files" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.exeLinker.inputType__CMD_SRCS"/>
|
||||
<inputType id="com.ti.ccstudio.buildDefinitions.C2000_15.12.exeLinker.inputType__CMD2_SRCS.2142240018" name="Linker Command Files" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.exeLinker.inputType__CMD2_SRCS"/>
|
||||
<inputType id="com.ti.ccstudio.buildDefinitions.C2000_15.12.exeLinker.inputType__GEN_CMDS.274306935" name="Generated Linker Command Files" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.exeLinker.inputType__GEN_CMDS"/>
|
||||
</tool>
|
||||
</toolChain>
|
||||
</folderInfo>
|
||||
</configuration>
|
||||
</storageModule>
|
||||
<storageModule moduleId="org.eclipse.cdt.core.externalSettings"/>
|
||||
</cconfiguration>
|
||||
</storageModule>
|
||||
<storageModule moduleId="org.eclipse.cdt.core.LanguageSettingsProviders"/>
|
||||
<storageModule moduleId="cdtBuildSystem" version="4.0.0">
|
||||
<project id="adc_soc_epwm_dc_cpu01.com.ti.ccstudio.buildDefinitions.C2000.ProjectType.253935156" name="C2000" projectType="com.ti.ccstudio.buildDefinitions.C2000.ProjectType"/>
|
||||
</storageModule>
|
||||
<storageModule moduleId="scannerConfiguration"/>
|
||||
<storageModule moduleId="org.eclipse.cdt.core.language.mapping">
|
||||
<project-mappings>
|
||||
<content-type-mapping configuration="" content-type="org.eclipse.cdt.core.asmSource" language="com.ti.ccstudio.core.TIASMLanguage"/>
|
||||
<content-type-mapping configuration="" content-type="org.eclipse.cdt.core.cHeader" language="com.ti.ccstudio.core.TIGCCLanguage"/>
|
||||
<content-type-mapping configuration="" content-type="org.eclipse.cdt.core.cSource" language="com.ti.ccstudio.core.TIGCCLanguage"/>
|
||||
<content-type-mapping configuration="" content-type="org.eclipse.cdt.core.cxxHeader" language="com.ti.ccstudio.core.TIGPPLanguage"/>
|
||||
<content-type-mapping configuration="" content-type="org.eclipse.cdt.core.cxxSource" language="com.ti.ccstudio.core.TIGPPLanguage"/>
|
||||
</project-mappings>
|
||||
</storageModule>
|
||||
<storageModule moduleId="null.endianPreference"/>
|
||||
<storageModule moduleId="cpuFamily"/>
|
||||
</cproject>
|
||||
+95
@@ -0,0 +1,95 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<projectDescription>
|
||||
<name>adc_soc_epwm_tempsensor_cpu01</name>
|
||||
<comment></comment>
|
||||
<projects>
|
||||
</projects>
|
||||
<buildSpec>
|
||||
<buildCommand>
|
||||
<name>org.eclipse.cdt.managedbuilder.core.genmakebuilder</name>
|
||||
<arguments>
|
||||
</arguments>
|
||||
</buildCommand>
|
||||
<buildCommand>
|
||||
<name>org.eclipse.cdt.managedbuilder.core.ScannerConfigBuilder</name>
|
||||
<triggers>full,incremental,</triggers>
|
||||
<arguments>
|
||||
</arguments>
|
||||
</buildCommand>
|
||||
</buildSpec>
|
||||
<natures>
|
||||
<nature>com.ti.ccstudio.core.ccsNature</nature>
|
||||
<nature>org.eclipse.cdt.core.cnature</nature>
|
||||
<nature>org.eclipse.cdt.managedbuilder.core.managedBuildNature</nature>
|
||||
<nature>org.eclipse.cdt.core.ccnature</nature>
|
||||
<nature>org.eclipse.cdt.managedbuilder.core.ScannerConfigNature</nature>
|
||||
</natures>
|
||||
<linkedResources>
|
||||
<link>
|
||||
<name>F2837xD_Adc.c</name>
|
||||
<type>1</type>
|
||||
<locationURI>PARENT-5-PROJECT_LOC/common/source/F2837xD_Adc.c</locationURI>
|
||||
</link>
|
||||
<link>
|
||||
<name>F2837xD_CodeStartBranch.asm</name>
|
||||
<type>1</type>
|
||||
<locationURI>PARENT-5-PROJECT_LOC/common/source/F2837xD_CodeStartBranch.asm</locationURI>
|
||||
</link>
|
||||
<link>
|
||||
<name>F2837xD_DefaultISR.c</name>
|
||||
<type>1</type>
|
||||
<locationURI>PARENT-5-PROJECT_LOC/common/source/F2837xD_DefaultISR.c</locationURI>
|
||||
</link>
|
||||
<link>
|
||||
<name>F2837xD_GlobalVariableDefs.c</name>
|
||||
<type>1</type>
|
||||
<locationURI>PARENT-5-PROJECT_LOC/headers/source/F2837xD_GlobalVariableDefs.c</locationURI>
|
||||
</link>
|
||||
<link>
|
||||
<name>F2837xD_Gpio.c</name>
|
||||
<type>1</type>
|
||||
<locationURI>PARENT-5-PROJECT_LOC/common/source/F2837xD_Gpio.c</locationURI>
|
||||
</link>
|
||||
<link>
|
||||
<name>F2837xD_Ipc.c</name>
|
||||
<type>1</type>
|
||||
<locationURI>PARENT-5-PROJECT_LOC/common/source/F2837xD_Ipc.c</locationURI>
|
||||
</link>
|
||||
<link>
|
||||
<name>F2837xD_PieCtrl.c</name>
|
||||
<type>1</type>
|
||||
<locationURI>PARENT-5-PROJECT_LOC/common/source/F2837xD_PieCtrl.c</locationURI>
|
||||
</link>
|
||||
<link>
|
||||
<name>F2837xD_PieVect.c</name>
|
||||
<type>1</type>
|
||||
<locationURI>PARENT-5-PROJECT_LOC/common/source/F2837xD_PieVect.c</locationURI>
|
||||
</link>
|
||||
<link>
|
||||
<name>F2837xD_SysCtrl.c</name>
|
||||
<type>1</type>
|
||||
<locationURI>PARENT-5-PROJECT_LOC/common/source/F2837xD_SysCtrl.c</locationURI>
|
||||
</link>
|
||||
<link>
|
||||
<name>F2837xD_TempSensorConv.c</name>
|
||||
<type>1</type>
|
||||
<locationURI>PARENT-5-PROJECT_LOC/common/source/F2837xD_TempSensorConv.c</locationURI>
|
||||
</link>
|
||||
<link>
|
||||
<name>F2837xD_usDelay.asm</name>
|
||||
<type>1</type>
|
||||
<locationURI>PARENT-5-PROJECT_LOC/common/source/F2837xD_usDelay.asm</locationURI>
|
||||
</link>
|
||||
<link>
|
||||
<name>adc_soc_epwm_tempsensor_cpu01.c</name>
|
||||
<type>1</type>
|
||||
<locationURI>PARENT-1-PROJECT_LOC/adc_soc_epwm_tempsensor_cpu01.c</locationURI>
|
||||
</link>
|
||||
</linkedResources>
|
||||
<variableList>
|
||||
<variable>
|
||||
<name>INSTALLROOT_F2837XD</name>
|
||||
<value>$%7BPARENT-4-PROJECT_LOC%7D</value>
|
||||
</variable>
|
||||
</variableList>
|
||||
</projectDescription>
|
||||
+22
@@ -0,0 +1,22 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<configurations XML_version="1.2" id="configurations_0">
|
||||
<configuration XML_version="1.2" id="Texas Instruments XDS100v2 USB Debug Probe_0">
|
||||
<instance XML_version="1.2" desc="Texas Instruments XDS100v2 USB Debug Probe_0" href="connections/TIXDS100v2_Connection.xml" id="Texas Instruments XDS100v2 USB Debug Probe_0" xml="TIXDS100v2_Connection.xml" xmlpath="connections"/>
|
||||
<connection XML_version="1.2" id="Texas Instruments XDS100v2 USB Debug Probe_0">
|
||||
<instance XML_version="1.2" href="drivers/tixds100v2icepick_c.xml" id="drivers" xml="tixds100v2icepick_c.xml" xmlpath="drivers"/>
|
||||
<instance XML_version="1.2" href="drivers/tixds100v2c28x.xml" id="drivers" xml="tixds100v2c28x.xml" xmlpath="drivers"/>
|
||||
<instance XML_version="1.2" href="drivers/tixds100v2cla1.xml" id="drivers" xml="tixds100v2cla1.xml" xmlpath="drivers"/>
|
||||
<instance XML_version="1.2" href="drivers/tixds100v2cs_child.xml" id="drivers" xml="tixds100v2cs_child.xml" xmlpath="drivers"/>
|
||||
<platform XML_version="1.2" id="platform_0">
|
||||
<instance XML_version="1.2" desc="TMS320F28377D_0" href="devices/tms320f28377d.xml" id="TMS320F28377D_0" xml="tms320f28377d.xml" xmlpath="devices"/>
|
||||
<device HW_revision="1" XML_version="1.2" description="" id="TMS320F28377D_0" partnum="TMS320F28377D">
|
||||
<router HW_revision="1.0" XML_version="1.2" description="ICEPick_C router" id="IcePick_C_0" isa="ICEPICK_C">
|
||||
<subpath id="Subpath_1">
|
||||
<property Type="numericfield" Value="0x11" desc="Port Number_0" id="Port Number"/>
|
||||
</subpath>
|
||||
</router>
|
||||
</device>
|
||||
</platform>
|
||||
</connection>
|
||||
</configuration>
|
||||
</configurations>
|
||||
+274
@@ -0,0 +1,274 @@
|
||||
//###########################################################################
|
||||
//
|
||||
// FILE: adc_soc_software_cpu01.c
|
||||
//
|
||||
// TITLE: ADC software triggering for F2837xD.
|
||||
//
|
||||
//! \addtogroup cpu01_example_list
|
||||
//! <h1> ADC SOC Software Force (adc_soc_software)</h1>
|
||||
//!
|
||||
//! This example converts some voltages on ADCA and ADCB based on a software
|
||||
//! trigger.
|
||||
//!
|
||||
//! After the program runs, the memory will contain:
|
||||
//!
|
||||
//! - \b AdcaResult0 \b: a digital representation of the voltage on pin A2\n
|
||||
//! - \b AdcaResult1 \b: a digital representation of the voltage on pin A3\n
|
||||
//! - \b AdcbResult0 \b: a digital representation of the voltage on pin B2\n
|
||||
//! - \b AdcbResult1 \b: a digital representation of the voltage on pin B3\n
|
||||
//!
|
||||
//! Note: The software triggers for the two ADCs happen sequentially, so the
|
||||
//! two ADCs will run asynchronously.
|
||||
//!
|
||||
//
|
||||
//###########################################################################
|
||||
//
|
||||
// $Release Date: $
|
||||
// $Copyright:
|
||||
// Copyright (C) 2013-2024 Texas Instruments Incorporated - http://www.ti.com/
|
||||
//
|
||||
// Redistribution and use in source and binary forms, with or without
|
||||
// modification, are permitted provided that the following conditions
|
||||
// are met:
|
||||
//
|
||||
// Redistributions of source code must retain the above copyright
|
||||
// notice, this list of conditions and the following disclaimer.
|
||||
//
|
||||
// Redistributions in binary form must reproduce the above copyright
|
||||
// notice, this list of conditions and the following disclaimer in the
|
||||
// documentation and/or other materials provided with the
|
||||
// distribution.
|
||||
//
|
||||
// Neither the name of Texas Instruments Incorporated nor the names of
|
||||
// its contributors may be used to endorse or promote products derived
|
||||
// from this software without specific prior written permission.
|
||||
//
|
||||
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||
// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||
// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
||||
// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
||||
// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||
// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||
// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
||||
// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
||||
// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
// $
|
||||
//###########################################################################
|
||||
|
||||
//
|
||||
// Included Files
|
||||
//
|
||||
#include "F28x_Project.h"
|
||||
|
||||
//
|
||||
// Function Prototypes
|
||||
//
|
||||
void ConfigureADC(void);
|
||||
void SetupADCSoftware(void);
|
||||
|
||||
//
|
||||
// Globals
|
||||
//
|
||||
Uint16 AdcaResult0;
|
||||
Uint16 AdcaResult1;
|
||||
Uint16 AdcbResult0;
|
||||
Uint16 AdcbResult1;
|
||||
|
||||
void main(void)
|
||||
{
|
||||
//
|
||||
// Step 1. Initialize System Control:
|
||||
// PLL, WatchDog, enable Peripheral Clocks
|
||||
// This example function is found in the F2837xD_SysCtrl.c file.
|
||||
//
|
||||
InitSysCtrl();
|
||||
|
||||
//
|
||||
// Step 2. Initialize GPIO:
|
||||
// This example function is found in the F2837xD_Gpio.c file and
|
||||
// illustrates how to set the GPIO to it's default state.
|
||||
//
|
||||
InitGpio();
|
||||
|
||||
//
|
||||
// Step 3. Clear all interrupts and initialize PIE vector table:
|
||||
// Disable CPU interrupts
|
||||
//
|
||||
DINT;
|
||||
|
||||
//
|
||||
// Initialize the PIE control registers to their default state.
|
||||
// The default state is all PIE interrupts disabled and flags
|
||||
// are cleared.
|
||||
// This function is found in the F2837xD_PieCtrl.c file.
|
||||
//
|
||||
InitPieCtrl();
|
||||
|
||||
//
|
||||
// Disable CPU interrupts and clear all CPU interrupt flags:
|
||||
//
|
||||
IER = 0x0000;
|
||||
IFR = 0x0000;
|
||||
|
||||
//
|
||||
// Initialize the PIE vector table with pointers to the shell Interrupt
|
||||
// Service Routines (ISR).
|
||||
// This will populate the entire table, even if the interrupt
|
||||
// is not used in this example. This is useful for debug purposes.
|
||||
// The shell ISR routines are found in F2837xD_DefaultIsr.c.
|
||||
// This function is found in F2837xD_PieVect.c.
|
||||
//
|
||||
InitPieVectTable();
|
||||
|
||||
//
|
||||
// Enable global Interrupts and higher priority real-time debug events:
|
||||
//
|
||||
EINT; // Enable Global interrupt INTM
|
||||
ERTM; // Enable Global realtime interrupt DBGM
|
||||
|
||||
//
|
||||
//Configure the ADCs and power them up
|
||||
//
|
||||
ConfigureADC();
|
||||
|
||||
//
|
||||
//Setup the ADCs for software conversions
|
||||
//
|
||||
SetupADCSoftware();
|
||||
|
||||
//
|
||||
//take conversions indefinitely in loop
|
||||
//
|
||||
do
|
||||
{
|
||||
//
|
||||
//convert, wait for completion, and store results
|
||||
//start conversions immediately via software, ADCA
|
||||
//
|
||||
AdcaRegs.ADCSOCFRC1.all = 0x0003; //SOC0 and SOC1
|
||||
|
||||
//
|
||||
//start conversions immediately via software, ADCB
|
||||
//
|
||||
AdcbRegs.ADCSOCFRC1.all = 0x0003; //SOC0 and SOC1
|
||||
|
||||
//
|
||||
//wait for ADCA to complete, then acknowledge flag
|
||||
//
|
||||
while(AdcaRegs.ADCINTFLG.bit.ADCINT1 == 0);
|
||||
AdcaRegs.ADCINTFLGCLR.bit.ADCINT1 = 1;
|
||||
|
||||
//
|
||||
//wait for ADCB to complete, then acknowledge flag
|
||||
//
|
||||
while(AdcbRegs.ADCINTFLG.bit.ADCINT1 == 0);
|
||||
AdcbRegs.ADCINTFLGCLR.bit.ADCINT1 = 1;
|
||||
|
||||
//
|
||||
//store results
|
||||
//
|
||||
AdcaResult0 = AdcaResultRegs.ADCRESULT0;
|
||||
AdcaResult1 = AdcaResultRegs.ADCRESULT1;
|
||||
AdcbResult0 = AdcbResultRegs.ADCRESULT0;
|
||||
AdcbResult1 = AdcbResultRegs.ADCRESULT1;
|
||||
|
||||
//
|
||||
//at this point, conversion results are stored in
|
||||
//AdcaResult0, AdcaResult1, AdcbResult0, and AdcbResult1
|
||||
//
|
||||
|
||||
//
|
||||
//software breakpoint, hit run again to get updated conversions
|
||||
//
|
||||
asm(" ESTOP0");
|
||||
|
||||
}while(1);
|
||||
}
|
||||
|
||||
//
|
||||
// ConfigureADC - Write ADC configurations and power up the ADC for both
|
||||
// ADC A and ADC B
|
||||
//
|
||||
void ConfigureADC(void)
|
||||
{
|
||||
EALLOW;
|
||||
|
||||
//
|
||||
//write configurations
|
||||
//
|
||||
AdcaRegs.ADCCTL2.bit.PRESCALE = 6; //set ADCCLK divider to /4
|
||||
AdcbRegs.ADCCTL2.bit.PRESCALE = 6; //set ADCCLK divider to /4
|
||||
AdcSetMode(ADC_ADCA, ADC_RESOLUTION_12BIT, ADC_SIGNALMODE_SINGLE);
|
||||
AdcSetMode(ADC_ADCB, ADC_RESOLUTION_12BIT, ADC_SIGNALMODE_SINGLE);
|
||||
|
||||
//
|
||||
//Set pulse positions to late
|
||||
//
|
||||
AdcaRegs.ADCCTL1.bit.INTPULSEPOS = 1;
|
||||
AdcbRegs.ADCCTL1.bit.INTPULSEPOS = 1;
|
||||
|
||||
//
|
||||
//power up the ADCs
|
||||
//
|
||||
AdcaRegs.ADCCTL1.bit.ADCPWDNZ = 1;
|
||||
AdcbRegs.ADCCTL1.bit.ADCPWDNZ = 1;
|
||||
|
||||
//
|
||||
//delay for 1ms to allow ADC time to power up
|
||||
//
|
||||
DELAY_US(1000);
|
||||
|
||||
EDIS;
|
||||
}
|
||||
|
||||
//
|
||||
// SetupADCSoftware - Setup ADC channels and acquisition window
|
||||
//
|
||||
void SetupADCSoftware(void)
|
||||
{
|
||||
Uint16 acqps;
|
||||
|
||||
//
|
||||
// Determine minimum acquisition window (in SYSCLKS) based on resolution
|
||||
//
|
||||
if(ADC_RESOLUTION_12BIT == AdcaRegs.ADCCTL2.bit.RESOLUTION)
|
||||
{
|
||||
acqps = 14; //75ns
|
||||
}
|
||||
else //resolution is 16-bit
|
||||
{
|
||||
acqps = 63; //320ns
|
||||
}
|
||||
|
||||
//
|
||||
//Select the channels to convert and end of conversion flag
|
||||
//ADCA
|
||||
//
|
||||
EALLOW;
|
||||
AdcaRegs.ADCSOC0CTL.bit.CHSEL = 2; //SOC0 will convert pin A2
|
||||
AdcaRegs.ADCSOC0CTL.bit.ACQPS = acqps; //sample window is acqps +
|
||||
//1 SYSCLK cycles
|
||||
AdcaRegs.ADCSOC1CTL.bit.CHSEL = 3; //SOC1 will convert pin A3
|
||||
AdcaRegs.ADCSOC1CTL.bit.ACQPS = acqps; //sample window is acqps +
|
||||
//1 SYSCLK cycles
|
||||
AdcaRegs.ADCINTSEL1N2.bit.INT1SEL = 1; //end of SOC1 will set INT1 flag
|
||||
AdcaRegs.ADCINTSEL1N2.bit.INT1E = 1; //enable INT1 flag
|
||||
AdcaRegs.ADCINTFLGCLR.bit.ADCINT1 = 1; //make sure INT1 flag is cleared
|
||||
//ADCB
|
||||
AdcbRegs.ADCSOC0CTL.bit.CHSEL = 2; //SOC0 will convert pin B2
|
||||
AdcbRegs.ADCSOC0CTL.bit.ACQPS = acqps; //sample window is acqps +
|
||||
//1 SYSCLK cycles
|
||||
AdcbRegs.ADCSOC1CTL.bit.CHSEL = 3; //SOC1 will convert pin B3
|
||||
AdcbRegs.ADCSOC1CTL.bit.ACQPS = acqps; //sample window is acqps +
|
||||
//1 SYSCLK cycles
|
||||
AdcbRegs.ADCINTSEL1N2.bit.INT1SEL = 1; //end of SOC1 will set INT1 flag
|
||||
AdcbRegs.ADCINTSEL1N2.bit.INT1E = 1; //enable INT1 flag
|
||||
AdcbRegs.ADCINTFLGCLR.bit.ADCINT1 = 1; //make sure INT1 flag is cleared
|
||||
EDIS;
|
||||
}
|
||||
|
||||
//
|
||||
// End of file
|
||||
//
|
||||
@@ -0,0 +1,12 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<?ccsproject version="1.0"?>
|
||||
<projectOptions>
|
||||
<deviceVariant value="com.ti.ccstudio.deviceModel.C2000.GenericC28xxDevice"/>
|
||||
<deviceFamily value="C2000"/>
|
||||
<codegenToolVersion value="6.3.0.A13150"/>
|
||||
<isElfFormat value="false"/>
|
||||
<connection value=""/>
|
||||
<rts value="libc.a"/>
|
||||
<templateProperties value="id=com.ti.common.project.core.emptyProjectTemplate,"/>
|
||||
<isTargetManual value="false"/>
|
||||
</projectOptions>
|
||||
@@ -0,0 +1,194 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<?fileVersion 4.0.0?><cproject storage_type_id="org.eclipse.cdt.core.XmlProjectDescriptionStorage">
|
||||
<storageModule configRelations="2" moduleId="org.eclipse.cdt.core.settings">
|
||||
<cconfiguration id="com.ti.ccstudio.buildDefinitions.C2000.Debug.2121059750">
|
||||
<storageModule buildSystemId="org.eclipse.cdt.managedbuilder.core.configurationDataProvider" id="com.ti.ccstudio.buildDefinitions.C2000.Debug.2121059750" moduleId="org.eclipse.cdt.core.settings" name="CPU1_RAM">
|
||||
<macros>
|
||||
<stringMacro name="INSTALLROOT_F2837XD" type="VALUE_PATH_DIR" value="${PROJECT_ROOT}/../../../../.."/>
|
||||
</macros>
|
||||
<externalSettings/>
|
||||
<extensions>
|
||||
<extension id="com.ti.ccstudio.errorparser.CoffErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
|
||||
<extension id="com.ti.ccstudio.errorparser.LinkErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
|
||||
<extension id="com.ti.ccstudio.errorparser.AsmErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
|
||||
<extension id="org.eclipse.cdt.core.GmakeErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
|
||||
<extension id="com.ti.ccstudio.binaryparser.CoffParser" point="org.eclipse.cdt.core.BinaryParser"/>
|
||||
</extensions>
|
||||
</storageModule>
|
||||
<storageModule moduleId="cdtBuildSystem" version="4.0.0">
|
||||
<configuration artifactExtension="out" artifactName="${ProjName}" buildProperties="" cleanCommand="${CG_CLEAN_CMD}" description="RAM Build Configuration w/Debugger Support for CPU1" id="com.ti.ccstudio.buildDefinitions.C2000.Debug.2121059750" name="CPU1_RAM" parent="com.ti.ccstudio.buildDefinitions.C2000.Debug">
|
||||
<folderInfo id="com.ti.ccstudio.buildDefinitions.C2000.Debug.2121059750." name="/" resourcePath="">
|
||||
<toolChain id="com.ti.ccstudio.buildDefinitions.C2000_15.12.exe.DebugToolchain.413921061" name="TI Build Tools" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.exe.DebugToolchain" targetTool="com.ti.ccstudio.buildDefinitions.C2000_15.12.exe.linkerDebug.887589513">
|
||||
<option id="com.ti.ccstudio.buildDefinitions.core.OPT_TAGS.563740468" superClass="com.ti.ccstudio.buildDefinitions.core.OPT_TAGS" valueType="stringList">
|
||||
<listOptionValue builtIn="false" value="DEVICE_CONFIGURATION_ID=com.ti.ccstudio.deviceModel.C2000.GenericC28xxDevice"/>
|
||||
<listOptionValue builtIn="false" value="DEVICE_ENDIANNESS=little"/>
|
||||
<listOptionValue builtIn="false" value="OUTPUT_FORMAT=COFF"/>
|
||||
<listOptionValue builtIn="false" value="CCS_MBS_VERSION=6.1.3"/>
|
||||
<listOptionValue builtIn="false" value="RUNTIME_SUPPORT_LIBRARY=libc.a"/>
|
||||
<listOptionValue builtIn="false" value="OUTPUT_TYPE=executable"/>
|
||||
</option>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.core.OPT_CODEGEN_VERSION.473125271" name="Compiler version" superClass="com.ti.ccstudio.buildDefinitions.core.OPT_CODEGEN_VERSION" value="15.12.1.LTS" valueType="string"/>
|
||||
<targetPlatform id="com.ti.ccstudio.buildDefinitions.C2000_15.12.exe.targetPlatformDebug.1565183437" name="Platform" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.exe.targetPlatformDebug"/>
|
||||
<builder buildPath="${BuildDirectory}" id="com.ti.ccstudio.buildDefinitions.C2000_15.12.exe.builderDebug.264545597" keepEnvironmentInBuildfile="false" name="GNU Make" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.exe.builderDebug"/>
|
||||
<tool id="com.ti.ccstudio.buildDefinitions.C2000_15.12.exe.compilerDebug.1140012029" name="C2000 Compiler" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.exe.compilerDebug">
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.SILICON_VERSION.1337883846" name="Processor version (--silicon_version, -v)" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.SILICON_VERSION" value="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.SILICON_VERSION.28" valueType="enumerated"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.LARGE_MEMORY_MODEL.465887399" name="Option deprecated, set by default (--large_memory_model, -ml)" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.LARGE_MEMORY_MODEL" value="true" valueType="boolean"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.UNIFIED_MEMORY.2078660089" name="Unified memory (--unified_memory, -mt)" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.UNIFIED_MEMORY" value="true" valueType="boolean"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.CLA_SUPPORT.651478595" name="Specify CLA support (--cla_support)" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.CLA_SUPPORT" value="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.CLA_SUPPORT.cla1" valueType="enumerated"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.FLOAT_SUPPORT.199005111" name="Specify floating point support (--float_support)" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.FLOAT_SUPPORT" value="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.FLOAT_SUPPORT.fpu32" valueType="enumerated"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.TMU_SUPPORT.76144349" name="Specify TMU support (--tmu_support)" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.TMU_SUPPORT" value="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.TMU_SUPPORT.tmu0" valueType="enumerated"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.VCU_SUPPORT.448552943" name="Specify VCU support (--vcu_support)" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.VCU_SUPPORT" value="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.VCU_SUPPORT.vcu2" valueType="enumerated"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.INCLUDE_PATH.14855074" name="Add dir to #include search path (--include_path, -I)" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.INCLUDE_PATH" valueType="includePath">
|
||||
<listOptionValue builtIn="false" value=""${CG_TOOL_ROOT}/include""/>
|
||||
<listOptionValue builtIn="false" value=""${INSTALLROOT_F2837XD}/headers/include""/>
|
||||
<listOptionValue builtIn="false" value=""${INSTALLROOT_F2837XD}/common/include""/>
|
||||
</option>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.DEBUGGING_MODEL.615701676" name="Debugging model" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.DEBUGGING_MODEL" value="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.DEBUGGING_MODEL.SYMDEBUG__DWARF" valueType="enumerated"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.DEFINE.1347047073" name="Pre-define NAME (--define, -D)" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.DEFINE" valueType="definedSymbols">
|
||||
<listOptionValue builtIn="false" value="CPU1"/>
|
||||
</option>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.DIAG_WARNING.1129611608" name="Treat diagnostic <id> as warning (--diag_warning, -pdsw)" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.DIAG_WARNING" valueType="stringList">
|
||||
<listOptionValue builtIn="false" value="225"/>
|
||||
</option>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.DISPLAY_ERROR_NUMBER.610385726" name="Emit diagnostic identifier numbers (--display_error_number, -pden)" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.DISPLAY_ERROR_NUMBER" value="true" valueType="boolean"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.DIAG_SUPPRESS.2102996582" name="Suppress diagnostic <id> (--diag_suppress, -pds)" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.DIAG_SUPPRESS" valueType="stringList">
|
||||
<listOptionValue builtIn="false" value="1311"/>
|
||||
</option>
|
||||
<inputType id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compiler.inputType__C_SRCS.193643171" name="C Sources" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compiler.inputType__C_SRCS"/>
|
||||
<inputType id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compiler.inputType__CPP_SRCS.1895032178" name="C++ Sources" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compiler.inputType__CPP_SRCS"/>
|
||||
<inputType id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compiler.inputType__ASM_SRCS.1145927155" name="Assembly Sources" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compiler.inputType__ASM_SRCS"/>
|
||||
<inputType id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compiler.inputType__ASM2_SRCS.1223038188" name="Assembly Sources" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compiler.inputType__ASM2_SRCS"/>
|
||||
</tool>
|
||||
<tool id="com.ti.ccstudio.buildDefinitions.C2000_15.12.exe.linkerDebug.887589513" name="C2000 Linker" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.exe.linkerDebug">
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.OUTPUT_FILE.609657178" name="Specify output file name (--output_file, -o)" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.OUTPUT_FILE" value=""${ProjName}.out"" valueType="string"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.MAP_FILE.1112074207" name="Link information (map) listed into <file> (--map_file, -m)" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.MAP_FILE" value=""${ProjName}.map"" valueType="string"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.STACK_SIZE.2112463982" name="Set C system stack size (--stack_size, -stack)" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.STACK_SIZE" value="0x100" valueType="string"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.LIBRARY.1351699933" name="Include library file or command file as input (--library, -l)" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.LIBRARY" valueType="libs">
|
||||
<listOptionValue builtIn="false" value=""rts2800_fpu32.lib""/>
|
||||
<listOptionValue builtIn="false" value=""2837xD_RAM_lnk_cpu1.cmd""/>
|
||||
<listOptionValue builtIn="false" value=""F2837xD_Headers_nonBIOS_cpu1.cmd""/>
|
||||
<listOptionValue builtIn="false" value=""libc.a""/>
|
||||
</option>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.SEARCH_PATH.209969983" name="Add <dir> to library search path (--search_path, -i)" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.SEARCH_PATH" valueType="libPaths">
|
||||
<listOptionValue builtIn="false" value=""${CG_TOOL_ROOT}/lib""/>
|
||||
<listOptionValue builtIn="false" value=""${CG_TOOL_ROOT}/include""/>
|
||||
<listOptionValue builtIn="false" value=""${INSTALLROOT_F2837XD}/common/cmd""/>
|
||||
<listOptionValue builtIn="false" value=""${INSTALLROOT_F2837XD}/headers/cmd""/>
|
||||
</option>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.DISPLAY_ERROR_NUMBER.1619424867" name="Emit diagnostic identifier numbers (--display_error_number)" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.DISPLAY_ERROR_NUMBER" value="true" valueType="boolean"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.XML_LINK_INFO.1637594601" name="Detailed link information data-base into <file> (--xml_link_info, -xml_link_info)" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.XML_LINK_INFO" value=""${ProjName}_linkInfo.xml"" valueType="string"/>
|
||||
<inputType id="com.ti.ccstudio.buildDefinitions.C2000_15.12.exeLinker.inputType__CMD_SRCS.1534351131" name="Linker Command Files" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.exeLinker.inputType__CMD_SRCS"/>
|
||||
<inputType id="com.ti.ccstudio.buildDefinitions.C2000_15.12.exeLinker.inputType__CMD2_SRCS.1014875259" name="Linker Command Files" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.exeLinker.inputType__CMD2_SRCS"/>
|
||||
<inputType id="com.ti.ccstudio.buildDefinitions.C2000_15.12.exeLinker.inputType__GEN_CMDS.248255688" name="Generated Linker Command Files" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.exeLinker.inputType__GEN_CMDS"/>
|
||||
</tool>
|
||||
</toolChain>
|
||||
</folderInfo>
|
||||
</configuration>
|
||||
</storageModule>
|
||||
<storageModule moduleId="org.eclipse.cdt.core.externalSettings"/>
|
||||
</cconfiguration>
|
||||
<cconfiguration id="com.ti.ccstudio.buildDefinitions.C2000.Debug.2121059750.1789319987">
|
||||
<storageModule buildSystemId="org.eclipse.cdt.managedbuilder.core.configurationDataProvider" id="com.ti.ccstudio.buildDefinitions.C2000.Debug.2121059750.1789319987" moduleId="org.eclipse.cdt.core.settings" name="CPU1_FLASH">
|
||||
<macros>
|
||||
<stringMacro name="INSTALLROOT_F2837XD" type="VALUE_PATH_DIR" value="${PROJECT_ROOT}/../../../../.."/>
|
||||
</macros>
|
||||
<externalSettings/>
|
||||
<extensions>
|
||||
<extension id="com.ti.ccstudio.errorparser.CoffErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
|
||||
<extension id="com.ti.ccstudio.errorparser.LinkErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
|
||||
<extension id="com.ti.ccstudio.errorparser.AsmErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
|
||||
<extension id="org.eclipse.cdt.core.GmakeErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
|
||||
<extension id="com.ti.ccstudio.binaryparser.CoffParser" point="org.eclipse.cdt.core.BinaryParser"/>
|
||||
</extensions>
|
||||
</storageModule>
|
||||
<storageModule moduleId="cdtBuildSystem" version="4.0.0">
|
||||
<configuration artifactExtension="out" artifactName="${ProjName}" buildProperties="" cleanCommand="${CG_CLEAN_CMD}" description="Flash Build Configuration w/Debugger Support for CPU1" id="com.ti.ccstudio.buildDefinitions.C2000.Debug.2121059750.1789319987" name="CPU1_FLASH" parent="com.ti.ccstudio.buildDefinitions.C2000.Debug">
|
||||
<folderInfo id="com.ti.ccstudio.buildDefinitions.C2000.Debug.2121059750.1789319987." name="/" resourcePath="">
|
||||
<toolChain id="com.ti.ccstudio.buildDefinitions.C2000_15.12.exe.DebugToolchain.2139940214" name="TI Build Tools" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.exe.DebugToolchain" targetTool="com.ti.ccstudio.buildDefinitions.C2000_15.12.exe.linkerDebug.355224440">
|
||||
<option id="com.ti.ccstudio.buildDefinitions.core.OPT_TAGS.1764298584" superClass="com.ti.ccstudio.buildDefinitions.core.OPT_TAGS" valueType="stringList">
|
||||
<listOptionValue builtIn="false" value="DEVICE_CONFIGURATION_ID=com.ti.ccstudio.deviceModel.C2000.GenericC28xxDevice"/>
|
||||
<listOptionValue builtIn="false" value="DEVICE_ENDIANNESS=little"/>
|
||||
<listOptionValue builtIn="false" value="OUTPUT_FORMAT=COFF"/>
|
||||
<listOptionValue builtIn="false" value="CCS_MBS_VERSION=6.1.3"/>
|
||||
<listOptionValue builtIn="false" value="RUNTIME_SUPPORT_LIBRARY=libc.a"/>
|
||||
<listOptionValue builtIn="false" value="OUTPUT_TYPE=executable"/>
|
||||
</option>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.core.OPT_CODEGEN_VERSION.1358613931" superClass="com.ti.ccstudio.buildDefinitions.core.OPT_CODEGEN_VERSION" value="15.12.1.LTS" valueType="string"/>
|
||||
<targetPlatform id="com.ti.ccstudio.buildDefinitions.C2000_15.12.exe.targetPlatformDebug.1703486886" name="Platform" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.exe.targetPlatformDebug"/>
|
||||
<builder buildPath="${BuildDirectory}" id="com.ti.ccstudio.buildDefinitions.C2000_15.12.exe.builderDebug.1281160852" name="GNU Make.CPU1_FLASH" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.exe.builderDebug"/>
|
||||
<tool id="com.ti.ccstudio.buildDefinitions.C2000_15.12.exe.compilerDebug.904364234" name="C2000 Compiler" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.exe.compilerDebug">
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.SILICON_VERSION.1015194812" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.SILICON_VERSION" value="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.SILICON_VERSION.28" valueType="enumerated"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.LARGE_MEMORY_MODEL.273654794" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.LARGE_MEMORY_MODEL" value="true" valueType="boolean"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.UNIFIED_MEMORY.762786749" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.UNIFIED_MEMORY" value="true" valueType="boolean"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.CLA_SUPPORT.1740915608" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.CLA_SUPPORT" value="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.CLA_SUPPORT.cla1" valueType="enumerated"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.FLOAT_SUPPORT.1605926938" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.FLOAT_SUPPORT" value="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.FLOAT_SUPPORT.fpu32" valueType="enumerated"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.TMU_SUPPORT.1834852851" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.TMU_SUPPORT" value="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.TMU_SUPPORT.tmu0" valueType="enumerated"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.VCU_SUPPORT.1729355561" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.VCU_SUPPORT" value="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.VCU_SUPPORT.vcu2" valueType="enumerated"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.INCLUDE_PATH.1658174729" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.INCLUDE_PATH" valueType="includePath">
|
||||
<listOptionValue builtIn="false" value=""${CG_TOOL_ROOT}/include""/>
|
||||
<listOptionValue builtIn="false" value=""${INSTALLROOT_F2837XD}/headers/include""/>
|
||||
<listOptionValue builtIn="false" value=""${INSTALLROOT_F2837XD}/common/include""/>
|
||||
</option>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.DEBUGGING_MODEL.229200779" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.DEBUGGING_MODEL" value="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.DEBUGGING_MODEL.SYMDEBUG__DWARF" valueType="enumerated"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.DEFINE.295282614" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.DEFINE" valueType="definedSymbols">
|
||||
<listOptionValue builtIn="false" value="CPU1"/>
|
||||
<listOptionValue builtIn="false" value="_FLASH"/>
|
||||
</option>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.DIAG_WARNING.1334959237" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.DIAG_WARNING" valueType="stringList">
|
||||
<listOptionValue builtIn="false" value="225"/>
|
||||
</option>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.DISPLAY_ERROR_NUMBER.1203575071" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.DISPLAY_ERROR_NUMBER" value="true" valueType="boolean"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.DIAG_SUPPRESS.1813735058" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.DIAG_SUPPRESS" valueType="stringList">
|
||||
<listOptionValue builtIn="false" value="1311"/>
|
||||
</option>
|
||||
<inputType id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compiler.inputType__C_SRCS.2059585076" name="C Sources" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compiler.inputType__C_SRCS"/>
|
||||
<inputType id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compiler.inputType__CPP_SRCS.2132289727" name="C++ Sources" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compiler.inputType__CPP_SRCS"/>
|
||||
<inputType id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compiler.inputType__ASM_SRCS.190442020" name="Assembly Sources" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compiler.inputType__ASM_SRCS"/>
|
||||
<inputType id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compiler.inputType__ASM2_SRCS.1418251623" name="Assembly Sources" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compiler.inputType__ASM2_SRCS"/>
|
||||
</tool>
|
||||
<tool id="com.ti.ccstudio.buildDefinitions.C2000_15.12.exe.linkerDebug.355224440" name="C2000 Linker" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.exe.linkerDebug">
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.OUTPUT_FILE.535971001" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.OUTPUT_FILE" value=""${ProjName}.out"" valueType="string"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.MAP_FILE.224387563" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.MAP_FILE" value=""${ProjName}.map"" valueType="string"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.STACK_SIZE.1624555464" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.STACK_SIZE" value="0x100" valueType="string"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.LIBRARY.1401033300" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.LIBRARY" valueType="libs">
|
||||
<listOptionValue builtIn="false" value=""rts2800_fpu32.lib""/>
|
||||
<listOptionValue builtIn="false" value=""2837xD_FLASH_lnk_cpu1.cmd""/>
|
||||
<listOptionValue builtIn="false" value=""F2837xD_Headers_nonBIOS_cpu1.cmd""/>
|
||||
<listOptionValue builtIn="false" value=""libc.a""/>
|
||||
</option>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.SEARCH_PATH.930051281" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.SEARCH_PATH" valueType="libPaths">
|
||||
<listOptionValue builtIn="false" value=""${CG_TOOL_ROOT}/lib""/>
|
||||
<listOptionValue builtIn="false" value=""${CG_TOOL_ROOT}/include""/>
|
||||
<listOptionValue builtIn="false" value=""${INSTALLROOT_F2837XD}/common/cmd""/>
|
||||
<listOptionValue builtIn="false" value=""${INSTALLROOT_F2837XD}/headers/cmd""/>
|
||||
</option>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.DISPLAY_ERROR_NUMBER.890454621" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.DISPLAY_ERROR_NUMBER" value="true" valueType="boolean"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.XML_LINK_INFO.12276861" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.XML_LINK_INFO" value=""${ProjName}_linkInfo.xml"" valueType="string"/>
|
||||
<inputType id="com.ti.ccstudio.buildDefinitions.C2000_15.12.exeLinker.inputType__CMD_SRCS.587230733" name="Linker Command Files" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.exeLinker.inputType__CMD_SRCS"/>
|
||||
<inputType id="com.ti.ccstudio.buildDefinitions.C2000_15.12.exeLinker.inputType__CMD2_SRCS.1749490902" name="Linker Command Files" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.exeLinker.inputType__CMD2_SRCS"/>
|
||||
<inputType id="com.ti.ccstudio.buildDefinitions.C2000_15.12.exeLinker.inputType__GEN_CMDS.961414406" name="Generated Linker Command Files" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.exeLinker.inputType__GEN_CMDS"/>
|
||||
</tool>
|
||||
</toolChain>
|
||||
</folderInfo>
|
||||
</configuration>
|
||||
</storageModule>
|
||||
<storageModule moduleId="org.eclipse.cdt.core.externalSettings"/>
|
||||
</cconfiguration>
|
||||
</storageModule>
|
||||
<storageModule moduleId="org.eclipse.cdt.core.LanguageSettingsProviders"/>
|
||||
<storageModule moduleId="cdtBuildSystem" version="4.0.0">
|
||||
<project id="adc_soc_software_dc_cpu01.com.ti.ccstudio.buildDefinitions.C2000.ProjectType.253935156" name="C2000" projectType="com.ti.ccstudio.buildDefinitions.C2000.ProjectType"/>
|
||||
</storageModule>
|
||||
<storageModule moduleId="scannerConfiguration"/>
|
||||
<storageModule moduleId="org.eclipse.cdt.core.language.mapping">
|
||||
<project-mappings>
|
||||
<content-type-mapping configuration="" content-type="org.eclipse.cdt.core.asmSource" language="com.ti.ccstudio.core.TIASMLanguage"/>
|
||||
<content-type-mapping configuration="" content-type="org.eclipse.cdt.core.cHeader" language="com.ti.ccstudio.core.TIGCCLanguage"/>
|
||||
<content-type-mapping configuration="" content-type="org.eclipse.cdt.core.cSource" language="com.ti.ccstudio.core.TIGCCLanguage"/>
|
||||
<content-type-mapping configuration="" content-type="org.eclipse.cdt.core.cxxHeader" language="com.ti.ccstudio.core.TIGPPLanguage"/>
|
||||
<content-type-mapping configuration="" content-type="org.eclipse.cdt.core.cxxSource" language="com.ti.ccstudio.core.TIGPPLanguage"/>
|
||||
</project-mappings>
|
||||
</storageModule>
|
||||
<storageModule moduleId="null.endianPreference"/>
|
||||
<storageModule moduleId="cpuFamily"/>
|
||||
</cproject>
|
||||
@@ -0,0 +1,90 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<projectDescription>
|
||||
<name>adc_soc_software_cpu01</name>
|
||||
<comment></comment>
|
||||
<projects>
|
||||
</projects>
|
||||
<buildSpec>
|
||||
<buildCommand>
|
||||
<name>org.eclipse.cdt.managedbuilder.core.genmakebuilder</name>
|
||||
<arguments>
|
||||
</arguments>
|
||||
</buildCommand>
|
||||
<buildCommand>
|
||||
<name>org.eclipse.cdt.managedbuilder.core.ScannerConfigBuilder</name>
|
||||
<triggers>full,incremental,</triggers>
|
||||
<arguments>
|
||||
</arguments>
|
||||
</buildCommand>
|
||||
</buildSpec>
|
||||
<natures>
|
||||
<nature>com.ti.ccstudio.core.ccsNature</nature>
|
||||
<nature>org.eclipse.cdt.core.cnature</nature>
|
||||
<nature>org.eclipse.cdt.managedbuilder.core.managedBuildNature</nature>
|
||||
<nature>org.eclipse.cdt.core.ccnature</nature>
|
||||
<nature>org.eclipse.cdt.managedbuilder.core.ScannerConfigNature</nature>
|
||||
</natures>
|
||||
<linkedResources>
|
||||
<link>
|
||||
<name>F2837xD_Adc.c</name>
|
||||
<type>1</type>
|
||||
<locationURI>PARENT-5-PROJECT_LOC/common/source/F2837xD_Adc.c</locationURI>
|
||||
</link>
|
||||
<link>
|
||||
<name>F2837xD_CodeStartBranch.asm</name>
|
||||
<type>1</type>
|
||||
<locationURI>PARENT-5-PROJECT_LOC/common/source/F2837xD_CodeStartBranch.asm</locationURI>
|
||||
</link>
|
||||
<link>
|
||||
<name>F2837xD_DefaultISR.c</name>
|
||||
<type>1</type>
|
||||
<locationURI>PARENT-5-PROJECT_LOC/common/source/F2837xD_DefaultISR.c</locationURI>
|
||||
</link>
|
||||
<link>
|
||||
<name>F2837xD_GlobalVariableDefs.c</name>
|
||||
<type>1</type>
|
||||
<locationURI>PARENT-5-PROJECT_LOC/headers/source/F2837xD_GlobalVariableDefs.c</locationURI>
|
||||
</link>
|
||||
<link>
|
||||
<name>F2837xD_Gpio.c</name>
|
||||
<type>1</type>
|
||||
<locationURI>PARENT-5-PROJECT_LOC/common/source/F2837xD_Gpio.c</locationURI>
|
||||
</link>
|
||||
<link>
|
||||
<name>F2837xD_Ipc.c</name>
|
||||
<type>1</type>
|
||||
<locationURI>PARENT-5-PROJECT_LOC/common/source/F2837xD_Ipc.c</locationURI>
|
||||
</link>
|
||||
<link>
|
||||
<name>F2837xD_PieCtrl.c</name>
|
||||
<type>1</type>
|
||||
<locationURI>PARENT-5-PROJECT_LOC/common/source/F2837xD_PieCtrl.c</locationURI>
|
||||
</link>
|
||||
<link>
|
||||
<name>F2837xD_PieVect.c</name>
|
||||
<type>1</type>
|
||||
<locationURI>PARENT-5-PROJECT_LOC/common/source/F2837xD_PieVect.c</locationURI>
|
||||
</link>
|
||||
<link>
|
||||
<name>F2837xD_SysCtrl.c</name>
|
||||
<type>1</type>
|
||||
<locationURI>PARENT-5-PROJECT_LOC/common/source/F2837xD_SysCtrl.c</locationURI>
|
||||
</link>
|
||||
<link>
|
||||
<name>F2837xD_usDelay.asm</name>
|
||||
<type>1</type>
|
||||
<locationURI>PARENT-5-PROJECT_LOC/common/source/F2837xD_usDelay.asm</locationURI>
|
||||
</link>
|
||||
<link>
|
||||
<name>adc_soc_software_cpu01.c</name>
|
||||
<type>1</type>
|
||||
<locationURI>PARENT-1-PROJECT_LOC/adc_soc_software_cpu01.c</locationURI>
|
||||
</link>
|
||||
</linkedResources>
|
||||
<variableList>
|
||||
<variable>
|
||||
<name>INSTALLROOT_F2837XD</name>
|
||||
<value>$%7BPARENT-4-PROJECT_LOC%7D</value>
|
||||
</variable>
|
||||
</variableList>
|
||||
</projectDescription>
|
||||
+22
@@ -0,0 +1,22 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<configurations XML_version="1.2" id="configurations_0">
|
||||
<configuration XML_version="1.2" id="Texas Instruments XDS100v2 USB Debug Probe_0">
|
||||
<instance XML_version="1.2" desc="Texas Instruments XDS100v2 USB Debug Probe_0" href="connections/TIXDS100v2_Connection.xml" id="Texas Instruments XDS100v2 USB Debug Probe_0" xml="TIXDS100v2_Connection.xml" xmlpath="connections"/>
|
||||
<connection XML_version="1.2" id="Texas Instruments XDS100v2 USB Debug Probe_0">
|
||||
<instance XML_version="1.2" href="drivers/tixds100v2icepick_c.xml" id="drivers" xml="tixds100v2icepick_c.xml" xmlpath="drivers"/>
|
||||
<instance XML_version="1.2" href="drivers/tixds100v2c28x.xml" id="drivers" xml="tixds100v2c28x.xml" xmlpath="drivers"/>
|
||||
<instance XML_version="1.2" href="drivers/tixds100v2cla1.xml" id="drivers" xml="tixds100v2cla1.xml" xmlpath="drivers"/>
|
||||
<instance XML_version="1.2" href="drivers/tixds100v2cs_child.xml" id="drivers" xml="tixds100v2cs_child.xml" xmlpath="drivers"/>
|
||||
<platform XML_version="1.2" id="platform_0">
|
||||
<instance XML_version="1.2" desc="TMS320F28377D_0" href="devices/tms320f28377d.xml" id="TMS320F28377D_0" xml="tms320f28377d.xml" xmlpath="devices"/>
|
||||
<device HW_revision="1" XML_version="1.2" description="" id="TMS320F28377D_0" partnum="TMS320F28377D">
|
||||
<router HW_revision="1.0" XML_version="1.2" description="ICEPick_C router" id="IcePick_C_0" isa="ICEPICK_C">
|
||||
<subpath id="Subpath_1">
|
||||
<property Type="numericfield" Value="0x11" desc="Port Number_0" id="Port Number"/>
|
||||
</subpath>
|
||||
</router>
|
||||
</device>
|
||||
</platform>
|
||||
</connection>
|
||||
</configuration>
|
||||
</configurations>
|
||||
+301
@@ -0,0 +1,301 @@
|
||||
//###########################################################################
|
||||
//
|
||||
// FILE: adc_soc_software_sync_cpu01.c
|
||||
//
|
||||
// TITLE: ADC synchronous software triggering for F2837xD.
|
||||
//
|
||||
//! \addtogroup cpu01_example_list
|
||||
//! <h1> ADC Synchronous SOC Software Force (adc_soc_software_sync)</h1>
|
||||
//!
|
||||
//! This example converts some voltages on ADCA and ADCB using input 5 of the
|
||||
//! input X-BAR as a software force. Input 5 is triggered by toggling GPIO0,
|
||||
//! but any spare GPIO could be used. This method will ensure that both ADCs
|
||||
//! start converting at exactly the same time.
|
||||
//!
|
||||
//! After the program runs, the memory will contain:
|
||||
//!
|
||||
//! - \b AdcaResult0 \b: a digital representation of the voltage on pin A2\n
|
||||
//! - \b AdcaResult1 \b: a digital representation of the voltage on pin A3\n
|
||||
//! - \b AdcbResult0 \b: a digital representation of the voltage on pin B2\n
|
||||
//! - \b AdcbResult1 \b: a digital representation of the voltage on pin B3\n
|
||||
//!
|
||||
//
|
||||
//###########################################################################
|
||||
//
|
||||
//
|
||||
// $Copyright:
|
||||
// Copyright (C) 2013-2024 Texas Instruments Incorporated - http://www.ti.com/
|
||||
//
|
||||
// Redistribution and use in source and binary forms, with or without
|
||||
// modification, are permitted provided that the following conditions
|
||||
// are met:
|
||||
//
|
||||
// Redistributions of source code must retain the above copyright
|
||||
// notice, this list of conditions and the following disclaimer.
|
||||
//
|
||||
// Redistributions in binary form must reproduce the above copyright
|
||||
// notice, this list of conditions and the following disclaimer in the
|
||||
// documentation and/or other materials provided with the
|
||||
// distribution.
|
||||
//
|
||||
// Neither the name of Texas Instruments Incorporated nor the names of
|
||||
// its contributors may be used to endorse or promote products derived
|
||||
// from this software without specific prior written permission.
|
||||
//
|
||||
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||
// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||
// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
||||
// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
||||
// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||
// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||
// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
||||
// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
||||
// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
// $
|
||||
//###########################################################################
|
||||
|
||||
//
|
||||
// Included Files
|
||||
//
|
||||
#include "F28x_Project.h"
|
||||
|
||||
//
|
||||
// Function Prototypes
|
||||
//
|
||||
void ConfigureADC(void);
|
||||
void SetupADCSoftwareSync(void);
|
||||
void SetupInputXBAR5(void);
|
||||
|
||||
//
|
||||
// Globals
|
||||
//
|
||||
Uint16 AdcaResult0;
|
||||
Uint16 AdcaResult1;
|
||||
Uint16 AdcbResult0;
|
||||
Uint16 AdcbResult1;
|
||||
|
||||
void main(void)
|
||||
{
|
||||
//
|
||||
// Step 1. Initialize System Control:
|
||||
// PLL, WatchDog, enable Peripheral Clocks
|
||||
// This example function is found in the F2837xD_SysCtrl.c file.
|
||||
//
|
||||
InitSysCtrl();
|
||||
|
||||
//
|
||||
// Step 2. Initialize GPIO:
|
||||
// This example function is found in the F2837xD_Gpio.c file and
|
||||
// illustrates how to set the GPIO to it's default state.
|
||||
//
|
||||
InitGpio();
|
||||
|
||||
//
|
||||
// Step 3. Clear all interrupts and initialize PIE vector table:
|
||||
// Disable CPU interrupts
|
||||
//
|
||||
DINT;
|
||||
|
||||
//
|
||||
// Initialize the PIE control registers to their default state.
|
||||
// The default state is all PIE interrupts disabled and flags
|
||||
// are cleared.
|
||||
// This function is found in the F2837xD_PieCtrl.c file.
|
||||
//
|
||||
InitPieCtrl();
|
||||
|
||||
//
|
||||
// Disable CPU interrupts and clear all CPU interrupt flags:
|
||||
//
|
||||
IER = 0x0000;
|
||||
IFR = 0x0000;
|
||||
|
||||
//
|
||||
// Initialize the PIE vector table with pointers to the shell Interrupt
|
||||
// Service Routines (ISR).
|
||||
// This will populate the entire table, even if the interrupt
|
||||
// is not used in this example. This is useful for debug purposes.
|
||||
// The shell ISR routines are found in F2837xD_DefaultIsr.c.
|
||||
// This function is found in F2837xD_PieVect.c.
|
||||
//
|
||||
InitPieVectTable();
|
||||
|
||||
//
|
||||
// Enable global Interrupts and higher priority real-time debug events:
|
||||
//
|
||||
EINT; // Enable Global interrupt INTM
|
||||
ERTM; // Enable Global realtime interrupt DBGM
|
||||
|
||||
//
|
||||
// Configure the ADCs and power them up
|
||||
//
|
||||
ConfigureADC();
|
||||
|
||||
//
|
||||
// Setup the ADCs for software conversions
|
||||
//
|
||||
SetupADCSoftwareSync();
|
||||
SetupInputXBAR5();
|
||||
|
||||
//
|
||||
//take conversions indefinitely in loop
|
||||
//
|
||||
do
|
||||
{
|
||||
//
|
||||
//convert, wait for completion, and store results
|
||||
//
|
||||
|
||||
//
|
||||
//Toggle GPIO0 in software. This will cause a trigger to
|
||||
//both ADCs via input XBAR, line 5.
|
||||
//
|
||||
GpioDataRegs.GPADAT.bit.GPIO0 = 1;
|
||||
GpioDataRegs.GPADAT.bit.GPIO0 = 0;
|
||||
|
||||
//
|
||||
//wait for ADCA to complete, then acknowledge the flag
|
||||
//since both ADCs are running synchronously, it isn't necessary
|
||||
//to wait for completion notification from both ADCs
|
||||
//
|
||||
while(AdcaRegs.ADCINTFLG.bit.ADCINT1 == 0);
|
||||
AdcaRegs.ADCINTFLGCLR.bit.ADCINT1 = 1;
|
||||
|
||||
//
|
||||
//store results
|
||||
//
|
||||
AdcaResult0 = AdcaResultRegs.ADCRESULT0;
|
||||
AdcaResult1 = AdcaResultRegs.ADCRESULT1;
|
||||
AdcbResult0 = AdcbResultRegs.ADCRESULT0;
|
||||
AdcbResult1 = AdcbResultRegs.ADCRESULT1;
|
||||
|
||||
//
|
||||
//at this point, conversion results are stored in
|
||||
//AdcaResult0, AdcaResult1, AdcbResult0, and AdcbResult1
|
||||
//
|
||||
|
||||
//
|
||||
//software breakpoint, hit run again to get updated conversions
|
||||
//
|
||||
asm(" ESTOP0");
|
||||
|
||||
}while(1);
|
||||
}
|
||||
|
||||
//
|
||||
// ConfigureADC - Write ADC configurations and power up the ADC for both
|
||||
// ADC A and ADC B
|
||||
//
|
||||
void ConfigureADC(void)
|
||||
{
|
||||
EALLOW;
|
||||
|
||||
//
|
||||
//write configurations
|
||||
//
|
||||
AdcaRegs.ADCCTL2.bit.PRESCALE = 6; //set ADCCLK divider to /4
|
||||
AdcbRegs.ADCCTL2.bit.PRESCALE = 6; //set ADCCLK divider to /4
|
||||
AdcSetMode(ADC_ADCA, ADC_RESOLUTION_12BIT, ADC_SIGNALMODE_SINGLE);
|
||||
AdcSetMode(ADC_ADCB, ADC_RESOLUTION_12BIT, ADC_SIGNALMODE_SINGLE);
|
||||
|
||||
//
|
||||
//Set pulse positions to late
|
||||
//
|
||||
AdcaRegs.ADCCTL1.bit.INTPULSEPOS = 1;
|
||||
AdcbRegs.ADCCTL1.bit.INTPULSEPOS = 1;
|
||||
|
||||
//
|
||||
//power up the ADCs
|
||||
//
|
||||
AdcaRegs.ADCCTL1.bit.ADCPWDNZ = 1;
|
||||
AdcbRegs.ADCCTL1.bit.ADCPWDNZ = 1;
|
||||
|
||||
//
|
||||
//delay for 1ms to allow ADC time to power up
|
||||
//
|
||||
DELAY_US(1000);
|
||||
|
||||
EDIS;
|
||||
}
|
||||
|
||||
//
|
||||
// SetupInputXBAR5 - Setup GPIO 0 to trigger input XBAR line 5. GPIO0 is used
|
||||
// as an example, but any spare GPIO could be used. The
|
||||
// physical GPIO pin should be allowed to float, since the
|
||||
// code configures it as an output and changes the value.
|
||||
//
|
||||
void SetupInputXBAR5(void)
|
||||
{
|
||||
EALLOW;
|
||||
InputXbarRegs.INPUT5SELECT = 0; //GPIO0 will trigger the input XBAR line 5
|
||||
|
||||
//
|
||||
//GPIO0 as an output
|
||||
//
|
||||
GPIO_SetupPinOptions(0, GPIO_OUTPUT, GPIO_PUSHPULL);
|
||||
GPIO_SetupPinMux(0, GPIO_MUX_CPU1, 0);
|
||||
|
||||
//
|
||||
//GPIO0 set as low
|
||||
//
|
||||
GpioDataRegs.GPADAT.bit.GPIO0 = 0;
|
||||
EDIS;
|
||||
}
|
||||
|
||||
//
|
||||
// SetupADCSoftwareSync - Setup ADC acquisition window and compare values
|
||||
//
|
||||
void SetupADCSoftwareSync(void)
|
||||
{
|
||||
Uint16 acqps;
|
||||
|
||||
//
|
||||
// Determine minimum acquisition window (in SYSCLKS) based on resolution
|
||||
//
|
||||
if(ADC_RESOLUTION_12BIT == AdcaRegs.ADCCTL2.bit.RESOLUTION)
|
||||
{
|
||||
acqps = 14; //75ns
|
||||
}
|
||||
else //resolution is 16-bit
|
||||
{
|
||||
acqps = 63; //320ns
|
||||
}
|
||||
|
||||
//
|
||||
//Select the channels to convert and end of conversion flag
|
||||
//ADCA
|
||||
//
|
||||
EALLOW;
|
||||
AdcaRegs.ADCSOC0CTL.bit.CHSEL = 2; //SOC0 will convert pin A2
|
||||
AdcaRegs.ADCSOC0CTL.bit.ACQPS = acqps; //sample window is acqps +
|
||||
//1 SYSCLK cycles
|
||||
AdcaRegs.ADCSOC0CTL.bit.TRIGSEL = 4; //line 5 of the input X-BAR will
|
||||
//trigger the ADC
|
||||
AdcaRegs.ADCSOC1CTL.bit.CHSEL = 3; //SOC1 will convert pin A3
|
||||
AdcaRegs.ADCSOC1CTL.bit.ACQPS = acqps; //sample window is acqps +
|
||||
//1 SYSCLK cycles
|
||||
AdcaRegs.ADCSOC1CTL.bit.TRIGSEL = 4; //line 5 of the input X-BAR will
|
||||
//trigger the ADC
|
||||
AdcaRegs.ADCINTSEL1N2.bit.INT1SEL = 1; //end of SOC1 will set INT1 flag
|
||||
AdcaRegs.ADCINTSEL1N2.bit.INT1E = 1; //enable INT1 flag
|
||||
AdcaRegs.ADCINTFLGCLR.bit.ADCINT1 = 1; //make sure INT1 flag is cleared
|
||||
//
|
||||
//ADCB
|
||||
//
|
||||
AdcbRegs.ADCSOC0CTL.bit.CHSEL = 2; //SOC0 will convert pin B2
|
||||
AdcbRegs.ADCSOC0CTL.bit.ACQPS = acqps; //sample window is acqps +
|
||||
//1 SYSCLK cycles
|
||||
AdcbRegs.ADCSOC0CTL.bit.TRIGSEL = 4; //line 5 of the input X-BAR will
|
||||
//trigger the ADC
|
||||
AdcbRegs.ADCSOC1CTL.bit.CHSEL = 3; //SOC1 will convert pin B3
|
||||
AdcbRegs.ADCSOC1CTL.bit.ACQPS = acqps; //sample window is acqps +
|
||||
//1 SYSCLK cycles
|
||||
AdcbRegs.ADCSOC1CTL.bit.TRIGSEL = 4; //line 5 of the input X-BAR will
|
||||
//trigger the ADC
|
||||
}
|
||||
|
||||
//
|
||||
// End of file
|
||||
//
|
||||
+12
@@ -0,0 +1,12 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<?ccsproject version="1.0"?>
|
||||
<projectOptions>
|
||||
<deviceVariant value="com.ti.ccstudio.deviceModel.C2000.GenericC28xxDevice"/>
|
||||
<deviceFamily value="C2000"/>
|
||||
<codegenToolVersion value="6.3.0.A13150"/>
|
||||
<isElfFormat value="false"/>
|
||||
<connection value=""/>
|
||||
<rts value="libc.a"/>
|
||||
<templateProperties value="id=com.ti.common.project.core.emptyProjectTemplate,"/>
|
||||
<isTargetManual value="false"/>
|
||||
</projectOptions>
|
||||
+194
@@ -0,0 +1,194 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<?fileVersion 4.0.0?><cproject storage_type_id="org.eclipse.cdt.core.XmlProjectDescriptionStorage">
|
||||
<storageModule configRelations="2" moduleId="org.eclipse.cdt.core.settings">
|
||||
<cconfiguration id="com.ti.ccstudio.buildDefinitions.C2000.Debug.2121059750">
|
||||
<storageModule buildSystemId="org.eclipse.cdt.managedbuilder.core.configurationDataProvider" id="com.ti.ccstudio.buildDefinitions.C2000.Debug.2121059750" moduleId="org.eclipse.cdt.core.settings" name="CPU1_RAM">
|
||||
<macros>
|
||||
<stringMacro name="INSTALLROOT_F2837XD" type="VALUE_PATH_DIR" value="${PROJECT_ROOT}/../../../../.."/>
|
||||
</macros>
|
||||
<externalSettings/>
|
||||
<extensions>
|
||||
<extension id="com.ti.ccstudio.errorparser.CoffErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
|
||||
<extension id="com.ti.ccstudio.errorparser.LinkErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
|
||||
<extension id="com.ti.ccstudio.errorparser.AsmErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
|
||||
<extension id="org.eclipse.cdt.core.GmakeErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
|
||||
<extension id="com.ti.ccstudio.binaryparser.CoffParser" point="org.eclipse.cdt.core.BinaryParser"/>
|
||||
</extensions>
|
||||
</storageModule>
|
||||
<storageModule moduleId="cdtBuildSystem" version="4.0.0">
|
||||
<configuration artifactExtension="out" artifactName="${ProjName}" buildProperties="" cleanCommand="${CG_CLEAN_CMD}" description="RAM Build Configuration w/Debugger Support for CPU1" id="com.ti.ccstudio.buildDefinitions.C2000.Debug.2121059750" name="CPU1_RAM" parent="com.ti.ccstudio.buildDefinitions.C2000.Debug">
|
||||
<folderInfo id="com.ti.ccstudio.buildDefinitions.C2000.Debug.2121059750." name="/" resourcePath="">
|
||||
<toolChain id="com.ti.ccstudio.buildDefinitions.C2000_15.12.exe.DebugToolchain.932396539" name="TI Build Tools" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.exe.DebugToolchain" targetTool="com.ti.ccstudio.buildDefinitions.C2000_15.12.exe.linkerDebug.1386535386">
|
||||
<option id="com.ti.ccstudio.buildDefinitions.core.OPT_TAGS.1142530822" superClass="com.ti.ccstudio.buildDefinitions.core.OPT_TAGS" valueType="stringList">
|
||||
<listOptionValue builtIn="false" value="DEVICE_CONFIGURATION_ID=com.ti.ccstudio.deviceModel.C2000.GenericC28xxDevice"/>
|
||||
<listOptionValue builtIn="false" value="DEVICE_ENDIANNESS=little"/>
|
||||
<listOptionValue builtIn="false" value="OUTPUT_FORMAT=COFF"/>
|
||||
<listOptionValue builtIn="false" value="CCS_MBS_VERSION=6.1.3"/>
|
||||
<listOptionValue builtIn="false" value="RUNTIME_SUPPORT_LIBRARY=libc.a"/>
|
||||
<listOptionValue builtIn="false" value="OUTPUT_TYPE=executable"/>
|
||||
</option>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.core.OPT_CODEGEN_VERSION.1262481393" name="Compiler version" superClass="com.ti.ccstudio.buildDefinitions.core.OPT_CODEGEN_VERSION" value="15.12.1.LTS" valueType="string"/>
|
||||
<targetPlatform id="com.ti.ccstudio.buildDefinitions.C2000_15.12.exe.targetPlatformDebug.76063682" name="Platform" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.exe.targetPlatformDebug"/>
|
||||
<builder buildPath="${BuildDirectory}" id="com.ti.ccstudio.buildDefinitions.C2000_15.12.exe.builderDebug.147028634" keepEnvironmentInBuildfile="false" name="GNU Make" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.exe.builderDebug"/>
|
||||
<tool id="com.ti.ccstudio.buildDefinitions.C2000_15.12.exe.compilerDebug.520500194" name="C2000 Compiler" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.exe.compilerDebug">
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.SILICON_VERSION.1806787760" name="Processor version (--silicon_version, -v)" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.SILICON_VERSION" value="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.SILICON_VERSION.28" valueType="enumerated"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.LARGE_MEMORY_MODEL.1670136972" name="Option deprecated, set by default (--large_memory_model, -ml)" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.LARGE_MEMORY_MODEL" value="true" valueType="boolean"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.UNIFIED_MEMORY.2082238399" name="Unified memory (--unified_memory, -mt)" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.UNIFIED_MEMORY" value="true" valueType="boolean"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.CLA_SUPPORT.1791662464" name="Specify CLA support (--cla_support)" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.CLA_SUPPORT" value="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.CLA_SUPPORT.cla1" valueType="enumerated"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.FLOAT_SUPPORT.574985839" name="Specify floating point support (--float_support)" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.FLOAT_SUPPORT" value="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.FLOAT_SUPPORT.fpu32" valueType="enumerated"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.TMU_SUPPORT.1559565782" name="Specify TMU support (--tmu_support)" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.TMU_SUPPORT" value="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.TMU_SUPPORT.tmu0" valueType="enumerated"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.VCU_SUPPORT.1158214140" name="Specify VCU support (--vcu_support)" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.VCU_SUPPORT" value="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.VCU_SUPPORT.vcu2" valueType="enumerated"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.INCLUDE_PATH.967640934" name="Add dir to #include search path (--include_path, -I)" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.INCLUDE_PATH" valueType="includePath">
|
||||
<listOptionValue builtIn="false" value=""${CG_TOOL_ROOT}/include""/>
|
||||
<listOptionValue builtIn="false" value=""${INSTALLROOT_F2837XD}/headers/include""/>
|
||||
<listOptionValue builtIn="false" value=""${INSTALLROOT_F2837XD}/common/include""/>
|
||||
</option>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.DEBUGGING_MODEL.339492994" name="Debugging model" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.DEBUGGING_MODEL" value="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.DEBUGGING_MODEL.SYMDEBUG__DWARF" valueType="enumerated"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.DEFINE.1922693617" name="Pre-define NAME (--define, -D)" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.DEFINE" valueType="definedSymbols">
|
||||
<listOptionValue builtIn="false" value="CPU1"/>
|
||||
</option>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.DIAG_WARNING.1765500808" name="Treat diagnostic <id> as warning (--diag_warning, -pdsw)" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.DIAG_WARNING" valueType="stringList">
|
||||
<listOptionValue builtIn="false" value="225"/>
|
||||
</option>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.DISPLAY_ERROR_NUMBER.1406908886" name="Emit diagnostic identifier numbers (--display_error_number, -pden)" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.DISPLAY_ERROR_NUMBER" value="true" valueType="boolean"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.DIAG_SUPPRESS.744453189" name="Suppress diagnostic <id> (--diag_suppress, -pds)" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.DIAG_SUPPRESS" valueType="stringList">
|
||||
<listOptionValue builtIn="false" value="1311"/>
|
||||
</option>
|
||||
<inputType id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compiler.inputType__C_SRCS.1537492796" name="C Sources" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compiler.inputType__C_SRCS"/>
|
||||
<inputType id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compiler.inputType__CPP_SRCS.1778458384" name="C++ Sources" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compiler.inputType__CPP_SRCS"/>
|
||||
<inputType id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compiler.inputType__ASM_SRCS.1570471025" name="Assembly Sources" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compiler.inputType__ASM_SRCS"/>
|
||||
<inputType id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compiler.inputType__ASM2_SRCS.612055100" name="Assembly Sources" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compiler.inputType__ASM2_SRCS"/>
|
||||
</tool>
|
||||
<tool id="com.ti.ccstudio.buildDefinitions.C2000_15.12.exe.linkerDebug.1386535386" name="C2000 Linker" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.exe.linkerDebug">
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.OUTPUT_FILE.1026843441" name="Specify output file name (--output_file, -o)" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.OUTPUT_FILE" value=""${ProjName}.out"" valueType="string"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.MAP_FILE.1911870579" name="Link information (map) listed into <file> (--map_file, -m)" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.MAP_FILE" value=""${ProjName}.map"" valueType="string"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.STACK_SIZE.1977746872" name="Set C system stack size (--stack_size, -stack)" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.STACK_SIZE" value="0x100" valueType="string"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.LIBRARY.377664786" name="Include library file or command file as input (--library, -l)" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.LIBRARY" valueType="libs">
|
||||
<listOptionValue builtIn="false" value=""rts2800_fpu32.lib""/>
|
||||
<listOptionValue builtIn="false" value=""2837xD_RAM_lnk_cpu1.cmd""/>
|
||||
<listOptionValue builtIn="false" value=""F2837xD_Headers_nonBIOS_cpu1.cmd""/>
|
||||
<listOptionValue builtIn="false" value=""libc.a""/>
|
||||
</option>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.SEARCH_PATH.498343009" name="Add <dir> to library search path (--search_path, -i)" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.SEARCH_PATH" valueType="libPaths">
|
||||
<listOptionValue builtIn="false" value=""${CG_TOOL_ROOT}/lib""/>
|
||||
<listOptionValue builtIn="false" value=""${CG_TOOL_ROOT}/include""/>
|
||||
<listOptionValue builtIn="false" value=""${INSTALLROOT_F2837XD}/common/cmd""/>
|
||||
<listOptionValue builtIn="false" value=""${INSTALLROOT_F2837XD}/headers/cmd""/>
|
||||
</option>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.DISPLAY_ERROR_NUMBER.394540855" name="Emit diagnostic identifier numbers (--display_error_number)" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.DISPLAY_ERROR_NUMBER" value="true" valueType="boolean"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.XML_LINK_INFO.959364826" name="Detailed link information data-base into <file> (--xml_link_info, -xml_link_info)" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.XML_LINK_INFO" value=""${ProjName}_linkInfo.xml"" valueType="string"/>
|
||||
<inputType id="com.ti.ccstudio.buildDefinitions.C2000_15.12.exeLinker.inputType__CMD_SRCS.31567744" name="Linker Command Files" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.exeLinker.inputType__CMD_SRCS"/>
|
||||
<inputType id="com.ti.ccstudio.buildDefinitions.C2000_15.12.exeLinker.inputType__CMD2_SRCS.103799744" name="Linker Command Files" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.exeLinker.inputType__CMD2_SRCS"/>
|
||||
<inputType id="com.ti.ccstudio.buildDefinitions.C2000_15.12.exeLinker.inputType__GEN_CMDS.427184727" name="Generated Linker Command Files" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.exeLinker.inputType__GEN_CMDS"/>
|
||||
</tool>
|
||||
</toolChain>
|
||||
</folderInfo>
|
||||
</configuration>
|
||||
</storageModule>
|
||||
<storageModule moduleId="org.eclipse.cdt.core.externalSettings"/>
|
||||
</cconfiguration>
|
||||
<cconfiguration id="com.ti.ccstudio.buildDefinitions.C2000.Debug.2121059750.1789319987">
|
||||
<storageModule buildSystemId="org.eclipse.cdt.managedbuilder.core.configurationDataProvider" id="com.ti.ccstudio.buildDefinitions.C2000.Debug.2121059750.1789319987" moduleId="org.eclipse.cdt.core.settings" name="CPU1_FLASH">
|
||||
<macros>
|
||||
<stringMacro name="INSTALLROOT_F2837XD" type="VALUE_PATH_DIR" value="${PROJECT_ROOT}/../../../../.."/>
|
||||
</macros>
|
||||
<externalSettings/>
|
||||
<extensions>
|
||||
<extension id="com.ti.ccstudio.errorparser.CoffErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
|
||||
<extension id="com.ti.ccstudio.errorparser.LinkErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
|
||||
<extension id="com.ti.ccstudio.errorparser.AsmErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
|
||||
<extension id="org.eclipse.cdt.core.GmakeErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
|
||||
<extension id="com.ti.ccstudio.binaryparser.CoffParser" point="org.eclipse.cdt.core.BinaryParser"/>
|
||||
</extensions>
|
||||
</storageModule>
|
||||
<storageModule moduleId="cdtBuildSystem" version="4.0.0">
|
||||
<configuration artifactExtension="out" artifactName="${ProjName}" buildProperties="" cleanCommand="${CG_CLEAN_CMD}" description="Flash Build Configuration w/Debugger Support for CPU1" id="com.ti.ccstudio.buildDefinitions.C2000.Debug.2121059750.1789319987" name="CPU1_FLASH" parent="com.ti.ccstudio.buildDefinitions.C2000.Debug">
|
||||
<folderInfo id="com.ti.ccstudio.buildDefinitions.C2000.Debug.2121059750.1789319987." name="/" resourcePath="">
|
||||
<toolChain id="com.ti.ccstudio.buildDefinitions.C2000_15.12.exe.DebugToolchain.1569290378" name="TI Build Tools" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.exe.DebugToolchain" targetTool="com.ti.ccstudio.buildDefinitions.C2000_15.12.exe.linkerDebug.479666956">
|
||||
<option id="com.ti.ccstudio.buildDefinitions.core.OPT_TAGS.935371524" superClass="com.ti.ccstudio.buildDefinitions.core.OPT_TAGS" valueType="stringList">
|
||||
<listOptionValue builtIn="false" value="DEVICE_CONFIGURATION_ID=com.ti.ccstudio.deviceModel.C2000.GenericC28xxDevice"/>
|
||||
<listOptionValue builtIn="false" value="DEVICE_ENDIANNESS=little"/>
|
||||
<listOptionValue builtIn="false" value="OUTPUT_FORMAT=COFF"/>
|
||||
<listOptionValue builtIn="false" value="CCS_MBS_VERSION=6.1.3"/>
|
||||
<listOptionValue builtIn="false" value="RUNTIME_SUPPORT_LIBRARY=libc.a"/>
|
||||
<listOptionValue builtIn="false" value="OUTPUT_TYPE=executable"/>
|
||||
</option>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.core.OPT_CODEGEN_VERSION.1314290300" superClass="com.ti.ccstudio.buildDefinitions.core.OPT_CODEGEN_VERSION" value="15.12.1.LTS" valueType="string"/>
|
||||
<targetPlatform id="com.ti.ccstudio.buildDefinitions.C2000_15.12.exe.targetPlatformDebug.1920954171" name="Platform" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.exe.targetPlatformDebug"/>
|
||||
<builder buildPath="${BuildDirectory}" id="com.ti.ccstudio.buildDefinitions.C2000_15.12.exe.builderDebug.454111880" name="GNU Make.CPU1_FLASH" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.exe.builderDebug"/>
|
||||
<tool id="com.ti.ccstudio.buildDefinitions.C2000_15.12.exe.compilerDebug.408893438" name="C2000 Compiler" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.exe.compilerDebug">
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.SILICON_VERSION.1521913032" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.SILICON_VERSION" value="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.SILICON_VERSION.28" valueType="enumerated"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.LARGE_MEMORY_MODEL.1604776503" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.LARGE_MEMORY_MODEL" value="true" valueType="boolean"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.UNIFIED_MEMORY.1229088341" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.UNIFIED_MEMORY" value="true" valueType="boolean"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.CLA_SUPPORT.87912640" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.CLA_SUPPORT" value="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.CLA_SUPPORT.cla1" valueType="enumerated"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.FLOAT_SUPPORT.845605296" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.FLOAT_SUPPORT" value="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.FLOAT_SUPPORT.fpu32" valueType="enumerated"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.TMU_SUPPORT.997190331" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.TMU_SUPPORT" value="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.TMU_SUPPORT.tmu0" valueType="enumerated"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.VCU_SUPPORT.1843859824" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.VCU_SUPPORT" value="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.VCU_SUPPORT.vcu2" valueType="enumerated"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.INCLUDE_PATH.551105953" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.INCLUDE_PATH" valueType="includePath">
|
||||
<listOptionValue builtIn="false" value=""${CG_TOOL_ROOT}/include""/>
|
||||
<listOptionValue builtIn="false" value=""${INSTALLROOT_F2837XD}/headers/include""/>
|
||||
<listOptionValue builtIn="false" value=""${INSTALLROOT_F2837XD}/common/include""/>
|
||||
</option>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.DEBUGGING_MODEL.801176303" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.DEBUGGING_MODEL" value="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.DEBUGGING_MODEL.SYMDEBUG__DWARF" valueType="enumerated"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.DEFINE.946460920" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.DEFINE" valueType="definedSymbols">
|
||||
<listOptionValue builtIn="false" value="CPU1"/>
|
||||
<listOptionValue builtIn="false" value="_FLASH"/>
|
||||
</option>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.DIAG_WARNING.322939994" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.DIAG_WARNING" valueType="stringList">
|
||||
<listOptionValue builtIn="false" value="225"/>
|
||||
</option>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.DISPLAY_ERROR_NUMBER.707626659" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.DISPLAY_ERROR_NUMBER" value="true" valueType="boolean"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.DIAG_SUPPRESS.1301503680" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.DIAG_SUPPRESS" valueType="stringList">
|
||||
<listOptionValue builtIn="false" value="1311"/>
|
||||
</option>
|
||||
<inputType id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compiler.inputType__C_SRCS.1983993419" name="C Sources" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compiler.inputType__C_SRCS"/>
|
||||
<inputType id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compiler.inputType__CPP_SRCS.788640957" name="C++ Sources" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compiler.inputType__CPP_SRCS"/>
|
||||
<inputType id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compiler.inputType__ASM_SRCS.88414451" name="Assembly Sources" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compiler.inputType__ASM_SRCS"/>
|
||||
<inputType id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compiler.inputType__ASM2_SRCS.934789492" name="Assembly Sources" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compiler.inputType__ASM2_SRCS"/>
|
||||
</tool>
|
||||
<tool id="com.ti.ccstudio.buildDefinitions.C2000_15.12.exe.linkerDebug.479666956" name="C2000 Linker" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.exe.linkerDebug">
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.OUTPUT_FILE.1741663255" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.OUTPUT_FILE" value=""${ProjName}.out"" valueType="string"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.MAP_FILE.941432119" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.MAP_FILE" value=""${ProjName}.map"" valueType="string"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.STACK_SIZE.686710653" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.STACK_SIZE" value="0x100" valueType="string"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.LIBRARY.1031530659" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.LIBRARY" valueType="libs">
|
||||
<listOptionValue builtIn="false" value=""rts2800_fpu32.lib""/>
|
||||
<listOptionValue builtIn="false" value=""2837xD_FLASH_lnk_cpu1.cmd""/>
|
||||
<listOptionValue builtIn="false" value=""F2837xD_Headers_nonBIOS_cpu1.cmd""/>
|
||||
<listOptionValue builtIn="false" value=""libc.a""/>
|
||||
</option>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.SEARCH_PATH.1950406767" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.SEARCH_PATH" valueType="libPaths">
|
||||
<listOptionValue builtIn="false" value=""${CG_TOOL_ROOT}/lib""/>
|
||||
<listOptionValue builtIn="false" value=""${CG_TOOL_ROOT}/include""/>
|
||||
<listOptionValue builtIn="false" value=""${INSTALLROOT_F2837XD}/common/cmd""/>
|
||||
<listOptionValue builtIn="false" value=""${INSTALLROOT_F2837XD}/headers/cmd""/>
|
||||
</option>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.DISPLAY_ERROR_NUMBER.1815864754" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.DISPLAY_ERROR_NUMBER" value="true" valueType="boolean"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.XML_LINK_INFO.1869398851" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.XML_LINK_INFO" value=""${ProjName}_linkInfo.xml"" valueType="string"/>
|
||||
<inputType id="com.ti.ccstudio.buildDefinitions.C2000_15.12.exeLinker.inputType__CMD_SRCS.2067098564" name="Linker Command Files" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.exeLinker.inputType__CMD_SRCS"/>
|
||||
<inputType id="com.ti.ccstudio.buildDefinitions.C2000_15.12.exeLinker.inputType__CMD2_SRCS.421894212" name="Linker Command Files" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.exeLinker.inputType__CMD2_SRCS"/>
|
||||
<inputType id="com.ti.ccstudio.buildDefinitions.C2000_15.12.exeLinker.inputType__GEN_CMDS.1429895456" name="Generated Linker Command Files" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.exeLinker.inputType__GEN_CMDS"/>
|
||||
</tool>
|
||||
</toolChain>
|
||||
</folderInfo>
|
||||
</configuration>
|
||||
</storageModule>
|
||||
<storageModule moduleId="org.eclipse.cdt.core.externalSettings"/>
|
||||
</cconfiguration>
|
||||
</storageModule>
|
||||
<storageModule moduleId="org.eclipse.cdt.core.LanguageSettingsProviders"/>
|
||||
<storageModule moduleId="cdtBuildSystem" version="4.0.0">
|
||||
<project id="adc_soc_software_dc_cpu01.com.ti.ccstudio.buildDefinitions.C2000.ProjectType.253935156" name="C2000" projectType="com.ti.ccstudio.buildDefinitions.C2000.ProjectType"/>
|
||||
</storageModule>
|
||||
<storageModule moduleId="scannerConfiguration"/>
|
||||
<storageModule moduleId="org.eclipse.cdt.core.language.mapping">
|
||||
<project-mappings>
|
||||
<content-type-mapping configuration="" content-type="org.eclipse.cdt.core.asmSource" language="com.ti.ccstudio.core.TIASMLanguage"/>
|
||||
<content-type-mapping configuration="" content-type="org.eclipse.cdt.core.cHeader" language="com.ti.ccstudio.core.TIGCCLanguage"/>
|
||||
<content-type-mapping configuration="" content-type="org.eclipse.cdt.core.cSource" language="com.ti.ccstudio.core.TIGCCLanguage"/>
|
||||
<content-type-mapping configuration="" content-type="org.eclipse.cdt.core.cxxHeader" language="com.ti.ccstudio.core.TIGPPLanguage"/>
|
||||
<content-type-mapping configuration="" content-type="org.eclipse.cdt.core.cxxSource" language="com.ti.ccstudio.core.TIGPPLanguage"/>
|
||||
</project-mappings>
|
||||
</storageModule>
|
||||
<storageModule moduleId="null.endianPreference"/>
|
||||
<storageModule moduleId="cpuFamily"/>
|
||||
</cproject>
|
||||
+90
@@ -0,0 +1,90 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<projectDescription>
|
||||
<name>adc_soc_software_sync_cpu01</name>
|
||||
<comment></comment>
|
||||
<projects>
|
||||
</projects>
|
||||
<buildSpec>
|
||||
<buildCommand>
|
||||
<name>org.eclipse.cdt.managedbuilder.core.genmakebuilder</name>
|
||||
<arguments>
|
||||
</arguments>
|
||||
</buildCommand>
|
||||
<buildCommand>
|
||||
<name>org.eclipse.cdt.managedbuilder.core.ScannerConfigBuilder</name>
|
||||
<triggers>full,incremental,</triggers>
|
||||
<arguments>
|
||||
</arguments>
|
||||
</buildCommand>
|
||||
</buildSpec>
|
||||
<natures>
|
||||
<nature>com.ti.ccstudio.core.ccsNature</nature>
|
||||
<nature>org.eclipse.cdt.core.cnature</nature>
|
||||
<nature>org.eclipse.cdt.managedbuilder.core.managedBuildNature</nature>
|
||||
<nature>org.eclipse.cdt.core.ccnature</nature>
|
||||
<nature>org.eclipse.cdt.managedbuilder.core.ScannerConfigNature</nature>
|
||||
</natures>
|
||||
<linkedResources>
|
||||
<link>
|
||||
<name>F2837xD_Adc.c</name>
|
||||
<type>1</type>
|
||||
<locationURI>PARENT-5-PROJECT_LOC/common/source/F2837xD_Adc.c</locationURI>
|
||||
</link>
|
||||
<link>
|
||||
<name>F2837xD_CodeStartBranch.asm</name>
|
||||
<type>1</type>
|
||||
<locationURI>PARENT-5-PROJECT_LOC/common/source/F2837xD_CodeStartBranch.asm</locationURI>
|
||||
</link>
|
||||
<link>
|
||||
<name>F2837xD_DefaultISR.c</name>
|
||||
<type>1</type>
|
||||
<locationURI>PARENT-5-PROJECT_LOC/common/source/F2837xD_DefaultISR.c</locationURI>
|
||||
</link>
|
||||
<link>
|
||||
<name>F2837xD_GlobalVariableDefs.c</name>
|
||||
<type>1</type>
|
||||
<locationURI>PARENT-5-PROJECT_LOC/headers/source/F2837xD_GlobalVariableDefs.c</locationURI>
|
||||
</link>
|
||||
<link>
|
||||
<name>F2837xD_Gpio.c</name>
|
||||
<type>1</type>
|
||||
<locationURI>PARENT-5-PROJECT_LOC/common/source/F2837xD_Gpio.c</locationURI>
|
||||
</link>
|
||||
<link>
|
||||
<name>F2837xD_Ipc.c</name>
|
||||
<type>1</type>
|
||||
<locationURI>PARENT-5-PROJECT_LOC/common/source/F2837xD_Ipc.c</locationURI>
|
||||
</link>
|
||||
<link>
|
||||
<name>F2837xD_PieCtrl.c</name>
|
||||
<type>1</type>
|
||||
<locationURI>PARENT-5-PROJECT_LOC/common/source/F2837xD_PieCtrl.c</locationURI>
|
||||
</link>
|
||||
<link>
|
||||
<name>F2837xD_PieVect.c</name>
|
||||
<type>1</type>
|
||||
<locationURI>PARENT-5-PROJECT_LOC/common/source/F2837xD_PieVect.c</locationURI>
|
||||
</link>
|
||||
<link>
|
||||
<name>F2837xD_SysCtrl.c</name>
|
||||
<type>1</type>
|
||||
<locationURI>PARENT-5-PROJECT_LOC/common/source/F2837xD_SysCtrl.c</locationURI>
|
||||
</link>
|
||||
<link>
|
||||
<name>F2837xD_usDelay.asm</name>
|
||||
<type>1</type>
|
||||
<locationURI>PARENT-5-PROJECT_LOC/common/source/F2837xD_usDelay.asm</locationURI>
|
||||
</link>
|
||||
<link>
|
||||
<name>adc_soc_software_sync_cpu01.c</name>
|
||||
<type>1</type>
|
||||
<locationURI>PARENT-1-PROJECT_LOC/adc_soc_software_sync_cpu01.c</locationURI>
|
||||
</link>
|
||||
</linkedResources>
|
||||
<variableList>
|
||||
<variable>
|
||||
<name>INSTALLROOT_F2837XD</name>
|
||||
<value>$%7BPARENT-4-PROJECT_LOC%7D</value>
|
||||
</variable>
|
||||
</variableList>
|
||||
</projectDescription>
|
||||
+22
@@ -0,0 +1,22 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<configurations XML_version="1.2" id="configurations_0">
|
||||
<configuration XML_version="1.2" id="Texas Instruments XDS100v2 USB Debug Probe_0">
|
||||
<instance XML_version="1.2" desc="Texas Instruments XDS100v2 USB Debug Probe_0" href="connections/TIXDS100v2_Connection.xml" id="Texas Instruments XDS100v2 USB Debug Probe_0" xml="TIXDS100v2_Connection.xml" xmlpath="connections"/>
|
||||
<connection XML_version="1.2" id="Texas Instruments XDS100v2 USB Debug Probe_0">
|
||||
<instance XML_version="1.2" href="drivers/tixds100v2icepick_c.xml" id="drivers" xml="tixds100v2icepick_c.xml" xmlpath="drivers"/>
|
||||
<instance XML_version="1.2" href="drivers/tixds100v2c28x.xml" id="drivers" xml="tixds100v2c28x.xml" xmlpath="drivers"/>
|
||||
<instance XML_version="1.2" href="drivers/tixds100v2cla1.xml" id="drivers" xml="tixds100v2cla1.xml" xmlpath="drivers"/>
|
||||
<instance XML_version="1.2" href="drivers/tixds100v2cs_child.xml" id="drivers" xml="tixds100v2cs_child.xml" xmlpath="drivers"/>
|
||||
<platform XML_version="1.2" id="platform_0">
|
||||
<instance XML_version="1.2" desc="TMS320F28377D_0" href="devices/tms320f28377d.xml" id="TMS320F28377D_0" xml="tms320f28377d.xml" xmlpath="devices"/>
|
||||
<device HW_revision="1" XML_version="1.2" description="" id="TMS320F28377D_0" partnum="TMS320F28377D">
|
||||
<router HW_revision="1.0" XML_version="1.2" description="ICEPick_C router" id="IcePick_C_0" isa="ICEPICK_C">
|
||||
<subpath id="Subpath_1">
|
||||
<property Type="numericfield" Value="0x11" desc="Port Number_0" id="Port Number"/>
|
||||
</subpath>
|
||||
</router>
|
||||
</device>
|
||||
</platform>
|
||||
</connection>
|
||||
</configuration>
|
||||
</configurations>
|
||||
@@ -0,0 +1,144 @@
|
||||
//###########################################################################
|
||||
//
|
||||
// FILE: blinky_cpu01.c
|
||||
//
|
||||
// TITLE: LED Blink Example for F2837xD.
|
||||
//
|
||||
//! \addtogroup cpu01_example_list
|
||||
//! <h1> Blinky </h1>
|
||||
//!
|
||||
//! This example blinks LED X
|
||||
//!
|
||||
//! \note If using a Launchpad, use the Launchpad build configurations.
|
||||
//!
|
||||
//
|
||||
//###########################################################################
|
||||
//
|
||||
// $Release Date: $
|
||||
// $Copyright:
|
||||
// Copyright (C) 2013-2024 Texas Instruments Incorporated - http://www.ti.com/
|
||||
//
|
||||
// Redistribution and use in source and binary forms, with or without
|
||||
// modification, are permitted provided that the following conditions
|
||||
// are met:
|
||||
//
|
||||
// Redistributions of source code must retain the above copyright
|
||||
// notice, this list of conditions and the following disclaimer.
|
||||
//
|
||||
// Redistributions in binary form must reproduce the above copyright
|
||||
// notice, this list of conditions and the following disclaimer in the
|
||||
// documentation and/or other materials provided with the
|
||||
// distribution.
|
||||
//
|
||||
// Neither the name of Texas Instruments Incorporated nor the names of
|
||||
// its contributors may be used to endorse or promote products derived
|
||||
// from this software without specific prior written permission.
|
||||
//
|
||||
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||
// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||
// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
||||
// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
||||
// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||
// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||
// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
||||
// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
||||
// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
// $
|
||||
//###########################################################################
|
||||
|
||||
//
|
||||
// Included Files
|
||||
//
|
||||
#include "F28x_Project.h"
|
||||
|
||||
//
|
||||
// Defines
|
||||
//
|
||||
#define BLINKY_LED_GPIO 31
|
||||
|
||||
void main(void)
|
||||
{
|
||||
//
|
||||
// Step 1. Initialize System Control:
|
||||
// PLL, WatchDog, enable Peripheral Clocks
|
||||
// This example function is found in the F2837xD_SysCtrl.c file.
|
||||
//
|
||||
InitSysCtrl();
|
||||
|
||||
//
|
||||
// Step 2. Initialize GPIO:
|
||||
// This example function is found in the F2837xD_Gpio.c file and
|
||||
// illustrates how to set the GPIO to it's default state.
|
||||
//
|
||||
InitGpio();
|
||||
GPIO_SetupPinMux(BLINKY_LED_GPIO, GPIO_MUX_CPU1, 0);
|
||||
GPIO_SetupPinOptions(BLINKY_LED_GPIO, GPIO_OUTPUT, GPIO_PUSHPULL);
|
||||
|
||||
//
|
||||
// Step 3. Clear all interrupts and initialize PIE vector table:
|
||||
// Disable CPU interrupts
|
||||
//
|
||||
DINT;
|
||||
|
||||
//
|
||||
// Initialize the PIE control registers to their default state.
|
||||
// The default state is all PIE interrupts disabled and flags
|
||||
// are cleared.
|
||||
// This function is found in the F2837xD_PieCtrl.c file.
|
||||
//
|
||||
InitPieCtrl();
|
||||
|
||||
//
|
||||
// Disable CPU interrupts and clear all CPU interrupt flags:
|
||||
//
|
||||
IER = 0x0000;
|
||||
IFR = 0x0000;
|
||||
|
||||
//
|
||||
// Initialize the PIE vector table with pointers to the shell Interrupt
|
||||
// Service Routines (ISR).
|
||||
// This will populate the entire table, even if the interrupt
|
||||
// is not used in this example. This is useful for debug purposes.
|
||||
// The shell ISR routines are found in F2837xD_DefaultIsr.c.
|
||||
// This function is found in F2837xD_PieVect.c.
|
||||
//
|
||||
InitPieVectTable();
|
||||
|
||||
//
|
||||
// Enable global Interrupts and higher priority real-time debug events:
|
||||
//
|
||||
EINT; // Enable Global interrupt INTM
|
||||
ERTM; // Enable Global realtime interrupt DBGM
|
||||
|
||||
//
|
||||
// Step 6. IDLE loop. Just sit and loop forever (optional):
|
||||
//
|
||||
for(;;)
|
||||
{
|
||||
//
|
||||
// Turn on LED
|
||||
//
|
||||
GPIO_WritePin(BLINKY_LED_GPIO, 0);
|
||||
|
||||
//
|
||||
// Delay for a bit.
|
||||
//
|
||||
DELAY_US(1000*500);
|
||||
|
||||
//
|
||||
// Turn off LED
|
||||
//
|
||||
GPIO_WritePin(BLINKY_LED_GPIO, 1);
|
||||
|
||||
//
|
||||
// Delay for a bit.
|
||||
//
|
||||
DELAY_US(1000*500);
|
||||
}
|
||||
}
|
||||
|
||||
//
|
||||
// End of file
|
||||
//
|
||||
@@ -0,0 +1,12 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<?ccsproject version="1.0"?>
|
||||
<projectOptions>
|
||||
<deviceVariant value="com.ti.ccstudio.deviceModel.C2000.GenericC28xxDevice"/>
|
||||
<deviceFamily value="C2000"/>
|
||||
<codegenToolVersion value="6.3.0.A13150"/>
|
||||
<isElfFormat value="false"/>
|
||||
<connection value=""/>
|
||||
<rts value="libc.a"/>
|
||||
<templateProperties value="id=com.ti.common.project.core.emptyProjectTemplate,"/>
|
||||
<isTargetManual value="false"/>
|
||||
</projectOptions>
|
||||
@@ -0,0 +1,373 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<?fileVersion 4.0.0?><cproject storage_type_id="org.eclipse.cdt.core.XmlProjectDescriptionStorage">
|
||||
<storageModule configRelations="2" moduleId="org.eclipse.cdt.core.settings">
|
||||
<cconfiguration id="com.ti.ccstudio.buildDefinitions.C2000.Debug.2121059750">
|
||||
<storageModule buildSystemId="org.eclipse.cdt.managedbuilder.core.configurationDataProvider" id="com.ti.ccstudio.buildDefinitions.C2000.Debug.2121059750" moduleId="org.eclipse.cdt.core.settings" name="CPU1_RAM">
|
||||
<macros>
|
||||
<stringMacro name="INSTALLROOT_F2837XD" type="VALUE_PATH_DIR" value="${PROJECT_ROOT}/../../../../.."/>
|
||||
</macros>
|
||||
<externalSettings/>
|
||||
<extensions>
|
||||
<extension id="com.ti.ccstudio.errorparser.CoffErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
|
||||
<extension id="com.ti.ccstudio.errorparser.LinkErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
|
||||
<extension id="com.ti.ccstudio.errorparser.AsmErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
|
||||
<extension id="org.eclipse.cdt.core.GmakeErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
|
||||
<extension id="com.ti.ccstudio.binaryparser.CoffParser" point="org.eclipse.cdt.core.BinaryParser"/>
|
||||
</extensions>
|
||||
</storageModule>
|
||||
<storageModule moduleId="cdtBuildSystem" version="4.0.0">
|
||||
<configuration artifactExtension="out" artifactName="${ProjName}" buildProperties="" cleanCommand="${CG_CLEAN_CMD}" description="RAM Build Configuration w/Debugger Support for CPU1" id="com.ti.ccstudio.buildDefinitions.C2000.Debug.2121059750" name="CPU1_RAM" parent="com.ti.ccstudio.buildDefinitions.C2000.Debug">
|
||||
<folderInfo id="com.ti.ccstudio.buildDefinitions.C2000.Debug.2121059750." name="/" resourcePath="">
|
||||
<toolChain id="com.ti.ccstudio.buildDefinitions.C2000_15.12.exe.DebugToolchain.337303114" name="TI Build Tools" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.exe.DebugToolchain" targetTool="com.ti.ccstudio.buildDefinitions.C2000_15.12.exe.linkerDebug.1395807596">
|
||||
<option id="com.ti.ccstudio.buildDefinitions.core.OPT_TAGS.2055785615" superClass="com.ti.ccstudio.buildDefinitions.core.OPT_TAGS" valueType="stringList">
|
||||
<listOptionValue builtIn="false" value="DEVICE_CONFIGURATION_ID=com.ti.ccstudio.deviceModel.C2000.GenericC28xxDevice"/>
|
||||
<listOptionValue builtIn="false" value="DEVICE_ENDIANNESS=little"/>
|
||||
<listOptionValue builtIn="false" value="OUTPUT_FORMAT=COFF"/>
|
||||
<listOptionValue builtIn="false" value="CCS_MBS_VERSION=6.1.3"/>
|
||||
<listOptionValue builtIn="false" value="RUNTIME_SUPPORT_LIBRARY=libc.a"/>
|
||||
<listOptionValue builtIn="false" value="OUTPUT_TYPE=executable"/>
|
||||
</option>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.core.OPT_CODEGEN_VERSION.1987901955" name="Compiler version" superClass="com.ti.ccstudio.buildDefinitions.core.OPT_CODEGEN_VERSION" value="15.12.1.LTS" valueType="string"/>
|
||||
<targetPlatform id="com.ti.ccstudio.buildDefinitions.C2000_15.12.exe.targetPlatformDebug.1243535188" name="Platform" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.exe.targetPlatformDebug"/>
|
||||
<builder buildPath="${BuildDirectory}" id="com.ti.ccstudio.buildDefinitions.C2000_15.12.exe.builderDebug.1024266812" keepEnvironmentInBuildfile="false" name="GNU Make" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.exe.builderDebug"/>
|
||||
<tool id="com.ti.ccstudio.buildDefinitions.C2000_15.12.exe.compilerDebug.2102304799" name="C2000 Compiler" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.exe.compilerDebug">
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.SILICON_VERSION.1591811563" name="Processor version (--silicon_version, -v)" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.SILICON_VERSION" value="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.SILICON_VERSION.28" valueType="enumerated"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.LARGE_MEMORY_MODEL.1518238391" name="Option deprecated, set by default (--large_memory_model, -ml)" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.LARGE_MEMORY_MODEL" value="true" valueType="boolean"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.UNIFIED_MEMORY.1075534649" name="Unified memory (--unified_memory, -mt)" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.UNIFIED_MEMORY" value="true" valueType="boolean"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.CLA_SUPPORT.1136353870" name="Specify CLA support (--cla_support)" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.CLA_SUPPORT" value="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.CLA_SUPPORT.cla1" valueType="enumerated"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.FLOAT_SUPPORT.223462714" name="Specify floating point support (--float_support)" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.FLOAT_SUPPORT" value="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.FLOAT_SUPPORT.fpu32" valueType="enumerated"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.TMU_SUPPORT.460054084" name="Specify TMU support (--tmu_support)" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.TMU_SUPPORT" value="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.TMU_SUPPORT.tmu0" valueType="enumerated"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.VCU_SUPPORT.659224155" name="Specify VCU support (--vcu_support)" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.VCU_SUPPORT" value="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.VCU_SUPPORT.vcu2" valueType="enumerated"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.INCLUDE_PATH.2101555642" name="Add dir to #include search path (--include_path, -I)" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.INCLUDE_PATH" valueType="includePath">
|
||||
<listOptionValue builtIn="false" value=""${CG_TOOL_ROOT}/include""/>
|
||||
<listOptionValue builtIn="false" value=""${INSTALLROOT_F2837XD}/headers/include""/>
|
||||
<listOptionValue builtIn="false" value=""${INSTALLROOT_F2837XD}/common/include""/>
|
||||
</option>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.DEBUGGING_MODEL.2063459070" name="Debugging model" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.DEBUGGING_MODEL" value="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.DEBUGGING_MODEL.SYMDEBUG__DWARF" valueType="enumerated"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.DEFINE.1438776424" name="Pre-define NAME (--define, -D)" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.DEFINE" valueType="definedSymbols">
|
||||
<listOptionValue builtIn="false" value="CPU1"/>
|
||||
</option>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.DIAG_WARNING.164444430" name="Treat diagnostic <id> as warning (--diag_warning, -pdsw)" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.DIAG_WARNING" valueType="stringList">
|
||||
<listOptionValue builtIn="false" value="225"/>
|
||||
</option>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.DISPLAY_ERROR_NUMBER.2095065220" name="Emit diagnostic identifier numbers (--display_error_number, -pden)" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.DISPLAY_ERROR_NUMBER" value="true" valueType="boolean"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.DIAG_SUPPRESS.826576995" name="Suppress diagnostic <id> (--diag_suppress, -pds)" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.DIAG_SUPPRESS" valueType="stringList">
|
||||
<listOptionValue builtIn="false" value="10063"/>
|
||||
</option>
|
||||
<inputType id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compiler.inputType__C_SRCS.1203898930" name="C Sources" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compiler.inputType__C_SRCS"/>
|
||||
<inputType id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compiler.inputType__CPP_SRCS.1378382517" name="C++ Sources" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compiler.inputType__CPP_SRCS"/>
|
||||
<inputType id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compiler.inputType__ASM_SRCS.1815044516" name="Assembly Sources" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compiler.inputType__ASM_SRCS"/>
|
||||
<inputType id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compiler.inputType__ASM2_SRCS.1007894405" name="Assembly Sources" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compiler.inputType__ASM2_SRCS"/>
|
||||
</tool>
|
||||
<tool id="com.ti.ccstudio.buildDefinitions.C2000_15.12.exe.linkerDebug.1395807596" name="C2000 Linker" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.exe.linkerDebug">
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.OUTPUT_FILE.786410415" name="Specify output file name (--output_file, -o)" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.OUTPUT_FILE" value=""${ProjName}.out"" valueType="string"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.MAP_FILE.2141641406" name="Link information (map) listed into <file> (--map_file, -m)" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.MAP_FILE" value=""${ProjName}.map"" valueType="string"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.STACK_SIZE.298253076" name="Set C system stack size (--stack_size, -stack)" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.STACK_SIZE" value="0x100" valueType="string"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.LIBRARY.1386442645" name="Include library file or command file as input (--library, -l)" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.LIBRARY" valueType="libs">
|
||||
<listOptionValue builtIn="false" value=""rts2800_fpu32.lib""/>
|
||||
<listOptionValue builtIn="false" value=""2837xD_RAM_lnk_cpu1.cmd""/>
|
||||
<listOptionValue builtIn="false" value=""F2837xD_Headers_nonBIOS_cpu1.cmd""/>
|
||||
<listOptionValue builtIn="false" value=""libc.a""/>
|
||||
</option>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.SEARCH_PATH.80519672" name="Add <dir> to library search path (--search_path, -i)" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.SEARCH_PATH" valueType="libPaths">
|
||||
<listOptionValue builtIn="false" value=""${CG_TOOL_ROOT}/lib""/>
|
||||
<listOptionValue builtIn="false" value=""${CG_TOOL_ROOT}/include""/>
|
||||
<listOptionValue builtIn="false" value=""${INSTALLROOT_F2837XD}/common/cmd""/>
|
||||
<listOptionValue builtIn="false" value=""${INSTALLROOT_F2837XD}/headers/cmd""/>
|
||||
</option>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.DISPLAY_ERROR_NUMBER.940939462" name="Emit diagnostic identifier numbers (--display_error_number)" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.DISPLAY_ERROR_NUMBER" value="true" valueType="boolean"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.XML_LINK_INFO.1530937082" name="Detailed link information data-base into <file> (--xml_link_info, -xml_link_info)" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.XML_LINK_INFO" value=""${ProjName}_linkInfo.xml"" valueType="string"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.ENTRY_POINT.999381355" name="Specify program entry point for the output module (--entry_point, -e)" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.ENTRY_POINT" value="code_start" valueType="string"/>
|
||||
<inputType id="com.ti.ccstudio.buildDefinitions.C2000_15.12.exeLinker.inputType__CMD_SRCS.997366323" name="Linker Command Files" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.exeLinker.inputType__CMD_SRCS"/>
|
||||
<inputType id="com.ti.ccstudio.buildDefinitions.C2000_15.12.exeLinker.inputType__CMD2_SRCS.1664262206" name="Linker Command Files" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.exeLinker.inputType__CMD2_SRCS"/>
|
||||
<inputType id="com.ti.ccstudio.buildDefinitions.C2000_15.12.exeLinker.inputType__GEN_CMDS.1242571681" name="Generated Linker Command Files" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.exeLinker.inputType__GEN_CMDS"/>
|
||||
</tool>
|
||||
</toolChain>
|
||||
</folderInfo>
|
||||
</configuration>
|
||||
</storageModule>
|
||||
<storageModule moduleId="org.eclipse.cdt.core.externalSettings"/>
|
||||
</cconfiguration>
|
||||
<cconfiguration id="com.ti.ccstudio.buildDefinitions.C2000.Debug.2121059750.1822114937">
|
||||
<storageModule buildSystemId="org.eclipse.cdt.managedbuilder.core.configurationDataProvider" id="com.ti.ccstudio.buildDefinitions.C2000.Debug.2121059750.1822114937" moduleId="org.eclipse.cdt.core.settings" name="CPU1_FLASH">
|
||||
<macros>
|
||||
<stringMacro name="INSTALLROOT_F2837XD" type="VALUE_PATH_DIR" value="${PROJECT_ROOT}/../../../../.."/>
|
||||
</macros>
|
||||
<externalSettings/>
|
||||
<extensions>
|
||||
<extension id="com.ti.ccstudio.errorparser.CoffErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
|
||||
<extension id="com.ti.ccstudio.errorparser.LinkErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
|
||||
<extension id="com.ti.ccstudio.errorparser.AsmErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
|
||||
<extension id="org.eclipse.cdt.core.GmakeErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
|
||||
<extension id="com.ti.ccstudio.binaryparser.CoffParser" point="org.eclipse.cdt.core.BinaryParser"/>
|
||||
</extensions>
|
||||
</storageModule>
|
||||
<storageModule moduleId="cdtBuildSystem" version="4.0.0">
|
||||
<configuration artifactExtension="out" artifactName="${ProjName}" buildProperties="" cleanCommand="${CG_CLEAN_CMD}" description="Flash Build Configuration w/Debugger Support for CPU1" id="com.ti.ccstudio.buildDefinitions.C2000.Debug.2121059750.1822114937" name="CPU1_FLASH" parent="com.ti.ccstudio.buildDefinitions.C2000.Debug">
|
||||
<folderInfo id="com.ti.ccstudio.buildDefinitions.C2000.Debug.2121059750.1822114937." name="/" resourcePath="">
|
||||
<toolChain id="com.ti.ccstudio.buildDefinitions.C2000_15.12.exe.DebugToolchain.1442027089" name="TI Build Tools" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.exe.DebugToolchain" targetTool="com.ti.ccstudio.buildDefinitions.C2000_15.12.exe.linkerDebug.1207778978">
|
||||
<option id="com.ti.ccstudio.buildDefinitions.core.OPT_TAGS.1817125783" superClass="com.ti.ccstudio.buildDefinitions.core.OPT_TAGS" valueType="stringList">
|
||||
<listOptionValue builtIn="false" value="DEVICE_CONFIGURATION_ID=com.ti.ccstudio.deviceModel.C2000.GenericC28xxDevice"/>
|
||||
<listOptionValue builtIn="false" value="DEVICE_ENDIANNESS=little"/>
|
||||
<listOptionValue builtIn="false" value="OUTPUT_FORMAT=COFF"/>
|
||||
<listOptionValue builtIn="false" value="CCS_MBS_VERSION=6.1.3"/>
|
||||
<listOptionValue builtIn="false" value="RUNTIME_SUPPORT_LIBRARY=libc.a"/>
|
||||
<listOptionValue builtIn="false" value="OUTPUT_TYPE=executable"/>
|
||||
</option>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.core.OPT_CODEGEN_VERSION.73779827" name="Compiler version" superClass="com.ti.ccstudio.buildDefinitions.core.OPT_CODEGEN_VERSION" value="15.12.1.LTS" valueType="string"/>
|
||||
<targetPlatform id="com.ti.ccstudio.buildDefinitions.C2000_15.12.exe.targetPlatformDebug.1363534846" name="Platform" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.exe.targetPlatformDebug"/>
|
||||
<builder buildPath="${BuildDirectory}" id="com.ti.ccstudio.buildDefinitions.C2000_15.12.exe.builderDebug.797157749" keepEnvironmentInBuildfile="false" name="GNU Make" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.exe.builderDebug"/>
|
||||
<tool id="com.ti.ccstudio.buildDefinitions.C2000_15.12.exe.compilerDebug.804830297" name="C2000 Compiler" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.exe.compilerDebug">
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.SILICON_VERSION.1336998847" name="Processor version (--silicon_version, -v)" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.SILICON_VERSION" value="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.SILICON_VERSION.28" valueType="enumerated"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.LARGE_MEMORY_MODEL.878762904" name="Option deprecated, set by default (--large_memory_model, -ml)" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.LARGE_MEMORY_MODEL" value="true" valueType="boolean"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.UNIFIED_MEMORY.587206511" name="Unified memory (--unified_memory, -mt)" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.UNIFIED_MEMORY" value="true" valueType="boolean"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.CLA_SUPPORT.1000433389" name="Specify CLA support (--cla_support)" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.CLA_SUPPORT" value="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.CLA_SUPPORT.cla1" valueType="enumerated"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.FLOAT_SUPPORT.202195427" name="Specify floating point support (--float_support)" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.FLOAT_SUPPORT" value="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.FLOAT_SUPPORT.fpu32" valueType="enumerated"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.TMU_SUPPORT.1509197038" name="Specify TMU support (--tmu_support)" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.TMU_SUPPORT" value="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.TMU_SUPPORT.tmu0" valueType="enumerated"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.VCU_SUPPORT.1407202208" name="Specify VCU support (--vcu_support)" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.VCU_SUPPORT" value="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.VCU_SUPPORT.vcu2" valueType="enumerated"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.INCLUDE_PATH.1002331722" name="Add dir to #include search path (--include_path, -I)" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.INCLUDE_PATH" valueType="includePath">
|
||||
<listOptionValue builtIn="false" value=""${CG_TOOL_ROOT}/include""/>
|
||||
<listOptionValue builtIn="false" value=""${INSTALLROOT_F2837XD}/headers/include""/>
|
||||
<listOptionValue builtIn="false" value=""${INSTALLROOT_F2837XD}/common/include""/>
|
||||
</option>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.DEBUGGING_MODEL.2109671195" name="Debugging model" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.DEBUGGING_MODEL" value="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.DEBUGGING_MODEL.SYMDEBUG__DWARF" valueType="enumerated"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.DEFINE.202626410" name="Pre-define NAME (--define, -D)" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.DEFINE" valueType="definedSymbols">
|
||||
<listOptionValue builtIn="false" value="CPU1"/>
|
||||
<listOptionValue builtIn="false" value="_FLASH"/>
|
||||
</option>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.DIAG_WARNING.2089717831" name="Treat diagnostic <id> as warning (--diag_warning, -pdsw)" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.DIAG_WARNING" valueType="stringList">
|
||||
<listOptionValue builtIn="false" value="225"/>
|
||||
</option>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.DISPLAY_ERROR_NUMBER.678277818" name="Emit diagnostic identifier numbers (--display_error_number, -pden)" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.DISPLAY_ERROR_NUMBER" value="true" valueType="boolean"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.DIAG_SUPPRESS.1367716239" name="Suppress diagnostic <id> (--diag_suppress, -pds)" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.DIAG_SUPPRESS" valueType="stringList">
|
||||
<listOptionValue builtIn="false" value="10063"/>
|
||||
</option>
|
||||
<inputType id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compiler.inputType__C_SRCS.1908138925" name="C Sources" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compiler.inputType__C_SRCS"/>
|
||||
<inputType id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compiler.inputType__CPP_SRCS.1196121458" name="C++ Sources" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compiler.inputType__CPP_SRCS"/>
|
||||
<inputType id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compiler.inputType__ASM_SRCS.1112624144" name="Assembly Sources" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compiler.inputType__ASM_SRCS"/>
|
||||
<inputType id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compiler.inputType__ASM2_SRCS.1138007055" name="Assembly Sources" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compiler.inputType__ASM2_SRCS"/>
|
||||
</tool>
|
||||
<tool id="com.ti.ccstudio.buildDefinitions.C2000_15.12.exe.linkerDebug.1207778978" name="C2000 Linker" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.exe.linkerDebug">
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.OUTPUT_FILE.420370477" name="Specify output file name (--output_file, -o)" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.OUTPUT_FILE" value=""${ProjName}.out"" valueType="string"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.MAP_FILE.214069473" name="Link information (map) listed into <file> (--map_file, -m)" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.MAP_FILE" value=""${ProjName}.map"" valueType="string"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.STACK_SIZE.1458551645" name="Set C system stack size (--stack_size, -stack)" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.STACK_SIZE" value="0x100" valueType="string"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.LIBRARY.1021116832" name="Include library file or command file as input (--library, -l)" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.LIBRARY" valueType="libs">
|
||||
<listOptionValue builtIn="false" value=""rts2800_fpu32.lib""/>
|
||||
<listOptionValue builtIn="false" value=""2837xD_FLASH_lnk_cpu1.cmd""/>
|
||||
<listOptionValue builtIn="false" value=""F2837xD_Headers_nonBIOS_cpu1.cmd""/>
|
||||
<listOptionValue builtIn="false" value=""libc.a""/>
|
||||
</option>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.SEARCH_PATH.2069391697" name="Add <dir> to library search path (--search_path, -i)" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.SEARCH_PATH" valueType="libPaths">
|
||||
<listOptionValue builtIn="false" value=""${CG_TOOL_ROOT}/lib""/>
|
||||
<listOptionValue builtIn="false" value=""${CG_TOOL_ROOT}/include""/>
|
||||
<listOptionValue builtIn="false" value=""${INSTALLROOT_F2837XD}/common/cmd""/>
|
||||
<listOptionValue builtIn="false" value=""${INSTALLROOT_F2837XD}/headers/cmd""/>
|
||||
</option>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.DISPLAY_ERROR_NUMBER.226130162" name="Emit diagnostic identifier numbers (--display_error_number)" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.DISPLAY_ERROR_NUMBER" value="true" valueType="boolean"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.XML_LINK_INFO.678453269" name="Detailed link information data-base into <file> (--xml_link_info, -xml_link_info)" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.XML_LINK_INFO" value=""${ProjName}_linkInfo.xml"" valueType="string"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.ENTRY_POINT.962917511" name="Specify program entry point for the output module (--entry_point, -e)" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.ENTRY_POINT" value="code_start" valueType="string"/>
|
||||
<inputType id="com.ti.ccstudio.buildDefinitions.C2000_15.12.exeLinker.inputType__CMD_SRCS.2131840921" name="Linker Command Files" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.exeLinker.inputType__CMD_SRCS"/>
|
||||
<inputType id="com.ti.ccstudio.buildDefinitions.C2000_15.12.exeLinker.inputType__CMD2_SRCS.1742521047" name="Linker Command Files" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.exeLinker.inputType__CMD2_SRCS"/>
|
||||
<inputType id="com.ti.ccstudio.buildDefinitions.C2000_15.12.exeLinker.inputType__GEN_CMDS.1418576272" name="Generated Linker Command Files" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.exeLinker.inputType__GEN_CMDS"/>
|
||||
</tool>
|
||||
</toolChain>
|
||||
</folderInfo>
|
||||
</configuration>
|
||||
</storageModule>
|
||||
<storageModule moduleId="org.eclipse.cdt.core.externalSettings"/>
|
||||
</cconfiguration>
|
||||
<cconfiguration id="com.ti.ccstudio.buildDefinitions.C2000.Debug.2121059750.28588764">
|
||||
<storageModule buildSystemId="org.eclipse.cdt.managedbuilder.core.configurationDataProvider" id="com.ti.ccstudio.buildDefinitions.C2000.Debug.2121059750.28588764" moduleId="org.eclipse.cdt.core.settings" name="LAUNCHPAD_RAM">
|
||||
<macros>
|
||||
<stringMacro name="INSTALLROOT_F2837XD" type="VALUE_PATH_DIR" value="${PROJECT_ROOT}/../../../../.."/>
|
||||
</macros>
|
||||
<externalSettings/>
|
||||
<extensions>
|
||||
<extension id="com.ti.ccstudio.errorparser.CoffErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
|
||||
<extension id="com.ti.ccstudio.errorparser.LinkErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
|
||||
<extension id="com.ti.ccstudio.errorparser.AsmErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
|
||||
<extension id="org.eclipse.cdt.core.GmakeErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
|
||||
<extension id="com.ti.ccstudio.binaryparser.CoffParser" point="org.eclipse.cdt.core.BinaryParser"/>
|
||||
</extensions>
|
||||
</storageModule>
|
||||
<storageModule moduleId="cdtBuildSystem" version="4.0.0">
|
||||
<configuration artifactExtension="out" artifactName="${ProjName}" buildProperties="" cleanCommand="${CG_CLEAN_CMD}" description="Launchpad RAM Build Configuration w/Debugger Support for CPU1" id="com.ti.ccstudio.buildDefinitions.C2000.Debug.2121059750.28588764" name="LAUNCHPAD_RAM" parent="com.ti.ccstudio.buildDefinitions.C2000.Debug">
|
||||
<folderInfo id="com.ti.ccstudio.buildDefinitions.C2000.Debug.2121059750.28588764." name="/" resourcePath="">
|
||||
<toolChain id="com.ti.ccstudio.buildDefinitions.C2000_15.12.exe.DebugToolchain.1425914728" name="TI Build Tools" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.exe.DebugToolchain" targetTool="com.ti.ccstudio.buildDefinitions.C2000_15.12.exe.linkerDebug.1395807596">
|
||||
<option id="com.ti.ccstudio.buildDefinitions.core.OPT_TAGS.1720200828" superClass="com.ti.ccstudio.buildDefinitions.core.OPT_TAGS" valueType="stringList">
|
||||
<listOptionValue builtIn="false" value="DEVICE_CONFIGURATION_ID=com.ti.ccstudio.deviceModel.C2000.GenericC28xxDevice"/>
|
||||
<listOptionValue builtIn="false" value="DEVICE_ENDIANNESS=little"/>
|
||||
<listOptionValue builtIn="false" value="OUTPUT_FORMAT=COFF"/>
|
||||
<listOptionValue builtIn="false" value="CCS_MBS_VERSION=6.1.3"/>
|
||||
<listOptionValue builtIn="false" value="RUNTIME_SUPPORT_LIBRARY=libc.a"/>
|
||||
<listOptionValue builtIn="false" value="OUTPUT_TYPE=executable"/>
|
||||
</option>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.core.OPT_CODEGEN_VERSION.983430408" name="Compiler version" superClass="com.ti.ccstudio.buildDefinitions.core.OPT_CODEGEN_VERSION" value="15.12.1.LTS" valueType="string"/>
|
||||
<targetPlatform id="com.ti.ccstudio.buildDefinitions.C2000_15.12.exe.targetPlatformDebug.1477209946" name="Platform" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.exe.targetPlatformDebug"/>
|
||||
<builder buildPath="${BuildDirectory}" id="com.ti.ccstudio.buildDefinitions.C2000_15.12.exe.builderDebug.2082516270" keepEnvironmentInBuildfile="false" name="GNU Make" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.exe.builderDebug"/>
|
||||
<tool id="com.ti.ccstudio.buildDefinitions.C2000_15.12.exe.compilerDebug.544854194" name="C2000 Compiler" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.exe.compilerDebug">
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.SILICON_VERSION.193878745" name="Processor version (--silicon_version, -v)" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.SILICON_VERSION" value="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.SILICON_VERSION.28" valueType="enumerated"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.LARGE_MEMORY_MODEL.500312694" name="Option deprecated, set by default (--large_memory_model, -ml)" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.LARGE_MEMORY_MODEL" value="true" valueType="boolean"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.UNIFIED_MEMORY.1920953258" name="Unified memory (--unified_memory, -mt)" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.UNIFIED_MEMORY" value="true" valueType="boolean"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.CLA_SUPPORT.896338802" name="Specify CLA support (--cla_support)" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.CLA_SUPPORT" value="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.CLA_SUPPORT.cla1" valueType="enumerated"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.FLOAT_SUPPORT.444230618" name="Specify floating point support (--float_support)" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.FLOAT_SUPPORT" value="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.FLOAT_SUPPORT.fpu32" valueType="enumerated"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.TMU_SUPPORT.1228302909" name="Specify TMU support (--tmu_support)" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.TMU_SUPPORT" value="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.TMU_SUPPORT.tmu0" valueType="enumerated"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.VCU_SUPPORT.544886127" name="Specify VCU support (--vcu_support)" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.VCU_SUPPORT" value="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.VCU_SUPPORT.vcu2" valueType="enumerated"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.INCLUDE_PATH.584378700" name="Add dir to #include search path (--include_path, -I)" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.INCLUDE_PATH" valueType="includePath">
|
||||
<listOptionValue builtIn="false" value=""${CG_TOOL_ROOT}/include""/>
|
||||
<listOptionValue builtIn="false" value=""${INSTALLROOT_F2837XD}/headers/include""/>
|
||||
<listOptionValue builtIn="false" value=""${INSTALLROOT_F2837XD}/common/include""/>
|
||||
</option>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.DEBUGGING_MODEL.1558031671" name="Debugging model" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.DEBUGGING_MODEL" value="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.DEBUGGING_MODEL.SYMDEBUG__DWARF" valueType="enumerated"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.DEFINE.1737440910" name="Pre-define NAME (--define, -D)" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.DEFINE" valueType="definedSymbols">
|
||||
<listOptionValue builtIn="false" value="CPU1"/>
|
||||
<listOptionValue builtIn="false" value="_LAUNCHXL_F28379D"/>
|
||||
</option>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.DIAG_WARNING.1399668583" name="Treat diagnostic <id> as warning (--diag_warning, -pdsw)" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.DIAG_WARNING" valueType="stringList">
|
||||
<listOptionValue builtIn="false" value="225"/>
|
||||
</option>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.DISPLAY_ERROR_NUMBER.1204350076" name="Emit diagnostic identifier numbers (--display_error_number, -pden)" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.DISPLAY_ERROR_NUMBER" value="true" valueType="boolean"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.DIAG_SUPPRESS.172190216" name="Suppress diagnostic <id> (--diag_suppress, -pds)" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.DIAG_SUPPRESS" valueType="stringList">
|
||||
<listOptionValue builtIn="false" value="10063"/>
|
||||
</option>
|
||||
<inputType id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compiler.inputType__C_SRCS.1966425165" name="C Sources" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compiler.inputType__C_SRCS"/>
|
||||
<inputType id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compiler.inputType__CPP_SRCS.871701422" name="C++ Sources" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compiler.inputType__CPP_SRCS"/>
|
||||
<inputType id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compiler.inputType__ASM_SRCS.1422950131" name="Assembly Sources" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compiler.inputType__ASM_SRCS"/>
|
||||
<inputType id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compiler.inputType__ASM2_SRCS.1220086809" name="Assembly Sources" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compiler.inputType__ASM2_SRCS"/>
|
||||
</tool>
|
||||
<tool id="com.ti.ccstudio.buildDefinitions.C2000_15.12.exe.linkerDebug.1574420106" name="C2000 Linker" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.exe.linkerDebug">
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.OUTPUT_FILE.1973298306" name="Specify output file name (--output_file, -o)" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.OUTPUT_FILE" value=""${ProjName}.out"" valueType="string"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.MAP_FILE.1038895198" name="Link information (map) listed into <file> (--map_file, -m)" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.MAP_FILE" value=""${ProjName}.map"" valueType="string"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.STACK_SIZE.1585055817" name="Set C system stack size (--stack_size, -stack)" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.STACK_SIZE" value="0x100" valueType="string"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.LIBRARY.1531566998" name="Include library file or command file as input (--library, -l)" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.LIBRARY" valueType="libs">
|
||||
<listOptionValue builtIn="false" value=""rts2800_fpu32.lib""/>
|
||||
<listOptionValue builtIn="false" value=""2837xD_RAM_lnk_cpu1.cmd""/>
|
||||
<listOptionValue builtIn="false" value=""F2837xD_Headers_nonBIOS_cpu1.cmd""/>
|
||||
<listOptionValue builtIn="false" value=""libc.a""/>
|
||||
</option>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.SEARCH_PATH.161292019" name="Add <dir> to library search path (--search_path, -i)" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.SEARCH_PATH" valueType="libPaths">
|
||||
<listOptionValue builtIn="false" value=""${CG_TOOL_ROOT}/lib""/>
|
||||
<listOptionValue builtIn="false" value=""${CG_TOOL_ROOT}/include""/>
|
||||
<listOptionValue builtIn="false" value=""${INSTALLROOT_F2837XD}/common/cmd""/>
|
||||
<listOptionValue builtIn="false" value=""${INSTALLROOT_F2837XD}/headers/cmd""/>
|
||||
</option>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.DISPLAY_ERROR_NUMBER.384485931" name="Emit diagnostic identifier numbers (--display_error_number)" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.DISPLAY_ERROR_NUMBER" value="true" valueType="boolean"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.XML_LINK_INFO.936076786" name="Detailed link information data-base into <file> (--xml_link_info, -xml_link_info)" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.XML_LINK_INFO" value=""${ProjName}_linkInfo.xml"" valueType="string"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.ENTRY_POINT.1135971175" name="Specify program entry point for the output module (--entry_point, -e)" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.ENTRY_POINT" value="code_start" valueType="string"/>
|
||||
<inputType id="com.ti.ccstudio.buildDefinitions.C2000_15.12.exeLinker.inputType__CMD_SRCS.252517162" name="Linker Command Files" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.exeLinker.inputType__CMD_SRCS"/>
|
||||
<inputType id="com.ti.ccstudio.buildDefinitions.C2000_15.12.exeLinker.inputType__CMD2_SRCS.612427472" name="Linker Command Files" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.exeLinker.inputType__CMD2_SRCS"/>
|
||||
<inputType id="com.ti.ccstudio.buildDefinitions.C2000_15.12.exeLinker.inputType__GEN_CMDS.1075739978" name="Generated Linker Command Files" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.exeLinker.inputType__GEN_CMDS"/>
|
||||
</tool>
|
||||
</toolChain>
|
||||
</folderInfo>
|
||||
</configuration>
|
||||
</storageModule>
|
||||
<storageModule moduleId="org.eclipse.cdt.core.externalSettings"/>
|
||||
</cconfiguration>
|
||||
<cconfiguration id="com.ti.ccstudio.buildDefinitions.C2000.Debug.2121059750.1822114937.438132225">
|
||||
<storageModule buildSystemId="org.eclipse.cdt.managedbuilder.core.configurationDataProvider" id="com.ti.ccstudio.buildDefinitions.C2000.Debug.2121059750.1822114937.438132225" moduleId="org.eclipse.cdt.core.settings" name="LAUNCHPAD_FLASH">
|
||||
<macros>
|
||||
<stringMacro name="INSTALLROOT_F2837XD" type="VALUE_PATH_DIR" value="${PROJECT_ROOT}/../../../../.."/>
|
||||
</macros>
|
||||
<externalSettings/>
|
||||
<extensions>
|
||||
<extension id="com.ti.ccstudio.errorparser.CoffErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
|
||||
<extension id="com.ti.ccstudio.errorparser.LinkErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
|
||||
<extension id="com.ti.ccstudio.errorparser.AsmErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
|
||||
<extension id="org.eclipse.cdt.core.GmakeErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
|
||||
<extension id="com.ti.ccstudio.binaryparser.CoffParser" point="org.eclipse.cdt.core.BinaryParser"/>
|
||||
</extensions>
|
||||
</storageModule>
|
||||
<storageModule moduleId="cdtBuildSystem" version="4.0.0">
|
||||
<configuration artifactExtension="out" artifactName="${ProjName}" buildProperties="" cleanCommand="${CG_CLEAN_CMD}" description="Launchpad Flash Build Configuration w/Debugger Support for CPU1" id="com.ti.ccstudio.buildDefinitions.C2000.Debug.2121059750.1822114937.438132225" name="LAUNCHPAD_FLASH" parent="com.ti.ccstudio.buildDefinitions.C2000.Debug">
|
||||
<folderInfo id="com.ti.ccstudio.buildDefinitions.C2000.Debug.2121059750.1822114937.438132225." name="/" resourcePath="">
|
||||
<toolChain id="com.ti.ccstudio.buildDefinitions.C2000_15.12.exe.DebugToolchain.1590745905" name="TI Build Tools" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.exe.DebugToolchain" targetTool="com.ti.ccstudio.buildDefinitions.C2000_15.12.exe.linkerDebug.1207778978">
|
||||
<option id="com.ti.ccstudio.buildDefinitions.core.OPT_TAGS.1775139439" superClass="com.ti.ccstudio.buildDefinitions.core.OPT_TAGS" valueType="stringList">
|
||||
<listOptionValue builtIn="false" value="DEVICE_CONFIGURATION_ID=com.ti.ccstudio.deviceModel.C2000.GenericC28xxDevice"/>
|
||||
<listOptionValue builtIn="false" value="DEVICE_ENDIANNESS=little"/>
|
||||
<listOptionValue builtIn="false" value="OUTPUT_FORMAT=COFF"/>
|
||||
<listOptionValue builtIn="false" value="CCS_MBS_VERSION=6.1.3"/>
|
||||
<listOptionValue builtIn="false" value="RUNTIME_SUPPORT_LIBRARY=libc.a"/>
|
||||
<listOptionValue builtIn="false" value="OUTPUT_TYPE=executable"/>
|
||||
</option>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.core.OPT_CODEGEN_VERSION.1837391604" name="Compiler version" superClass="com.ti.ccstudio.buildDefinitions.core.OPT_CODEGEN_VERSION" value="15.12.1.LTS" valueType="string"/>
|
||||
<targetPlatform id="com.ti.ccstudio.buildDefinitions.C2000_15.12.exe.targetPlatformDebug.523735311" name="Platform" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.exe.targetPlatformDebug"/>
|
||||
<builder buildPath="${BuildDirectory}" id="com.ti.ccstudio.buildDefinitions.C2000_15.12.exe.builderDebug.1399110081" keepEnvironmentInBuildfile="false" name="GNU Make" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.exe.builderDebug"/>
|
||||
<tool id="com.ti.ccstudio.buildDefinitions.C2000_15.12.exe.compilerDebug.1420880891" name="C2000 Compiler" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.exe.compilerDebug">
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.SILICON_VERSION.1031825605" name="Processor version (--silicon_version, -v)" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.SILICON_VERSION" value="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.SILICON_VERSION.28" valueType="enumerated"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.LARGE_MEMORY_MODEL.201834971" name="Option deprecated, set by default (--large_memory_model, -ml)" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.LARGE_MEMORY_MODEL" value="true" valueType="boolean"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.UNIFIED_MEMORY.1006321869" name="Unified memory (--unified_memory, -mt)" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.UNIFIED_MEMORY" value="true" valueType="boolean"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.CLA_SUPPORT.884993021" name="Specify CLA support (--cla_support)" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.CLA_SUPPORT" value="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.CLA_SUPPORT.cla1" valueType="enumerated"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.FLOAT_SUPPORT.2018446355" name="Specify floating point support (--float_support)" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.FLOAT_SUPPORT" value="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.FLOAT_SUPPORT.fpu32" valueType="enumerated"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.TMU_SUPPORT.647965650" name="Specify TMU support (--tmu_support)" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.TMU_SUPPORT" value="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.TMU_SUPPORT.tmu0" valueType="enumerated"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.VCU_SUPPORT.634363108" name="Specify VCU support (--vcu_support)" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.VCU_SUPPORT" value="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.VCU_SUPPORT.vcu2" valueType="enumerated"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.INCLUDE_PATH.914156556" name="Add dir to #include search path (--include_path, -I)" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.INCLUDE_PATH" valueType="includePath">
|
||||
<listOptionValue builtIn="false" value=""${CG_TOOL_ROOT}/include""/>
|
||||
<listOptionValue builtIn="false" value=""${INSTALLROOT_F2837XD}/headers/include""/>
|
||||
<listOptionValue builtIn="false" value=""${INSTALLROOT_F2837XD}/common/include""/>
|
||||
</option>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.DEBUGGING_MODEL.2080726436" name="Debugging model" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.DEBUGGING_MODEL" value="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.DEBUGGING_MODEL.SYMDEBUG__DWARF" valueType="enumerated"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.DEFINE.15524490" name="Pre-define NAME (--define, -D)" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.DEFINE" valueType="definedSymbols">
|
||||
<listOptionValue builtIn="false" value="CPU1"/>
|
||||
<listOptionValue builtIn="false" value="_LAUNCHXL_F28379D"/>
|
||||
<listOptionValue builtIn="false" value="_FLASH"/>
|
||||
</option>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.DIAG_WARNING.1631757829" name="Treat diagnostic <id> as warning (--diag_warning, -pdsw)" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.DIAG_WARNING" valueType="stringList">
|
||||
<listOptionValue builtIn="false" value="225"/>
|
||||
</option>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.DISPLAY_ERROR_NUMBER.1565856561" name="Emit diagnostic identifier numbers (--display_error_number, -pden)" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.DISPLAY_ERROR_NUMBER" value="true" valueType="boolean"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.DIAG_SUPPRESS.708596037" name="Suppress diagnostic <id> (--diag_suppress, -pds)" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.DIAG_SUPPRESS" valueType="stringList">
|
||||
<listOptionValue builtIn="false" value="10063"/>
|
||||
</option>
|
||||
<inputType id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compiler.inputType__C_SRCS.1214880595" name="C Sources" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compiler.inputType__C_SRCS"/>
|
||||
<inputType id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compiler.inputType__CPP_SRCS.728507429" name="C++ Sources" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compiler.inputType__CPP_SRCS"/>
|
||||
<inputType id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compiler.inputType__ASM_SRCS.2082289880" name="Assembly Sources" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compiler.inputType__ASM_SRCS"/>
|
||||
<inputType id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compiler.inputType__ASM2_SRCS.1798508426" name="Assembly Sources" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compiler.inputType__ASM2_SRCS"/>
|
||||
</tool>
|
||||
<tool id="com.ti.ccstudio.buildDefinitions.C2000_15.12.exe.linkerDebug.406905505" name="C2000 Linker" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.exe.linkerDebug">
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.OUTPUT_FILE.1946936740" name="Specify output file name (--output_file, -o)" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.OUTPUT_FILE" value=""${ProjName}.out"" valueType="string"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.MAP_FILE.936804888" name="Link information (map) listed into <file> (--map_file, -m)" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.MAP_FILE" value=""${ProjName}.map"" valueType="string"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.STACK_SIZE.1266657246" name="Set C system stack size (--stack_size, -stack)" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.STACK_SIZE" value="0x100" valueType="string"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.LIBRARY.1420772020" name="Include library file or command file as input (--library, -l)" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.LIBRARY" valueType="libs">
|
||||
<listOptionValue builtIn="false" value=""rts2800_fpu32.lib""/>
|
||||
<listOptionValue builtIn="false" value=""2837xD_FLASH_lnk_cpu1.cmd""/>
|
||||
<listOptionValue builtIn="false" value=""F2837xD_Headers_nonBIOS_cpu1.cmd""/>
|
||||
<listOptionValue builtIn="false" value=""libc.a""/>
|
||||
</option>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.SEARCH_PATH.1677143948" name="Add <dir> to library search path (--search_path, -i)" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.SEARCH_PATH" valueType="libPaths">
|
||||
<listOptionValue builtIn="false" value=""${CG_TOOL_ROOT}/lib""/>
|
||||
<listOptionValue builtIn="false" value=""${CG_TOOL_ROOT}/include""/>
|
||||
<listOptionValue builtIn="false" value=""${INSTALLROOT_F2837XD}/common/cmd""/>
|
||||
<listOptionValue builtIn="false" value=""${INSTALLROOT_F2837XD}/headers/cmd""/>
|
||||
</option>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.DISPLAY_ERROR_NUMBER.81992941" name="Emit diagnostic identifier numbers (--display_error_number)" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.DISPLAY_ERROR_NUMBER" value="true" valueType="boolean"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.XML_LINK_INFO.1752805041" name="Detailed link information data-base into <file> (--xml_link_info, -xml_link_info)" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.XML_LINK_INFO" value=""${ProjName}_linkInfo.xml"" valueType="string"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.ENTRY_POINT.1519951745" name="Specify program entry point for the output module (--entry_point, -e)" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.ENTRY_POINT" value="code_start" valueType="string"/>
|
||||
<inputType id="com.ti.ccstudio.buildDefinitions.C2000_15.12.exeLinker.inputType__CMD_SRCS.63899729" name="Linker Command Files" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.exeLinker.inputType__CMD_SRCS"/>
|
||||
<inputType id="com.ti.ccstudio.buildDefinitions.C2000_15.12.exeLinker.inputType__CMD2_SRCS.2095804526" name="Linker Command Files" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.exeLinker.inputType__CMD2_SRCS"/>
|
||||
<inputType id="com.ti.ccstudio.buildDefinitions.C2000_15.12.exeLinker.inputType__GEN_CMDS.710625925" name="Generated Linker Command Files" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.exeLinker.inputType__GEN_CMDS"/>
|
||||
</tool>
|
||||
</toolChain>
|
||||
</folderInfo>
|
||||
</configuration>
|
||||
</storageModule>
|
||||
<storageModule moduleId="org.eclipse.cdt.core.externalSettings"/>
|
||||
</cconfiguration>
|
||||
</storageModule>
|
||||
<storageModule moduleId="org.eclipse.cdt.core.LanguageSettingsProviders"/>
|
||||
<storageModule moduleId="cdtBuildSystem" version="4.0.0">
|
||||
<project id="blinky_dc_cpu01.com.ti.ccstudio.buildDefinitions.C2000.ProjectType.253935156" name="C2000" projectType="com.ti.ccstudio.buildDefinitions.C2000.ProjectType"/>
|
||||
</storageModule>
|
||||
<storageModule moduleId="scannerConfiguration"/>
|
||||
<storageModule moduleId="org.eclipse.cdt.core.language.mapping">
|
||||
<project-mappings>
|
||||
<content-type-mapping configuration="" content-type="org.eclipse.cdt.core.asmSource" language="com.ti.ccstudio.core.TIASMLanguage"/>
|
||||
<content-type-mapping configuration="" content-type="org.eclipse.cdt.core.cHeader" language="com.ti.ccstudio.core.TIGCCLanguage"/>
|
||||
<content-type-mapping configuration="" content-type="org.eclipse.cdt.core.cSource" language="com.ti.ccstudio.core.TIGCCLanguage"/>
|
||||
<content-type-mapping configuration="" content-type="org.eclipse.cdt.core.cxxHeader" language="com.ti.ccstudio.core.TIGPPLanguage"/>
|
||||
<content-type-mapping configuration="" content-type="org.eclipse.cdt.core.cxxSource" language="com.ti.ccstudio.core.TIGPPLanguage"/>
|
||||
</project-mappings>
|
||||
</storageModule>
|
||||
<storageModule moduleId="null.endianPreference"/>
|
||||
<storageModule moduleId="cpuFamily"/>
|
||||
</cproject>
|
||||
@@ -0,0 +1,85 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<projectDescription>
|
||||
<name>blinky_cpu01</name>
|
||||
<comment></comment>
|
||||
<projects>
|
||||
</projects>
|
||||
<buildSpec>
|
||||
<buildCommand>
|
||||
<name>org.eclipse.cdt.managedbuilder.core.genmakebuilder</name>
|
||||
<arguments>
|
||||
</arguments>
|
||||
</buildCommand>
|
||||
<buildCommand>
|
||||
<name>org.eclipse.cdt.managedbuilder.core.ScannerConfigBuilder</name>
|
||||
<triggers>full,incremental,</triggers>
|
||||
<arguments>
|
||||
</arguments>
|
||||
</buildCommand>
|
||||
</buildSpec>
|
||||
<natures>
|
||||
<nature>com.ti.ccstudio.core.ccsNature</nature>
|
||||
<nature>org.eclipse.cdt.core.cnature</nature>
|
||||
<nature>org.eclipse.cdt.managedbuilder.core.managedBuildNature</nature>
|
||||
<nature>org.eclipse.cdt.core.ccnature</nature>
|
||||
<nature>org.eclipse.cdt.managedbuilder.core.ScannerConfigNature</nature>
|
||||
</natures>
|
||||
<linkedResources>
|
||||
<link>
|
||||
<name>F2837xD_CodeStartBranch.asm</name>
|
||||
<type>1</type>
|
||||
<locationURI>PARENT-5-PROJECT_LOC/common/source/F2837xD_CodeStartBranch.asm</locationURI>
|
||||
</link>
|
||||
<link>
|
||||
<name>F2837xD_DefaultISR.c</name>
|
||||
<type>1</type>
|
||||
<locationURI>PARENT-5-PROJECT_LOC/common/source/F2837xD_DefaultISR.c</locationURI>
|
||||
</link>
|
||||
<link>
|
||||
<name>F2837xD_GlobalVariableDefs.c</name>
|
||||
<type>1</type>
|
||||
<locationURI>PARENT-5-PROJECT_LOC/headers/source/F2837xD_GlobalVariableDefs.c</locationURI>
|
||||
</link>
|
||||
<link>
|
||||
<name>F2837xD_Gpio.c</name>
|
||||
<type>1</type>
|
||||
<locationURI>PARENT-5-PROJECT_LOC/common/source/F2837xD_Gpio.c</locationURI>
|
||||
</link>
|
||||
<link>
|
||||
<name>F2837xD_Ipc.c</name>
|
||||
<type>1</type>
|
||||
<locationURI>PARENT-5-PROJECT_LOC/common/source/F2837xD_Ipc.c</locationURI>
|
||||
</link>
|
||||
<link>
|
||||
<name>F2837xD_PieCtrl.c</name>
|
||||
<type>1</type>
|
||||
<locationURI>PARENT-5-PROJECT_LOC/common/source/F2837xD_PieCtrl.c</locationURI>
|
||||
</link>
|
||||
<link>
|
||||
<name>F2837xD_PieVect.c</name>
|
||||
<type>1</type>
|
||||
<locationURI>PARENT-5-PROJECT_LOC/common/source/F2837xD_PieVect.c</locationURI>
|
||||
</link>
|
||||
<link>
|
||||
<name>F2837xD_SysCtrl.c</name>
|
||||
<type>1</type>
|
||||
<locationURI>PARENT-5-PROJECT_LOC/common/source/F2837xD_SysCtrl.c</locationURI>
|
||||
</link>
|
||||
<link>
|
||||
<name>F2837xD_usDelay.asm</name>
|
||||
<type>1</type>
|
||||
<locationURI>PARENT-5-PROJECT_LOC/common/source/F2837xD_usDelay.asm</locationURI>
|
||||
</link>
|
||||
<link>
|
||||
<name>blinky_cpu01.c</name>
|
||||
<type>1</type>
|
||||
<locationURI>PARENT-1-PROJECT_LOC/blinky_cpu01.c</locationURI>
|
||||
</link>
|
||||
</linkedResources>
|
||||
<variableList>
|
||||
<variable>
|
||||
<name>INSTALLROOT_F2837XD</name>
|
||||
<value>$%7BPARENT-4-PROJECT_LOC%7D</value>
|
||||
</variable>
|
||||
</variableList>
|
||||
</projectDescription>
|
||||
+22
@@ -0,0 +1,22 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<configurations XML_version="1.2" id="configurations_0">
|
||||
<configuration XML_version="1.2" id="Texas Instruments XDS100v2 USB Debug Probe_0">
|
||||
<instance XML_version="1.2" desc="Texas Instruments XDS100v2 USB Debug Probe_0" href="connections/TIXDS100v2_Connection.xml" id="Texas Instruments XDS100v2 USB Debug Probe_0" xml="TIXDS100v2_Connection.xml" xmlpath="connections"/>
|
||||
<connection XML_version="1.2" id="Texas Instruments XDS100v2 USB Debug Probe_0">
|
||||
<instance XML_version="1.2" href="drivers/tixds100v2icepick_c.xml" id="drivers" xml="tixds100v2icepick_c.xml" xmlpath="drivers"/>
|
||||
<instance XML_version="1.2" href="drivers/tixds100v2c28x.xml" id="drivers" xml="tixds100v2c28x.xml" xmlpath="drivers"/>
|
||||
<instance XML_version="1.2" href="drivers/tixds100v2cla1.xml" id="drivers" xml="tixds100v2cla1.xml" xmlpath="drivers"/>
|
||||
<instance XML_version="1.2" href="drivers/tixds100v2cs_child.xml" id="drivers" xml="tixds100v2cs_child.xml" xmlpath="drivers"/>
|
||||
<platform XML_version="1.2" id="platform_0">
|
||||
<instance XML_version="1.2" desc="TMS320F28377D_0" href="devices/tms320f28377d.xml" id="TMS320F28377D_0" xml="tms320f28377d.xml" xmlpath="devices"/>
|
||||
<device HW_revision="1" XML_version="1.2" description="" id="TMS320F28377D_0" partnum="TMS320F28377D">
|
||||
<router HW_revision="1.0" XML_version="1.2" description="ICEPick_C router" id="IcePick_C_0" isa="ICEPICK_C">
|
||||
<subpath id="Subpath_1">
|
||||
<property Type="numericfield" Value="0x11" desc="Port Number_0" id="Port Number"/>
|
||||
</subpath>
|
||||
</router>
|
||||
</device>
|
||||
</platform>
|
||||
</connection>
|
||||
</configuration>
|
||||
</configurations>
|
||||
+145
@@ -0,0 +1,145 @@
|
||||
;// TI File $Revision: /main/2 $
|
||||
;// Checkin $Date: December 7, 2011 18:25:13 $
|
||||
;//###########################################################################
|
||||
;//
|
||||
;// FILE: DCSM_Z1_ZoneSelectBlock.asm
|
||||
;//
|
||||
;// TITLE: F2837x Dual Code Security Module Zone 1 Zone Select Block Values.
|
||||
;//
|
||||
;// DESCRIPTION:
|
||||
;//
|
||||
;// This file is used to specify Z1 DCSM OTP and zone select
|
||||
;// values to program into the Zone 1 zone select locations in OTP
|
||||
;// Value depends on Linkpointer.
|
||||
;//
|
||||
;// In addition, the 60 reserved values after the zone select block
|
||||
;// are all programmed to 0x0000 as well.
|
||||
;//
|
||||
;//###########################################################################
|
||||
;//
|
||||
;// Original source based on D.A.
|
||||
;//
|
||||
;// 2837x C/C++ Header Files vBeta1 $
|
||||
;// $Release Date: November 18, 2013 $
|
||||
;// $Copyright:
|
||||
;// Copyright (C) 2013-2024 Texas Instruments Incorporated - http://www.ti.com/
|
||||
;//
|
||||
;// Redistribution and use in source and binary forms, with or without
|
||||
;// modification, are permitted provided that the following conditions
|
||||
;// are met:
|
||||
;//
|
||||
;// Redistributions of source code must retain the above copyright
|
||||
;// notice, this list of conditions and the following disclaimer.
|
||||
;//
|
||||
;// Redistributions in binary form must reproduce the above copyright
|
||||
;// notice, this list of conditions and the following disclaimer in the
|
||||
;// documentation and/or other materials provided with the
|
||||
;// distribution.
|
||||
;//
|
||||
;// Neither the name of Texas Instruments Incorporated nor the names of
|
||||
;// its contributors may be used to endorse or promote products derived
|
||||
;// from this software without specific prior written permission.
|
||||
;//
|
||||
;// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||
;// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||
;// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
||||
;// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
||||
;// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||
;// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||
;// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
||||
;// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
||||
;// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||
;// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||
;// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
;// $
|
||||
;//###########################################################################
|
||||
;
|
||||
; !!IMPORTANT!! The below memory sections are mapped to OTP (one-time
|
||||
; programmable) memory with the *dcsm_lnk.cmd linker command file. In order
|
||||
; to program the below memory sections, user should uncomment the .long words
|
||||
; of each section and change the value to what is desired. Additionally, the
|
||||
; corresponding section of *dcsm_lnk.cmd should no longer be labelled as a
|
||||
; dummy section. Remove ", type = DSECT" in SECTIONS from the memory section
|
||||
; that is being programmed.
|
||||
;
|
||||
; !!IMPORTANT!!: The "dcsm_otp_z1_linkpointer" section contains the
|
||||
; Z1 LINKPOINTER which determines the location of the Z1 Zone Select block.
|
||||
; If the LINKPOINTER is changed, then the "dcsm_zsel_z1" section in the
|
||||
; *_dcsm_lnk_cpu1.cmd command linker file must also change to an address
|
||||
; decoded from the value specified in the Z1-LINKPOINTER location.
|
||||
;
|
||||
; The "dcsm_zsel_z1" section contains the actual Z1 Zone Select Block values
|
||||
; that will be linked and programmed into to the DCSM Z1 OTP Zone Select block
|
||||
; in OTP.
|
||||
; These values must be known in order to unlock the CSM module.
|
||||
; All 0xFFFFFFFF's (erased) is the default value for the password locations (PWL).
|
||||
;
|
||||
; It is recommended that all values be left as 0xFFFFFFFF during code
|
||||
; development. Values of 0xFFFFFFFF do not activate code security and dummy
|
||||
; reads of the Z1 DCSM PWL registers is all that is required to unlock the CSM.
|
||||
; When code development is complete, modify values to activate the
|
||||
; code security module.
|
||||
;
|
||||
; ******************************WARNING***************************************
|
||||
; It is recommended not to program 0xFFFFFFFF to user OTP locations, if users
|
||||
; intend to comeback and re-program any of the bits to '0' in future. If user
|
||||
; programs 0xFFFFFFFF to any of the OTP locations then the ECC locations would
|
||||
; get programmed to a non erased state and users won't be able to comeback
|
||||
; and re-program the OTP location to another value. Please refer to DCSM
|
||||
; chapter of device TRM for more details on ECC for the locations in DCSM.
|
||||
;
|
||||
; Hence TI ships this example commenting out the initialization of all the
|
||||
; below locations.
|
||||
|
||||
|
||||
.sect "dcsm_otp_z1_linkpointer"
|
||||
;; .long 0x1FFFFFFF ;Z1-LINKPOINTER1
|
||||
;; .long 0xFFFFFFFF ;Reserved
|
||||
;; .long 0x1FFFFFFF ;Z1-LINKPOINTER2
|
||||
;; .long 0xFFFFFFFF ;Reserved
|
||||
;; .long 0x1FFFFFFF ;Z1-LINKPOINTER3
|
||||
;; .long 0xFFFFFFFF ;Reserved
|
||||
|
||||
.sect "dcsm_otp_z1_pswdlock"
|
||||
;; .long 0xFFFFFFFF ;Z1-PSWDLOCK
|
||||
;; .long 0xFFFFFFFF ;Reserved
|
||||
|
||||
.sect "dcsm_otp_z1_crclock"
|
||||
;; .long 0xFFFFFFFF ;Z1-CRCLOCK
|
||||
;; .long 0xFFFFFFFF ;Reserved
|
||||
|
||||
.sect "dcsm_otp_z1_bootctrl"
|
||||
;; .long 0xFFFFFFFF ;Reserved
|
||||
;; .long 0xFFFFFFFF ;Z1-BOOTCTRL
|
||||
|
||||
.sect "dcsm_zsel_z1"
|
||||
|
||||
;; .long 0xFFFFFFFF ;Z1-EXEONLYRAM
|
||||
;; .long 0xFFFFFFFF ;Z1-EXEONLYSECT
|
||||
;; .long 0xFFFFFFFF ;Z1-GRABRAM
|
||||
;; .long 0xFFFFFFFF ;Z1-GRABSECT
|
||||
|
||||
;; .long 0xFFFFFFFF ;Z1-CSMPSWD0 (LSW of 128-bit password)
|
||||
;; .long 0xFFFFFFFF ;Z1-CSMPSWD1
|
||||
;; .long 0xFFFFFFFF ;Z1-CSMPSWD2
|
||||
;; .long 0xFFFFFFFF ;Z1-CSMPSWD3 (MSW of 128-bit password)
|
||||
|
||||
;----------------------------------------------------------------------
|
||||
|
||||
; For code security operation,after development has completed, prior to
|
||||
; production, all other zone select block locations should be programmed
|
||||
; to 0x0000 for maximum security.
|
||||
; If the first zone select block at offset 0x10 is used, the section
|
||||
;"dcsm_rsvd_z1" can be used to program these locations to 0x0000.
|
||||
; This code is commented out for development.
|
||||
|
||||
; .sect "dcsm_rsvd_z1"
|
||||
; .loop (1e0h)
|
||||
; .int 0x0000
|
||||
; .endloop
|
||||
|
||||
;//===========================================================================
|
||||
;// End of file.
|
||||
;//===========================================================================
|
||||
|
||||
|
||||
+143
@@ -0,0 +1,143 @@
|
||||
;// TI File $Revision: /main/2 $
|
||||
;// Checkin $Date: December 7, 2011 18:25:12 $
|
||||
;//###########################################################################
|
||||
;//
|
||||
;// FILE: DCSM_Z2_ZoneSelectBlock.asm
|
||||
;//
|
||||
;// TITLE: F2837x Dual Code Security Module Zone 2 Zone Select Block Values.
|
||||
;//
|
||||
;// DESCRIPTION:
|
||||
;//
|
||||
;// This file is used to specify Z2 DCSM OTP and zone select
|
||||
;// values to program into the Zone 2 zone select locations in OTP
|
||||
;// Value depends on Linkpointer.
|
||||
;//
|
||||
;// In addition, the 60 reserved values after the zone select block
|
||||
;// are all programmed to 0x0000 as well.
|
||||
;//
|
||||
;//###########################################################################
|
||||
;//
|
||||
;// Original source based on D.A.
|
||||
;//
|
||||
;// 2837x C/C++ Header Files vBeta1 $
|
||||
;// $Release Date: December 9, 2011 $
|
||||
;// $Copyright:
|
||||
;// Copyright (C) 2013-2024 Texas Instruments Incorporated - http://www.ti.com/
|
||||
;//
|
||||
;// Redistribution and use in source and binary forms, with or without
|
||||
;// modification, are permitted provided that the following conditions
|
||||
;// are met:
|
||||
;//
|
||||
;// Redistributions of source code must retain the above copyright
|
||||
;// notice, this list of conditions and the following disclaimer.
|
||||
;//
|
||||
;// Redistributions in binary form must reproduce the above copyright
|
||||
;// notice, this list of conditions and the following disclaimer in the
|
||||
;// documentation and/or other materials provided with the
|
||||
;// distribution.
|
||||
;//
|
||||
;// Neither the name of Texas Instruments Incorporated nor the names of
|
||||
;// its contributors may be used to endorse or promote products derived
|
||||
;// from this software without specific prior written permission.
|
||||
;//
|
||||
;// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||
;// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||
;// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
||||
;// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
||||
;// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||
;// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||
;// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
||||
;// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
||||
;// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||
;// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||
;// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
;// $
|
||||
;//###########################################################################
|
||||
;
|
||||
; !!IMPORTANT!! The below memory sections are mapped to OTP (one-time
|
||||
; programmable) memory with the *dcsm_lnk.cmd linker command file. In order
|
||||
; to program the below memory sections, user should uncomment the .long words
|
||||
; of each section and change the value to what is desired. Additionally, the
|
||||
; corresponding section of *dcsm_lnk.cmd should no longer be labelled as a
|
||||
; dummy section. Remove ", type = DSECT" in SECTIONS from the memory section
|
||||
; that is being programmed.
|
||||
;
|
||||
; !!IMPORTANT!!: The "dcsm_otp_z2_linkpointer" section contains the
|
||||
; Z2 LINKPOINTER which determines the location of the Z2 Zone Select block.
|
||||
; If the LINKPOINTER is changed, then the "dcsm_zsel_z2" section in the
|
||||
; *_dcsm_lnk_cpu1.cmd command linker file must also change to an address
|
||||
; decoded from the value specified in the Z2-LINKPOINTER location.
|
||||
;
|
||||
; The "dcsm_zsel_z2" section contains the actual Z2 Zone Select Block values
|
||||
; that will be linked and programmed into to the DCSM Z2 OTP Zone Select block
|
||||
; in OTP.
|
||||
; These values must be known in order to unlock the CSM module.
|
||||
; All 0xFFFFFFFF's (erased) is the default value for the password locations (PWL).
|
||||
;
|
||||
; It is recommended that all values be left as 0xFFFFFFFF during code
|
||||
; development. Values of 0xFFFFFFFF do not activate code security and dummy
|
||||
; reads of the Z2 DCSM PWL registers is all that is required to unlock the CSM.
|
||||
; When code development is complete, modify values to activate the
|
||||
; code security module.
|
||||
;
|
||||
; ******************************WARNING***************************************
|
||||
; It is recommended not to program 0xFFFFFFFF to user OTP locations, if users
|
||||
; intend to comeback and re-program any of the bits to '0' in future. If user
|
||||
; programs 0xFFFFFFFF to any of the OTP locations then the ECC locations would
|
||||
; get programmed to a non erased state and users won't be able to comeback
|
||||
; and re-program the OTP location to another value. Please refer to DCSM
|
||||
; chapter of device TRM for more details on ECC for the locations in DCSM.
|
||||
;
|
||||
; Hence TI ships this example commenting out the initialization of all the
|
||||
; below locations.
|
||||
|
||||
.sect "dcsm_otp_z2_linkpointer"
|
||||
;; .long 0x1FFFFFFF ;Z2-LINKPOINTER1
|
||||
;; .long 0xFFFFFFFF ;Reserved
|
||||
;; .long 0x1FFFFFFF ;Z2-LINKPOINTER2
|
||||
;; .long 0xFFFFFFFF ;Reserved
|
||||
;; .long 0x1FFFFFFF ;Z2-LINKPOINTER3
|
||||
;; .long 0xFFFFFFFF ;Reserved
|
||||
|
||||
.sect "dcsm_otp_z2_pswdlock"
|
||||
;; .long 0xFFFFFFFF ;Z2-PSWDLOCK
|
||||
;; .long 0xFFFFFFFF ;Reserved
|
||||
|
||||
.sect "dcsm_otp_z2_crclock"
|
||||
;; .long 0xFFFFFFFF ;Z2-CRCLOCK
|
||||
;; .long 0xFFFFFFFF ;Reserved
|
||||
|
||||
.sect "dcsm_otp_z2_bootctrl"
|
||||
;; .long 0xFFFFFFFF ;Reserved
|
||||
;; .long 0xFFFFFFFF ;Z2-BOOTCTRL
|
||||
|
||||
.sect "dcsm_zsel_z2"
|
||||
;; .long 0xFFFFFFFF ;Z2-EXEONLYRAM
|
||||
;; .long 0xFFFFFFFF ;Z2-EXEONLYSECT
|
||||
;; .long 0xFFFFFFFF ;Z2-GRABRAM
|
||||
;; .long 0xFFFFFFFF ;Z2-GRABSECT
|
||||
|
||||
;; .long 0xFFFFFFFF ;Z2-CSMPSWD0 (LSW of 128-bit password)
|
||||
;; .long 0xFFFFFFFF ;Z2-CSMPSWD1
|
||||
;; .long 0xFFFFFFFF ;Z2-CSMPSWD2
|
||||
;; .long 0xFFFFFFFF ;Z2-CSMPSWD3 (MSW of 128-bit password)
|
||||
|
||||
;----------------------------------------------------------------------
|
||||
|
||||
; For code security operation,after development has completed, prior to
|
||||
; production, all other zone select block locations should be programmed
|
||||
; to 0x0000 for maximum security.
|
||||
; If the first zone select block at offset 0x10 is used, the section
|
||||
;"dcsm_rsvd_z2" can be used to program these locations to 0x0000.
|
||||
; This code is commented out for development.
|
||||
|
||||
; .sect "dcsm_rsvd_z2"
|
||||
; .loop (1e0h)
|
||||
; .int 0x0000
|
||||
; .endloop
|
||||
|
||||
;//===========================================================================
|
||||
;// End of file.
|
||||
;//===========================================================================
|
||||
|
||||
|
||||
@@ -0,0 +1,136 @@
|
||||
//###########################################################################
|
||||
//
|
||||
// FILE: blinky_cpu01.c
|
||||
//
|
||||
// TITLE: LED Blink Example for F2837xD.
|
||||
//
|
||||
//! \addtogroup cpu01_example_list
|
||||
//! <h1> Blinky with DCSM </h1>
|
||||
//!
|
||||
//! This example blinks LED X
|
||||
//
|
||||
//###########################################################################
|
||||
//
|
||||
//
|
||||
// $Copyright:
|
||||
// Copyright (C) 2013-2024 Texas Instruments Incorporated - http://www.ti.com/
|
||||
//
|
||||
// Redistribution and use in source and binary forms, with or without
|
||||
// modification, are permitted provided that the following conditions
|
||||
// are met:
|
||||
//
|
||||
// Redistributions of source code must retain the above copyright
|
||||
// notice, this list of conditions and the following disclaimer.
|
||||
//
|
||||
// Redistributions in binary form must reproduce the above copyright
|
||||
// notice, this list of conditions and the following disclaimer in the
|
||||
// documentation and/or other materials provided with the
|
||||
// distribution.
|
||||
//
|
||||
// Neither the name of Texas Instruments Incorporated nor the names of
|
||||
// its contributors may be used to endorse or promote products derived
|
||||
// from this software without specific prior written permission.
|
||||
//
|
||||
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||
// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||
// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
||||
// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
||||
// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||
// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||
// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
||||
// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
||||
// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
// $
|
||||
//###########################################################################
|
||||
|
||||
//
|
||||
// Included Files
|
||||
//
|
||||
#include "F28x_Project.h"
|
||||
|
||||
void main(void)
|
||||
{
|
||||
//
|
||||
// Step 1. Initialize System Control:
|
||||
// PLL, WatchDog, enable Peripheral Clocks
|
||||
// This example function is found in the F2837xD_SysCtrl.c file.
|
||||
//
|
||||
InitSysCtrl();
|
||||
|
||||
//
|
||||
// Step 2. Initialize GPIO:
|
||||
// This example function is found in the F2837xD_Gpio.c file and
|
||||
// illustrates how to set the GPIO to it's default state.
|
||||
//
|
||||
InitGpio();
|
||||
GPIO_SetupPinMux(31, GPIO_MUX_CPU1, 0);
|
||||
GPIO_SetupPinOptions(31, GPIO_OUTPUT, GPIO_PUSHPULL);
|
||||
|
||||
//
|
||||
// Step 3. Clear all interrupts and initialize PIE vector table:
|
||||
// Disable CPU interrupts
|
||||
//
|
||||
DINT;
|
||||
|
||||
//
|
||||
// Initialize the PIE control registers to their default state.
|
||||
// The default state is all PIE interrupts disabled and flags
|
||||
// are cleared.
|
||||
// This function is found in the F2837xD_PieCtrl.c file.
|
||||
//
|
||||
InitPieCtrl();
|
||||
|
||||
//
|
||||
// Disable CPU interrupts and clear all CPU interrupt flags:
|
||||
//
|
||||
IER = 0x0000;
|
||||
IFR = 0x0000;
|
||||
|
||||
//
|
||||
// Initialize the PIE vector table with pointers to the shell Interrupt
|
||||
// Service Routines (ISR).
|
||||
// This will populate the entire table, even if the interrupt
|
||||
// is not used in this example. This is useful for debug purposes.
|
||||
// The shell ISR routines are found in F2837xD_DefaultIsr.c.
|
||||
// This function is found in F2837xD_PieVect.c.
|
||||
//
|
||||
InitPieVectTable();
|
||||
|
||||
//
|
||||
// Enable global Interrupts and higher priority real-time debug events:
|
||||
//
|
||||
EINT; // Enable Global interrupt INTM
|
||||
ERTM; // Enable Global realtime interrupt DBGM
|
||||
|
||||
//
|
||||
// Step 6. IDLE loop. Just sit and loop forever (optional):
|
||||
//
|
||||
for(;;)
|
||||
{
|
||||
//
|
||||
// Turn on LED
|
||||
//
|
||||
GPIO_WritePin(31, 0);
|
||||
|
||||
//
|
||||
// Delay for a bit.
|
||||
//
|
||||
DELAY_US(1000*500);
|
||||
|
||||
//
|
||||
// Turn off LED
|
||||
//
|
||||
GPIO_WritePin(31, 1);
|
||||
|
||||
//
|
||||
// Delay for a bit.
|
||||
//
|
||||
DELAY_US(1000*500);
|
||||
}
|
||||
}
|
||||
|
||||
//
|
||||
// End of file
|
||||
//
|
||||
@@ -0,0 +1,12 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<?ccsproject version="1.0"?>
|
||||
<projectOptions>
|
||||
<deviceVariant value="com.ti.ccstudio.deviceModel.C2000.GenericC28xxDevice"/>
|
||||
<deviceFamily value="C2000"/>
|
||||
<codegenToolVersion value="6.3.0.A13150"/>
|
||||
<isElfFormat value="false"/>
|
||||
<connection value=""/>
|
||||
<rts value="libc.a"/>
|
||||
<templateProperties value="id=com.ti.common.project.core.emptyProjectTemplate,"/>
|
||||
<isTargetManual value="false"/>
|
||||
</projectOptions>
|
||||
@@ -0,0 +1,199 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<?fileVersion 4.0.0?><cproject storage_type_id="org.eclipse.cdt.core.XmlProjectDescriptionStorage">
|
||||
<storageModule configRelations="2" moduleId="org.eclipse.cdt.core.settings">
|
||||
<cconfiguration id="com.ti.ccstudio.buildDefinitions.C2000.Debug.2121059750">
|
||||
<storageModule buildSystemId="org.eclipse.cdt.managedbuilder.core.configurationDataProvider" id="com.ti.ccstudio.buildDefinitions.C2000.Debug.2121059750" moduleId="org.eclipse.cdt.core.settings" name="CPU1_RAM">
|
||||
<macros>
|
||||
<stringMacro name="INSTALLROOT_F2837XD" type="VALUE_PATH_DIR" value="${PROJECT_ROOT}/../../../../.."/>
|
||||
</macros>
|
||||
<externalSettings/>
|
||||
<extensions>
|
||||
<extension id="com.ti.ccstudio.errorparser.CoffErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
|
||||
<extension id="com.ti.ccstudio.errorparser.LinkErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
|
||||
<extension id="com.ti.ccstudio.errorparser.AsmErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
|
||||
<extension id="org.eclipse.cdt.core.GmakeErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
|
||||
<extension id="com.ti.ccstudio.binaryparser.CoffParser" point="org.eclipse.cdt.core.BinaryParser"/>
|
||||
</extensions>
|
||||
</storageModule>
|
||||
<storageModule moduleId="cdtBuildSystem" version="4.0.0">
|
||||
<configuration artifactExtension="out" artifactName="${ProjName}" buildProperties="" cleanCommand="${CG_CLEAN_CMD}" description="RAM Build Configuration w/Debugger Support for CPU1" id="com.ti.ccstudio.buildDefinitions.C2000.Debug.2121059750" name="CPU1_RAM" parent="com.ti.ccstudio.buildDefinitions.C2000.Debug">
|
||||
<folderInfo id="com.ti.ccstudio.buildDefinitions.C2000.Debug.2121059750." name="/" resourcePath="">
|
||||
<toolChain id="com.ti.ccstudio.buildDefinitions.C2000_15.12.exe.DebugToolchain.440650972" name="TI Build Tools" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.exe.DebugToolchain" targetTool="com.ti.ccstudio.buildDefinitions.C2000_15.12.exe.linkerDebug.1864875917">
|
||||
<option id="com.ti.ccstudio.buildDefinitions.core.OPT_TAGS.1656313741" superClass="com.ti.ccstudio.buildDefinitions.core.OPT_TAGS" valueType="stringList">
|
||||
<listOptionValue builtIn="false" value="DEVICE_CONFIGURATION_ID=com.ti.ccstudio.deviceModel.C2000.GenericC28xxDevice"/>
|
||||
<listOptionValue builtIn="false" value="DEVICE_ENDIANNESS=little"/>
|
||||
<listOptionValue builtIn="false" value="OUTPUT_FORMAT=COFF"/>
|
||||
<listOptionValue builtIn="false" value="CCS_MBS_VERSION=6.1.3"/>
|
||||
<listOptionValue builtIn="false" value="RUNTIME_SUPPORT_LIBRARY=libc.a"/>
|
||||
<listOptionValue builtIn="false" value="OUTPUT_TYPE=executable"/>
|
||||
</option>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.core.OPT_CODEGEN_VERSION.156069199" name="Compiler version" superClass="com.ti.ccstudio.buildDefinitions.core.OPT_CODEGEN_VERSION" value="15.12.1.LTS" valueType="string"/>
|
||||
<targetPlatform id="com.ti.ccstudio.buildDefinitions.C2000_15.12.exe.targetPlatformDebug.1158176920" name="Platform" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.exe.targetPlatformDebug"/>
|
||||
<builder buildPath="${BuildDirectory}" id="com.ti.ccstudio.buildDefinitions.C2000_15.12.exe.builderDebug.978779923" keepEnvironmentInBuildfile="false" name="GNU Make" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.exe.builderDebug"/>
|
||||
<tool id="com.ti.ccstudio.buildDefinitions.C2000_15.12.exe.compilerDebug.891925443" name="C2000 Compiler" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.exe.compilerDebug">
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.SILICON_VERSION.1999465538" name="Processor version (--silicon_version, -v)" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.SILICON_VERSION" value="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.SILICON_VERSION.28" valueType="enumerated"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.LARGE_MEMORY_MODEL.409413119" name="Option deprecated, set by default (--large_memory_model, -ml)" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.LARGE_MEMORY_MODEL" value="true" valueType="boolean"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.UNIFIED_MEMORY.1529299826" name="Unified memory (--unified_memory, -mt)" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.UNIFIED_MEMORY" value="true" valueType="boolean"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.CLA_SUPPORT.1376034197" name="Specify CLA support (--cla_support)" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.CLA_SUPPORT" value="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.CLA_SUPPORT.cla1" valueType="enumerated"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.FLOAT_SUPPORT.893798950" name="Specify floating point support (--float_support)" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.FLOAT_SUPPORT" value="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.FLOAT_SUPPORT.fpu32" valueType="enumerated"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.TMU_SUPPORT.1963066544" name="Specify TMU support (--tmu_support)" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.TMU_SUPPORT" value="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.TMU_SUPPORT.tmu0" valueType="enumerated"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.VCU_SUPPORT.584564300" name="Specify VCU support (--vcu_support)" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.VCU_SUPPORT" value="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.VCU_SUPPORT.vcu2" valueType="enumerated"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.INCLUDE_PATH.1957867592" name="Add dir to #include search path (--include_path, -I)" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.INCLUDE_PATH" valueType="includePath">
|
||||
<listOptionValue builtIn="false" value=""${CG_TOOL_ROOT}/include""/>
|
||||
<listOptionValue builtIn="false" value=""${INSTALLROOT_F2837XD}/headers/include""/>
|
||||
<listOptionValue builtIn="false" value=""${INSTALLROOT_F2837XD}/common/include""/>
|
||||
</option>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.DEBUGGING_MODEL.548307100" name="Debugging model" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.DEBUGGING_MODEL" value="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.DEBUGGING_MODEL.SYMDEBUG__DWARF" valueType="enumerated"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.DEFINE.335908164" name="Pre-define NAME (--define, -D)" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.DEFINE" valueType="definedSymbols">
|
||||
<listOptionValue builtIn="false" value="CPU1"/>
|
||||
</option>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.DIAG_WARNING.149735609" name="Treat diagnostic <id> as warning (--diag_warning, -pdsw)" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.DIAG_WARNING" valueType="stringList">
|
||||
<listOptionValue builtIn="false" value="225"/>
|
||||
</option>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.DISPLAY_ERROR_NUMBER.978704907" name="Emit diagnostic identifier numbers (--display_error_number, -pden)" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.DISPLAY_ERROR_NUMBER" value="true" valueType="boolean"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.DIAG_SUPPRESS.897121373" name="Suppress diagnostic <id> (--diag_suppress, -pds)" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.DIAG_SUPPRESS" valueType="stringList">
|
||||
<listOptionValue builtIn="false" value="10063"/>
|
||||
</option>
|
||||
<inputType id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compiler.inputType__C_SRCS.1914975648" name="C Sources" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compiler.inputType__C_SRCS"/>
|
||||
<inputType id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compiler.inputType__CPP_SRCS.353552111" name="C++ Sources" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compiler.inputType__CPP_SRCS"/>
|
||||
<inputType id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compiler.inputType__ASM_SRCS.1921695984" name="Assembly Sources" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compiler.inputType__ASM_SRCS"/>
|
||||
<inputType id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compiler.inputType__ASM2_SRCS.2105800121" name="Assembly Sources" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compiler.inputType__ASM2_SRCS"/>
|
||||
</tool>
|
||||
<tool id="com.ti.ccstudio.buildDefinitions.C2000_15.12.exe.linkerDebug.1864875917" name="C2000 Linker" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.exe.linkerDebug">
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.OUTPUT_FILE.2020652496" name="Specify output file name (--output_file, -o)" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.OUTPUT_FILE" value=""${ProjName}.out"" valueType="string"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.MAP_FILE.1439485973" name="Link information (map) listed into <file> (--map_file, -m)" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.MAP_FILE" value=""${ProjName}.map"" valueType="string"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.STACK_SIZE.161558321" name="Set C system stack size (--stack_size, -stack)" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.STACK_SIZE" value="0x100" valueType="string"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.LIBRARY.1595685242" name="Include library file or command file as input (--library, -l)" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.LIBRARY" valueType="libs">
|
||||
<listOptionValue builtIn="false" value=""rts2800_fpu32.lib""/>
|
||||
<listOptionValue builtIn="false" value=""2837xD_RAM_lnk_cpu1.cmd""/>
|
||||
<listOptionValue builtIn="false" value=""F2837xD_Headers_nonBIOS_cpu1.cmd""/>
|
||||
<listOptionValue builtIn="false" value=""libc.a""/>
|
||||
</option>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.SEARCH_PATH.152260120" name="Add <dir> to library search path (--search_path, -i)" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.SEARCH_PATH" valueType="libPaths">
|
||||
<listOptionValue builtIn="false" value=""${CG_TOOL_ROOT}/lib""/>
|
||||
<listOptionValue builtIn="false" value=""${CG_TOOL_ROOT}/include""/>
|
||||
<listOptionValue builtIn="false" value=""${INSTALLROOT_F2837XD}/common/cmd""/>
|
||||
<listOptionValue builtIn="false" value=""${INSTALLROOT_F2837XD}/headers/cmd""/>
|
||||
</option>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.DISPLAY_ERROR_NUMBER.97799679" name="Emit diagnostic identifier numbers (--display_error_number)" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.DISPLAY_ERROR_NUMBER" value="true" valueType="boolean"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.XML_LINK_INFO.2088382713" name="Detailed link information data-base into <file> (--xml_link_info, -xml_link_info)" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.XML_LINK_INFO" value=""${ProjName}_linkInfo.xml"" valueType="string"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.ENTRY_POINT.602287318" name="Specify program entry point for the output module (--entry_point, -e)" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.ENTRY_POINT" value="code_start" valueType="string"/>
|
||||
<inputType id="com.ti.ccstudio.buildDefinitions.C2000_15.12.exeLinker.inputType__CMD_SRCS.800451984" name="Linker Command Files" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.exeLinker.inputType__CMD_SRCS"/>
|
||||
<inputType id="com.ti.ccstudio.buildDefinitions.C2000_15.12.exeLinker.inputType__CMD2_SRCS.569996691" name="Linker Command Files" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.exeLinker.inputType__CMD2_SRCS"/>
|
||||
<inputType id="com.ti.ccstudio.buildDefinitions.C2000_15.12.exeLinker.inputType__GEN_CMDS.1068418436" name="Generated Linker Command Files" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.exeLinker.inputType__GEN_CMDS"/>
|
||||
</tool>
|
||||
</toolChain>
|
||||
</folderInfo>
|
||||
</configuration>
|
||||
</storageModule>
|
||||
<storageModule moduleId="org.eclipse.cdt.core.externalSettings"/>
|
||||
</cconfiguration>
|
||||
<cconfiguration id="com.ti.ccstudio.buildDefinitions.C2000.Debug.2121059750.634278398">
|
||||
<storageModule buildSystemId="org.eclipse.cdt.managedbuilder.core.configurationDataProvider" id="com.ti.ccstudio.buildDefinitions.C2000.Debug.2121059750.634278398" moduleId="org.eclipse.cdt.core.settings" name="CPU1_FLASH">
|
||||
<macros>
|
||||
<stringMacro name="INSTALLROOT_F2837XD" type="VALUE_PATH_DIR" value="${PROJECT_ROOT}/../../../../.."/>
|
||||
</macros>
|
||||
<externalSettings/>
|
||||
<extensions>
|
||||
<extension id="com.ti.ccstudio.errorparser.CoffErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
|
||||
<extension id="com.ti.ccstudio.errorparser.LinkErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
|
||||
<extension id="com.ti.ccstudio.errorparser.AsmErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
|
||||
<extension id="org.eclipse.cdt.core.GmakeErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
|
||||
<extension id="com.ti.ccstudio.binaryparser.CoffParser" point="org.eclipse.cdt.core.BinaryParser"/>
|
||||
</extensions>
|
||||
</storageModule>
|
||||
<storageModule moduleId="cdtBuildSystem" version="4.0.0">
|
||||
<configuration artifactExtension="out" artifactName="${ProjName}" buildProperties="" cleanCommand="${CG_CLEAN_CMD}" description="Flash Build Configuration w/Debugger Support for CPU1" id="com.ti.ccstudio.buildDefinitions.C2000.Debug.2121059750.634278398" name="CPU1_FLASH" parent="com.ti.ccstudio.buildDefinitions.C2000.Debug">
|
||||
<folderInfo id="com.ti.ccstudio.buildDefinitions.C2000.Debug.2121059750.634278398." name="/" resourcePath="">
|
||||
<toolChain id="com.ti.ccstudio.buildDefinitions.C2000_15.12.exe.DebugToolchain.1786884122" name="TI Build Tools" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.exe.DebugToolchain" targetTool="com.ti.ccstudio.buildDefinitions.C2000_15.12.exe.linkerDebug.954417071">
|
||||
<option id="com.ti.ccstudio.buildDefinitions.core.OPT_TAGS.583913657" superClass="com.ti.ccstudio.buildDefinitions.core.OPT_TAGS" valueType="stringList">
|
||||
<listOptionValue builtIn="false" value="DEVICE_CONFIGURATION_ID=com.ti.ccstudio.deviceModel.C2000.GenericC28xxDevice"/>
|
||||
<listOptionValue builtIn="false" value="DEVICE_ENDIANNESS=little"/>
|
||||
<listOptionValue builtIn="false" value="OUTPUT_FORMAT=COFF"/>
|
||||
<listOptionValue builtIn="false" value="CCS_MBS_VERSION=6.1.3"/>
|
||||
<listOptionValue builtIn="false" value="RUNTIME_SUPPORT_LIBRARY=libc.a"/>
|
||||
<listOptionValue builtIn="false" value="OUTPUT_TYPE=executable"/>
|
||||
</option>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.core.OPT_CODEGEN_VERSION.2056783152" superClass="com.ti.ccstudio.buildDefinitions.core.OPT_CODEGEN_VERSION" value="15.12.1.LTS" valueType="string"/>
|
||||
<targetPlatform id="com.ti.ccstudio.buildDefinitions.C2000_15.12.exe.targetPlatformDebug.1493633725" name="Platform" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.exe.targetPlatformDebug"/>
|
||||
<builder buildPath="${BuildDirectory}" id="com.ti.ccstudio.buildDefinitions.C2000_15.12.exe.builderDebug.723909718" name="GNU Make.CPU1_FLASH" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.exe.builderDebug"/>
|
||||
<tool id="com.ti.ccstudio.buildDefinitions.C2000_15.12.exe.compilerDebug.1432679653" name="C2000 Compiler" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.exe.compilerDebug">
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.SILICON_VERSION.1506253856" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.SILICON_VERSION" value="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.SILICON_VERSION.28" valueType="enumerated"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.LARGE_MEMORY_MODEL.1258102902" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.LARGE_MEMORY_MODEL" value="true" valueType="boolean"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.UNIFIED_MEMORY.101594690" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.UNIFIED_MEMORY" value="true" valueType="boolean"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.CLA_SUPPORT.436819542" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.CLA_SUPPORT" value="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.CLA_SUPPORT.cla1" valueType="enumerated"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.FLOAT_SUPPORT.1467889274" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.FLOAT_SUPPORT" value="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.FLOAT_SUPPORT.fpu32" valueType="enumerated"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.TMU_SUPPORT.1491130314" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.TMU_SUPPORT" value="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.TMU_SUPPORT.tmu0" valueType="enumerated"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.VCU_SUPPORT.346769820" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.VCU_SUPPORT" value="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.VCU_SUPPORT.vcu2" valueType="enumerated"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.INCLUDE_PATH.1028560049" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.INCLUDE_PATH" valueType="includePath">
|
||||
<listOptionValue builtIn="false" value=""${CG_TOOL_ROOT}/include""/>
|
||||
<listOptionValue builtIn="false" value=""${INSTALLROOT_F2837XD}/headers/include""/>
|
||||
<listOptionValue builtIn="false" value=""${INSTALLROOT_F2837XD}/common/include""/>
|
||||
</option>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.DEBUGGING_MODEL.920602498" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.DEBUGGING_MODEL" value="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.DEBUGGING_MODEL.SYMDEBUG__DWARF" valueType="enumerated"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.DEFINE.1968048004" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.DEFINE" valueType="definedSymbols">
|
||||
<listOptionValue builtIn="false" value="CPU1"/>
|
||||
<listOptionValue builtIn="false" value="_FLASH"/>
|
||||
</option>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.DIAG_WARNING.1857614714" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.DIAG_WARNING" valueType="stringList">
|
||||
<listOptionValue builtIn="false" value="225"/>
|
||||
</option>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.DISPLAY_ERROR_NUMBER.466806568" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.DISPLAY_ERROR_NUMBER" value="true" valueType="boolean"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.DIAG_SUPPRESS.182449804" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.DIAG_SUPPRESS" valueType="stringList">
|
||||
<listOptionValue builtIn="false" value="10063"/>
|
||||
</option>
|
||||
<inputType id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compiler.inputType__C_SRCS.1359277091" name="C Sources" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compiler.inputType__C_SRCS"/>
|
||||
<inputType id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compiler.inputType__CPP_SRCS.321011050" name="C++ Sources" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compiler.inputType__CPP_SRCS"/>
|
||||
<inputType id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compiler.inputType__ASM_SRCS.786074289" name="Assembly Sources" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compiler.inputType__ASM_SRCS"/>
|
||||
<inputType id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compiler.inputType__ASM2_SRCS.1807039889" name="Assembly Sources" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compiler.inputType__ASM2_SRCS"/>
|
||||
</tool>
|
||||
<tool id="com.ti.ccstudio.buildDefinitions.C2000_15.12.exe.linkerDebug.954417071" name="C2000 Linker" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.exe.linkerDebug">
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.OUTPUT_FILE.2078639834" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.OUTPUT_FILE" value=""${ProjName}.out"" valueType="string"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.MAP_FILE.1581368820" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.MAP_FILE" value=""${ProjName}.map"" valueType="string"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.STACK_SIZE.1105825471" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.STACK_SIZE" value="0x100" valueType="string"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.LIBRARY.1015752180" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.LIBRARY" valueType="libs">
|
||||
<listOptionValue builtIn="false" value=""rts2800_fpu32.lib""/>
|
||||
<listOptionValue builtIn="false" value=""2837xD_FLASH_lnk_cpu1.cmd""/>
|
||||
<listOptionValue builtIn="false" value=""F2837xD_Headers_nonBIOS_cpu1.cmd""/>
|
||||
<listOptionValue builtIn="false" value=""libc.a""/>
|
||||
</option>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.SEARCH_PATH.2022044645" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.SEARCH_PATH" valueType="libPaths">
|
||||
<listOptionValue builtIn="false" value=""${CG_TOOL_ROOT}/lib""/>
|
||||
<listOptionValue builtIn="false" value=""${CG_TOOL_ROOT}/include""/>
|
||||
<listOptionValue builtIn="false" value=""${INSTALLROOT_F2837XD}/common/cmd""/>
|
||||
<listOptionValue builtIn="false" value=""${INSTALLROOT_F2837XD}/headers/cmd""/>
|
||||
</option>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.DISPLAY_ERROR_NUMBER.1292961216" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.DISPLAY_ERROR_NUMBER" value="true" valueType="boolean"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.XML_LINK_INFO.1803536634" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.XML_LINK_INFO" value=""${ProjName}_linkInfo.xml"" valueType="string"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.ENTRY_POINT.1748371204" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.ENTRY_POINT" value="code_start" valueType="string"/>
|
||||
<inputType id="com.ti.ccstudio.buildDefinitions.C2000_15.12.exeLinker.inputType__CMD_SRCS.960164331" name="Linker Command Files" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.exeLinker.inputType__CMD_SRCS"/>
|
||||
<inputType id="com.ti.ccstudio.buildDefinitions.C2000_15.12.exeLinker.inputType__CMD2_SRCS.1819278018" name="Linker Command Files" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.exeLinker.inputType__CMD2_SRCS"/>
|
||||
<inputType id="com.ti.ccstudio.buildDefinitions.C2000_15.12.exeLinker.inputType__GEN_CMDS.627053512" name="Generated Linker Command Files" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.exeLinker.inputType__GEN_CMDS"/>
|
||||
</tool>
|
||||
</toolChain>
|
||||
</folderInfo>
|
||||
<sourceEntries>
|
||||
<entry excluding="2837xD_dcsm_lnk_cpu1.cmd" flags="VALUE_WORKSPACE_PATH|RESOLVED" kind="sourcePath" name=""/>
|
||||
</sourceEntries>
|
||||
</configuration>
|
||||
</storageModule>
|
||||
<storageModule moduleId="org.eclipse.cdt.core.externalSettings"/>
|
||||
</cconfiguration>
|
||||
</storageModule>
|
||||
<storageModule moduleId="org.eclipse.cdt.core.LanguageSettingsProviders"/>
|
||||
<storageModule moduleId="cdtBuildSystem" version="4.0.0">
|
||||
<project id="blinky_dc_cpu01.com.ti.ccstudio.buildDefinitions.C2000.ProjectType.253935156" name="C2000" projectType="com.ti.ccstudio.buildDefinitions.C2000.ProjectType"/>
|
||||
</storageModule>
|
||||
<storageModule moduleId="scannerConfiguration"/>
|
||||
<storageModule moduleId="org.eclipse.cdt.core.language.mapping">
|
||||
<project-mappings>
|
||||
<content-type-mapping configuration="" content-type="org.eclipse.cdt.core.asmSource" language="com.ti.ccstudio.core.TIASMLanguage"/>
|
||||
<content-type-mapping configuration="" content-type="org.eclipse.cdt.core.cHeader" language="com.ti.ccstudio.core.TIGCCLanguage"/>
|
||||
<content-type-mapping configuration="" content-type="org.eclipse.cdt.core.cSource" language="com.ti.ccstudio.core.TIGCCLanguage"/>
|
||||
<content-type-mapping configuration="" content-type="org.eclipse.cdt.core.cxxHeader" language="com.ti.ccstudio.core.TIGPPLanguage"/>
|
||||
<content-type-mapping configuration="" content-type="org.eclipse.cdt.core.cxxSource" language="com.ti.ccstudio.core.TIGPPLanguage"/>
|
||||
</project-mappings>
|
||||
</storageModule>
|
||||
<storageModule moduleId="null.endianPreference"/>
|
||||
<storageModule moduleId="cpuFamily"/>
|
||||
</cproject>
|
||||
@@ -0,0 +1,100 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<projectDescription>
|
||||
<name>blinky_with_dcsm_cpu01</name>
|
||||
<comment></comment>
|
||||
<projects>
|
||||
</projects>
|
||||
<buildSpec>
|
||||
<buildCommand>
|
||||
<name>org.eclipse.cdt.managedbuilder.core.genmakebuilder</name>
|
||||
<arguments>
|
||||
</arguments>
|
||||
</buildCommand>
|
||||
<buildCommand>
|
||||
<name>org.eclipse.cdt.managedbuilder.core.ScannerConfigBuilder</name>
|
||||
<triggers>full,incremental,</triggers>
|
||||
<arguments>
|
||||
</arguments>
|
||||
</buildCommand>
|
||||
</buildSpec>
|
||||
<natures>
|
||||
<nature>com.ti.ccstudio.core.ccsNature</nature>
|
||||
<nature>org.eclipse.cdt.core.cnature</nature>
|
||||
<nature>org.eclipse.cdt.managedbuilder.core.managedBuildNature</nature>
|
||||
<nature>org.eclipse.cdt.core.ccnature</nature>
|
||||
<nature>org.eclipse.cdt.managedbuilder.core.ScannerConfigNature</nature>
|
||||
</natures>
|
||||
<linkedResources>
|
||||
<link>
|
||||
<name>2837xD_dcsm_lnk_cpu1.cmd</name>
|
||||
<type>1</type>
|
||||
<locationURI>PARENT-5-PROJECT_LOC/common/cmd/2837xD_dcsm_lnk_cpu1.cmd</locationURI>
|
||||
</link>
|
||||
<link>
|
||||
<name>DCSM_Z1_ZoneSelectBlock.asm</name>
|
||||
<type>1</type>
|
||||
<locationURI>PARENT-1-PROJECT_LOC/DCSM_Z1_ZoneSelectBlock.asm</locationURI>
|
||||
</link>
|
||||
<link>
|
||||
<name>DCSM_Z2_ZoneSelectBlock.asm</name>
|
||||
<type>1</type>
|
||||
<locationURI>PARENT-1-PROJECT_LOC/DCSM_Z2_ZoneSelectBlock.asm</locationURI>
|
||||
</link>
|
||||
<link>
|
||||
<name>F2837xD_CodeStartBranch.asm</name>
|
||||
<type>1</type>
|
||||
<locationURI>PARENT-5-PROJECT_LOC/common/source/F2837xD_CodeStartBranch.asm</locationURI>
|
||||
</link>
|
||||
<link>
|
||||
<name>F2837xD_DefaultISR.c</name>
|
||||
<type>1</type>
|
||||
<locationURI>PARENT-5-PROJECT_LOC/common/source/F2837xD_DefaultISR.c</locationURI>
|
||||
</link>
|
||||
<link>
|
||||
<name>F2837xD_GlobalVariableDefs.c</name>
|
||||
<type>1</type>
|
||||
<locationURI>PARENT-5-PROJECT_LOC/headers/source/F2837xD_GlobalVariableDefs.c</locationURI>
|
||||
</link>
|
||||
<link>
|
||||
<name>F2837xD_Gpio.c</name>
|
||||
<type>1</type>
|
||||
<locationURI>PARENT-5-PROJECT_LOC/common/source/F2837xD_Gpio.c</locationURI>
|
||||
</link>
|
||||
<link>
|
||||
<name>F2837xD_Ipc.c</name>
|
||||
<type>1</type>
|
||||
<locationURI>PARENT-5-PROJECT_LOC/common/source/F2837xD_Ipc.c</locationURI>
|
||||
</link>
|
||||
<link>
|
||||
<name>F2837xD_PieCtrl.c</name>
|
||||
<type>1</type>
|
||||
<locationURI>PARENT-5-PROJECT_LOC/common/source/F2837xD_PieCtrl.c</locationURI>
|
||||
</link>
|
||||
<link>
|
||||
<name>F2837xD_PieVect.c</name>
|
||||
<type>1</type>
|
||||
<locationURI>PARENT-5-PROJECT_LOC/common/source/F2837xD_PieVect.c</locationURI>
|
||||
</link>
|
||||
<link>
|
||||
<name>F2837xD_SysCtrl.c</name>
|
||||
<type>1</type>
|
||||
<locationURI>PARENT-5-PROJECT_LOC/common/source/F2837xD_SysCtrl.c</locationURI>
|
||||
</link>
|
||||
<link>
|
||||
<name>F2837xD_usDelay.asm</name>
|
||||
<type>1</type>
|
||||
<locationURI>PARENT-5-PROJECT_LOC/common/source/F2837xD_usDelay.asm</locationURI>
|
||||
</link>
|
||||
<link>
|
||||
<name>blinky_with_DCSM_cpu01.c</name>
|
||||
<type>1</type>
|
||||
<locationURI>PARENT-1-PROJECT_LOC/blinky_cpu01.c</locationURI>
|
||||
</link>
|
||||
</linkedResources>
|
||||
<variableList>
|
||||
<variable>
|
||||
<name>INSTALLROOT_F2837XD</name>
|
||||
<value>$%7BPARENT-4-PROJECT_LOC%7D</value>
|
||||
</variable>
|
||||
</variableList>
|
||||
</projectDescription>
|
||||
+22
@@ -0,0 +1,22 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<configurations XML_version="1.2" id="configurations_0">
|
||||
<configuration XML_version="1.2" id="Texas Instruments XDS100v2 USB Debug Probe_0">
|
||||
<instance XML_version="1.2" desc="Texas Instruments XDS100v2 USB Debug Probe_0" href="connections/TIXDS100v2_Connection.xml" id="Texas Instruments XDS100v2 USB Debug Probe_0" xml="TIXDS100v2_Connection.xml" xmlpath="connections"/>
|
||||
<connection XML_version="1.2" id="Texas Instruments XDS100v2 USB Debug Probe_0">
|
||||
<instance XML_version="1.2" href="drivers/tixds100v2icepick_c.xml" id="drivers" xml="tixds100v2icepick_c.xml" xmlpath="drivers"/>
|
||||
<instance XML_version="1.2" href="drivers/tixds100v2c28x.xml" id="drivers" xml="tixds100v2c28x.xml" xmlpath="drivers"/>
|
||||
<instance XML_version="1.2" href="drivers/tixds100v2cla1.xml" id="drivers" xml="tixds100v2cla1.xml" xmlpath="drivers"/>
|
||||
<instance XML_version="1.2" href="drivers/tixds100v2cs_child.xml" id="drivers" xml="tixds100v2cs_child.xml" xmlpath="drivers"/>
|
||||
<platform XML_version="1.2" id="platform_0">
|
||||
<instance XML_version="1.2" desc="TMS320F28377D_0" href="devices/tms320f28377d.xml" id="TMS320F28377D_0" xml="tms320f28377d.xml" xmlpath="devices"/>
|
||||
<device HW_revision="1" XML_version="1.2" description="" id="TMS320F28377D_0" partnum="TMS320F28377D">
|
||||
<router HW_revision="1.0" XML_version="1.2" description="ICEPick_C router" id="IcePick_C_0" isa="ICEPICK_C">
|
||||
<subpath id="Subpath_1">
|
||||
<property Type="numericfield" Value="0x11" desc="Port Number_0" id="Port Number"/>
|
||||
</subpath>
|
||||
</router>
|
||||
</device>
|
||||
</platform>
|
||||
</connection>
|
||||
</configuration>
|
||||
</configurations>
|
||||
+353
@@ -0,0 +1,353 @@
|
||||
//#############################################################################
|
||||
//
|
||||
// FILE: AFE031_Config.c
|
||||
//
|
||||
// TITLE: AFE Setup Functions
|
||||
//
|
||||
//###########################################################################
|
||||
//
|
||||
//
|
||||
// $Copyright:
|
||||
// Copyright (C) 2013-2024 Texas Instruments Incorporated - http://www.ti.com/
|
||||
//
|
||||
// Redistribution and use in source and binary forms, with or without
|
||||
// modification, are permitted provided that the following conditions
|
||||
// are met:
|
||||
//
|
||||
// Redistributions of source code must retain the above copyright
|
||||
// notice, this list of conditions and the following disclaimer.
|
||||
//
|
||||
// Redistributions in binary form must reproduce the above copyright
|
||||
// notice, this list of conditions and the following disclaimer in the
|
||||
// documentation and/or other materials provided with the
|
||||
// distribution.
|
||||
//
|
||||
// Neither the name of Texas Instruments Incorporated nor the names of
|
||||
// its contributors may be used to endorse or promote products derived
|
||||
// from this software without specific prior written permission.
|
||||
//
|
||||
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||
// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||
// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
||||
// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
||||
// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||
// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||
// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
||||
// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
||||
// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
// $
|
||||
//###########################################################################
|
||||
|
||||
//
|
||||
// Included Files
|
||||
//
|
||||
#include "afe031_config.h"
|
||||
#include "F28x_Project.h" // Device Header File and Examples Include File
|
||||
|
||||
//
|
||||
// Platform-dependent GPIO
|
||||
//
|
||||
#define GPIO_INT 1
|
||||
#define GPIO_DAC 2
|
||||
#define GPIO_SD 3
|
||||
|
||||
/* RX Gain LUT */
|
||||
UINT16 HAL_afe031_rxGainLut[] = { 0, 1, 2, 3, 6, 7, 10, 11, 14, 15 };
|
||||
/* TX Gain LUT */
|
||||
UINT16 HAL_afe031_txGainLut[] = { 0, 1, 2, 3 };
|
||||
|
||||
HAL_afe031_reg_t HAL_afe031_reg_s;
|
||||
|
||||
//
|
||||
// FUNCTION NAME: HAL_afe031Init()
|
||||
//
|
||||
// DESCRIPTION: AFE031 init function.
|
||||
//
|
||||
// Return Value: None
|
||||
//
|
||||
// Input Parameters:
|
||||
//
|
||||
// Output Parameters:
|
||||
// Functions Called:
|
||||
//
|
||||
//
|
||||
void HAL_afe031Init(void)
|
||||
{
|
||||
HAL_afe031_cfgGpio();
|
||||
|
||||
HAL_spi_cfg();
|
||||
|
||||
HAL_afe031_softReset();
|
||||
DELAY_US(2);
|
||||
|
||||
HAL_afe031_biasEnable();
|
||||
DELAY_US(2);
|
||||
|
||||
HAL_afe031_bandSelect(1);
|
||||
DELAY_US(2);
|
||||
|
||||
HAL_afe031_clrAllInt();
|
||||
DELAY_US(2);
|
||||
|
||||
HAL_afe031_zcEnable();
|
||||
DELAY_US(2);
|
||||
|
||||
HAL_afe031_writeGain(4, 1);
|
||||
DELAY_US(2);
|
||||
}
|
||||
|
||||
//
|
||||
// FUNCTION NAME: HAL_afe031_intAsserted()
|
||||
//
|
||||
// DESCRIPTION: Return INT pin state.
|
||||
//
|
||||
// Return Value: 0 = Not Asserted, 1 = Asserted
|
||||
//
|
||||
// Input Parameters:
|
||||
//
|
||||
// Output Parameters:
|
||||
// Functions Called:
|
||||
//
|
||||
//
|
||||
UINT16 HAL_afe031_intAsserted(void)
|
||||
{
|
||||
return GPIO_ReadPin(GPIO_INT) ? 0 : 1;
|
||||
}
|
||||
|
||||
//
|
||||
// FUNCTION NAME: HAL_afe031_shutdown(sd)
|
||||
//
|
||||
// DESCRIPTION: AFE031 Shutdown Control
|
||||
//
|
||||
// Return Value: None
|
||||
//
|
||||
// Input Parameters:
|
||||
//
|
||||
// Output Parameters:
|
||||
// Functions Called:
|
||||
//
|
||||
//
|
||||
void HAL_afe031_shutdown(UINT16 sd)
|
||||
{
|
||||
GPIO_WritePin(GPIO_SD, sd);
|
||||
}
|
||||
|
||||
//
|
||||
// FUNCTION NAME: HAL_afe031_cfgGpio()
|
||||
//
|
||||
// DESCRIPTION: Configure GPIO for AFE031.
|
||||
//
|
||||
// GPIO Profile for AFE031 Module:
|
||||
// GPIO3 - SD (1-SD; 0-normal)
|
||||
// GPIO2 - DAC (1-DAC; 0-normal)
|
||||
// GPIO1 - INT (1-INT; 0-no INT)
|
||||
// Return Value: None
|
||||
//
|
||||
// Input Parameters:
|
||||
//
|
||||
// Output Parameters:
|
||||
// Functions Called:
|
||||
//
|
||||
//
|
||||
void HAL_afe031_cfgGpio(void)
|
||||
{
|
||||
//SD PIN
|
||||
GPIO_SetupPinMux(GPIO_SD, GPIO_MUX_CPU1, 0);
|
||||
GPIO_SetupPinOptions(GPIO_SD, GPIO_OUTPUT, GPIO_PUSHPULL);
|
||||
// SD=0
|
||||
GPIO_WritePin(GPIO_SD, 0);
|
||||
|
||||
//DAC Pin Enable
|
||||
GPIO_SetupPinMux(GPIO_DAC, GPIO_MUX_CPU1, 0);
|
||||
GPIO_SetupPinOptions(GPIO_DAC, GPIO_OUTPUT, GPIO_PUSHPULL);
|
||||
// DAC=0
|
||||
GPIO_WritePin(GPIO_DAC, 0);
|
||||
|
||||
// INT Pin
|
||||
GPIO_SetupPinMux(GPIO_INT, GPIO_MUX_CPU1, 0);
|
||||
GPIO_SetupPinOptions(GPIO_INT, GPIO_INPUT, GPIO_OPENDRAIN | GPIO_PULLUP);
|
||||
// NOTE: For RevE2 BoosterPack, jumper from J2.18 to J4.39
|
||||
GPIO_SetupPinMux(123, GPIO_MUX_CPU1, 0);
|
||||
GPIO_SetupPinOptions(123, GPIO_INPUT, GPIO_OPENDRAIN | GPIO_PULLUP);
|
||||
}
|
||||
|
||||
//
|
||||
// FUNCTION NAME: HAL_afe031_writeGain()
|
||||
//
|
||||
// DESCRIPTION: Write RX and TX Gain.
|
||||
//
|
||||
// Return Value: None
|
||||
//
|
||||
// Input Parameters:
|
||||
//
|
||||
// Output Parameters:
|
||||
// Functions Called:
|
||||
//
|
||||
//
|
||||
void HAL_afe031_writeGain(UINT16 rxgain, UINT16 txgain)
|
||||
{
|
||||
UINT16 rxGainSetting, txGainSetting;
|
||||
|
||||
rxGainSetting = HAL_afe031_rxGainLut[rxgain];
|
||||
HAL_afe031_reg_s.gain_sel.bits.RXG = rxGainSetting;
|
||||
txGainSetting = HAL_afe031_txGainLut[txgain];
|
||||
HAL_afe031_reg_s.gain_sel.bits.TXG = txGainSetting;
|
||||
HAL_afe031_regWrite(HAL_AFE031_GAINSEL_REG, HAL_afe031_reg_s.gain_sel.all);
|
||||
}
|
||||
|
||||
//
|
||||
// FUNCTION NAME: HAL_afe031_regWrite(addr, data)
|
||||
//
|
||||
// DESCRIPTION: AFE031 Register Write
|
||||
//
|
||||
// Return Value: None
|
||||
//
|
||||
// Input Parameters:
|
||||
//
|
||||
// Output Parameters:
|
||||
// Functions Called:
|
||||
//
|
||||
//
|
||||
void HAL_afe031_regWrite(UINT16 addr, UINT16 data)
|
||||
{
|
||||
UINT16 cmd, data16;
|
||||
|
||||
cmd = (HAL_AFE031_CMD_WR << HAL_AFE031_CMD_RW_SHIFT) | addr;
|
||||
data16 = (cmd << HAL_AFE031_CMD_SHIFT) | (data & HAL_AFE031_DATA_MASK);
|
||||
/* For F28035, use SPI; all others, use McBSPA */
|
||||
|
||||
HAL_spi_xmt(data16);
|
||||
|
||||
DELAY_US(1);
|
||||
}
|
||||
|
||||
//
|
||||
// FUNCTION NAME: HAL_afe031_regRead(addr)
|
||||
//
|
||||
// DESCRIPTION: AFE031 Register Write
|
||||
//
|
||||
// Return Value: Register value
|
||||
//
|
||||
// Input Parameters:
|
||||
//
|
||||
// Output Parameters:
|
||||
// Functions Called:
|
||||
//
|
||||
//
|
||||
UINT16 HAL_afe031_regRead(UINT16 addr)
|
||||
{
|
||||
UINT16 cmd;
|
||||
|
||||
cmd = (HAL_AFE031_CMD_RD << HAL_AFE031_CMD_RW_SHIFT) | addr;
|
||||
cmd = (cmd << HAL_AFE031_CMD_SHIFT);
|
||||
/* For F28035, use SPI; all others, use McBSPA */
|
||||
|
||||
return HAL_spi_read(cmd);
|
||||
}
|
||||
|
||||
//
|
||||
// FUNCTION NAME: HAL_afe031_clrAllInt
|
||||
//
|
||||
// DESCRIPTION: AFE031 Clear All Interrupts
|
||||
//
|
||||
// Return Value: None
|
||||
//
|
||||
// Input Parameters:
|
||||
//
|
||||
// Output Parameters:
|
||||
// Functions Called:
|
||||
//
|
||||
//
|
||||
void HAL_afe031_clrAllInt(void)
|
||||
{
|
||||
HAL_afe031_reg_s.control2.all = 0;
|
||||
HAL_afe031_regWrite(HAL_AFE031_CTRL2_REG, 0);
|
||||
}
|
||||
|
||||
//
|
||||
// FUNCTION NAME: HAL_afe031_clrInt
|
||||
//
|
||||
// DESCRIPTION: AFE031 Clear All Interrupts
|
||||
//
|
||||
// Return Value: None
|
||||
//
|
||||
// Input Parameters:
|
||||
//
|
||||
// Output Parameters:
|
||||
// Functions Called:
|
||||
//
|
||||
//
|
||||
void HAL_afe031_clrInt(UINT16 flag)
|
||||
{
|
||||
HAL_afe031_reg_s.control2.all &= (~flag);
|
||||
HAL_afe031_regWrite(HAL_AFE031_CTRL2_REG, HAL_afe031_reg_s.control2.all);
|
||||
}
|
||||
|
||||
//
|
||||
// FUNCTION NAME: HAL_afe031_readIntFlag
|
||||
//
|
||||
// DESCRIPTION: AFE031 Read Interrupt Flag
|
||||
//
|
||||
// Return Value: None
|
||||
//
|
||||
// Input Parameters:
|
||||
//
|
||||
// Output Parameters:
|
||||
// Functions Called:
|
||||
//
|
||||
//
|
||||
UINT16 HAL_afe031_readIntFlag(void)
|
||||
{
|
||||
return HAL_afe031_regRead(HAL_AFE031_RESET_REG);
|
||||
}
|
||||
|
||||
//
|
||||
// FUNCTION NAME: HAL_afe031_cfgInt
|
||||
//
|
||||
// DESCRIPTION: AFE031 Configure Interrupts
|
||||
//
|
||||
// Return Value: None
|
||||
//
|
||||
// Input Parameters:
|
||||
//
|
||||
// Output Parameters:
|
||||
// Functions Called:
|
||||
//
|
||||
//
|
||||
void HAL_afe031_cfgInt(void)
|
||||
{
|
||||
// NOTE: Disable/clear interrupts before enabling
|
||||
HAL_afe031_clrAllInt();
|
||||
DELAY_US(2);
|
||||
HAL_afe031_regWrite(HAL_AFE031_RESET_REG, 0);
|
||||
DELAY_US(2);
|
||||
// Enable both TFlag and IFlag
|
||||
HAL_afe031_reg_s.control2.bits.IFLAG_EN = 1;
|
||||
HAL_afe031_reg_s.control2.bits.TFLAG_EN = 1;
|
||||
HAL_afe031_regWrite(HAL_AFE031_CTRL2_REG, HAL_afe031_reg_s.control2.all);
|
||||
DELAY_US(2);
|
||||
}
|
||||
|
||||
//
|
||||
// FUNCTION NAME: HAL_afe031_cfgWdLen
|
||||
//
|
||||
// DESCRIPTION: Configure word length
|
||||
//
|
||||
// Return Value: None
|
||||
//
|
||||
// Input Parameters:
|
||||
//
|
||||
// Output Parameters:
|
||||
// Functions Called:
|
||||
//
|
||||
//
|
||||
void HAL_afe031_cfgWdLen(UINT16 len)
|
||||
{
|
||||
HAL_spi_cfgWdLen(len);
|
||||
}
|
||||
|
||||
//
|
||||
// End of file
|
||||
//
|
||||
+158
@@ -0,0 +1,158 @@
|
||||
//#############################################################################
|
||||
//
|
||||
// FILE: AFE031_Config.c
|
||||
//
|
||||
// TITLE: AFE Setup Functions
|
||||
//
|
||||
//###########################################################################
|
||||
//
|
||||
//
|
||||
// $Copyright:
|
||||
// Copyright (C) 2013-2024 Texas Instruments Incorporated - http://www.ti.com/
|
||||
//
|
||||
// Redistribution and use in source and binary forms, with or without
|
||||
// modification, are permitted provided that the following conditions
|
||||
// are met:
|
||||
//
|
||||
// Redistributions of source code must retain the above copyright
|
||||
// notice, this list of conditions and the following disclaimer.
|
||||
//
|
||||
// Redistributions in binary form must reproduce the above copyright
|
||||
// notice, this list of conditions and the following disclaimer in the
|
||||
// documentation and/or other materials provided with the
|
||||
// distribution.
|
||||
//
|
||||
// Neither the name of Texas Instruments Incorporated nor the names of
|
||||
// its contributors may be used to endorse or promote products derived
|
||||
// from this software without specific prior written permission.
|
||||
//
|
||||
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||
// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||
// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
||||
// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
||||
// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||
// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||
// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
||||
// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
||||
// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
// $
|
||||
//###########################################################################
|
||||
|
||||
#ifndef AFE031_CONFIG_H_
|
||||
#define AFE031_CONFIG_H_
|
||||
|
||||
//
|
||||
// Included Files
|
||||
//
|
||||
#include "afe031_config.h"
|
||||
#include "hal_afe031.h"
|
||||
#include "hal_spi.h"
|
||||
|
||||
/*****************************************************************************/
|
||||
/* Data Structures */
|
||||
/*****************************************************************************/
|
||||
/* AFE handle */
|
||||
#define HAL_SPI_BRR 1//SPICLK=60/4=15MHz // changed from 2
|
||||
#define HAL_status_t Uint16
|
||||
typedef struct
|
||||
{
|
||||
UINT16 HAL_afe_spiErrCnt;
|
||||
UINT16 HAL_afe_spiReadBack;
|
||||
UINT16 HAL_afe_spiRecoverCnt;
|
||||
UINT16 HAL_afe_spiRecoverFailCnt;
|
||||
}HAL_afe032_spiTest_t;
|
||||
|
||||
typedef struct
|
||||
{
|
||||
Uint16 txSize; // 0 TX size
|
||||
Uint16 txActive; // 1 TX active flag
|
||||
|
||||
Uint16 updateGainFlag; // 2 AGC gain update flag
|
||||
int16 agcGainVal; // 3 AGC gain value
|
||||
|
||||
/* Added for ADC int */
|
||||
volatile Uint16 *rxBufPtr_p[2]; // 4 5 6 7 RX buffer address (ping-pong buffer)
|
||||
volatile Uint16 *rxBufDat_p; // 8 9
|
||||
Uint16 rxBufSize[2]; // 10 11 RX buffer size (Number of bursts in a transfer - 1)
|
||||
Uint16 rxBufIdx; // 12 RX buffer buffer index (next active buffer being filled)
|
||||
Uint16 adcCnt; // 13
|
||||
Uint16 rxBufCnt; // 14
|
||||
Uint16 adcIntCnt; // 15
|
||||
Uint16 activeBufIdx; // 16 Active buffer index. Reload rxBufIdx @symbol done
|
||||
Uint16 activeBufSize; // 17 Active buffer size. Reload rxBufSize[activeBufIdx] @symbol done
|
||||
|
||||
/* For TX Buffers */
|
||||
volatile Uint16 *txBufReady_p; // 18 19 TX buffer ready to be read
|
||||
volatile Uint16 *bufDat_p; // 20 21 TX active buffer pointer
|
||||
Uint16 txBufIdx; // 22
|
||||
Uint16 txIntCnt; // 23
|
||||
Uint16 txBufSize; // 24
|
||||
|
||||
UINT16 timer01ShotFlag; // 25 Timer 0 cfg flags
|
||||
|
||||
Uint32 cb_param;
|
||||
Uint32 rxDmaTime; // RX DMA time (in 10us)
|
||||
Uint32 zcaTime; // Zero-crossing time (in 10us)
|
||||
|
||||
//Uint16 zcaPeriod; // half-cycle period (in 10us)
|
||||
|
||||
Uint32 zcaLatency; // Zero-crossing latency (in CPU ticks)
|
||||
Uint32 zcaCap1; // Zero-crossing captured (in CPU ticks)
|
||||
Uint32 zcbTime; // Zero-crossing time (in 10us)
|
||||
Uint32 zcbLatency; // Zero-crossing latency (in CPU ticks)
|
||||
Uint32 zcbCap1; // Zero-crossing captured (in CPU ticks)
|
||||
|
||||
Uint32 t0Prd; // T0 period in us (Q1)
|
||||
|
||||
UINT16 txPgaAttn;
|
||||
Uint16 zcaPeriod; // half-cycle period (in 10us)
|
||||
|
||||
}HAL_afe_handle_t;
|
||||
|
||||
//
|
||||
// Function Prototypes
|
||||
//
|
||||
HAL_status_t HAL_afe_init(void);
|
||||
HAL_status_t HAL_afe_cfg(void *setParms);
|
||||
|
||||
HAL_status_t HAL_afe_rxCfg(void *setParms);
|
||||
HAL_status_t HAL_afe_rxStart(void *setParms);
|
||||
HAL_status_t HAL_afe_rxStop(void *setParms);
|
||||
HAL_status_t HAL_afe_rxReCfg(void *setParms);
|
||||
HAL_status_t HAL_afe_setGain(void *setParms);
|
||||
HAL_status_t HAL_afe_updateGain(void *setParms);
|
||||
HAL_status_t HAL_afe_cancelGain(void *setParms);
|
||||
HAL_status_t HAL_afe_adcOffsetAdj(void *setParms);
|
||||
HAL_status_t HAL_afe_txDmaSize(void *setParms);
|
||||
HAL_status_t HAL_afe_txDmaAddr(void *setParms);
|
||||
HAL_status_t HAL_cpuTimer1CfgStart(void);
|
||||
Uint32 HAL_cpuTimer1GetCount(void);
|
||||
HAL_status_t HAL_cpuTimer0TimeoutCfg(void *setParms);
|
||||
HAL_status_t HAL_cpuTimer0Cfg(UINT16 t0Prd);
|
||||
HAL_status_t HAL_cpuTimer0Start();
|
||||
HAL_status_t HAL_cpuTimer0Stop();
|
||||
|
||||
|
||||
HAL_status_t HAL_cpuTimerCfg();
|
||||
|
||||
HAL_status_t HAL_afe_txCfg(void *setParms);
|
||||
HAL_status_t HAL_afe_txStart(void *setParms);
|
||||
|
||||
HAL_status_t HAL_afe_txStop(void *setParms);
|
||||
HAL_status_t HAL_afe_txReCfg(void *setParms);
|
||||
|
||||
HAL_status_t HAL_afe_rxDmaTime(void *getParms);
|
||||
HAL_status_t HAL_afe_zcTime(void *getParms);
|
||||
HAL_status_t HAL_afe_rxDmaIdx(void *getParms);
|
||||
|
||||
HAL_status_t HAL_afe_prfCfg(void *setParms);
|
||||
|
||||
Uint16 HAL_afe031_readIntFlag(void);
|
||||
|
||||
#endif /* AFE031_CONFIG_H_ */
|
||||
|
||||
//
|
||||
// End of file
|
||||
//
|
||||
+487
@@ -0,0 +1,487 @@
|
||||
//###########################################################################
|
||||
//
|
||||
// FILE: boostxl_afe031_F2837xD_Sci.c
|
||||
//
|
||||
// TITLE: F2837xD SCI Initialization & Support Functions.
|
||||
//
|
||||
//###########################################################################
|
||||
//
|
||||
//
|
||||
// $Copyright:
|
||||
// Copyright (C) 2013-2024 Texas Instruments Incorporated - http://www.ti.com/
|
||||
//
|
||||
// Redistribution and use in source and binary forms, with or without
|
||||
// modification, are permitted provided that the following conditions
|
||||
// are met:
|
||||
//
|
||||
// Redistributions of source code must retain the above copyright
|
||||
// notice, this list of conditions and the following disclaimer.
|
||||
//
|
||||
// Redistributions in binary form must reproduce the above copyright
|
||||
// notice, this list of conditions and the following disclaimer in the
|
||||
// documentation and/or other materials provided with the
|
||||
// distribution.
|
||||
//
|
||||
// Neither the name of Texas Instruments Incorporated nor the names of
|
||||
// its contributors may be used to endorse or promote products derived
|
||||
// from this software without specific prior written permission.
|
||||
//
|
||||
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||
// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||
// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
||||
// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
||||
// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||
// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||
// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
||||
// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
||||
// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
// $
|
||||
//###########################################################################
|
||||
|
||||
//
|
||||
// Included Files
|
||||
//
|
||||
#include "F28x_Project.h"
|
||||
#include "boostxl_afe031_F2837xD_Sci.h"
|
||||
|
||||
//
|
||||
// Version information string returned by "vi" command
|
||||
//
|
||||
#define VERSION_INFO "F2837xD v19.02.00\0"
|
||||
|
||||
//
|
||||
// Globals
|
||||
//
|
||||
char cmdBuf[] = "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0";
|
||||
int cmdIdx = 0;
|
||||
int cmdInit = 1;
|
||||
|
||||
//
|
||||
// scia_fifo_init - Initialize the SCI FIFO
|
||||
//
|
||||
void scia_fifo_init()
|
||||
{
|
||||
SciaRegs.SCIFFTX.all = 0xE040;
|
||||
SciaRegs.SCIFFRX.all = 0x2044;
|
||||
SciaRegs.SCIFFCT.all = 0x0;
|
||||
}
|
||||
|
||||
//
|
||||
// scia_gpio_init - Initialize the SCI GPIO
|
||||
//
|
||||
void scia_gpio_init()
|
||||
{
|
||||
EALLOW;
|
||||
GpioCtrlRegs.GPBMUX1.bit.GPIO42 = 3;
|
||||
GpioCtrlRegs.GPBMUX1.bit.GPIO43 = 3;
|
||||
GpioCtrlRegs.GPBGMUX1.bit.GPIO42 = 3;
|
||||
GpioCtrlRegs.GPBGMUX1.bit.GPIO43 = 3;
|
||||
EDIS;
|
||||
}
|
||||
|
||||
//
|
||||
// scia_port_init - Initialize the SCI Port
|
||||
//
|
||||
void scia_port_init()
|
||||
{
|
||||
//
|
||||
// Note: Clocks were turned on to the SCIA peripheral
|
||||
// in the InitSysCtrl() function
|
||||
//
|
||||
|
||||
SciaRegs.SCICCR.all = 0x0007; // 1 stop bit, No loopback
|
||||
// No parity,8 char bits,
|
||||
// async mode, idle-line protocol
|
||||
SciaRegs.SCICTL1.all = 0x0003; // enable TX, RX, internal SCICLK,
|
||||
// Disable RX ERR, SLEEP, TXWAKE
|
||||
SciaRegs.SCICTL2.all = 0x0003;
|
||||
SciaRegs.SCICTL2.bit.TXINTENA = 1;
|
||||
SciaRegs.SCICTL2.bit.RXBKINTENA = 1;
|
||||
//
|
||||
// 230400 baud @LSPCLK = 50MHz (200 MHz SYSCLK)
|
||||
//
|
||||
SciaRegs.SCIHBAUD.all = 0;
|
||||
SciaRegs.SCILBAUD.all = 53;
|
||||
SciaRegs.SCICTL1.all = 0x0023; // Relinquish SCI from Reset
|
||||
}
|
||||
|
||||
//
|
||||
// scia_port_init - Initialize SCIA GPIO, FIFO and Port
|
||||
//
|
||||
void scia_init()
|
||||
{
|
||||
scia_gpio_init();
|
||||
scia_fifo_init();
|
||||
scia_port_init();
|
||||
scia_cmd_reset();
|
||||
scia_msg(">> \0");
|
||||
}
|
||||
|
||||
//
|
||||
// scia_xmit - Transmit a character from the SCI
|
||||
//
|
||||
void scia_xmit(int a)
|
||||
{
|
||||
while (SciaRegs.SCIFFTX.bit.TXFFST != 0) {}
|
||||
SciaRegs.SCITXBUF.all =a;
|
||||
}
|
||||
|
||||
//
|
||||
// scia_msg - Transmit message via SCIA
|
||||
//
|
||||
void scia_msg(char *msg)
|
||||
{
|
||||
int i = 0;
|
||||
while(msg[i] != '\0')
|
||||
{
|
||||
scia_xmit(msg[i]);
|
||||
i++;
|
||||
}
|
||||
}
|
||||
|
||||
//
|
||||
// scia_service - SCIA service routine
|
||||
//
|
||||
void scia_service()
|
||||
{
|
||||
if (cmdInit)
|
||||
{
|
||||
//
|
||||
// IMPORTANT: Wait a second to ensure
|
||||
// host PC has enumerated the LaunchPad
|
||||
// COM port before SCI is initialized!
|
||||
//
|
||||
DELAY_US(1000000);
|
||||
scia_init();
|
||||
cmdInit = 0;
|
||||
}
|
||||
|
||||
while(SciaRegs.SCIFFRX.bit.RXFFST != 0)
|
||||
{
|
||||
int reset = 0;
|
||||
long num = 0;
|
||||
char c = SciaRegs.SCIRXBUF.all;
|
||||
if (c == 0x0d)
|
||||
{
|
||||
//Parse and service command
|
||||
int command = scia_cmd_parser(cmdBuf, &num);
|
||||
switch (command)
|
||||
{
|
||||
case CMD_GET_VER_INFO:
|
||||
scia_msg("\r\n\0");
|
||||
scia_msg(VERSION_INFO);
|
||||
scia_msg(" Serial Terminal\r\n>> \0");
|
||||
break;
|
||||
case CMD_SET_MARK_GAIN:
|
||||
GAIN_MARK_x1024 = num;
|
||||
scia_msg("\r\nACK\r\n>> \0");
|
||||
break;
|
||||
case CMD_GET_MARK_GAIN:
|
||||
scia_msg("\r\n\0");
|
||||
scia_msg(scia_num2str(GAIN_MARK_x1024));
|
||||
scia_msg("\r\n>> \0");
|
||||
break;
|
||||
case CMD_GET_SPACE_GAIN:
|
||||
scia_msg("\r\n\0");
|
||||
scia_msg(scia_num2str(GAIN_SPACE_x1024));
|
||||
scia_msg("\r\n>> \0");
|
||||
break;
|
||||
case CMD_SET_SPACE_GAIN:
|
||||
GAIN_SPACE_x1024 = num;
|
||||
scia_msg("\r\nACK\r\n>> \0");
|
||||
break;
|
||||
case CMD_GET_DAC_OFFSET:
|
||||
scia_msg("\r\n\0");
|
||||
scia_msg(scia_num2str(DAC_CODE_OFFSET));
|
||||
scia_msg("\r\n>> \0");
|
||||
break;
|
||||
case CMD_SET_DAC_OFFSET:
|
||||
DAC_CODE_OFFSET = num;
|
||||
scia_msg("\r\nACK\r\n>> \0");
|
||||
break;
|
||||
case CMD_GET_CURRENT_CNT:
|
||||
scia_msg("\r\n\0");
|
||||
scia_msg(scia_num2str(intCurrent));
|
||||
scia_msg("\r\n>> \0");
|
||||
break;
|
||||
case CMD_SET_CURRENT_CNT:
|
||||
intCurrent = num;
|
||||
scia_msg("\r\nACK\r\n>> \0");
|
||||
break;
|
||||
case CMD_GET_THERMAL_CNT:
|
||||
scia_msg("\r\n\0");
|
||||
scia_msg(scia_num2str(intThermal));
|
||||
scia_msg("\r\n>> \0");
|
||||
break;
|
||||
case CMD_SET_THERMAL_CNT:
|
||||
intThermal = num;
|
||||
scia_msg("\r\nACK\r\n>> \0");
|
||||
break;
|
||||
case CMD_GET_USER_TM:
|
||||
scia_msg("\r\n\0");
|
||||
scia_msg(scia_num2str(tmUser));
|
||||
scia_msg("\r\n>> \0");
|
||||
break;
|
||||
case CMD_SET_USER_TM:
|
||||
tmUser = num;
|
||||
scia_msg("\r\nACK\r\n>> \0");
|
||||
break;
|
||||
case CMD_GET_HELP:
|
||||
scia_msg("\r\n\0");
|
||||
scia_msg("Get Command Help: h or ?\r\n\0");
|
||||
scia_msg("Get Version Info: v\r\n\0");
|
||||
scia_msg("Get Mark Gain: m\r\n\0");
|
||||
scia_msg("Set Mark Gain: m=value\r\n\0");
|
||||
scia_msg("Get Space Gain: s\r\n\0");
|
||||
scia_msg("Set Space Gain: s=value\r\n\0");
|
||||
scia_msg("Get DAC Offset: o\r\n\0");
|
||||
scia_msg("Set DAC Offset: o=value\r\n\0");
|
||||
scia_msg("Get Overcurrent Count: c\r\n\0");
|
||||
scia_msg("Set Overcurrent Count: c=value\r\n\0");
|
||||
scia_msg("Get Thermal Shutdown Count: t\r\n\0");
|
||||
scia_msg("Set Thermal Shutdown Count: t=value\r\n\0");
|
||||
scia_msg("Get User Test Mode: u\r\n\0");
|
||||
scia_msg("Set User Test Mode: u=value\r\n\0");
|
||||
scia_msg("Value Test Mode\r\n\0");
|
||||
scia_msg(" 0 W1,W1,W1 (SunSpec Permission to Operate)\r\n\0");
|
||||
scia_msg(" 1 W0,W0,W0 (SunSpec Accelerated Shutdown)\r\n\0");
|
||||
scia_msg(" 2 Continuous Mark\r\n\0");
|
||||
scia_msg(" 3 Continuous Space\r\n\0");
|
||||
scia_msg(" 4 Continuous W1\r\n\0");
|
||||
scia_msg(" 5 Continuous W0\r\n\0");
|
||||
scia_msg(" 6 Power Amp Shutdown\r\n\0");
|
||||
scia_msg(" 7 Power Amp Enable\r\n\0");
|
||||
scia_msg(">> \0");
|
||||
break;
|
||||
default:
|
||||
scia_msg("\r\nNAK\r\n>> \0");
|
||||
break;
|
||||
}
|
||||
reset = 1;
|
||||
}
|
||||
else if (cmdIdx >= sizeof(cmdBuf))
|
||||
{
|
||||
reset = 1;
|
||||
}
|
||||
else
|
||||
{
|
||||
cmdBuf[cmdIdx++] = c;
|
||||
}
|
||||
if (reset)
|
||||
{
|
||||
scia_cmd_reset();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
//
|
||||
// scia_cmd_reset - Reset command buffer
|
||||
//
|
||||
void scia_cmd_reset()
|
||||
{
|
||||
for (cmdIdx = 0; cmdIdx < sizeof(cmdBuf); cmdIdx++)
|
||||
{
|
||||
cmdBuf[cmdIdx] = '\0';
|
||||
}
|
||||
cmdIdx = 0;
|
||||
}
|
||||
|
||||
//
|
||||
// scia_parser - SCIA command parser
|
||||
//
|
||||
int scia_cmd_parser(char* cmd, long* num)
|
||||
{
|
||||
if ((cmd[0] == 'h') || (cmd[0] == '?'))
|
||||
{
|
||||
if (cmd[1] == '\0')
|
||||
{
|
||||
return CMD_GET_HELP;
|
||||
}
|
||||
}
|
||||
else if (cmd[0] == 'v')
|
||||
{
|
||||
if (cmd[1] == '\0')
|
||||
{
|
||||
return CMD_GET_VER_INFO;
|
||||
}
|
||||
}
|
||||
else if (cmd[0] == 'm')
|
||||
{
|
||||
if (cmd[1] == '\0')
|
||||
{
|
||||
return CMD_GET_MARK_GAIN;
|
||||
}
|
||||
else if (cmd[1] == '=')
|
||||
{
|
||||
if (scia_str2num(&cmd[2], num))
|
||||
{
|
||||
return CMD_SET_MARK_GAIN;
|
||||
}
|
||||
}
|
||||
}
|
||||
else if (cmd[0] == 's')
|
||||
{
|
||||
if (cmd[1] == '\0')
|
||||
{
|
||||
return CMD_GET_SPACE_GAIN;
|
||||
}
|
||||
else if (cmd[1] == '=')
|
||||
{
|
||||
if (scia_str2num(&cmd[2], num))
|
||||
{
|
||||
return CMD_SET_SPACE_GAIN;
|
||||
}
|
||||
}
|
||||
}
|
||||
else if (cmd[0] == 'o')
|
||||
{
|
||||
if (cmd[1] == '\0')
|
||||
{
|
||||
return CMD_GET_DAC_OFFSET;
|
||||
}
|
||||
else if (cmd[1] == '=')
|
||||
{
|
||||
if (scia_str2num(&cmd[2], num))
|
||||
{
|
||||
return CMD_SET_DAC_OFFSET;
|
||||
}
|
||||
}
|
||||
}
|
||||
else if (cmd[0] == 'c')
|
||||
{
|
||||
if (cmd[1] == '\0')
|
||||
{
|
||||
return CMD_GET_CURRENT_CNT;
|
||||
}
|
||||
else if (cmd[1] == '=')
|
||||
{
|
||||
if (scia_str2num(&cmd[2], num))
|
||||
{
|
||||
return CMD_SET_CURRENT_CNT;
|
||||
}
|
||||
}
|
||||
}
|
||||
else if (cmd[0] == 't')
|
||||
{
|
||||
if (cmd[1] == '\0')
|
||||
{
|
||||
return CMD_GET_THERMAL_CNT;
|
||||
}
|
||||
else if (cmd[1] == '=')
|
||||
{
|
||||
if (scia_str2num(&cmd[2], num))
|
||||
{
|
||||
return CMD_SET_THERMAL_CNT;
|
||||
}
|
||||
}
|
||||
}
|
||||
else if (cmd[0] == 'u')
|
||||
{
|
||||
if (cmd[1] == '\0')
|
||||
{
|
||||
return CMD_GET_USER_TM;
|
||||
}
|
||||
else if (cmd[1] == '=')
|
||||
{
|
||||
if (scia_str2num(&cmd[2], num))
|
||||
{
|
||||
return CMD_SET_USER_TM;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return CMD_UNKNOWN;
|
||||
}
|
||||
|
||||
//
|
||||
// scia_str2num - SCIA string to number utility
|
||||
//
|
||||
int scia_str2num(char* str, long* num)
|
||||
{
|
||||
int dig[] = {0, 0, 0, 0, 0, 0, 0, 0, 0};
|
||||
int i = 0;
|
||||
while (1)
|
||||
{
|
||||
char c = str[i];
|
||||
if (c =='\0')
|
||||
{
|
||||
break;
|
||||
}
|
||||
else if (i >= sizeof(dig))
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
dig[i] = (int)c - 0x30;
|
||||
if ((dig[i] < 0) || (dig[i] > 9))
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
i++;
|
||||
}
|
||||
|
||||
*num = 0;
|
||||
int n = i;
|
||||
for (i = 0; i < n; i++)
|
||||
{
|
||||
long pow10 = scia_pow10(n-i-1);
|
||||
*num = *num + (long)dig[i]*pow10;
|
||||
}
|
||||
|
||||
return n;
|
||||
}
|
||||
|
||||
//
|
||||
// scia_num2str - SCIA number to string utility
|
||||
//
|
||||
char* scia_num2str(long num)
|
||||
{
|
||||
static char rspBuf[80];
|
||||
|
||||
int n = 9;
|
||||
if (num < 10) n = 1;
|
||||
else if (num < 100) n = 2;
|
||||
else if (num < 1000) n = 3;
|
||||
else if (num < 10000) n = 4;
|
||||
else if (num < 100000) n = 5;
|
||||
else if (num < 1000000) n = 6;
|
||||
else if (num < 10000000) n = 7;
|
||||
else if (num < 100000000) n = 8;
|
||||
|
||||
long rem = num;
|
||||
int i;
|
||||
for(i = 0; i < n; i++)
|
||||
{
|
||||
long pow10 = scia_pow10(n-i-1);
|
||||
long dig = rem/pow10;
|
||||
rspBuf[i] = (char)dig + 0x30;
|
||||
rem -= (dig * pow10);
|
||||
}
|
||||
|
||||
rspBuf[i] = '\0';
|
||||
|
||||
return rspBuf;
|
||||
}
|
||||
|
||||
//
|
||||
// scia_pow10 - SCIA power of 10 utility
|
||||
//
|
||||
long scia_pow10(long pow)
|
||||
{
|
||||
long pow10;
|
||||
switch (pow)
|
||||
{
|
||||
case 0: pow10 = 1; break;
|
||||
case 1: pow10 = 10; break;
|
||||
case 2: pow10 = 100; break;
|
||||
case 3: pow10 = 1000; break;
|
||||
case 4: pow10 = 10000; break;
|
||||
case 5: pow10 = 100000; break;
|
||||
case 6: pow10 = 1000000; break;
|
||||
case 7: pow10 = 10000000; break;
|
||||
case 8: pow10 = 100000000; break;
|
||||
default: pow10 = 1000000000; break;
|
||||
}
|
||||
return pow10;
|
||||
}
|
||||
+115
@@ -0,0 +1,115 @@
|
||||
//###########################################################################
|
||||
//
|
||||
// FILE: boostxl_afe031_F2837xD_Sci.h
|
||||
//
|
||||
// TITLE: F2837xD Devices Serial Communication Interface definitions.
|
||||
//
|
||||
//###########################################################################
|
||||
//
|
||||
//
|
||||
// $Copyright:
|
||||
// Copyright (C) 2013-2024 Texas Instruments Incorporated - http://www.ti.com/
|
||||
//
|
||||
// Redistribution and use in source and binary forms, with or without
|
||||
// modification, are permitted provided that the following conditions
|
||||
// are met:
|
||||
//
|
||||
// Redistributions of source code must retain the above copyright
|
||||
// notice, this list of conditions and the following disclaimer.
|
||||
//
|
||||
// Redistributions in binary form must reproduce the above copyright
|
||||
// notice, this list of conditions and the following disclaimer in the
|
||||
// documentation and/or other materials provided with the
|
||||
// distribution.
|
||||
//
|
||||
// Neither the name of Texas Instruments Incorporated nor the names of
|
||||
// its contributors may be used to endorse or promote products derived
|
||||
// from this software without specific prior written permission.
|
||||
//
|
||||
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||
// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||
// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
||||
// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
||||
// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||
// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||
// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
||||
// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
||||
// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
// $
|
||||
//###########################################################################
|
||||
|
||||
#ifndef BOOSTXL_AFE031_F2837XD_SCI_H
|
||||
#define BOOSTXL_AFE031_F2837XD_SCI_H
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
//
|
||||
// Commands
|
||||
//
|
||||
#define CMD_UNKNOWN 0
|
||||
#define CMD_GET_HELP 1
|
||||
#define CMD_GET_VER_INFO 2
|
||||
#define CMD_GET_MARK_GAIN 3
|
||||
#define CMD_SET_MARK_GAIN 4
|
||||
#define CMD_GET_SPACE_GAIN 5
|
||||
#define CMD_SET_SPACE_GAIN 6
|
||||
#define CMD_GET_DAC_OFFSET 7
|
||||
#define CMD_SET_DAC_OFFSET 8
|
||||
#define CMD_GET_CURRENT_CNT 9
|
||||
#define CMD_SET_CURRENT_CNT 10
|
||||
#define CMD_GET_THERMAL_CNT 11
|
||||
#define CMD_SET_THERMAL_CNT 12
|
||||
#define CMD_GET_USER_TM 13
|
||||
#define CMD_SET_USER_TM 14
|
||||
|
||||
//
|
||||
// Test Modes
|
||||
//
|
||||
#define TM_TRANSMIT_KA 0 // Transmit Keep-Alive packets (default)
|
||||
#define TM_TRANSMIT_AS 1 // Transmit Accelerated Shutdown packets
|
||||
#define TM_TRANSMIT_MARK 2 // Transmit MARK tone continuously
|
||||
#define TM_TRANSMIT_SPACE 3 // Transmit SPACE tone continuously
|
||||
#define TM_TRANSMIT_W1 4 // Transmit Logic '1' word continuously
|
||||
#define TM_TRANSMIT_W0 5 // Transmit Logic '0' word continuously
|
||||
#define TM_PA_SHUTDOWN 6 // Power Amp Shutdown
|
||||
#define TM_PA_ENABLE 7 // Power Amp Enable
|
||||
|
||||
//
|
||||
// External Globals
|
||||
//
|
||||
extern Uint32 GAIN_SPACE_x1024; // SPACE Gain x 1024
|
||||
extern Uint32 GAIN_MARK_x1024; // MARK Gain x 1024
|
||||
extern Uint32 DAC_CODE_OFFSET; // DAC code offset
|
||||
extern Uint32 intCurrent; // Overcurrent event counter
|
||||
extern Uint32 intThermal; // Thermal shutdown event counter
|
||||
extern Uint16 tmUser; // User-selected test mode
|
||||
|
||||
//
|
||||
// Function Prototypes
|
||||
//
|
||||
void scia_fifo_init(void);
|
||||
void scia_gpio_init(void);
|
||||
void scia_port_init(void);
|
||||
void scia_init(void);
|
||||
void scia_xmit(int a);
|
||||
void scia_msg(char *msg);
|
||||
void scia_service(void);
|
||||
void scia_cmd_reset(void);
|
||||
int scia_cmd_parser(char* cmd, long* num);
|
||||
int scia_str2num(char* str, long* num);
|
||||
char* scia_num2str(long num);
|
||||
long scia_pow10(long pow);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif /* extern "C" */
|
||||
|
||||
#endif // eof
|
||||
|
||||
//
|
||||
// End of file
|
||||
//
|
||||
+20684
File diff suppressed because it is too large.
Load diff
+855
@@ -0,0 +1,855 @@
|
||||
//#############################################################################
|
||||
//
|
||||
// FILE: boostxl_afe031_dacmode_main.c
|
||||
//
|
||||
// TITLE: FSK Transmitter using DAC mode on the AFE031
|
||||
//
|
||||
//! \addtogroup cpu01_example_list
|
||||
//! <h1> FSK Transmitter using DAC mode on the AFE031 </h1>
|
||||
//!
|
||||
//! This example sets up the TMDS28379D Launchpad with the BOOSTXL-AFE031
|
||||
//! boosterpack to transmit 131.25 and 143.75 KHz FSK signals in a desired
|
||||
//! sequence, configured using the AFE031's DAC
|
||||
//!
|
||||
//! \b External \b Connections \n
|
||||
//! - Remove JP1, JP2, and JP3 headers on TMDS28379D Launchpad
|
||||
//! - Connect the BOOSTXL-AFE031 boosterpack to the upper TMDS28379D
|
||||
//! Launchpad pins
|
||||
//!
|
||||
//! \b Watch \b Variables \n
|
||||
//! - txDataEnable
|
||||
//! - currentChar
|
||||
//! - cycleCount
|
||||
//
|
||||
//#############################################################################
|
||||
//
|
||||
//
|
||||
// $Copyright:
|
||||
// Copyright (C) 2013-2024 Texas Instruments Incorporated - http://www.ti.com/
|
||||
//
|
||||
// Redistribution and use in source and binary forms, with or without
|
||||
// modification, are permitted provided that the following conditions
|
||||
// are met:
|
||||
//
|
||||
// Redistributions of source code must retain the above copyright
|
||||
// notice, this list of conditions and the following disclaimer.
|
||||
//
|
||||
// Redistributions in binary form must reproduce the above copyright
|
||||
// notice, this list of conditions and the following disclaimer in the
|
||||
// documentation and/or other materials provided with the
|
||||
// distribution.
|
||||
//
|
||||
// Neither the name of Texas Instruments Incorporated nor the names of
|
||||
// its contributors may be used to endorse or promote products derived
|
||||
// from this software without specific prior written permission.
|
||||
//
|
||||
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||
// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||
// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
||||
// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
||||
// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||
// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||
// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
||||
// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
||||
// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
// $
|
||||
//#############################################################################
|
||||
|
||||
//
|
||||
// Included Files
|
||||
//
|
||||
#include "F28x_Project.h"
|
||||
#include "boostxl_afe031_F2837xD_Sci.h"
|
||||
#include "afe031_config.h"
|
||||
#include "hal_spi.h"
|
||||
#include "sine_table.h"
|
||||
|
||||
//
|
||||
// Defines
|
||||
//
|
||||
#define EPWM1_TIMER_TBPRD 50
|
||||
#define EPWM2_TIMER_TBPRD 16000
|
||||
#define EPWM_CMP_UP 1
|
||||
#define EPWM_CMP_DOWN 0
|
||||
|
||||
#define MARKFREQ 1
|
||||
#define SPACEFREQ 0
|
||||
#define YES 1
|
||||
#define NO 0
|
||||
|
||||
//
|
||||
// A N-Point sine table is decimated and fed to the AFE031 DAC via DMA at a
|
||||
// 1MHz rate to produce the desired MARK and SPACE frequencies for each bit.
|
||||
// Decimation calculations for SPACE and MARK frequencies w/1MHz output rate:
|
||||
// Step Size = #Total/(#Points/Cycle), where #Points/Cycle = DAC_Hz/Target_Hz
|
||||
// MARK Step = N/(1000KHz/131.25KHz) = N*0.13125 (537.6 for 4096pt sine wave)
|
||||
// SPACE Step = N/(1000KHz/143.75KHz) = N*0.14375 (588.8 for 4096pt sine wave)
|
||||
// PWM1 paces the 1us DMA DAC Output from 50MHz Base Clock (TBPRD=50, DIV=1)
|
||||
// PWM2 paces the 5.12ms Bit Frame from 50MHz Base Clock (TBRD=16000, DIV=16)
|
||||
// REFERENCES:
|
||||
// 1. The SunSpec Rapid Shutdown Application Note can be found here:
|
||||
// http://www.ti.com/lit/ug/tidue68/tidue68.pdf
|
||||
// 2. A sine table calculator can be found here:
|
||||
// https://daycounter.com/Calculators/Sine-Generator-Calculator.phtml
|
||||
//
|
||||
#define N_CODE 1024
|
||||
#define N_POINT sizeof(sineTable)
|
||||
#define markSineStep (float)N_POINT*((float)131250/(float)1000000)
|
||||
#define spaceSineStep (float)N_POINT*((float)143750/(float)1000000)
|
||||
|
||||
//
|
||||
// Platform-dependent GPIO
|
||||
//
|
||||
#define GPIO_RED_LED_LP 34
|
||||
#define GPIO_BLUE_LED_LP 31
|
||||
#define GPIO_RED_LED2_BP 4
|
||||
#define GPIO_BLUE_LED1_BP 5
|
||||
#define GPIO_TEST_MODE 6
|
||||
#define GPIO_TX_MODE 0
|
||||
|
||||
//
|
||||
// Since the on-chip AFE031 Low Pass Filter (LPF) is designed for a
|
||||
// 145kHz cutoff frequency for CENELEC BCD (bit 3 of Control1 register),
|
||||
// significant attenuation is observed on the SPACE carrier signal.
|
||||
// This inherent AFE031 attenuation effect is effectively mitigated by
|
||||
// applying different firmware gain value while modulating SPACE or MARK.
|
||||
// Also, carrier signal glitches and distortion observed at carrier wave
|
||||
// transitions are minimized by:
|
||||
// 1. Only resetting the DMA buffers at Idle-to-Transmit, SPACE-to-MARK
|
||||
// and MARK-to-SPACE carrier signal transitions.
|
||||
// 2. Assigning priorities to DMA (higher) and PWM (lower) interrupts and
|
||||
// enabling interrupt service nesting, per TI-WIKI page found here:
|
||||
// http://processors.wiki.ti.com/index.php/Interrupt_Nesting_on_C28x
|
||||
//
|
||||
#include "boostxl_afe031_f28379d_dacmode_isr.h"
|
||||
#define ISRS_GROUP1 (M_INT1|M_INT2|M_INT3|M_INT4|M_INT5|M_INT6|M_INT7|M_INT8)
|
||||
#define NaN 0xFFFF
|
||||
|
||||
//
|
||||
// NOTE: Firmware gain values calibrated w/1500nF, 1.5kV line coupling capacitor
|
||||
// and multiplied by 1024 to enable faster integer division (i.e. logical shift).
|
||||
//
|
||||
Uint32 GAIN_SPACE_x1024 = 676; // SPACE Gain x 1024
|
||||
Uint32 GAIN_MARK_x1024 = 558; // MARK Gain x 1024
|
||||
|
||||
//
|
||||
// Offset DAC code to keep output in linear region (0.1V < DAC_OUT < 3.2V).
|
||||
// NOTE: The DAC offset limits the firmware gain values (1024 - 2*offset).
|
||||
//
|
||||
Uint32 DAC_CODE_OFFSET = 64;
|
||||
|
||||
//
|
||||
// Global thermal shutdown and overcurrent event counters
|
||||
//
|
||||
Uint32 intThermal = 0;
|
||||
Uint32 intCurrent = 0;
|
||||
|
||||
//
|
||||
// Test Mode Globals
|
||||
//
|
||||
Uint16 tmLast = NaN;
|
||||
Uint16 tmUser = NaN;
|
||||
Uint16 tmJump = NaN;
|
||||
Uint16 tmCont = NO;
|
||||
Uint16 txDataEnable = NO;
|
||||
Uint16 txChar = NaN;
|
||||
Uint16 txBuf[] = { 0, 0, 0, 1, 1, 1, 0, 1, 1, 0, 1 }; // Transmit Buffer
|
||||
Uint16 txLogic0[] = { 1, 1, 1, 0, 0, 0, 1, 0, 0, 1, 0 }; // Logic "0" Word
|
||||
Uint16 txLogic1[] = { 0, 0, 0, 1, 1, 1, 0, 1, 1, 0, 1 }; // Logic "1" Word
|
||||
Uint16 txMark[] = { 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 }; // Continuous MARK
|
||||
Uint16 txSpace[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; // Continuous SPACE
|
||||
|
||||
//
|
||||
// Other Globals
|
||||
//
|
||||
Uint16 currentChar = 0;
|
||||
Uint16 cycleCount = 0;
|
||||
Uint16 pingpongBufSel = 0;
|
||||
float sinePosition = 0;
|
||||
float sineStep = 0;
|
||||
|
||||
//
|
||||
// Function Prototypes
|
||||
//
|
||||
void AFE_InitGpio(void);
|
||||
void EPWM2_Init(void);
|
||||
void EPWM1_Init(void);
|
||||
void pwm_enable(Uint16 enable);
|
||||
void dma_init(void);
|
||||
void dma_start (void);
|
||||
void fill_SineTable(Uint16 *buf,Uint16 bufSize);
|
||||
void reset_DMASineTables(void);
|
||||
__interrupt void epwm2_isr(void);
|
||||
__interrupt void dma_isr(void);
|
||||
#ifdef _FLASH
|
||||
extern Uint16 RamfuncsLoadStart;
|
||||
extern Uint16 RamfuncsLoadSize;
|
||||
extern Uint16 RamfuncsRunStart;
|
||||
extern Uint16 SineTableLoadStart;
|
||||
extern Uint16 SineTableLoadSize;
|
||||
extern Uint16 SineTableRunStart;
|
||||
#endif
|
||||
|
||||
#define BURST 1 // write 7 to the register for a burst size of 8
|
||||
#define TRANSFER 15 // [(MEM_BUFFER_SIZE/(BURST + 1)) - 1]
|
||||
|
||||
#pragma DATA_SECTION(pingBuf, "ramgs0");
|
||||
#pragma DATA_SECTION(pongBuf, "ramgs0");
|
||||
|
||||
Uint16 pingBuf[TRANSFER+1];
|
||||
Uint16 pongBuf[TRANSFER+1];
|
||||
|
||||
void main(void)
|
||||
{
|
||||
//
|
||||
// Initialize System Control:
|
||||
// PLL, WatchDog, enable Peripheral Clocks
|
||||
//
|
||||
InitSysCtrl();
|
||||
|
||||
//
|
||||
// For Flash mode, copy the sine table to RAM
|
||||
//
|
||||
#ifdef _FLASH
|
||||
memcpy(&SineTableRunStart, &SineTableLoadStart, (size_t)&SineTableLoadSize);
|
||||
#endif
|
||||
|
||||
//
|
||||
// Initialize LaunchPad GPIO
|
||||
//
|
||||
InitGpio();
|
||||
|
||||
//
|
||||
// For this case just init GPIO pins for ePWM1
|
||||
//
|
||||
InitEPwm1Gpio();
|
||||
|
||||
//
|
||||
// Initialize BoosterPack GPIO
|
||||
//
|
||||
AFE_InitGpio();
|
||||
|
||||
//
|
||||
// Initialize transmit data buffer based on test mode jumpers, Notes:
|
||||
// 1. Test Mode selected with jumper across J6.60-J8.80
|
||||
// 2. Tx Mode selected with jumper across J2.20-J4.40
|
||||
// 3. Input grounded with jumper installed, otherwise pulled high
|
||||
// 4. Pin states inverted in test mode computation (NO jumper='0')
|
||||
// Test Mode Tx Mode Function
|
||||
// --------- ------- --------
|
||||
// 0 0 Logic "1" Word (Default, w/NO jumpers)
|
||||
// 0 1 Logic "0" Word
|
||||
// 1 0 Continuous MARK
|
||||
// 1 1 Continuous SPACE
|
||||
//
|
||||
GPIO_SetupPinMux(GPIO_TX_MODE, GPIO_MUX_CPU1, 0); // txMode
|
||||
GPIO_SetupPinOptions(GPIO_TX_MODE, GPIO_INPUT, GPIO_OPENDRAIN | GPIO_PULLUP);
|
||||
GPIO_SetupPinMux(GPIO_TEST_MODE, GPIO_MUX_CPU1, 0); // testMode
|
||||
GPIO_SetupPinOptions(GPIO_TEST_MODE, GPIO_INPUT, GPIO_OPENDRAIN | GPIO_PULLUP);
|
||||
|
||||
//
|
||||
// Disable interrupts.
|
||||
//
|
||||
DINT;
|
||||
|
||||
//
|
||||
// Initialize PIE control registers to their default state.
|
||||
//
|
||||
InitPieCtrl();
|
||||
|
||||
// Disable and clear all CPU interrupts
|
||||
IER = 0x0000;
|
||||
IFR = 0x0000;
|
||||
|
||||
// Initialize the PIE vector table with pointers to the shell Interrupt
|
||||
// Service Routines (ISR).
|
||||
// This will populate the entire table, even if the interrupt
|
||||
// is not used in this example. This is useful for debug purposes.
|
||||
|
||||
InitPieVectTable();
|
||||
|
||||
//
|
||||
// Interrupts that are used in this example are re-mapped to
|
||||
// ISR functions found within this file.
|
||||
//
|
||||
EALLOW;
|
||||
PieVectTable.EPWM2_INT = &epwm2_isr;
|
||||
PieVectTable.DMA_CH1_INT= &dma_isr;
|
||||
CpuSysRegs.SECMSEL.bit.PF2SEL = 1;
|
||||
EDIS;
|
||||
|
||||
//
|
||||
// initialize the ePWM
|
||||
//
|
||||
EPWM1_Init();
|
||||
EPWM2_Init();
|
||||
|
||||
EALLOW;
|
||||
// Setting to a GPIO number above what exists on device, to avoid interference.
|
||||
InputXbarRegs.INPUT5SELECT = 500;
|
||||
EPwm1Regs.TBCTL.bit.PHSEN = 1;
|
||||
EPwm2Regs.TBCTL.bit.PHSEN = 1;
|
||||
EPwm1Regs.TBCTL.bit.SYNCOSEL = 0;
|
||||
CpuSysRegs.PCLKCR0.bit.TBCLKSYNC = 1;
|
||||
EPwm1Regs.TBCTL.bit.SWFSYNC = 1; // Sync PWM1 and PWM2 clocks
|
||||
EDIS;
|
||||
|
||||
//
|
||||
// Enable CPU INT3 which is connected to EPWM2 INT:
|
||||
//
|
||||
IER |= M_INT3 + M_INT7;
|
||||
|
||||
//
|
||||
// Enable TINT0 in the PIE: Group 1 interrupt 7
|
||||
//
|
||||
PieCtrlRegs.PIECTRL.bit.ENPIE = 1; // Enable the PIE block
|
||||
PieCtrlRegs.PIEIER3.bit.INTx2 = 1;
|
||||
PieCtrlRegs.PIEIER7.bit.INTx1 = 1; // Enable PIE Group 7, INT 1 (DMA CH1)
|
||||
|
||||
//
|
||||
// Configure AFE
|
||||
//
|
||||
HAL_afe031Init();
|
||||
|
||||
//
|
||||
// Turn on AFE DAC transmit Enable
|
||||
//
|
||||
HAL_afe031_txDACEnable();
|
||||
|
||||
//
|
||||
// NOTE: Enable INT output/flags after initializing DAC/PA.
|
||||
//
|
||||
HAL_afe031_cfgInt();
|
||||
|
||||
//
|
||||
// Enable the DAC on the AFE, and set GPIO7 HIGH.
|
||||
// (When GPIO7 is high, the device enters DAC Mode)
|
||||
//
|
||||
HAL_afe031_dacEnable();
|
||||
|
||||
//
|
||||
// Enable interrupts and real-time debug mode
|
||||
//
|
||||
EINT;
|
||||
ERTM;
|
||||
|
||||
//
|
||||
// Initialize DMA
|
||||
//
|
||||
dma_init();
|
||||
dma_start();
|
||||
|
||||
EPwm1Regs.ETSEL.bit.SOCAEN = 1; // Enable SOC on A group
|
||||
|
||||
//
|
||||
// Initialize loop variables
|
||||
//
|
||||
Uint32 toggle = 0;
|
||||
Uint16 tmShutdown = NO;
|
||||
Uint16 tmUserLast = NaN;
|
||||
Uint16 tmJumpLast = NaN;
|
||||
|
||||
while(1)
|
||||
{
|
||||
Uint16 tmSet = NO;
|
||||
Uint16 tmChg = NO;
|
||||
Uint16 *tp = txBuf;
|
||||
|
||||
//
|
||||
// Service serial link.
|
||||
//
|
||||
scia_service();
|
||||
|
||||
//
|
||||
// Check if jumper- or user-selected test mode has changed.
|
||||
//
|
||||
tmJump = ((~GPIO_ReadPin(GPIO_TEST_MODE) & 1) << 1) | (~GPIO_ReadPin(GPIO_TX_MODE) & 1);
|
||||
if (tmJump != tmJumpLast)
|
||||
{
|
||||
tmLast = tmJump;
|
||||
tmJumpLast = tmJump;
|
||||
tmChg = YES;
|
||||
}
|
||||
else if (tmUser != tmUserLast)
|
||||
{
|
||||
tmLast = tmUser;
|
||||
tmUserLast = tmUser;
|
||||
tmChg = YES;
|
||||
}
|
||||
|
||||
//
|
||||
// Check if jumper- or user-selected test mode has changed.
|
||||
//
|
||||
if (tmChg)
|
||||
{
|
||||
switch (tmLast)
|
||||
{
|
||||
case TM_TRANSMIT_KA:
|
||||
tp = txLogic1;
|
||||
tmSet = YES;
|
||||
tmCont = NO;
|
||||
break;
|
||||
case TM_TRANSMIT_AS:
|
||||
tp = txLogic0;
|
||||
tmSet = YES;
|
||||
tmCont = NO;
|
||||
break;
|
||||
case TM_TRANSMIT_MARK:
|
||||
tp = txMark;
|
||||
tmSet = YES;
|
||||
tmCont = YES;
|
||||
break;
|
||||
case TM_TRANSMIT_SPACE:
|
||||
tp = txSpace;
|
||||
tmSet = YES;
|
||||
tmCont = YES;
|
||||
break;
|
||||
case TM_TRANSMIT_W1:
|
||||
tp = txLogic1;
|
||||
tmSet = YES;
|
||||
tmCont = YES;
|
||||
break;
|
||||
case TM_TRANSMIT_W0:
|
||||
tp = txLogic0;
|
||||
tmSet = YES;
|
||||
tmCont = YES;
|
||||
break;
|
||||
case TM_PA_SHUTDOWN:
|
||||
HAL_afe031_shutdown(1);
|
||||
tmShutdown = YES;
|
||||
break;
|
||||
case TM_PA_ENABLE:
|
||||
HAL_afe031_shutdown(0);
|
||||
tmShutdown = NO;
|
||||
tmSet = YES;
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
//
|
||||
// AFE031 Power Amp (PA) overcurrent and thermal shutdown event monitoring
|
||||
// IMPORANT: Do this after checking test mode, as enabling the AFE031's PA
|
||||
// causes transient overcurrent condition.
|
||||
//
|
||||
#ifndef INT_DISABLE
|
||||
if (HAL_afe031_intAsserted())
|
||||
{
|
||||
pwm_enable(0);
|
||||
txDataEnable = NO;
|
||||
GPIO_WritePin(GPIO_BLUE_LED1_BP, 1);
|
||||
HAL_afe031_dacDisable();
|
||||
Uint16 regReset = HAL_afe031_regRead(HAL_AFE031_RESET_REG) & 0xff;
|
||||
if (regReset & 0x20)
|
||||
{
|
||||
intThermal++;
|
||||
}
|
||||
if (regReset & 0x40)
|
||||
{
|
||||
intCurrent++;
|
||||
}
|
||||
HAL_afe031_cfgInt();
|
||||
HAL_afe031_dacEnable();
|
||||
|
||||
//
|
||||
// NOTE: INT flags are set while PA is in shutdown mode and
|
||||
// overcurrent and thermal SD event counters are cleared when
|
||||
// the power amplifier is enabled and transmission is reset.
|
||||
//
|
||||
if (!tmShutdown)
|
||||
{
|
||||
tmSet = YES;
|
||||
}
|
||||
}
|
||||
#endif
|
||||
//
|
||||
// Reset transmission/parameters.
|
||||
//
|
||||
if (tmSet)
|
||||
{
|
||||
// Disable PWM counters
|
||||
pwm_enable(0);
|
||||
currentChar = 0;
|
||||
cycleCount = 0;
|
||||
sinePosition = 0;
|
||||
reset_DMASineTables();
|
||||
memcpy(txBuf, tp, sizeof(txBuf));
|
||||
intCurrent = 0;
|
||||
intThermal = 0;
|
||||
txDataEnable = YES;
|
||||
txChar = NaN;
|
||||
// Enable PWM counters to paces DMA/SPI
|
||||
pwm_enable(1);
|
||||
// Turn on blue LED to inform transmitting
|
||||
GPIO_WritePin(GPIO_BLUE_LED1_BP, 0);
|
||||
}
|
||||
|
||||
//
|
||||
// red LED informs PA state
|
||||
//
|
||||
toggle++;
|
||||
|
||||
if (intThermal > 1)
|
||||
{
|
||||
// If multiple PA thermal events, red LED on
|
||||
GPIO_WritePin(GPIO_RED_LED2_BP, 0);
|
||||
}
|
||||
else if (intCurrent > 1)
|
||||
{
|
||||
// If multiple PA current events, red LED blink
|
||||
GPIO_WritePin(GPIO_RED_LED2_BP, (toggle&1));
|
||||
}
|
||||
else
|
||||
{
|
||||
// If no PA thermal or current events, red LED off
|
||||
GPIO_WritePin(GPIO_RED_LED2_BP, 1);
|
||||
}
|
||||
|
||||
DELAY_US(50000);
|
||||
}
|
||||
}
|
||||
|
||||
//
|
||||
// AFE_InitGpio - Initialize launchpad and booterpack GPIOs
|
||||
//
|
||||
void AFE_InitGpio()
|
||||
{
|
||||
// LaunchPad LEDs
|
||||
GPIO_SetupPinMux(GPIO_RED_LED_LP, GPIO_MUX_CPU1, 0);
|
||||
GPIO_SetupPinOptions(GPIO_RED_LED_LP, GPIO_OUTPUT, GPIO_PUSHPULL);
|
||||
|
||||
GPIO_SetupPinMux(GPIO_BLUE_LED_LP, GPIO_MUX_CPU1, 0);
|
||||
GPIO_SetupPinOptions(GPIO_BLUE_LED_LP, GPIO_OUTPUT, GPIO_PUSHPULL);
|
||||
|
||||
// BoosterPack LEDs
|
||||
GPIO_SetupPinMux(GPIO_RED_LED2_BP, GPIO_MUX_CPU1, 0);
|
||||
GPIO_SetupPinOptions(GPIO_RED_LED2_BP, GPIO_OUTPUT, GPIO_PUSHPULL);
|
||||
|
||||
GPIO_SetupPinMux(GPIO_BLUE_LED1_BP, GPIO_MUX_CPU1, 0);
|
||||
GPIO_SetupPinOptions(GPIO_BLUE_LED1_BP, GPIO_OUTPUT, GPIO_PUSHPULL);
|
||||
}
|
||||
|
||||
//
|
||||
// epwm2_isr - EPWM2 ISR
|
||||
//
|
||||
#pragma CODE_SECTION(epwm2_isr,".TI.ramfunc");
|
||||
__interrupt void epwm2_isr(void)
|
||||
{
|
||||
//
|
||||
// Enable DMA ISR Nesting
|
||||
//
|
||||
uint16_t TempPIEIER;
|
||||
TempPIEIER = PieCtrlRegs.PIEIER2.all;
|
||||
IER |= M_INT7;
|
||||
IER &= MINT7; // Set "global" priority
|
||||
PieCtrlRegs.PIEIER2.all &= MG7_1; // Set "group" priority
|
||||
PieCtrlRegs.PIEACK.all = 0xFFFF; // Enable PIE interrupts
|
||||
asm(" NOP"); // Wait one cycle
|
||||
EINT; // Clear INTM to enable interrupts
|
||||
|
||||
//
|
||||
// Check if data transmission enabled
|
||||
//
|
||||
if(txDataEnable == YES)
|
||||
{
|
||||
if(txBuf[currentChar] != txChar)
|
||||
{
|
||||
txChar = txBuf[currentChar];
|
||||
}
|
||||
|
||||
//
|
||||
// Update transmission data index
|
||||
//
|
||||
if (++currentChar >= sizeof(txBuf))
|
||||
{
|
||||
currentChar = 0;
|
||||
}
|
||||
}
|
||||
|
||||
//
|
||||
// Increment cycle count
|
||||
//
|
||||
cycleCount++;
|
||||
|
||||
//
|
||||
// If continuous transmission test mode, cap cycle count
|
||||
//
|
||||
if (tmCont)
|
||||
{
|
||||
cycleCount = (cycleCount > 2) ? 2 : cycleCount;
|
||||
}
|
||||
//
|
||||
// Otherwise, update transmission state based on cycle count
|
||||
//
|
||||
else
|
||||
{
|
||||
//
|
||||
// If cycle count = 209, reset/re-enable Tx Data
|
||||
//
|
||||
if (cycleCount == 209)
|
||||
{
|
||||
sinePosition = 0;
|
||||
cycleCount = 0;
|
||||
txDataEnable = YES;
|
||||
GPIO_WritePin(GPIO_BLUE_LED1_BP, 0);
|
||||
}
|
||||
else
|
||||
{
|
||||
//
|
||||
// If cycle count = 33, disable Tx Data
|
||||
//
|
||||
if(cycleCount == 33)
|
||||
{
|
||||
txDataEnable = NO;
|
||||
}
|
||||
|
||||
//
|
||||
// If cycle count = 34, disable DMA/SPI counter
|
||||
//
|
||||
if(cycleCount == 34)
|
||||
{
|
||||
txChar = NaN;
|
||||
GPIO_WritePin(GPIO_BLUE_LED1_BP, 1);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
//
|
||||
// Clear INT flag for this timer
|
||||
//
|
||||
EPwm2Regs.ETCLR.bit.INT = 1;
|
||||
|
||||
//
|
||||
// Acknowledge this interrupt to receive more interrupts from group 3
|
||||
//
|
||||
PieCtrlRegs.PIEACK.all = PIEACK_GROUP3;
|
||||
|
||||
//
|
||||
// Restore registers saved for DMA ISR Nesting
|
||||
//
|
||||
DINT;
|
||||
PieCtrlRegs.PIEIER2.all = TempPIEIER;
|
||||
}
|
||||
|
||||
//
|
||||
// EPWM1_Init - Initialize EPWM1 configuration
|
||||
//
|
||||
void EPWM1_Init()
|
||||
{
|
||||
//
|
||||
// Setup TBCLK
|
||||
//
|
||||
EPwm1Regs.TBPRD = EPWM1_TIMER_TBPRD; // Set timer period 50 TBCLKs
|
||||
EPwm1Regs.TBPHS.bit.TBPHS = 0x0000; // Phase is 0
|
||||
EPwm1Regs.TBCTR = 0x0000; // Clear counter
|
||||
|
||||
//
|
||||
// Setup counter mode
|
||||
// NOTE: Counter enabled in main loop
|
||||
//
|
||||
EPwm1Regs.TBCTL.bit.CTRMODE = TB_FREEZE; // Freeze counter initially
|
||||
EPwm1Regs.TBCTL.bit.PHSEN = TB_DISABLE; // Disable phase loading
|
||||
EPwm1Regs.TBCTL.bit.SYNCOSEL = TB_SYNC_DISABLE;
|
||||
EPwm1Regs.TBCTL.bit.HSPCLKDIV = TB_DIV1; // Clock ratio to SYSCLKOUT
|
||||
EPwm1Regs.TBCTL.bit.CLKDIV = TB_DIV1;
|
||||
EPwm1Regs.TBCTL.bit.FREE_SOFT = 11;
|
||||
|
||||
//
|
||||
// Setup shadowing
|
||||
//
|
||||
EPwm1Regs.CMPCTL.bit.SHDWAMODE = CC_SHADOW;
|
||||
EPwm1Regs.CMPCTL.bit.SHDWBMODE = CC_SHADOW;
|
||||
EPwm1Regs.CMPCTL.bit.LOADAMODE = CC_CTR_ZERO_PRD; // Load on Zero
|
||||
EPwm1Regs.CMPCTL.bit.LOADBMODE = CC_CTR_ZERO_PRD;
|
||||
|
||||
//
|
||||
// SOC event config
|
||||
//
|
||||
EPwm1Regs.ETSEL.bit.SOCAEN = 0; // Disable SOC on A group
|
||||
EPwm1Regs.ETSEL.bit.SOCASEL = 4; // Select SOC on up-count
|
||||
EPwm1Regs.ETPS.bit.SOCAPRD = 1; // Generate pulse on 1st event
|
||||
}
|
||||
|
||||
//
|
||||
// EPWM2_Init - Initialize EPWM2 configuration
|
||||
//
|
||||
void EPWM2_Init()
|
||||
{
|
||||
//
|
||||
// Setup TBCLK
|
||||
//
|
||||
EPwm2Regs.TBPRD = EPWM2_TIMER_TBPRD; // Set timer period 16000 TBCLKs
|
||||
EPwm2Regs.TBPHS.bit.TBPHS = 0x0000; // Phase is 0
|
||||
EPwm2Regs.TBCTR = 0x0000; // Clear counter
|
||||
|
||||
//
|
||||
// Setup counter mode
|
||||
// NOTE: Counter enabled in main loop
|
||||
//
|
||||
EPwm2Regs.TBCTL.bit.CTRMODE = TB_FREEZE; // Freeze counter initially
|
||||
EPwm2Regs.TBCTL.bit.PHSEN = TB_DISABLE; // Disable phase loading
|
||||
EPwm2Regs.TBCTL.bit.HSPCLKDIV = TB_DIV4; // Clock ratio to SYSCLKOUT/4/4
|
||||
EPwm2Regs.TBCTL.bit.CLKDIV = TB_DIV4;
|
||||
|
||||
//
|
||||
// Setup shadowing
|
||||
//
|
||||
EPwm2Regs.CMPCTL.bit.SHDWAMODE = CC_SHADOW;
|
||||
EPwm2Regs.CMPCTL.bit.SHDWBMODE = CC_SHADOW;
|
||||
EPwm2Regs.CMPCTL.bit.LOADAMODE = CC_CTR_ZERO; // Load on Zero
|
||||
EPwm2Regs.CMPCTL.bit.LOADBMODE = CC_CTR_ZERO;
|
||||
|
||||
|
||||
//
|
||||
// Interrupt where we will change the Compare Values
|
||||
//
|
||||
EPwm2Regs.ETSEL.bit.INTSEL = ET_CTR_ZERO; // Select INT on Zero event
|
||||
EPwm2Regs.ETSEL.bit.INTEN = 1; // Enable INT
|
||||
EPwm2Regs.ETPS.bit.INTPRD = ET_1ST; // Generate INT on every event
|
||||
}
|
||||
|
||||
//
|
||||
// pwm_enable - Enable/disable PWM counters
|
||||
//
|
||||
void pwm_enable(Uint16 enable)
|
||||
{
|
||||
if (enable)
|
||||
{
|
||||
EPwm1Regs.TBCTL.bit.CTRMODE = TB_COUNT_UPDOWN;
|
||||
EPwm2Regs.TBCTL.bit.CTRMODE = TB_COUNT_UPDOWN;
|
||||
}
|
||||
else
|
||||
{
|
||||
EPwm1Regs.TBCTL.bit.CTRMODE = TB_FREEZE;
|
||||
EPwm2Regs.TBCTL.bit.CTRMODE = TB_FREEZE;
|
||||
// IMPORTANT: Delay to complete current SPI transaction
|
||||
DELAY_US(1000);
|
||||
}
|
||||
}
|
||||
|
||||
//
|
||||
// dma_init - DMA setup for both TX and RX channels.
|
||||
//
|
||||
void dma_init()
|
||||
{
|
||||
//
|
||||
// Initialize DMA
|
||||
//
|
||||
DMAInitialize();
|
||||
|
||||
//
|
||||
// configure DMACH5 for TX
|
||||
//
|
||||
DMACH1AddrConfig(&SpiaRegs.SPITXBUF,pingBuf);
|
||||
DMACH1BurstConfig(BURST,1,0); // Burst size, src step, dest step
|
||||
DMACH1TransferConfig(TRANSFER,0,0); // transfer size, src step, dest step
|
||||
DMACH1ModeConfig(DMA_EPWM1A,PERINT_ENABLE,ONESHOT_DISABLE,CONT_ENABLE,
|
||||
SYNC_DISABLE,SYNC_SRC,OVRFLOW_DISABLE,SIXTEEN_BIT,
|
||||
CHINT_END,CHINT_ENABLE);
|
||||
}
|
||||
|
||||
//
|
||||
// dma_start - Start the DMA process
|
||||
//
|
||||
void dma_start(void)
|
||||
{
|
||||
EALLOW;
|
||||
DmaRegs.CH1.CONTROL.bit.RUN = 1;
|
||||
EDIS;
|
||||
}
|
||||
|
||||
//
|
||||
// dma_isr - ISR DMA Channel 1
|
||||
//
|
||||
#pragma CODE_SECTION(dma_isr,".TI.ramfunc");
|
||||
__interrupt void dma_isr(void)
|
||||
{
|
||||
if(pingpongBufSel)
|
||||
{
|
||||
DMACH1AddrConfig(&SpiaRegs.SPITXBUF,(volatile Uint16 *)pongBuf);
|
||||
fill_SineTable(&pingBuf[0],sizeof(pingBuf));
|
||||
pingpongBufSel = 0;
|
||||
}
|
||||
else
|
||||
{
|
||||
DMACH1AddrConfig(&SpiaRegs.SPITXBUF,(volatile Uint16 *)pingBuf);
|
||||
fill_SineTable(&pongBuf[0],sizeof(pongBuf));
|
||||
pingpongBufSel = 1;
|
||||
}
|
||||
|
||||
PieCtrlRegs.PIEACK.all = PIEACK_GROUP7; // ACK to receive more interrupts
|
||||
// from this PIE group
|
||||
}
|
||||
|
||||
//
|
||||
// fill_SineTable - Populate SINE Table
|
||||
//
|
||||
#pragma CODE_SECTION(fill_SineTable,".TI.ramfunc");
|
||||
void fill_SineTable(Uint16 *buf, Uint16 bufSize)
|
||||
{
|
||||
//
|
||||
// Initialize synthetic firmware attenuation factor and sine step.
|
||||
//
|
||||
Uint32 dacGain;
|
||||
switch (txChar)
|
||||
{
|
||||
case SPACEFREQ:
|
||||
dacGain = GAIN_SPACE_x1024;
|
||||
sineStep = spaceSineStep;
|
||||
break;
|
||||
case MARKFREQ:
|
||||
dacGain = GAIN_MARK_x1024;
|
||||
sineStep = markSineStep;
|
||||
break;
|
||||
default:
|
||||
dacGain = 0;
|
||||
sineStep = 0;
|
||||
break;
|
||||
}
|
||||
|
||||
//
|
||||
// Transmit next data points in sine wave
|
||||
//
|
||||
Uint16 x, v;
|
||||
for(x=0;x<bufSize;x++)
|
||||
{
|
||||
//
|
||||
// NOTE: shift left 6 + shift right 10 (x1024 gain factor)
|
||||
// yields net shift right 4.
|
||||
//
|
||||
v = ((dacGain * sineTable[(Uint16)sinePosition]) >> 4) & 0xffc0;
|
||||
|
||||
// Offset to ensure linear region (0.1V < DAC_OUT < 3.2V)
|
||||
buf[x] = v + (DAC_CODE_OFFSET << 6);
|
||||
|
||||
// Calculate next step
|
||||
sinePosition += sineStep;
|
||||
|
||||
// Check for overflow
|
||||
if(sinePosition > (N_POINT-1))
|
||||
{
|
||||
sinePosition -= (N_POINT-1);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
//
|
||||
// reset_DMASineTables - Reset DMA SINE Tables
|
||||
//
|
||||
void reset_DMASineTables(void)
|
||||
{
|
||||
EALLOW;
|
||||
DmaRegs.CH1.TRANSFER_COUNT = TRANSFER;
|
||||
EDIS;
|
||||
DMACH1AddrConfig(&SpiaRegs.SPITXBUF,(volatile Uint16 *)pingBuf);
|
||||
fill_SineTable(&pingBuf[0],sizeof(pingBuf));
|
||||
fill_SineTable(&pongBuf[0],sizeof(pongBuf));
|
||||
pingpongBufSel = 1;
|
||||
}
|
||||
|
||||
//
|
||||
// End of file
|
||||
//
|
||||
+45
@@ -0,0 +1,45 @@
|
||||
<projectSpec>
|
||||
<project
|
||||
name="boostxl_afe031_f28379d_dacmode"
|
||||
device="TMS320F28379D"
|
||||
cgtVersion="22.6.0.LTS"
|
||||
products="C2000WARE"
|
||||
launchWizard="False"
|
||||
linkerCommandFile="" >
|
||||
<configuration name="CPU1_RAM"
|
||||
compilerBuildOptions="--opt_level=off -I${F28379D_DEVICE_SUPPORT_ROOT}/common/include
|
||||
-I${F28379D_DEVICE_SUPPORT_ROOT}/headers/include -v28 -ml -mt --vcu_support=vcu2 --cla_support=cla1 --float_support=fpu32 --tmu_support=tmu0 --define=CPU1 --define=_LAUNCHXL_F28379D --diag_warning=225 --diag_suppress=10063 --display_error_number"
|
||||
linkerBuildOptions="--stack_size=0x100 -l rts2800_fpu32.lib " />
|
||||
<configuration name="CPU1_FLASH"
|
||||
compilerBuildOptions="--opt_level=off -I${F28379D_DEVICE_SUPPORT_ROOT}/common/include
|
||||
-I${F28379D_DEVICE_SUPPORT_ROOT}/headers/include
|
||||
--define=_FLASH -v28 -ml -mt --vcu_support=vcu2 --cla_support=cla1 --float_support=fpu32 --tmu_support=tmu0 --define=CPU1 --define=_LAUNCHXL_F28379D --diag_warning=225 --diag_suppress=10063 --display_error_number"
|
||||
linkerBuildOptions="--stack_size=0x100 -l rts2800_fpu32.lib " />
|
||||
<pathVariable name="F28379D_DEVICE_SUPPORT_ROOT" path="../../../../../" scope="project" />
|
||||
<file action="copy" path="../../../../../common/targetConfigs/TMS320F28379D.ccxml" targetDirectory="targetConfigs" />
|
||||
<file action="copy" path="../../../../../common/cmd/2837xD_RAM_afe031_lnk_cpu1.cmd" targetDirectory="" applicableConfigurations="CPU1_RAM" />
|
||||
<file action="copy" path="../../../../../common/cmd/2837xD_FLASH_afe031_lnk_cpu1.cmd" targetDirectory="" applicableConfigurations="CPU1_FLASH" />
|
||||
<file action="copy" path="../../../../../common/source/F2837xD_CodeStartBranch.asm" targetDirectory="" />
|
||||
<file action="copy" path="../../../../../common/source/F2837xD_DefaultISR.c" targetDirectory="" />
|
||||
<file action="copy" path="../../../../../common/source/F2837xD_Dma.c" targetDirectory="" />
|
||||
<file action="copy" path="../../../../../common/source/F2837xD_EPwm.c" targetDirectory="" />
|
||||
<file action="copy" path="../../../../../common/source/F2837xD_Gpio.c" targetDirectory="" />
|
||||
<file action="copy" path="../../../../../common/source/F2837xD_Ipc.c" targetDirectory="" />
|
||||
<file action="copy" path="../../../../../common/source/F2837xD_PieCtrl.c" targetDirectory="" />
|
||||
<file action="copy" path="../../../../../common/source/F2837xD_PieVect.c" targetDirectory="" />
|
||||
<file action="copy" path="../../../../../common/source/F2837xD_SysCtrl.c" targetDirectory="" />
|
||||
<file action="copy" path="../../../../../common/source/F2837xD_usDelay.asm" targetDirectory="" />
|
||||
<file action="copy" path="../../../../../headers/source/F2837xD_GlobalVariableDefs.c" targetDirectory="" />
|
||||
<file action="copy" path="../../../../../headers/cmd/F2837xD_Headers_nonBIOS_cpu1.cmd" targetDirectory="" />
|
||||
<file action="copy" path="../afe031_config.c" targetDirectory="" />
|
||||
<file action="copy" path="../afe031_config.h" targetDirectory="" />
|
||||
<file action="copy" path="../boostxl_afe031_f28379d_dacmode_isr.h" targetDirectory="" />
|
||||
<file action="copy" path="../boostxl_afe031_f28379d_dacmode_main.c" targetDirectory="" />
|
||||
<file action="copy" path="../boostxl_afe031_F2837xD_Sci.c" targetDirectory="" />
|
||||
<file action="copy" path="../boostxl_afe031_F2837xD_Sci.h" targetDirectory="" />
|
||||
<file action="copy" path="../hal_afe031.h" targetDirectory="" />
|
||||
<file action="copy" path="../hal_spi.c" targetDirectory="" />
|
||||
<file action="copy" path="../hal_spi.h" targetDirectory="" />
|
||||
<file action="copy" path="../sine_table.h" targetDirectory="" />
|
||||
</project>
|
||||
</projectSpec>
|
||||
+22
@@ -0,0 +1,22 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<configurations XML_version="1.2" id="configurations_0">
|
||||
<configuration XML_version="1.2" id="Texas Instruments XDS100v2 USB Debug Probe_0">
|
||||
<instance XML_version="1.2" desc="Texas Instruments XDS100v2 USB Debug Probe_0" href="connections/TIXDS100v2_Connection.xml" id="Texas Instruments XDS100v2 USB Debug Probe_0" xml="TIXDS100v2_Connection.xml" xmlpath="connections"/>
|
||||
<connection XML_version="1.2" id="Texas Instruments XDS100v2 USB Debug Probe_0">
|
||||
<instance XML_version="1.2" href="drivers/tixds100v2icepick_c.xml" id="drivers" xml="tixds100v2icepick_c.xml" xmlpath="drivers"/>
|
||||
<instance XML_version="1.2" href="drivers/tixds100v2c28x.xml" id="drivers" xml="tixds100v2c28x.xml" xmlpath="drivers"/>
|
||||
<instance XML_version="1.2" href="drivers/tixds100v2cla1.xml" id="drivers" xml="tixds100v2cla1.xml" xmlpath="drivers"/>
|
||||
<instance XML_version="1.2" href="drivers/tixds100v2cs_child.xml" id="drivers" xml="tixds100v2cs_child.xml" xmlpath="drivers"/>
|
||||
<platform XML_version="1.2" id="platform_0">
|
||||
<instance XML_version="1.2" desc="TMS320F28377D_0" href="devices/tms320f28377d.xml" id="TMS320F28377D_0" xml="tms320f28377d.xml" xmlpath="devices"/>
|
||||
<device HW_revision="1" XML_version="1.2" description="" id="TMS320F28377D_0" partnum="TMS320F28377D">
|
||||
<router HW_revision="1.0" XML_version="1.2" description="ICEPick_C router" id="IcePick_C_0" isa="ICEPICK_C">
|
||||
<subpath id="Subpath_1">
|
||||
<property Type="numericfield" Value="0x11" desc="Port Number_0" id="Port Number"/>
|
||||
</subpath>
|
||||
</router>
|
||||
</device>
|
||||
</platform>
|
||||
</connection>
|
||||
</configuration>
|
||||
</configurations>
|
||||
+364
@@ -0,0 +1,364 @@
|
||||
//#############################################################################
|
||||
//
|
||||
// FILE: hal_afe031.h
|
||||
//
|
||||
// TITLE: AFE031 Functions
|
||||
//
|
||||
//###########################################################################
|
||||
//
|
||||
//
|
||||
// $Copyright:
|
||||
// Copyright (C) 2013-2024 Texas Instruments Incorporated - http://www.ti.com/
|
||||
//
|
||||
// Redistribution and use in source and binary forms, with or without
|
||||
// modification, are permitted provided that the following conditions
|
||||
// are met:
|
||||
//
|
||||
// Redistributions of source code must retain the above copyright
|
||||
// notice, this list of conditions and the following disclaimer.
|
||||
//
|
||||
// Redistributions in binary form must reproduce the above copyright
|
||||
// notice, this list of conditions and the following disclaimer in the
|
||||
// documentation and/or other materials provided with the
|
||||
// distribution.
|
||||
//
|
||||
// Neither the name of Texas Instruments Incorporated nor the names of
|
||||
// its contributors may be used to endorse or promote products derived
|
||||
// from this software without specific prior written permission.
|
||||
//
|
||||
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||
// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||
// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
||||
// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
||||
// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||
// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||
// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
||||
// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
||||
// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
// $
|
||||
//###########################################################################
|
||||
|
||||
#ifndef _HAL_AFE031_H
|
||||
#define _HAL_AFE031_H
|
||||
|
||||
//
|
||||
// Included Files
|
||||
//
|
||||
#include "F28x_Project.h" // Device Headerfile and Examples Include File
|
||||
|
||||
//
|
||||
// Defines
|
||||
//
|
||||
#define UINT16 Uint16
|
||||
#define HAL_AFE031_CMD_SHIFT 8
|
||||
#define HAL_AFE031_CMD_MASK 0xFF
|
||||
#define HAL_AFE031_DATA_SHIFT 0
|
||||
#define HAL_AFE031_DATA_MASK 0xFF
|
||||
|
||||
#define HAL_AFE031_CMD_WR 0x0
|
||||
#define HAL_AFE031_CMD_RD 0x8
|
||||
#define HAL_AFE031_CMD_RW_SHIFT 4
|
||||
#define HAL_AFE031_CMD_RW_MASK 0xF
|
||||
|
||||
#define HAL_AFE031_ENABLE_REG 0x1
|
||||
#define HAL_AFE031_ENABLE2_REG 0x3
|
||||
#define HAL_AFE031_GAINSEL_REG 0x2
|
||||
#define HAL_AFE031_CTRL_REG 0x4
|
||||
#define HAL_AFE031_CTRL2_REG 0x5
|
||||
#define HAL_AFE031_FUSE1_REG 0x8
|
||||
#define HAL_AFE031_RESET_REG 0x9
|
||||
#define HAL_AFE031_DIEID_REG 0xA
|
||||
#define HAL_AFE031_REV_REG 0xB
|
||||
#define HAL_AFE031_IFLAG_REG 0xC
|
||||
|
||||
/* Register Bit Definitions */
|
||||
/* Enable Register */
|
||||
#define HAL_AFE031_ENABLE_PA 0x1
|
||||
#define HAL_AFE031_ENABLE_TX 0x2
|
||||
#define HAL_AFE031_ENABLE_RX 0x4
|
||||
#define HAL_AFE031_ENABLE_ERX 0x8
|
||||
#define HAL_AFE031_ENABLE_ETX 0x10
|
||||
#define HAL_AFE031_ENABLE_DAC 0x20
|
||||
|
||||
/* Enable2 Register */
|
||||
#define HAL_AFE031_ENABLE2_ZC 0x1
|
||||
#define HAL_AFE031_ENABLE2_REF1 0x2
|
||||
#define HAL_AFE031_ENABLE2_REF2 0x4
|
||||
#define HAL_AFE031_ENABLE2_REF 0x6
|
||||
#define HAL_AFE031_ENABLE2_PAOUT 0x8
|
||||
#define HAL_AFE031_ENABLE2_OVWR 0x80
|
||||
|
||||
/* Fuse1 Register */
|
||||
#define HAL_AFE031_FUSE1_TX0 0x1
|
||||
#define HAL_AFE031_FUSE1_TX1 0x2
|
||||
#define HAL_AFE031_FUSE1_TX2 0x4
|
||||
#define HAL_AFE031_FUSE1_TX3 0x8
|
||||
#define HAL_AFE031_FUSE1_RX0 0x10
|
||||
#define HAL_AFE031_FUSE1_RX1 0x20
|
||||
#define HAL_AFE031_FUSE1_RX2 0x40
|
||||
#define HAL_AFE031_FUSE1_RX3 0x80
|
||||
|
||||
/* Reset Register */
|
||||
#define HAL_AFE031_RESET_SOFTRST0 0x4 //write only
|
||||
#define HAL_AFE031_RESET_SOFTRST1 0x8 //write only
|
||||
#define HAL_AFE031_RESET_SOFTRST2 0x10 //write only
|
||||
#define HAL_AFE031_RESET_SOFTRST_MASK 0x1C
|
||||
#define HAL_AFE031_RESET_SOFTRST 0x14 //101 to reset
|
||||
#define HAL_AFE031_RESET_TFLAG 0x20 //read only (status)
|
||||
#define HAL_AFE031_RESET_IFLAG 0x40 //read only (status)
|
||||
#define HAL_AFE031_RESET_PWRFLAG 0x80 //read only (status)
|
||||
|
||||
/* Gain Select Register */
|
||||
#define HAL_AFE031_GAINSEL_RXGAIN_MASK 0xF //b3-0
|
||||
#define HAL_AFE031_GAINSEL_TXGAIN_MASK 0x3 //b5b4
|
||||
#define HAL_AFE031_GAINSEL_TXGAIN_SHIFT 0x4
|
||||
|
||||
/* Control Register */
|
||||
#define HAL_AFE031_CTRL_TXCAL 0x1 //b0
|
||||
#define HAL_AFE031_CTRL_RXCAL 0x2 //b1
|
||||
#define HAL_AFE031_CTRL_TXPGACAL 0x4 //b2
|
||||
#define HAL_AFE031_CTRL_BAND 0x8 //b3 (0-A; 1-BCD)
|
||||
#define HAL_AFE031_CTRL_ABAND 0
|
||||
#define HAL_AFE031_CTRL_BCDBAND 1
|
||||
#define HAL_AFE031_CTRL_BAND_SHIFT 3
|
||||
#define HAL_AFE031_CTRL_TXFLAG 0x40 //b6 (read only)
|
||||
#define HAL_AFE031_CTRL_RXFLAG 0x80 //b7 (read only)
|
||||
|
||||
/* Control2 Register */
|
||||
#define HAL_AFE031_CTRL2_TFLAG 0x20 //b5
|
||||
#define HAL_AFE031_CTRL2_IFLAG 0x40 //b6
|
||||
#define HAL_AFE031_CTRL2_PFLAG 0x80 //b7
|
||||
|
||||
#define HAL_AFE031_BIAS_ON_DELAY 2000 //in us
|
||||
|
||||
/* For true SPI (F28035), 10-bit SPI I/F for DAC
|
||||
For McBSP/SPI, 12-bit I/F for DAC */
|
||||
//#ifdef F2803X
|
||||
#define HAL_AFE031_SPI_DAC_LEN 10
|
||||
|
||||
#define HAL_AFE031_SPI_DEFAULT_LEN 16
|
||||
|
||||
typedef enum
|
||||
{
|
||||
HAL_AFE031_ABAND = 0,
|
||||
HAL_AFE031_BCDBAND = 1
|
||||
}HAL_afe031_band_t;
|
||||
|
||||
/*****************************************************************************/
|
||||
/* Macro Definistions */
|
||||
/*****************************************************************************/
|
||||
#define HAL_afe031_softReset() \
|
||||
{HAL_afe031_reg_s.reset.bits.SOFT_RST = HAL_AFE031_RESET_SOFTRST;\
|
||||
HAL_afe031_regWrite(HAL_AFE031_RESET_REG, HAL_afe031_reg_s.reset.all);}
|
||||
|
||||
#define HAL_afe031_biasEnable() \
|
||||
{HAL_afe031_reg_s.enable2.bits.REF = 3; \
|
||||
HAL_afe031_regWrite(HAL_AFE031_ENABLE2_REG, HAL_afe031_reg_s.enable2.all);\
|
||||
DELAY_US(HAL_AFE031_BIAS_ON_DELAY);}
|
||||
|
||||
#define HAL_afe031_txDACEnable() \
|
||||
{HAL_afe031_reg_s.enable.bits.TX = 1; \
|
||||
HAL_afe031_reg_s.enable.bits.DAC = 1; \
|
||||
HAL_afe031_reg_s.enable.bits.PA = 1; \
|
||||
HAL_afe031_regWrite(HAL_AFE031_ENABLE_REG, HAL_afe031_reg_s.enable.all); \
|
||||
DELAY_US(2); \
|
||||
HAL_afe031_reg_s.enable2.bits.PA_OUT = 1; \
|
||||
HAL_afe031_regWrite(HAL_AFE031_ENABLE2_REG, HAL_afe031_reg_s.enable2.all); }
|
||||
|
||||
#define HAL_afe031_txPWMEnable() \
|
||||
{HAL_afe031_reg_s.enable.bits.TX = 1; \
|
||||
HAL_afe031_reg_s.enable.bits.DAC = 0; \
|
||||
HAL_afe031_reg_s.enable.bits.PA = 1; \
|
||||
HAL_afe031_regWrite(HAL_AFE031_ENABLE_REG, HAL_afe031_reg_s.enable.all); \
|
||||
DELAY_US(2); \
|
||||
HAL_afe031_reg_s.enable2.bits.PA_OUT = 1; \
|
||||
HAL_afe031_regWrite(HAL_AFE031_ENABLE2_REG, HAL_afe031_reg_s.enable2.all); }
|
||||
|
||||
#define HAL_afe031_txDisable() \
|
||||
{HAL_afe031_reg_s.enable2.bits.PA_OUT = 0; \
|
||||
HAL_afe031_regWrite(HAL_AFE031_ENABLE2_REG, HAL_afe031_reg_s.enable2.all); \
|
||||
HAL_afe031_reg_s.enable.bits.TX = 0; \
|
||||
HAL_afe031_reg_s.enable.bits.PA = 0; \
|
||||
HAL_afe031_regWrite(HAL_AFE031_ENABLE_REG, HAL_afe031_reg_s.enable.all);}
|
||||
|
||||
#define HAL_afe031_dacEnable() \
|
||||
{HAL_afe031_reg_s.enable.bits.DAC = 1; \
|
||||
HAL_afe031_regWrite(HAL_AFE031_ENABLE_REG, HAL_afe031_reg_s.enable.all); \
|
||||
DELAY_US(2); \
|
||||
HAL_afe031_cfgWdLen(HAL_AFE031_SPI_DAC_LEN); \
|
||||
GPIO_WritePin(2, 1);}
|
||||
|
||||
|
||||
#define HAL_afe031_dacDisable() \
|
||||
{GpioDataRegs.GPADAT.bit.GPIO7 = 0; \
|
||||
DELAY_US(10); \
|
||||
HAL_afe031_cfgWdLen(HAL_AFE031_SPI_DEFAULT_LEN); \
|
||||
GPIO_WritePin(2, 0); \
|
||||
HAL_afe031_regWrite(HAL_AFE031_ENABLE_REG, HAL_afe031_reg_s.enable.all);}
|
||||
|
||||
|
||||
#define HAL_afe031_rxEnable() \
|
||||
{HAL_afe031_reg_s.enable.bits.RX = 1; \
|
||||
HAL_afe031_regWrite(HAL_AFE031_ENABLE_REG, HAL_afe031_reg_s.enable.all);}
|
||||
|
||||
#define HAL_afe031_rxDisable() \
|
||||
{HAL_afe031_reg_s.enable.bits.RX = 0; \
|
||||
HAL_afe031_regWrite(HAL_AFE031_ENABLE_REG, HAL_afe031_reg_s.enable.all);}
|
||||
|
||||
#define HAL_afe031_bandSelect(band) \
|
||||
{HAL_afe031_reg_s.control.bits.CA_BCD = band; \
|
||||
HAL_afe031_regWrite(HAL_AFE031_CTRL_REG, HAL_afe031_reg_s.control.all);}
|
||||
|
||||
#define HAL_afe031_zcEnable() \
|
||||
{ HAL_afe031_reg_s.enable2.bits.ZC = 1;\
|
||||
HAL_afe031_regWrite(HAL_AFE031_ENABLE2_REG, HAL_afe031_reg_s.enable2.all);}
|
||||
|
||||
/*****************************************************************************/
|
||||
/* Data Structures */
|
||||
/*****************************************************************************/
|
||||
typedef struct
|
||||
{
|
||||
UINT16 PA :1; //b0 - PA enable
|
||||
UINT16 TX :1; //b1 - TX enable
|
||||
UINT16 RX :1; //b2 - RX enable
|
||||
UINT16 ERX :1; //b3 - ERX enable
|
||||
UINT16 ETX :1; //b4 - ETX enable
|
||||
UINT16 DAC :1; //b5 - DAC enable
|
||||
UINT16 rsvd :10; //reserved
|
||||
}HAL_afe031_enable_t;
|
||||
|
||||
typedef struct
|
||||
{
|
||||
UINT16 ZC :1; //b0 - ZC enable
|
||||
UINT16 REF :2; //b2:1 - Ref12Ref1 enable
|
||||
UINT16 PA_OUT :1; //b3 - PA out enable
|
||||
UINT16 rsvd :3; //b6:4 - reserved
|
||||
UINT16 OVWR :1; //Fuse1 overwrite enable
|
||||
UINT16 rsvd1 :8; //reserved
|
||||
}HAL_afe031_enable2_t;
|
||||
|
||||
typedef struct
|
||||
{
|
||||
UINT16 RXG :4; //b1:0 - RX PGA1 gain
|
||||
//b3:2 - RX PGA2 gain
|
||||
UINT16 TXG :2; //b5:4 - TX PGA gain
|
||||
UINT16 rsvd :10; //b15:6 reserved
|
||||
}HAL_afe031_gain_sel_t;
|
||||
|
||||
typedef struct
|
||||
{
|
||||
UINT16 TX_CAL :1; //b0 - TX calibration enable
|
||||
UINT16 RX_CAL :1; //b1 - RX calibration enable
|
||||
UINT16 TXPGA_CAL :1; //b2 - TXPGA calibration enable
|
||||
UINT16 CA_BCD :1; //b3 - Cenelec A (0) or BCD (1) band
|
||||
UINT16 rsvd :2; //b5:4 - reserved
|
||||
UINT16 TX_FLAG :1; //b6 - TX flag status (read only)
|
||||
UINT16 RX_FLAG :1; //b7 - RX flag status (read only)
|
||||
UINT16 rsvd1 :8; //reserved
|
||||
}HAL_afe031_control_t;
|
||||
|
||||
typedef struct
|
||||
{
|
||||
UINT16 rsvd :5; //b4:0 - reserved
|
||||
UINT16 TFLAG_EN :1; //b5 - TFlag enable
|
||||
UINT16 IFLAG_EN :1; //b6 - IFlag enable
|
||||
UINT16 PFLAG_EN :1; //b7 - PFlag enable
|
||||
UINT16 rsvd1 :8; //reserved
|
||||
}HAL_afe031_control2_t;
|
||||
|
||||
typedef struct
|
||||
{
|
||||
UINT16 TX_TRIM :4; //b3:0 - Each bit, 0:Clear TX trim fuse; 1:Set TX trim fuse
|
||||
UINT16 RX_TRIM :4; //b7:4 - Each bit, 0:Clear RX trim fuse; 1:Set RX trim fuse
|
||||
UINT16 rsvd :8; //reserved
|
||||
}HAL_afe031_fuse1_t;
|
||||
|
||||
typedef struct
|
||||
{
|
||||
UINT16 rsvd :2; //b1:0 - reserved
|
||||
UINT16 SOFT_RST :3; //b4:2 - Writing 101 to soft reset
|
||||
UINT16 TFLAG :1; //b5 - TFlag status (write 0 to clear)
|
||||
UINT16 IFLAG :1; //b6 - IFlag status (write 0 to clear)
|
||||
UINT16 PFLAG :1; //b7 - PFlag status (write 0 to clear)
|
||||
UINT16 rsvd1 :8; //reserved
|
||||
}HAL_afe031_reset_t;
|
||||
|
||||
|
||||
typedef struct
|
||||
{
|
||||
union
|
||||
{
|
||||
UINT16 all;
|
||||
HAL_afe031_enable_t bits;
|
||||
}enable;
|
||||
|
||||
union
|
||||
{
|
||||
UINT16 all;
|
||||
HAL_afe031_enable2_t bits;
|
||||
}enable2;
|
||||
|
||||
union
|
||||
{
|
||||
UINT16 all;
|
||||
HAL_afe031_gain_sel_t bits;
|
||||
}gain_sel;
|
||||
|
||||
union
|
||||
{
|
||||
UINT16 all;
|
||||
HAL_afe031_control_t bits;
|
||||
}control;
|
||||
|
||||
union
|
||||
{
|
||||
UINT16 all;
|
||||
HAL_afe031_control2_t bits;
|
||||
}control2;
|
||||
|
||||
union
|
||||
{
|
||||
UINT16 all;
|
||||
HAL_afe031_fuse1_t bits;
|
||||
}fuse1;
|
||||
|
||||
union
|
||||
{
|
||||
UINT16 all;
|
||||
HAL_afe031_reset_t bits;
|
||||
}reset;
|
||||
|
||||
UINT16 iflag_tm;
|
||||
|
||||
UINT16 die_id;
|
||||
|
||||
UINT16 rev;
|
||||
}HAL_afe031_reg_t;
|
||||
|
||||
//
|
||||
// Externals
|
||||
//
|
||||
extern HAL_afe031_reg_t HAL_afe031_reg_s;
|
||||
|
||||
//
|
||||
// Function Prototypes
|
||||
//
|
||||
void HAL_afe031_regWrite(UINT16 addr, UINT16 data);
|
||||
UINT16 HAL_afe031_regRead(UINT16 addr);
|
||||
void HAL_afe031_writeGain(UINT16 rxgain, UINT16 txgain);
|
||||
void HAL_afe031_clrAllInt(void);
|
||||
void HAL_afe031_cfgInt(void);
|
||||
void HAL_afe031_clrInt(UINT16 flag);
|
||||
UINT16 HAL_afe031_intAsserted(void);
|
||||
void HAL_afe031_shutdown(UINT16 sd);
|
||||
void HAL_afe031_cfgGpio(void);
|
||||
void HAL_afe031_cfgWdLen(UINT16 len);
|
||||
void HAL_afe031Init(void);
|
||||
|
||||
#endif
|
||||
|
||||
//
|
||||
// End of file
|
||||
//
|
||||
+242
@@ -0,0 +1,242 @@
|
||||
//#############################################################################
|
||||
//
|
||||
// FILE: hal_spi.c
|
||||
//
|
||||
// TITLE: HAL SPI Functions
|
||||
//
|
||||
//###########################################################################
|
||||
//
|
||||
//
|
||||
// $Copyright:
|
||||
// Copyright (C) 2013-2024 Texas Instruments Incorporated - http://www.ti.com/
|
||||
//
|
||||
// Redistribution and use in source and binary forms, with or without
|
||||
// modification, are permitted provided that the following conditions
|
||||
// are met:
|
||||
//
|
||||
// Redistributions of source code must retain the above copyright
|
||||
// notice, this list of conditions and the following disclaimer.
|
||||
//
|
||||
// Redistributions in binary form must reproduce the above copyright
|
||||
// notice, this list of conditions and the following disclaimer in the
|
||||
// documentation and/or other materials provided with the
|
||||
// distribution.
|
||||
//
|
||||
// Neither the name of Texas Instruments Incorporated nor the names of
|
||||
// its contributors may be used to endorse or promote products derived
|
||||
// from this software without specific prior written permission.
|
||||
//
|
||||
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||
// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||
// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
||||
// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
||||
// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||
// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||
// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
||||
// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
||||
// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
// $
|
||||
//###########################################################################
|
||||
|
||||
//
|
||||
// Included Files
|
||||
//
|
||||
#include "F28x_Project.h"
|
||||
#include "hal_spi.h"
|
||||
#include "afe031_config.h"
|
||||
#include "hal_afe031.h"
|
||||
|
||||
//
|
||||
// FUNCTION NAME: HAL_spi_cfg
|
||||
//
|
||||
// DESCRIPTION: Configure SPI.
|
||||
//
|
||||
// Return Value: None
|
||||
//
|
||||
// Input Parameters:
|
||||
//
|
||||
// Output Parameters:
|
||||
// Functions Called:
|
||||
// InitSpiaGpio (TI header lib)
|
||||
// HAL_spi_fifo_init
|
||||
// HAL_spi_init
|
||||
//
|
||||
void HAL_spi_cfg()
|
||||
{
|
||||
InitAFESpiGpio();
|
||||
HAL_spi_fifoInit();
|
||||
HAL_spi_init();
|
||||
}
|
||||
|
||||
void InitAFESpiGpio()
|
||||
{
|
||||
EALLOW;
|
||||
|
||||
GPIO_SetupPinOptions(58, GPIO_INPUT, GPIO_ASYNC | GPIO_PULLUP);
|
||||
GPIO_SetupPinOptions(59, GPIO_INPUT, GPIO_ASYNC | GPIO_PULLUP);
|
||||
GPIO_SetupPinOptions(61, GPIO_INPUT, GPIO_ASYNC | GPIO_PULLUP);
|
||||
GPIO_SetupPinOptions(60, GPIO_INPUT, GPIO_ASYNC | GPIO_PULLUP);
|
||||
|
||||
GPIO_SetupPinMux(58, GPIO_MUX_CPU1, 15);
|
||||
GPIO_SetupPinMux(59, GPIO_MUX_CPU1, 15);
|
||||
GPIO_SetupPinMux(60, GPIO_MUX_CPU1, 15);
|
||||
GPIO_SetupPinMux(61, GPIO_MUX_CPU1, 15);
|
||||
|
||||
EDIS;
|
||||
}
|
||||
|
||||
//
|
||||
// FUNCTION NAME: HAL_spi_init
|
||||
//
|
||||
// DESCRIPTION: Initialize SPI.
|
||||
//
|
||||
// Return Value: None
|
||||
//
|
||||
// Input Parameters:
|
||||
//
|
||||
// Output Parameters:
|
||||
// Functions Called:
|
||||
//
|
||||
//
|
||||
void HAL_spi_init()
|
||||
{
|
||||
EALLOW;
|
||||
ClkCfgRegs.LOSPCP.all = HAL_SPI_LSPCLK;
|
||||
EDIS;
|
||||
|
||||
SpiaRegs.SPICCR.bit.SPISWRESET = 0;
|
||||
SpiaRegs.SPICCR.bit.CLKPOLARITY = 1;
|
||||
SpiaRegs.SPICCR.bit.SPILBK = 0;
|
||||
SpiaRegs.SPICCR.bit.SPICHAR = 15; //16-bit character
|
||||
SpiaRegs.SPICCR.bit.HS_MODE = 0x1;
|
||||
SpiaRegs.SPICTL.bit.SPIINTENA = 0; // Interrupt disable
|
||||
SpiaRegs.SPICTL.bit.TALK = 1; // Transmit enable
|
||||
SpiaRegs.SPICTL.bit.MASTER_SLAVE = 1; //Master
|
||||
SpiaRegs.SPICTL.bit.CLK_PHASE = 0; //Normal phase, depending on SPICCR.6 (CLOCK_POLARITY)
|
||||
SpiaRegs.SPICTL.bit.OVERRUNINTENA = 0; //Overrun interrupt disable
|
||||
|
||||
SpiaRegs.SPIBRR.bit.SPI_BIT_RATE = HAL_SPI_BRR;
|
||||
|
||||
SpiaRegs.SPIPRI.bit.FREE = 1; // Set so breakpoints don't disturb xmission
|
||||
|
||||
SpiaRegs.SPICCR.bit.SPISWRESET = 1; // Ready to transmit
|
||||
}
|
||||
|
||||
//
|
||||
// FUNCTION NAME: HAL_spi_xmt
|
||||
//
|
||||
// DESCRIPTION: SPI transmit.
|
||||
//
|
||||
// Return Value: None
|
||||
//
|
||||
// Input Parameters: val to be transmitted
|
||||
//
|
||||
// Output Parameters:
|
||||
// Functions Called:
|
||||
//
|
||||
//
|
||||
UINT16 spiXmtErrState = 0;
|
||||
void HAL_spi_xmt(Uint16 a)
|
||||
{
|
||||
SpiaRegs.SPITXBUF = a;
|
||||
}
|
||||
|
||||
//
|
||||
// FUNCTION NAME: PHY_spiFifoInit
|
||||
//
|
||||
// DESCRIPTION: Initialize SPI FIFO.
|
||||
//
|
||||
// Return Value: None
|
||||
//
|
||||
// Input Parameters:
|
||||
//
|
||||
// Output Parameters:
|
||||
// Functions Called:
|
||||
//
|
||||
//
|
||||
void HAL_spi_fifoInit()
|
||||
{
|
||||
//
|
||||
// Initialize SPI FIFO registers
|
||||
//
|
||||
SpiaRegs.SPIFFTX.all = HAL_SPI_FFTX;
|
||||
SpiaRegs.SPIFFRX.all = HAL_SPI_FFRX;
|
||||
SpiaRegs.SPIFFCT.all = 0x0;
|
||||
}
|
||||
|
||||
//
|
||||
// FUNCTION NAME: HAL_spi_writeGain
|
||||
//
|
||||
// DESCRIPTION: AFE start. Start DMA, adc SOC.
|
||||
//
|
||||
// Return Value: None
|
||||
//
|
||||
// Input Parameters: val - gain to be written to PGA
|
||||
//
|
||||
// Output Parameters:
|
||||
// Functions Called:
|
||||
//
|
||||
//
|
||||
void HAL_spi_writeGain(Uint16 val)
|
||||
{
|
||||
Uint16 regVal;
|
||||
|
||||
regVal = (HAL_SPI_PGA_WRITE << HAL_SPI_PGA_RWSHIFT)
|
||||
| ((val & 0xF) << HAL_SPI_PGA_GAINSHIFT) |
|
||||
HAL_SPI_PGA_CH1;
|
||||
HAL_spi_xmt(regVal);
|
||||
}
|
||||
|
||||
//
|
||||
// FUNCTION NAME: HAL_spi_cfgWdLen
|
||||
//
|
||||
// DESCRIPTION: Configure word length.
|
||||
//
|
||||
// Return Value: None
|
||||
//
|
||||
// Input Parameters: val - length
|
||||
//
|
||||
// Output Parameters:
|
||||
// Functions Called:
|
||||
//
|
||||
//
|
||||
void HAL_spi_cfgWdLen(Uint16 val)
|
||||
{
|
||||
|
||||
SpiaRegs.SPICCR.bit.SPICHAR = val - 1;
|
||||
|
||||
}
|
||||
|
||||
//
|
||||
// FUNCTION NAME: HAL_spi_read
|
||||
//
|
||||
// DESCRIPTION: SPI read.
|
||||
//
|
||||
// Return Value: None
|
||||
//
|
||||
// Input Parameters:
|
||||
//
|
||||
// Output Parameters:
|
||||
// Functions Called:
|
||||
//
|
||||
//
|
||||
Uint16 HAL_spi_read(Uint16 a)
|
||||
{
|
||||
|
||||
SpiaRegs.SPITXBUF = a;
|
||||
/* Need to check out */
|
||||
DELAY_US(2);
|
||||
/* Write a dummy */
|
||||
SpiaRegs.SPITXBUF = 0xFFFF;
|
||||
DELAY_US(2);
|
||||
|
||||
return SpiaRegs.SPIDAT;
|
||||
|
||||
}
|
||||
|
||||
//
|
||||
// End of file
|
||||
//
|
||||
|
||||
+88
@@ -0,0 +1,88 @@
|
||||
//#############################################################################
|
||||
//
|
||||
// FILE: hal_spi.h
|
||||
//
|
||||
// TITLE: HAL SPI Functions
|
||||
//
|
||||
//###########################################################################
|
||||
//
|
||||
//
|
||||
// $Copyright:
|
||||
// Copyright (C) 2013-2024 Texas Instruments Incorporated - http://www.ti.com/
|
||||
//
|
||||
// Redistribution and use in source and binary forms, with or without
|
||||
// modification, are permitted provided that the following conditions
|
||||
// are met:
|
||||
//
|
||||
// Redistributions of source code must retain the above copyright
|
||||
// notice, this list of conditions and the following disclaimer.
|
||||
//
|
||||
// Redistributions in binary form must reproduce the above copyright
|
||||
// notice, this list of conditions and the following disclaimer in the
|
||||
// documentation and/or other materials provided with the
|
||||
// distribution.
|
||||
//
|
||||
// Neither the name of Texas Instruments Incorporated nor the names of
|
||||
// its contributors may be used to endorse or promote products derived
|
||||
// from this software without specific prior written permission.
|
||||
//
|
||||
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||
// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||
// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
||||
// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
||||
// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||
// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||
// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
||||
// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
||||
// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
// $
|
||||
//###########################################################################
|
||||
|
||||
#ifndef _HAL_SPI_H
|
||||
#define _HAL_SPI_H
|
||||
|
||||
//
|
||||
// Defines
|
||||
//
|
||||
|
||||
/* LSPCLK = SYSCLK/2/LSPCLK */
|
||||
/* SPICLK = LSPCLK/(BRR+1) */
|
||||
/* SYSCLK=100MHz, SPICLK=100/4/5=5MHz */
|
||||
|
||||
#define HAL_SPI_LSPCLK 1 //LSPCLK=SYSCLK
|
||||
|
||||
#define HAL_SPI_CCR_RST0 0x0F
|
||||
#define HAL_SPI_CCR_RST1 0x8F
|
||||
#define HAL_SPI_CTL_MSTR 0x06
|
||||
#define HAL_SPI_FFTX 0xE040
|
||||
#define HAL_SPI_FFRX 0x204F
|
||||
|
||||
/* PGA112 */
|
||||
#define HAL_SPI_PGA_READ 0x6A
|
||||
#define HAL_SPI_PGA_WRITE 0x2A
|
||||
#define HAL_SPI_PGA_RWSHIFT 8
|
||||
#define HAL_SPI_PGA_GAINSHIFT 4
|
||||
#define HAL_SPI_PGA_CH0 0x0
|
||||
#define HAL_SPI_PGA_CH1 0x1
|
||||
|
||||
//
|
||||
// Function Prototypes
|
||||
//
|
||||
void HAL_spi_cfg();
|
||||
void HAL_spi_init();
|
||||
void HAL_spi_xmt(Uint16 a);
|
||||
void HAL_spi_fifoInit();
|
||||
void HAL_spi_writeGain(Uint16 val);
|
||||
void InitAFESpiGpio();
|
||||
void HAL_spi_cfgWdLen(Uint16 val);
|
||||
Uint16 HAL_spi_read(Uint16 a);
|
||||
|
||||
|
||||
#endif
|
||||
|
||||
//
|
||||
// End of file
|
||||
//
|
||||
|
||||
+258
@@ -0,0 +1,258 @@
|
||||
//#############################################################################
|
||||
//
|
||||
// FILE: sine_table.h
|
||||
//
|
||||
// TITLE: SINE Table
|
||||
//
|
||||
//###########################################################################
|
||||
//
|
||||
//
|
||||
// $Copyright:
|
||||
// Copyright (C) 2013-2024 Texas Instruments Incorporated - http://www.ti.com/
|
||||
//
|
||||
// Redistribution and use in source and binary forms, with or without
|
||||
// modification, are permitted provided that the following conditions
|
||||
// are met:
|
||||
//
|
||||
// Redistributions of source code must retain the above copyright
|
||||
// notice, this list of conditions and the following disclaimer.
|
||||
//
|
||||
// Redistributions in binary form must reproduce the above copyright
|
||||
// notice, this list of conditions and the following disclaimer in the
|
||||
// documentation and/or other materials provided with the
|
||||
// distribution.
|
||||
//
|
||||
// Neither the name of Texas Instruments Incorporated nor the names of
|
||||
// its contributors may be used to endorse or promote products derived
|
||||
// from this software without specific prior written permission.
|
||||
//
|
||||
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||
// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||
// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
||||
// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
||||
// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||
// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||
// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
||||
// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
||||
// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
// $
|
||||
//###########################################################################
|
||||
|
||||
#ifndef SINE_TABLE_H_
|
||||
#define SINE_TABLE_H_
|
||||
|
||||
#pragma DATA_SECTION(sineTable, "SINETABLE");
|
||||
|
||||
const Uint16 sineTable[] = {
|
||||
0x200,0x200,0x201,0x202,0x203,0x203,0x204,0x205,0x206,0x207,0x207,0x208,0x209,0x20a,0x20a,0x20b,0x20c,0x20d,0x20e,0x20e,
|
||||
0x20f,0x210,0x211,0x212,0x212,0x213,0x214,0x215,0x215,0x216,0x217,0x218,0x219,0x219,0x21a,0x21b,0x21c,0x21d,0x21d,0x21e,
|
||||
0x21f,0x220,0x220,0x221,0x222,0x223,0x224,0x224,0x225,0x226,0x227,0x227,0x228,0x229,0x22a,0x22b,0x22b,0x22c,0x22d,0x22e,
|
||||
0x22f,0x22f,0x230,0x231,0x232,0x232,0x233,0x234,0x235,0x236,0x236,0x237,0x238,0x239,0x239,0x23a,0x23b,0x23c,0x23d,0x23d,
|
||||
0x23e,0x23f,0x240,0x240,0x241,0x242,0x243,0x244,0x244,0x245,0x246,0x247,0x247,0x248,0x249,0x24a,0x24b,0x24b,0x24c,0x24d,
|
||||
0x24e,0x24e,0x24f,0x250,0x251,0x252,0x252,0x253,0x254,0x255,0x255,0x256,0x257,0x258,0x258,0x259,0x25a,0x25b,0x25c,0x25c,
|
||||
0x25d,0x25e,0x25f,0x25f,0x260,0x261,0x262,0x263,0x263,0x264,0x265,0x266,0x266,0x267,0x268,0x269,0x269,0x26a,0x26b,0x26c,
|
||||
0x26d,0x26d,0x26e,0x26f,0x270,0x270,0x271,0x272,0x273,0x273,0x274,0x275,0x276,0x276,0x277,0x278,0x279,0x279,0x27a,0x27b,
|
||||
0x27c,0x27d,0x27d,0x27e,0x27f,0x280,0x280,0x281,0x282,0x283,0x283,0x284,0x285,0x286,0x286,0x287,0x288,0x289,0x289,0x28a,
|
||||
0x28b,0x28c,0x28c,0x28d,0x28e,0x28f,0x28f,0x290,0x291,0x292,0x292,0x293,0x294,0x295,0x295,0x296,0x297,0x298,0x298,0x299,
|
||||
0x29a,0x29b,0x29b,0x29c,0x29d,0x29e,0x29e,0x29f,0x2a0,0x2a1,0x2a1,0x2a2,0x2a3,0x2a4,0x2a4,0x2a5,0x2a6,0x2a7,0x2a7,0x2a8,
|
||||
0x2a9,0x2aa,0x2aa,0x2ab,0x2ac,0x2ad,0x2ad,0x2ae,0x2af,0x2b0,0x2b0,0x2b1,0x2b2,0x2b2,0x2b3,0x2b4,0x2b5,0x2b5,0x2b6,0x2b7,
|
||||
0x2b8,0x2b8,0x2b9,0x2ba,0x2bb,0x2bb,0x2bc,0x2bd,0x2bd,0x2be,0x2bf,0x2c0,0x2c0,0x2c1,0x2c2,0x2c3,0x2c3,0x2c4,0x2c5,0x2c5,
|
||||
0x2c6,0x2c7,0x2c8,0x2c8,0x2c9,0x2ca,0x2ca,0x2cb,0x2cc,0x2cd,0x2cd,0x2ce,0x2cf,0x2cf,0x2d0,0x2d1,0x2d2,0x2d2,0x2d3,0x2d4,
|
||||
0x2d5,0x2d5,0x2d6,0x2d7,0x2d7,0x2d8,0x2d9,0x2d9,0x2da,0x2db,0x2dc,0x2dc,0x2dd,0x2de,0x2de,0x2df,0x2e0,0x2e1,0x2e1,0x2e2,
|
||||
0x2e3,0x2e3,0x2e4,0x2e5,0x2e5,0x2e6,0x2e7,0x2e8,0x2e8,0x2e9,0x2ea,0x2ea,0x2eb,0x2ec,0x2ec,0x2ed,0x2ee,0x2ef,0x2ef,0x2f0,
|
||||
0x2f1,0x2f1,0x2f2,0x2f3,0x2f3,0x2f4,0x2f5,0x2f5,0x2f6,0x2f7,0x2f8,0x2f8,0x2f9,0x2fa,0x2fa,0x2fb,0x2fc,0x2fc,0x2fd,0x2fe,
|
||||
0x2fe,0x2ff,0x300,0x300,0x301,0x302,0x302,0x303,0x304,0x304,0x305,0x306,0x306,0x307,0x308,0x308,0x309,0x30a,0x30a,0x30b,
|
||||
0x30c,0x30c,0x30d,0x30e,0x30e,0x30f,0x310,0x310,0x311,0x312,0x312,0x313,0x314,0x314,0x315,0x316,0x316,0x317,0x318,0x318,
|
||||
0x319,0x31a,0x31a,0x31b,0x31c,0x31c,0x31d,0x31e,0x31e,0x31f,0x320,0x320,0x321,0x322,0x322,0x323,0x323,0x324,0x325,0x325,
|
||||
0x326,0x327,0x327,0x328,0x329,0x329,0x32a,0x32a,0x32b,0x32c,0x32c,0x32d,0x32e,0x32e,0x32f,0x330,0x330,0x331,0x331,0x332,
|
||||
0x333,0x333,0x334,0x335,0x335,0x336,0x336,0x337,0x338,0x338,0x339,0x33a,0x33a,0x33b,0x33b,0x33c,0x33d,0x33d,0x33e,0x33f,
|
||||
0x33f,0x340,0x340,0x341,0x342,0x342,0x343,0x343,0x344,0x345,0x345,0x346,0x346,0x347,0x348,0x348,0x349,0x349,0x34a,0x34b,
|
||||
0x34b,0x34c,0x34c,0x34d,0x34e,0x34e,0x34f,0x34f,0x350,0x351,0x351,0x352,0x352,0x353,0x353,0x354,0x355,0x355,0x356,0x356,
|
||||
0x357,0x358,0x358,0x359,0x359,0x35a,0x35a,0x35b,0x35c,0x35c,0x35d,0x35d,0x35e,0x35e,0x35f,0x360,0x360,0x361,0x361,0x362,
|
||||
0x362,0x363,0x364,0x364,0x365,0x365,0x366,0x366,0x367,0x368,0x368,0x369,0x369,0x36a,0x36a,0x36b,0x36b,0x36c,0x36c,0x36d,
|
||||
0x36e,0x36e,0x36f,0x36f,0x370,0x370,0x371,0x371,0x372,0x372,0x373,0x374,0x374,0x375,0x375,0x376,0x376,0x377,0x377,0x378,
|
||||
0x378,0x379,0x379,0x37a,0x37a,0x37b,0x37c,0x37c,0x37d,0x37d,0x37e,0x37e,0x37f,0x37f,0x380,0x380,0x381,0x381,0x382,0x382,
|
||||
0x383,0x383,0x384,0x384,0x385,0x385,0x386,0x386,0x387,0x387,0x388,0x388,0x389,0x389,0x38a,0x38a,0x38b,0x38b,0x38c,0x38c,
|
||||
0x38d,0x38d,0x38e,0x38e,0x38f,0x38f,0x390,0x390,0x391,0x391,0x392,0x392,0x393,0x393,0x394,0x394,0x395,0x395,0x396,0x396,
|
||||
0x397,0x397,0x398,0x398,0x398,0x399,0x399,0x39a,0x39a,0x39b,0x39b,0x39c,0x39c,0x39d,0x39d,0x39e,0x39e,0x39f,0x39f,0x39f,
|
||||
0x3a0,0x3a0,0x3a1,0x3a1,0x3a2,0x3a2,0x3a3,0x3a3,0x3a3,0x3a4,0x3a4,0x3a5,0x3a5,0x3a6,0x3a6,0x3a7,0x3a7,0x3a7,0x3a8,0x3a8,
|
||||
0x3a9,0x3a9,0x3aa,0x3aa,0x3ab,0x3ab,0x3ab,0x3ac,0x3ac,0x3ad,0x3ad,0x3ae,0x3ae,0x3ae,0x3af,0x3af,0x3b0,0x3b0,0x3b0,0x3b1,
|
||||
0x3b1,0x3b2,0x3b2,0x3b3,0x3b3,0x3b3,0x3b4,0x3b4,0x3b5,0x3b5,0x3b5,0x3b6,0x3b6,0x3b7,0x3b7,0x3b7,0x3b8,0x3b8,0x3b9,0x3b9,
|
||||
0x3b9,0x3ba,0x3ba,0x3bb,0x3bb,0x3bb,0x3bc,0x3bc,0x3bd,0x3bd,0x3bd,0x3be,0x3be,0x3be,0x3bf,0x3bf,0x3c0,0x3c0,0x3c0,0x3c1,
|
||||
0x3c1,0x3c1,0x3c2,0x3c2,0x3c3,0x3c3,0x3c3,0x3c4,0x3c4,0x3c4,0x3c5,0x3c5,0x3c6,0x3c6,0x3c6,0x3c7,0x3c7,0x3c7,0x3c8,0x3c8,
|
||||
0x3c8,0x3c9,0x3c9,0x3c9,0x3ca,0x3ca,0x3ca,0x3cb,0x3cb,0x3cc,0x3cc,0x3cc,0x3cd,0x3cd,0x3cd,0x3ce,0x3ce,0x3ce,0x3cf,0x3cf,
|
||||
0x3cf,0x3d0,0x3d0,0x3d0,0x3d1,0x3d1,0x3d1,0x3d2,0x3d2,0x3d2,0x3d2,0x3d3,0x3d3,0x3d3,0x3d4,0x3d4,0x3d4,0x3d5,0x3d5,0x3d5,
|
||||
0x3d6,0x3d6,0x3d6,0x3d7,0x3d7,0x3d7,0x3d7,0x3d8,0x3d8,0x3d8,0x3d9,0x3d9,0x3d9,0x3da,0x3da,0x3da,0x3da,0x3db,0x3db,0x3db,
|
||||
0x3dc,0x3dc,0x3dc,0x3dc,0x3dd,0x3dd,0x3dd,0x3de,0x3de,0x3de,0x3de,0x3df,0x3df,0x3df,0x3df,0x3e0,0x3e0,0x3e0,0x3e1,0x3e1,
|
||||
0x3e1,0x3e1,0x3e2,0x3e2,0x3e2,0x3e2,0x3e3,0x3e3,0x3e3,0x3e3,0x3e4,0x3e4,0x3e4,0x3e4,0x3e5,0x3e5,0x3e5,0x3e5,0x3e6,0x3e6,
|
||||
0x3e6,0x3e6,0x3e7,0x3e7,0x3e7,0x3e7,0x3e8,0x3e8,0x3e8,0x3e8,0x3e9,0x3e9,0x3e9,0x3e9,0x3e9,0x3ea,0x3ea,0x3ea,0x3ea,0x3eb,
|
||||
0x3eb,0x3eb,0x3eb,0x3eb,0x3ec,0x3ec,0x3ec,0x3ec,0x3ec,0x3ed,0x3ed,0x3ed,0x3ed,0x3ee,0x3ee,0x3ee,0x3ee,0x3ee,0x3ef,0x3ef,
|
||||
0x3ef,0x3ef,0x3ef,0x3ef,0x3f0,0x3f0,0x3f0,0x3f0,0x3f0,0x3f1,0x3f1,0x3f1,0x3f1,0x3f1,0x3f2,0x3f2,0x3f2,0x3f2,0x3f2,0x3f2,
|
||||
0x3f3,0x3f3,0x3f3,0x3f3,0x3f3,0x3f3,0x3f4,0x3f4,0x3f4,0x3f4,0x3f4,0x3f4,0x3f5,0x3f5,0x3f5,0x3f5,0x3f5,0x3f5,0x3f5,0x3f6,
|
||||
0x3f6,0x3f6,0x3f6,0x3f6,0x3f6,0x3f7,0x3f7,0x3f7,0x3f7,0x3f7,0x3f7,0x3f7,0x3f7,0x3f8,0x3f8,0x3f8,0x3f8,0x3f8,0x3f8,0x3f8,
|
||||
0x3f9,0x3f9,0x3f9,0x3f9,0x3f9,0x3f9,0x3f9,0x3f9,0x3f9,0x3fa,0x3fa,0x3fa,0x3fa,0x3fa,0x3fa,0x3fa,0x3fa,0x3fa,0x3fb,0x3fb,
|
||||
0x3fb,0x3fb,0x3fb,0x3fb,0x3fb,0x3fb,0x3fb,0x3fb,0x3fc,0x3fc,0x3fc,0x3fc,0x3fc,0x3fc,0x3fc,0x3fc,0x3fc,0x3fc,0x3fc,0x3fc,
|
||||
0x3fd,0x3fd,0x3fd,0x3fd,0x3fd,0x3fd,0x3fd,0x3fd,0x3fd,0x3fd,0x3fd,0x3fd,0x3fd,0x3fd,0x3fd,0x3fe,0x3fe,0x3fe,0x3fe,0x3fe,
|
||||
0x3fe,0x3fe,0x3fe,0x3fe,0x3fe,0x3fe,0x3fe,0x3fe,0x3fe,0x3fe,0x3fe,0x3fe,0x3fe,0x3fe,0x3fe,0x3fe,0x3ff,0x3ff,0x3ff,0x3ff,
|
||||
0x3ff,0x3ff,0x3ff,0x3ff,0x3ff,0x3ff,0x3ff,0x3ff,0x3ff,0x3ff,0x3ff,0x3ff,0x3ff,0x3ff,0x3ff,0x3ff,0x3ff,0x3ff,0x3ff,0x3ff,
|
||||
0x3ff,0x3ff,0x3ff,0x3ff,0x3ff,0x3ff,0x3ff,0x3ff,0x3ff,0x3ff,0x3ff,0x3ff,0x3ff,0x3ff,0x3ff,0x3ff,0x3ff,0x3ff,0x3ff,0x3ff,
|
||||
0x3ff,0x3ff,0x3ff,0x3ff,0x3ff,0x3ff,0x3ff,0x3ff,0x3ff,0x3ff,0x3ff,0x3ff,0x3ff,0x3fe,0x3fe,0x3fe,0x3fe,0x3fe,0x3fe,0x3fe,
|
||||
0x3fe,0x3fe,0x3fe,0x3fe,0x3fe,0x3fe,0x3fe,0x3fe,0x3fe,0x3fe,0x3fe,0x3fe,0x3fe,0x3fe,0x3fd,0x3fd,0x3fd,0x3fd,0x3fd,0x3fd,
|
||||
0x3fd,0x3fd,0x3fd,0x3fd,0x3fd,0x3fd,0x3fd,0x3fd,0x3fd,0x3fc,0x3fc,0x3fc,0x3fc,0x3fc,0x3fc,0x3fc,0x3fc,0x3fc,0x3fc,0x3fc,
|
||||
0x3fc,0x3fb,0x3fb,0x3fb,0x3fb,0x3fb,0x3fb,0x3fb,0x3fb,0x3fb,0x3fb,0x3fa,0x3fa,0x3fa,0x3fa,0x3fa,0x3fa,0x3fa,0x3fa,0x3fa,
|
||||
0x3f9,0x3f9,0x3f9,0x3f9,0x3f9,0x3f9,0x3f9,0x3f9,0x3f9,0x3f8,0x3f8,0x3f8,0x3f8,0x3f8,0x3f8,0x3f8,0x3f7,0x3f7,0x3f7,0x3f7,
|
||||
0x3f7,0x3f7,0x3f7,0x3f7,0x3f6,0x3f6,0x3f6,0x3f6,0x3f6,0x3f6,0x3f5,0x3f5,0x3f5,0x3f5,0x3f5,0x3f5,0x3f5,0x3f4,0x3f4,0x3f4,
|
||||
0x3f4,0x3f4,0x3f4,0x3f3,0x3f3,0x3f3,0x3f3,0x3f3,0x3f3,0x3f2,0x3f2,0x3f2,0x3f2,0x3f2,0x3f2,0x3f1,0x3f1,0x3f1,0x3f1,0x3f1,
|
||||
0x3f0,0x3f0,0x3f0,0x3f0,0x3f0,0x3ef,0x3ef,0x3ef,0x3ef,0x3ef,0x3ef,0x3ee,0x3ee,0x3ee,0x3ee,0x3ee,0x3ed,0x3ed,0x3ed,0x3ed,
|
||||
0x3ec,0x3ec,0x3ec,0x3ec,0x3ec,0x3eb,0x3eb,0x3eb,0x3eb,0x3eb,0x3ea,0x3ea,0x3ea,0x3ea,0x3e9,0x3e9,0x3e9,0x3e9,0x3e9,0x3e8,
|
||||
0x3e8,0x3e8,0x3e8,0x3e7,0x3e7,0x3e7,0x3e7,0x3e6,0x3e6,0x3e6,0x3e6,0x3e5,0x3e5,0x3e5,0x3e5,0x3e4,0x3e4,0x3e4,0x3e4,0x3e3,
|
||||
0x3e3,0x3e3,0x3e3,0x3e2,0x3e2,0x3e2,0x3e2,0x3e1,0x3e1,0x3e1,0x3e1,0x3e0,0x3e0,0x3e0,0x3df,0x3df,0x3df,0x3df,0x3de,0x3de,
|
||||
0x3de,0x3de,0x3dd,0x3dd,0x3dd,0x3dc,0x3dc,0x3dc,0x3dc,0x3db,0x3db,0x3db,0x3da,0x3da,0x3da,0x3da,0x3d9,0x3d9,0x3d9,0x3d8,
|
||||
0x3d8,0x3d8,0x3d7,0x3d7,0x3d7,0x3d7,0x3d6,0x3d6,0x3d6,0x3d5,0x3d5,0x3d5,0x3d4,0x3d4,0x3d4,0x3d3,0x3d3,0x3d3,0x3d2,0x3d2,
|
||||
0x3d2,0x3d2,0x3d1,0x3d1,0x3d1,0x3d0,0x3d0,0x3d0,0x3cf,0x3cf,0x3cf,0x3ce,0x3ce,0x3ce,0x3cd,0x3cd,0x3cd,0x3cc,0x3cc,0x3cc,
|
||||
0x3cb,0x3cb,0x3ca,0x3ca,0x3ca,0x3c9,0x3c9,0x3c9,0x3c8,0x3c8,0x3c8,0x3c7,0x3c7,0x3c7,0x3c6,0x3c6,0x3c6,0x3c5,0x3c5,0x3c4,
|
||||
0x3c4,0x3c4,0x3c3,0x3c3,0x3c3,0x3c2,0x3c2,0x3c1,0x3c1,0x3c1,0x3c0,0x3c0,0x3c0,0x3bf,0x3bf,0x3be,0x3be,0x3be,0x3bd,0x3bd,
|
||||
0x3bd,0x3bc,0x3bc,0x3bb,0x3bb,0x3bb,0x3ba,0x3ba,0x3b9,0x3b9,0x3b9,0x3b8,0x3b8,0x3b7,0x3b7,0x3b7,0x3b6,0x3b6,0x3b5,0x3b5,
|
||||
0x3b5,0x3b4,0x3b4,0x3b3,0x3b3,0x3b3,0x3b2,0x3b2,0x3b1,0x3b1,0x3b0,0x3b0,0x3b0,0x3af,0x3af,0x3ae,0x3ae,0x3ae,0x3ad,0x3ad,
|
||||
0x3ac,0x3ac,0x3ab,0x3ab,0x3ab,0x3aa,0x3aa,0x3a9,0x3a9,0x3a8,0x3a8,0x3a7,0x3a7,0x3a7,0x3a6,0x3a6,0x3a5,0x3a5,0x3a4,0x3a4,
|
||||
0x3a3,0x3a3,0x3a3,0x3a2,0x3a2,0x3a1,0x3a1,0x3a0,0x3a0,0x39f,0x39f,0x39f,0x39e,0x39e,0x39d,0x39d,0x39c,0x39c,0x39b,0x39b,
|
||||
0x39a,0x39a,0x399,0x399,0x398,0x398,0x398,0x397,0x397,0x396,0x396,0x395,0x395,0x394,0x394,0x393,0x393,0x392,0x392,0x391,
|
||||
0x391,0x390,0x390,0x38f,0x38f,0x38e,0x38e,0x38d,0x38d,0x38c,0x38c,0x38b,0x38b,0x38a,0x38a,0x389,0x389,0x388,0x388,0x387,
|
||||
0x387,0x386,0x386,0x385,0x385,0x384,0x384,0x383,0x383,0x382,0x382,0x381,0x381,0x380,0x380,0x37f,0x37f,0x37e,0x37e,0x37d,
|
||||
0x37d,0x37c,0x37c,0x37b,0x37a,0x37a,0x379,0x379,0x378,0x378,0x377,0x377,0x376,0x376,0x375,0x375,0x374,0x374,0x373,0x372,
|
||||
0x372,0x371,0x371,0x370,0x370,0x36f,0x36f,0x36e,0x36e,0x36d,0x36c,0x36c,0x36b,0x36b,0x36a,0x36a,0x369,0x369,0x368,0x368,
|
||||
0x367,0x366,0x366,0x365,0x365,0x364,0x364,0x363,0x362,0x362,0x361,0x361,0x360,0x360,0x35f,0x35e,0x35e,0x35d,0x35d,0x35c,
|
||||
0x35c,0x35b,0x35a,0x35a,0x359,0x359,0x358,0x358,0x357,0x356,0x356,0x355,0x355,0x354,0x353,0x353,0x352,0x352,0x351,0x351,
|
||||
0x350,0x34f,0x34f,0x34e,0x34e,0x34d,0x34c,0x34c,0x34b,0x34b,0x34a,0x349,0x349,0x348,0x348,0x347,0x346,0x346,0x345,0x345,
|
||||
0x344,0x343,0x343,0x342,0x342,0x341,0x340,0x340,0x33f,0x33f,0x33e,0x33d,0x33d,0x33c,0x33b,0x33b,0x33a,0x33a,0x339,0x338,
|
||||
0x338,0x337,0x336,0x336,0x335,0x335,0x334,0x333,0x333,0x332,0x331,0x331,0x330,0x330,0x32f,0x32e,0x32e,0x32d,0x32c,0x32c,
|
||||
0x32b,0x32a,0x32a,0x329,0x329,0x328,0x327,0x327,0x326,0x325,0x325,0x324,0x323,0x323,0x322,0x322,0x321,0x320,0x320,0x31f,
|
||||
0x31e,0x31e,0x31d,0x31c,0x31c,0x31b,0x31a,0x31a,0x319,0x318,0x318,0x317,0x316,0x316,0x315,0x314,0x314,0x313,0x312,0x312,
|
||||
0x311,0x310,0x310,0x30f,0x30e,0x30e,0x30d,0x30c,0x30c,0x30b,0x30a,0x30a,0x309,0x308,0x308,0x307,0x306,0x306,0x305,0x304,
|
||||
0x304,0x303,0x302,0x302,0x301,0x300,0x300,0x2ff,0x2fe,0x2fe,0x2fd,0x2fc,0x2fc,0x2fb,0x2fa,0x2fa,0x2f9,0x2f8,0x2f8,0x2f7,
|
||||
0x2f6,0x2f5,0x2f5,0x2f4,0x2f3,0x2f3,0x2f2,0x2f1,0x2f1,0x2f0,0x2ef,0x2ef,0x2ee,0x2ed,0x2ec,0x2ec,0x2eb,0x2ea,0x2ea,0x2e9,
|
||||
0x2e8,0x2e8,0x2e7,0x2e6,0x2e5,0x2e5,0x2e4,0x2e3,0x2e3,0x2e2,0x2e1,0x2e1,0x2e0,0x2df,0x2de,0x2de,0x2dd,0x2dc,0x2dc,0x2db,
|
||||
0x2da,0x2d9,0x2d9,0x2d8,0x2d7,0x2d7,0x2d6,0x2d5,0x2d5,0x2d4,0x2d3,0x2d2,0x2d2,0x2d1,0x2d0,0x2cf,0x2cf,0x2ce,0x2cd,0x2cd,
|
||||
0x2cc,0x2cb,0x2ca,0x2ca,0x2c9,0x2c8,0x2c8,0x2c7,0x2c6,0x2c5,0x2c5,0x2c4,0x2c3,0x2c3,0x2c2,0x2c1,0x2c0,0x2c0,0x2bf,0x2be,
|
||||
0x2bd,0x2bd,0x2bc,0x2bb,0x2bb,0x2ba,0x2b9,0x2b8,0x2b8,0x2b7,0x2b6,0x2b5,0x2b5,0x2b4,0x2b3,0x2b2,0x2b2,0x2b1,0x2b0,0x2b0,
|
||||
0x2af,0x2ae,0x2ad,0x2ad,0x2ac,0x2ab,0x2aa,0x2aa,0x2a9,0x2a8,0x2a7,0x2a7,0x2a6,0x2a5,0x2a4,0x2a4,0x2a3,0x2a2,0x2a1,0x2a1,
|
||||
0x2a0,0x29f,0x29e,0x29e,0x29d,0x29c,0x29b,0x29b,0x29a,0x299,0x298,0x298,0x297,0x296,0x295,0x295,0x294,0x293,0x292,0x292,
|
||||
0x291,0x290,0x28f,0x28f,0x28e,0x28d,0x28c,0x28c,0x28b,0x28a,0x289,0x289,0x288,0x287,0x286,0x286,0x285,0x284,0x283,0x283,
|
||||
0x282,0x281,0x280,0x280,0x27f,0x27e,0x27d,0x27d,0x27c,0x27b,0x27a,0x279,0x279,0x278,0x277,0x276,0x276,0x275,0x274,0x273,
|
||||
0x273,0x272,0x271,0x270,0x270,0x26f,0x26e,0x26d,0x26d,0x26c,0x26b,0x26a,0x269,0x269,0x268,0x267,0x266,0x266,0x265,0x264,
|
||||
0x263,0x263,0x262,0x261,0x260,0x25f,0x25f,0x25e,0x25d,0x25c,0x25c,0x25b,0x25a,0x259,0x258,0x258,0x257,0x256,0x255,0x255,
|
||||
0x254,0x253,0x252,0x252,0x251,0x250,0x24f,0x24e,0x24e,0x24d,0x24c,0x24b,0x24b,0x24a,0x249,0x248,0x247,0x247,0x246,0x245,
|
||||
0x244,0x244,0x243,0x242,0x241,0x240,0x240,0x23f,0x23e,0x23d,0x23d,0x23c,0x23b,0x23a,0x239,0x239,0x238,0x237,0x236,0x236,
|
||||
0x235,0x234,0x233,0x232,0x232,0x231,0x230,0x22f,0x22f,0x22e,0x22d,0x22c,0x22b,0x22b,0x22a,0x229,0x228,0x227,0x227,0x226,
|
||||
0x225,0x224,0x224,0x223,0x222,0x221,0x220,0x220,0x21f,0x21e,0x21d,0x21d,0x21c,0x21b,0x21a,0x219,0x219,0x218,0x217,0x216,
|
||||
0x215,0x215,0x214,0x213,0x212,0x212,0x211,0x210,0x20f,0x20e,0x20e,0x20d,0x20c,0x20b,0x20a,0x20a,0x209,0x208,0x207,0x207,
|
||||
0x206,0x205,0x204,0x203,0x203,0x202,0x201,0x200,0x200,0x1ff,0x1fe,0x1fd,0x1fc,0x1fc,0x1fb,0x1fa,0x1f9,0x1f8,0x1f8,0x1f7,
|
||||
0x1f6,0x1f5,0x1f5,0x1f4,0x1f3,0x1f2,0x1f1,0x1f1,0x1f0,0x1ef,0x1ee,0x1ed,0x1ed,0x1ec,0x1eb,0x1ea,0x1ea,0x1e9,0x1e8,0x1e7,
|
||||
0x1e6,0x1e6,0x1e5,0x1e4,0x1e3,0x1e2,0x1e2,0x1e1,0x1e0,0x1df,0x1df,0x1de,0x1dd,0x1dc,0x1db,0x1db,0x1da,0x1d9,0x1d8,0x1d8,
|
||||
0x1d7,0x1d6,0x1d5,0x1d4,0x1d4,0x1d3,0x1d2,0x1d1,0x1d0,0x1d0,0x1cf,0x1ce,0x1cd,0x1cd,0x1cc,0x1cb,0x1ca,0x1c9,0x1c9,0x1c8,
|
||||
0x1c7,0x1c6,0x1c6,0x1c5,0x1c4,0x1c3,0x1c2,0x1c2,0x1c1,0x1c0,0x1bf,0x1bf,0x1be,0x1bd,0x1bc,0x1bb,0x1bb,0x1ba,0x1b9,0x1b8,
|
||||
0x1b8,0x1b7,0x1b6,0x1b5,0x1b4,0x1b4,0x1b3,0x1b2,0x1b1,0x1b1,0x1b0,0x1af,0x1ae,0x1ad,0x1ad,0x1ac,0x1ab,0x1aa,0x1aa,0x1a9,
|
||||
0x1a8,0x1a7,0x1a7,0x1a6,0x1a5,0x1a4,0x1a3,0x1a3,0x1a2,0x1a1,0x1a0,0x1a0,0x19f,0x19e,0x19d,0x19c,0x19c,0x19b,0x19a,0x199,
|
||||
0x199,0x198,0x197,0x196,0x196,0x195,0x194,0x193,0x192,0x192,0x191,0x190,0x18f,0x18f,0x18e,0x18d,0x18c,0x18c,0x18b,0x18a,
|
||||
0x189,0x189,0x188,0x187,0x186,0x186,0x185,0x184,0x183,0x182,0x182,0x181,0x180,0x17f,0x17f,0x17e,0x17d,0x17c,0x17c,0x17b,
|
||||
0x17a,0x179,0x179,0x178,0x177,0x176,0x176,0x175,0x174,0x173,0x173,0x172,0x171,0x170,0x170,0x16f,0x16e,0x16d,0x16d,0x16c,
|
||||
0x16b,0x16a,0x16a,0x169,0x168,0x167,0x167,0x166,0x165,0x164,0x164,0x163,0x162,0x161,0x161,0x160,0x15f,0x15e,0x15e,0x15d,
|
||||
0x15c,0x15b,0x15b,0x15a,0x159,0x158,0x158,0x157,0x156,0x155,0x155,0x154,0x153,0x152,0x152,0x151,0x150,0x14f,0x14f,0x14e,
|
||||
0x14d,0x14d,0x14c,0x14b,0x14a,0x14a,0x149,0x148,0x147,0x147,0x146,0x145,0x144,0x144,0x143,0x142,0x142,0x141,0x140,0x13f,
|
||||
0x13f,0x13e,0x13d,0x13c,0x13c,0x13b,0x13a,0x13a,0x139,0x138,0x137,0x137,0x136,0x135,0x135,0x134,0x133,0x132,0x132,0x131,
|
||||
0x130,0x130,0x12f,0x12e,0x12d,0x12d,0x12c,0x12b,0x12a,0x12a,0x129,0x128,0x128,0x127,0x126,0x126,0x125,0x124,0x123,0x123,
|
||||
0x122,0x121,0x121,0x120,0x11f,0x11e,0x11e,0x11d,0x11c,0x11c,0x11b,0x11a,0x11a,0x119,0x118,0x117,0x117,0x116,0x115,0x115,
|
||||
0x114,0x113,0x113,0x112,0x111,0x110,0x110,0x10f,0x10e,0x10e,0x10d,0x10c,0x10c,0x10b,0x10a,0x10a,0x109,0x108,0x107,0x107,
|
||||
0x106,0x105,0x105,0x104,0x103,0x103,0x102,0x101,0x101,0x100,0xff,0xff,0xfe,0xfd,0xfd,0xfc,0xfb,0xfb,0xfa,0xf9,
|
||||
0xf9,0xf8,0xf7,0xf7,0xf6,0xf5,0xf5,0xf4,0xf3,0xf3,0xf2,0xf1,0xf1,0xf0,0xef,0xef,0xee,0xed,0xed,0xec,
|
||||
0xeb,0xeb,0xea,0xe9,0xe9,0xe8,0xe7,0xe7,0xe6,0xe5,0xe5,0xe4,0xe3,0xe3,0xe2,0xe1,0xe1,0xe0,0xdf,0xdf,
|
||||
0xde,0xdd,0xdd,0xdc,0xdc,0xdb,0xda,0xda,0xd9,0xd8,0xd8,0xd7,0xd6,0xd6,0xd5,0xd5,0xd4,0xd3,0xd3,0xd2,
|
||||
0xd1,0xd1,0xd0,0xcf,0xcf,0xce,0xce,0xcd,0xcc,0xcc,0xcb,0xca,0xca,0xc9,0xc9,0xc8,0xc7,0xc7,0xc6,0xc5,
|
||||
0xc5,0xc4,0xc4,0xc3,0xc2,0xc2,0xc1,0xc0,0xc0,0xbf,0xbf,0xbe,0xbd,0xbd,0xbc,0xbc,0xbb,0xba,0xba,0xb9,
|
||||
0xb9,0xb8,0xb7,0xb7,0xb6,0xb6,0xb5,0xb4,0xb4,0xb3,0xb3,0xb2,0xb1,0xb1,0xb0,0xb0,0xaf,0xae,0xae,0xad,
|
||||
0xad,0xac,0xac,0xab,0xaa,0xaa,0xa9,0xa9,0xa8,0xa7,0xa7,0xa6,0xa6,0xa5,0xa5,0xa4,0xa3,0xa3,0xa2,0xa2,
|
||||
0xa1,0xa1,0xa0,0x9f,0x9f,0x9e,0x9e,0x9d,0x9d,0x9c,0x9b,0x9b,0x9a,0x9a,0x99,0x99,0x98,0x97,0x97,0x96,
|
||||
0x96,0x95,0x95,0x94,0x94,0x93,0x93,0x92,0x91,0x91,0x90,0x90,0x8f,0x8f,0x8e,0x8e,0x8d,0x8d,0x8c,0x8b,
|
||||
0x8b,0x8a,0x8a,0x89,0x89,0x88,0x88,0x87,0x87,0x86,0x86,0x85,0x85,0x84,0x83,0x83,0x82,0x82,0x81,0x81,
|
||||
0x80,0x80,0x7f,0x7f,0x7e,0x7e,0x7d,0x7d,0x7c,0x7c,0x7b,0x7b,0x7a,0x7a,0x79,0x79,0x78,0x78,0x77,0x77,
|
||||
0x76,0x76,0x75,0x75,0x74,0x74,0x73,0x73,0x72,0x72,0x71,0x71,0x70,0x70,0x6f,0x6f,0x6e,0x6e,0x6d,0x6d,
|
||||
0x6c,0x6c,0x6b,0x6b,0x6a,0x6a,0x69,0x69,0x68,0x68,0x67,0x67,0x67,0x66,0x66,0x65,0x65,0x64,0x64,0x63,
|
||||
0x63,0x62,0x62,0x61,0x61,0x60,0x60,0x60,0x5f,0x5f,0x5e,0x5e,0x5d,0x5d,0x5c,0x5c,0x5c,0x5b,0x5b,0x5a,
|
||||
0x5a,0x59,0x59,0x58,0x58,0x58,0x57,0x57,0x56,0x56,0x55,0x55,0x54,0x54,0x54,0x53,0x53,0x52,0x52,0x51,
|
||||
0x51,0x51,0x50,0x50,0x4f,0x4f,0x4f,0x4e,0x4e,0x4d,0x4d,0x4c,0x4c,0x4c,0x4b,0x4b,0x4a,0x4a,0x4a,0x49,
|
||||
0x49,0x48,0x48,0x48,0x47,0x47,0x46,0x46,0x46,0x45,0x45,0x44,0x44,0x44,0x43,0x43,0x42,0x42,0x42,0x41,
|
||||
0x41,0x41,0x40,0x40,0x3f,0x3f,0x3f,0x3e,0x3e,0x3e,0x3d,0x3d,0x3c,0x3c,0x3c,0x3b,0x3b,0x3b,0x3a,0x3a,
|
||||
0x39,0x39,0x39,0x38,0x38,0x38,0x37,0x37,0x37,0x36,0x36,0x36,0x35,0x35,0x35,0x34,0x34,0x33,0x33,0x33,
|
||||
0x32,0x32,0x32,0x31,0x31,0x31,0x30,0x30,0x30,0x2f,0x2f,0x2f,0x2e,0x2e,0x2e,0x2d,0x2d,0x2d,0x2d,0x2c,
|
||||
0x2c,0x2c,0x2b,0x2b,0x2b,0x2a,0x2a,0x2a,0x29,0x29,0x29,0x28,0x28,0x28,0x28,0x27,0x27,0x27,0x26,0x26,
|
||||
0x26,0x25,0x25,0x25,0x25,0x24,0x24,0x24,0x23,0x23,0x23,0x23,0x22,0x22,0x22,0x21,0x21,0x21,0x21,0x20,
|
||||
0x20,0x20,0x20,0x1f,0x1f,0x1f,0x1e,0x1e,0x1e,0x1e,0x1d,0x1d,0x1d,0x1d,0x1c,0x1c,0x1c,0x1c,0x1b,0x1b,
|
||||
0x1b,0x1b,0x1a,0x1a,0x1a,0x1a,0x19,0x19,0x19,0x19,0x18,0x18,0x18,0x18,0x17,0x17,0x17,0x17,0x16,0x16,
|
||||
0x16,0x16,0x16,0x15,0x15,0x15,0x15,0x14,0x14,0x14,0x14,0x14,0x13,0x13,0x13,0x13,0x13,0x12,0x12,0x12,
|
||||
0x12,0x11,0x11,0x11,0x11,0x11,0x10,0x10,0x10,0x10,0x10,0x10,0xf,0xf,0xf,0xf,0xf,0xe,0xe,0xe,
|
||||
0xe,0xe,0xd,0xd,0xd,0xd,0xd,0xd,0xc,0xc,0xc,0xc,0xc,0xc,0xb,0xb,0xb,0xb,0xb,0xb,
|
||||
0xa,0xa,0xa,0xa,0xa,0xa,0xa,0x9,0x9,0x9,0x9,0x9,0x9,0x8,0x8,0x8,0x8,0x8,0x8,0x8,
|
||||
0x8,0x7,0x7,0x7,0x7,0x7,0x7,0x7,0x6,0x6,0x6,0x6,0x6,0x6,0x6,0x6,0x6,0x5,0x5,0x5,
|
||||
0x5,0x5,0x5,0x5,0x5,0x5,0x4,0x4,0x4,0x4,0x4,0x4,0x4,0x4,0x4,0x4,0x3,0x3,0x3,0x3,
|
||||
0x3,0x3,0x3,0x3,0x3,0x3,0x3,0x3,0x2,0x2,0x2,0x2,0x2,0x2,0x2,0x2,0x2,0x2,0x2,0x2,
|
||||
0x2,0x2,0x2,0x1,0x1,0x1,0x1,0x1,0x1,0x1,0x1,0x1,0x1,0x1,0x1,0x1,0x1,0x1,0x1,0x1,
|
||||
0x1,0x1,0x1,0x1,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,
|
||||
0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,
|
||||
0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,
|
||||
0x0,0x1,0x1,0x1,0x1,0x1,0x1,0x1,0x1,0x1,0x1,0x1,0x1,0x1,0x1,0x1,0x1,0x1,0x1,0x1,
|
||||
0x1,0x1,0x2,0x2,0x2,0x2,0x2,0x2,0x2,0x2,0x2,0x2,0x2,0x2,0x2,0x2,0x2,0x3,0x3,0x3,
|
||||
0x3,0x3,0x3,0x3,0x3,0x3,0x3,0x3,0x3,0x4,0x4,0x4,0x4,0x4,0x4,0x4,0x4,0x4,0x4,0x5,
|
||||
0x5,0x5,0x5,0x5,0x5,0x5,0x5,0x5,0x6,0x6,0x6,0x6,0x6,0x6,0x6,0x6,0x6,0x7,0x7,0x7,
|
||||
0x7,0x7,0x7,0x7,0x8,0x8,0x8,0x8,0x8,0x8,0x8,0x8,0x9,0x9,0x9,0x9,0x9,0x9,0xa,0xa,
|
||||
0xa,0xa,0xa,0xa,0xa,0xb,0xb,0xb,0xb,0xb,0xb,0xc,0xc,0xc,0xc,0xc,0xc,0xd,0xd,0xd,
|
||||
0xd,0xd,0xd,0xe,0xe,0xe,0xe,0xe,0xf,0xf,0xf,0xf,0xf,0x10,0x10,0x10,0x10,0x10,0x10,0x11,
|
||||
0x11,0x11,0x11,0x11,0x12,0x12,0x12,0x12,0x13,0x13,0x13,0x13,0x13,0x14,0x14,0x14,0x14,0x14,0x15,0x15,
|
||||
0x15,0x15,0x16,0x16,0x16,0x16,0x16,0x17,0x17,0x17,0x17,0x18,0x18,0x18,0x18,0x19,0x19,0x19,0x19,0x1a,
|
||||
0x1a,0x1a,0x1a,0x1b,0x1b,0x1b,0x1b,0x1c,0x1c,0x1c,0x1c,0x1d,0x1d,0x1d,0x1d,0x1e,0x1e,0x1e,0x1e,0x1f,
|
||||
0x1f,0x1f,0x20,0x20,0x20,0x20,0x21,0x21,0x21,0x21,0x22,0x22,0x22,0x23,0x23,0x23,0x23,0x24,0x24,0x24,
|
||||
0x25,0x25,0x25,0x25,0x26,0x26,0x26,0x27,0x27,0x27,0x28,0x28,0x28,0x28,0x29,0x29,0x29,0x2a,0x2a,0x2a,
|
||||
0x2b,0x2b,0x2b,0x2c,0x2c,0x2c,0x2d,0x2d,0x2d,0x2d,0x2e,0x2e,0x2e,0x2f,0x2f,0x2f,0x30,0x30,0x30,0x31,
|
||||
0x31,0x31,0x32,0x32,0x32,0x33,0x33,0x33,0x34,0x34,0x35,0x35,0x35,0x36,0x36,0x36,0x37,0x37,0x37,0x38,
|
||||
0x38,0x38,0x39,0x39,0x39,0x3a,0x3a,0x3b,0x3b,0x3b,0x3c,0x3c,0x3c,0x3d,0x3d,0x3e,0x3e,0x3e,0x3f,0x3f,
|
||||
0x3f,0x40,0x40,0x41,0x41,0x41,0x42,0x42,0x42,0x43,0x43,0x44,0x44,0x44,0x45,0x45,0x46,0x46,0x46,0x47,
|
||||
0x47,0x48,0x48,0x48,0x49,0x49,0x4a,0x4a,0x4a,0x4b,0x4b,0x4c,0x4c,0x4c,0x4d,0x4d,0x4e,0x4e,0x4f,0x4f,
|
||||
0x4f,0x50,0x50,0x51,0x51,0x51,0x52,0x52,0x53,0x53,0x54,0x54,0x54,0x55,0x55,0x56,0x56,0x57,0x57,0x58,
|
||||
0x58,0x58,0x59,0x59,0x5a,0x5a,0x5b,0x5b,0x5c,0x5c,0x5c,0x5d,0x5d,0x5e,0x5e,0x5f,0x5f,0x60,0x60,0x60,
|
||||
0x61,0x61,0x62,0x62,0x63,0x63,0x64,0x64,0x65,0x65,0x66,0x66,0x67,0x67,0x67,0x68,0x68,0x69,0x69,0x6a,
|
||||
0x6a,0x6b,0x6b,0x6c,0x6c,0x6d,0x6d,0x6e,0x6e,0x6f,0x6f,0x70,0x70,0x71,0x71,0x72,0x72,0x73,0x73,0x74,
|
||||
0x74,0x75,0x75,0x76,0x76,0x77,0x77,0x78,0x78,0x79,0x79,0x7a,0x7a,0x7b,0x7b,0x7c,0x7c,0x7d,0x7d,0x7e,
|
||||
0x7e,0x7f,0x7f,0x80,0x80,0x81,0x81,0x82,0x82,0x83,0x83,0x84,0x85,0x85,0x86,0x86,0x87,0x87,0x88,0x88,
|
||||
0x89,0x89,0x8a,0x8a,0x8b,0x8b,0x8c,0x8d,0x8d,0x8e,0x8e,0x8f,0x8f,0x90,0x90,0x91,0x91,0x92,0x93,0x93,
|
||||
0x94,0x94,0x95,0x95,0x96,0x96,0x97,0x97,0x98,0x99,0x99,0x9a,0x9a,0x9b,0x9b,0x9c,0x9d,0x9d,0x9e,0x9e,
|
||||
0x9f,0x9f,0xa0,0xa1,0xa1,0xa2,0xa2,0xa3,0xa3,0xa4,0xa5,0xa5,0xa6,0xa6,0xa7,0xa7,0xa8,0xa9,0xa9,0xaa,
|
||||
0xaa,0xab,0xac,0xac,0xad,0xad,0xae,0xae,0xaf,0xb0,0xb0,0xb1,0xb1,0xb2,0xb3,0xb3,0xb4,0xb4,0xb5,0xb6,
|
||||
0xb6,0xb7,0xb7,0xb8,0xb9,0xb9,0xba,0xba,0xbb,0xbc,0xbc,0xbd,0xbd,0xbe,0xbf,0xbf,0xc0,0xc0,0xc1,0xc2,
|
||||
0xc2,0xc3,0xc4,0xc4,0xc5,0xc5,0xc6,0xc7,0xc7,0xc8,0xc9,0xc9,0xca,0xca,0xcb,0xcc,0xcc,0xcd,0xce,0xce,
|
||||
0xcf,0xcf,0xd0,0xd1,0xd1,0xd2,0xd3,0xd3,0xd4,0xd5,0xd5,0xd6,0xd6,0xd7,0xd8,0xd8,0xd9,0xda,0xda,0xdb,
|
||||
0xdc,0xdc,0xdd,0xdd,0xde,0xdf,0xdf,0xe0,0xe1,0xe1,0xe2,0xe3,0xe3,0xe4,0xe5,0xe5,0xe6,0xe7,0xe7,0xe8,
|
||||
0xe9,0xe9,0xea,0xeb,0xeb,0xec,0xed,0xed,0xee,0xef,0xef,0xf0,0xf1,0xf1,0xf2,0xf3,0xf3,0xf4,0xf5,0xf5,
|
||||
0xf6,0xf7,0xf7,0xf8,0xf9,0xf9,0xfa,0xfb,0xfb,0xfc,0xfd,0xfd,0xfe,0xff,0xff,0x100,0x101,0x101,0x102,0x103,
|
||||
0x103,0x104,0x105,0x105,0x106,0x107,0x107,0x108,0x109,0x10a,0x10a,0x10b,0x10c,0x10c,0x10d,0x10e,0x10e,0x10f,0x110,0x110,
|
||||
0x111,0x112,0x113,0x113,0x114,0x115,0x115,0x116,0x117,0x117,0x118,0x119,0x11a,0x11a,0x11b,0x11c,0x11c,0x11d,0x11e,0x11e,
|
||||
0x11f,0x120,0x121,0x121,0x122,0x123,0x123,0x124,0x125,0x126,0x126,0x127,0x128,0x128,0x129,0x12a,0x12a,0x12b,0x12c,0x12d,
|
||||
0x12d,0x12e,0x12f,0x130,0x130,0x131,0x132,0x132,0x133,0x134,0x135,0x135,0x136,0x137,0x137,0x138,0x139,0x13a,0x13a,0x13b,
|
||||
0x13c,0x13c,0x13d,0x13e,0x13f,0x13f,0x140,0x141,0x142,0x142,0x143,0x144,0x144,0x145,0x146,0x147,0x147,0x148,0x149,0x14a,
|
||||
0x14a,0x14b,0x14c,0x14d,0x14d,0x14e,0x14f,0x14f,0x150,0x151,0x152,0x152,0x153,0x154,0x155,0x155,0x156,0x157,0x158,0x158,
|
||||
0x159,0x15a,0x15b,0x15b,0x15c,0x15d,0x15e,0x15e,0x15f,0x160,0x161,0x161,0x162,0x163,0x164,0x164,0x165,0x166,0x167,0x167,
|
||||
0x168,0x169,0x16a,0x16a,0x16b,0x16c,0x16d,0x16d,0x16e,0x16f,0x170,0x170,0x171,0x172,0x173,0x173,0x174,0x175,0x176,0x176,
|
||||
0x177,0x178,0x179,0x179,0x17a,0x17b,0x17c,0x17c,0x17d,0x17e,0x17f,0x17f,0x180,0x181,0x182,0x182,0x183,0x184,0x185,0x186,
|
||||
0x186,0x187,0x188,0x189,0x189,0x18a,0x18b,0x18c,0x18c,0x18d,0x18e,0x18f,0x18f,0x190,0x191,0x192,0x192,0x193,0x194,0x195,
|
||||
0x196,0x196,0x197,0x198,0x199,0x199,0x19a,0x19b,0x19c,0x19c,0x19d,0x19e,0x19f,0x1a0,0x1a0,0x1a1,0x1a2,0x1a3,0x1a3,0x1a4,
|
||||
0x1a5,0x1a6,0x1a7,0x1a7,0x1a8,0x1a9,0x1aa,0x1aa,0x1ab,0x1ac,0x1ad,0x1ad,0x1ae,0x1af,0x1b0,0x1b1,0x1b1,0x1b2,0x1b3,0x1b4,
|
||||
0x1b4,0x1b5,0x1b6,0x1b7,0x1b8,0x1b8,0x1b9,0x1ba,0x1bb,0x1bb,0x1bc,0x1bd,0x1be,0x1bf,0x1bf,0x1c0,0x1c1,0x1c2,0x1c2,0x1c3,
|
||||
0x1c4,0x1c5,0x1c6,0x1c6,0x1c7,0x1c8,0x1c9,0x1c9,0x1ca,0x1cb,0x1cc,0x1cd,0x1cd,0x1ce,0x1cf,0x1d0,0x1d0,0x1d1,0x1d2,0x1d3,
|
||||
0x1d4,0x1d4,0x1d5,0x1d6,0x1d7,0x1d8,0x1d8,0x1d9,0x1da,0x1db,0x1db,0x1dc,0x1dd,0x1de,0x1df,0x1df,0x1e0,0x1e1,0x1e2,0x1e2,
|
||||
0x1e3,0x1e4,0x1e5,0x1e6,0x1e6,0x1e7,0x1e8,0x1e9,0x1ea,0x1ea,0x1eb,0x1ec,0x1ed,0x1ed,0x1ee,0x1ef,0x1f0,0x1f1,0x1f1,0x1f2,
|
||||
0x1f3,0x1f4,0x1f5,0x1f5,0x1f6,0x1f7,0x1f8,0x1f8,0x1f9,0x1fa,0x1fb,0x1fc,0x1fc,0x1fd,0x1fe,0x1ff};
|
||||
#endif // SINE_TABLE_H_
|
||||
|
||||
//
|
||||
// End of file
|
||||
//
|
||||
+327
@@ -0,0 +1,327 @@
|
||||
//#############################################################################
|
||||
//
|
||||
// FILE: AFE031_Config.c
|
||||
//
|
||||
// TITLE: AFE Setup Functions
|
||||
//
|
||||
//###########################################################################
|
||||
//
|
||||
//
|
||||
// $Copyright:
|
||||
// Copyright (C) 2013-2024 Texas Instruments Incorporated - http://www.ti.com/
|
||||
//
|
||||
// Redistribution and use in source and binary forms, with or without
|
||||
// modification, are permitted provided that the following conditions
|
||||
// are met:
|
||||
//
|
||||
// Redistributions of source code must retain the above copyright
|
||||
// notice, this list of conditions and the following disclaimer.
|
||||
//
|
||||
// Redistributions in binary form must reproduce the above copyright
|
||||
// notice, this list of conditions and the following disclaimer in the
|
||||
// documentation and/or other materials provided with the
|
||||
// distribution.
|
||||
//
|
||||
// Neither the name of Texas Instruments Incorporated nor the names of
|
||||
// its contributors may be used to endorse or promote products derived
|
||||
// from this software without specific prior written permission.
|
||||
//
|
||||
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||
// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||
// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
||||
// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
||||
// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||
// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||
// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
||||
// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
||||
// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
// $
|
||||
//###########################################################################
|
||||
|
||||
//
|
||||
// Included Files
|
||||
//
|
||||
#include "afe031_config.h"
|
||||
#include "F28x_Project.h" // Device Headerfile and Examples Include File
|
||||
|
||||
/* RX Gain LUT */
|
||||
UINT16 HAL_afe031_rxGainLut[8] = { 2, 3, 6, 7, 10, 11, 14, 15 };
|
||||
/* TX Gain LUT */
|
||||
UINT16 HAL_afe031_txGainLut[4] = { 0, 1, 2, 3 };
|
||||
|
||||
HAL_afe031_reg_t HAL_afe031_reg_s;
|
||||
|
||||
//
|
||||
// FUNCTION NAME: HAL_afe031Init()
|
||||
//
|
||||
// DESCRIPTION: AFE031 init function.
|
||||
//
|
||||
// Return Value: None
|
||||
//
|
||||
// Input Parameters:
|
||||
//
|
||||
// Output Parameters:
|
||||
// Functions Called:
|
||||
//
|
||||
//
|
||||
void HAL_afe031Init(void)
|
||||
{
|
||||
//
|
||||
// Configure GPIO pins for AFE
|
||||
//
|
||||
HAL_afe031_cfgGpio();
|
||||
|
||||
HAL_spi_cfg();
|
||||
|
||||
HAL_afe031_softReset();
|
||||
DELAY_US(2);
|
||||
|
||||
HAL_afe031_biasEnable();
|
||||
DELAY_US(2);
|
||||
|
||||
HAL_afe031_bandSelect(1); //0-A; 1-FCC;
|
||||
DELAY_US(2);
|
||||
|
||||
HAL_afe031_clrAllInt();
|
||||
DELAY_US(2);
|
||||
|
||||
HAL_afe031_cfgInt();
|
||||
DELAY_US(2);
|
||||
|
||||
HAL_afe031_zcEnable();
|
||||
DELAY_US(2);
|
||||
|
||||
HAL_afe031_writeTxGain(0);
|
||||
DELAY_US(2);
|
||||
}
|
||||
|
||||
//
|
||||
// FUNCTION NAME: HAL_afe031_cfgGpio()
|
||||
//
|
||||
// DESCRIPTION: Configure GPIO for AFE031.
|
||||
//
|
||||
// GPIO Profile for AFE031 Module:
|
||||
// GPIO3 - SD (1-SD; 0-normal)
|
||||
// GPIO123 - INT (1-INT; 0-no INT)
|
||||
// GPIO2 - DAC (1-DAC; 0-normal)
|
||||
// Return Value: None
|
||||
//
|
||||
// Input Parameters:
|
||||
//
|
||||
// Output Parameters:
|
||||
// Functions Called:
|
||||
//
|
||||
//
|
||||
void HAL_afe031_cfgGpio(void)
|
||||
{
|
||||
//SD PIN
|
||||
GPIO_SetupPinMux(3, GPIO_MUX_CPU1, 0);
|
||||
GPIO_SetupPinOptions(3, GPIO_OUTPUT, GPIO_PUSHPULL);
|
||||
// SD=0
|
||||
GPIO_WritePin(3, 0);
|
||||
|
||||
//DAC Pin Enable
|
||||
GPIO_SetupPinMux(2, GPIO_MUX_CPU1, 0);
|
||||
GPIO_SetupPinOptions(2, GPIO_OUTPUT, GPIO_PUSHPULL);
|
||||
// DAC=0
|
||||
GPIO_WritePin(2, 0);
|
||||
|
||||
// INT Pin
|
||||
GPIO_SetupPinMux(123, GPIO_MUX_CPU1, 0);
|
||||
GPIO_SetupPinOptions(123, GPIO_OUTPUT, GPIO_PUSHPULL);
|
||||
}
|
||||
|
||||
//
|
||||
// FUNCTION NAME: HAL_afe031_writeRxGain()
|
||||
//
|
||||
// DESCRIPTION: Write RX Gain.
|
||||
//
|
||||
// Return Value: None
|
||||
//
|
||||
// Input Parameters:
|
||||
//
|
||||
// Output Parameters:
|
||||
// Functions Called:
|
||||
//
|
||||
//
|
||||
void HAL_afe031_writeRxGain(UINT16 gain)
|
||||
{
|
||||
UINT16 gainSetting;
|
||||
|
||||
gainSetting = HAL_afe031_rxGainLut[gain];
|
||||
HAL_afe031_reg_s.gain_sel.bits.RXG = gainSetting;
|
||||
HAL_afe031_regWrite(HAL_AFE031_GAINSEL_REG, HAL_afe031_reg_s.gain_sel.all);
|
||||
}
|
||||
|
||||
//
|
||||
// FUNCTION NAME: HAL_afe031_writeTxGain()
|
||||
//
|
||||
// DESCRIPTION: Write TX Gain.
|
||||
//
|
||||
// Return Value: None
|
||||
//
|
||||
// Input Parameters:
|
||||
//
|
||||
// Output Parameters:
|
||||
// Functions Called:
|
||||
//
|
||||
//
|
||||
void HAL_afe031_writeTxGain(UINT16 gain)
|
||||
{
|
||||
UINT16 gainSetting;
|
||||
gainSetting = HAL_afe031_txGainLut[gain];
|
||||
HAL_afe031_reg_s.gain_sel.bits.TXG = gainSetting;
|
||||
HAL_afe031_regWrite(HAL_AFE031_GAINSEL_REG, HAL_afe031_reg_s.gain_sel.all);
|
||||
}
|
||||
|
||||
//
|
||||
// FUNCTION NAME: HAL_afe031_regWrite(addr, data)
|
||||
//
|
||||
// DESCRIPTION: AFE031 Register Write
|
||||
//
|
||||
// Return Value: None
|
||||
//
|
||||
// Input Parameters:
|
||||
//
|
||||
// Output Parameters:
|
||||
// Functions Called:
|
||||
//
|
||||
//
|
||||
void HAL_afe031_regWrite(UINT16 addr, UINT16 data)
|
||||
{
|
||||
UINT16 cmd, data16;
|
||||
|
||||
cmd = (HAL_AFE031_CMD_WR << HAL_AFE031_CMD_RW_SHIFT) | addr;
|
||||
data16 = (cmd << HAL_AFE031_CMD_SHIFT) | (data & HAL_AFE031_DATA_MASK);
|
||||
/* For F28035, use SPI; all others, use McBSPA */
|
||||
|
||||
HAL_spi_xmt(data16);
|
||||
|
||||
DELAY_US(1);
|
||||
}
|
||||
|
||||
//
|
||||
// FUNCTION NAME: HAL_afe031_regRead(addr)
|
||||
//
|
||||
// DESCRIPTION: AFE031 Register Write
|
||||
//
|
||||
// Return Value: None
|
||||
//
|
||||
// Input Parameters:
|
||||
//
|
||||
// Output Parameters:
|
||||
// Functions Called:
|
||||
//
|
||||
//
|
||||
UINT16 HAL_afe031_regRead(UINT16 addr)
|
||||
{
|
||||
UINT16 cmd;
|
||||
|
||||
cmd = (HAL_AFE031_CMD_RD << HAL_AFE031_CMD_RW_SHIFT) | addr;
|
||||
cmd = (cmd << HAL_AFE031_CMD_SHIFT);
|
||||
/* For F28035, use SPI; all others, use McBSPA */
|
||||
|
||||
return HAL_spi_read(cmd);
|
||||
}
|
||||
|
||||
//
|
||||
// FUNCTION NAME: HAL_afe031_clrAllInt
|
||||
//
|
||||
// DESCRIPTION: AFE031 Clear All Interrupts
|
||||
//
|
||||
// Return Value: None
|
||||
//
|
||||
// Input Parameters:
|
||||
//
|
||||
// Output Parameters:
|
||||
// Functions Called:
|
||||
//
|
||||
//
|
||||
void HAL_afe031_clrAllInt(void)
|
||||
{
|
||||
HAL_afe031_reg_s.control2.all = 0;
|
||||
HAL_afe031_regWrite(HAL_AFE031_CTRL2_REG, 0);
|
||||
}
|
||||
|
||||
//
|
||||
// FUNCTION NAME: HAL_afe031_clrInt
|
||||
//
|
||||
// DESCRIPTION: AFE031 Clear All Interrupts
|
||||
//
|
||||
// Return Value: None
|
||||
//
|
||||
// Input Parameters:
|
||||
//
|
||||
// Output Parameters:
|
||||
// Functions Called:
|
||||
//
|
||||
//
|
||||
void HAL_afe031_clrInt(UINT16 flag)
|
||||
{
|
||||
HAL_afe031_reg_s.control2.all &= (~flag);
|
||||
HAL_afe031_regWrite(HAL_AFE031_CTRL2_REG, HAL_afe031_reg_s.control2.all);
|
||||
}
|
||||
|
||||
//
|
||||
// FUNCTION NAME: HAL_afe031_readIntFlag
|
||||
//
|
||||
// DESCRIPTION: AFE031 Read Interrupt Flag
|
||||
//
|
||||
// Return Value: None
|
||||
//
|
||||
// Input Parameters:
|
||||
//
|
||||
// Output Parameters:
|
||||
// Functions Called:
|
||||
//
|
||||
//
|
||||
UINT16 HAL_afe031_readIntFlag(void)
|
||||
{
|
||||
return HAL_afe031_regRead(HAL_AFE031_RESET_REG);
|
||||
}
|
||||
|
||||
//
|
||||
// FUNCTION NAME: HAL_afe031_cfgInt
|
||||
//
|
||||
// DESCRIPTION: AFE031 Configure Interrupts
|
||||
//
|
||||
// Return Value: None
|
||||
//
|
||||
// Input Parameters:
|
||||
//
|
||||
// Output Parameters:
|
||||
// Functions Called:
|
||||
//
|
||||
//
|
||||
void HAL_afe031_cfgInt(void)
|
||||
{
|
||||
//
|
||||
// For now only enable TFlag
|
||||
//
|
||||
HAL_afe031_reg_s.control2.bits.TFLAG_EN = 1;
|
||||
HAL_afe031_regWrite(HAL_AFE031_CTRL2_REG, HAL_afe031_reg_s.control2.all);
|
||||
}
|
||||
|
||||
//
|
||||
// FUNCTION NAME: HAL_afe031_cfgWdLen
|
||||
//
|
||||
// DESCRIPTION: Configure word length
|
||||
//
|
||||
// Return Value: None
|
||||
//
|
||||
// Input Parameters:
|
||||
//
|
||||
// Output Parameters:
|
||||
// Functions Called:
|
||||
//
|
||||
//
|
||||
void HAL_afe031_cfgWdLen(UINT16 len)
|
||||
{
|
||||
HAL_spi_cfgWdLen(len);
|
||||
}
|
||||
|
||||
//
|
||||
// End of file
|
||||
//
|
||||
+161
@@ -0,0 +1,161 @@
|
||||
//#############################################################################
|
||||
//
|
||||
// FILE: AFE031_Config.h
|
||||
//
|
||||
// TITLE: AFE Setup Functions
|
||||
//
|
||||
//###########################################################################
|
||||
//
|
||||
//
|
||||
// $Copyright:
|
||||
// Copyright (C) 2013-2024 Texas Instruments Incorporated - http://www.ti.com/
|
||||
//
|
||||
// Redistribution and use in source and binary forms, with or without
|
||||
// modification, are permitted provided that the following conditions
|
||||
// are met:
|
||||
//
|
||||
// Redistributions of source code must retain the above copyright
|
||||
// notice, this list of conditions and the following disclaimer.
|
||||
//
|
||||
// Redistributions in binary form must reproduce the above copyright
|
||||
// notice, this list of conditions and the following disclaimer in the
|
||||
// documentation and/or other materials provided with the
|
||||
// distribution.
|
||||
//
|
||||
// Neither the name of Texas Instruments Incorporated nor the names of
|
||||
// its contributors may be used to endorse or promote products derived
|
||||
// from this software without specific prior written permission.
|
||||
//
|
||||
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||
// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||
// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
||||
// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
||||
// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||
// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||
// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
||||
// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
||||
// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
// $
|
||||
//###########################################################################
|
||||
|
||||
#ifndef AFE031_CONFIG_H_
|
||||
#define AFE031_CONFIG_H_
|
||||
|
||||
//
|
||||
// Included Files
|
||||
//
|
||||
#include "afe031_config.h"
|
||||
#include "hal_afe031.h"
|
||||
#include "hal_spi.h"
|
||||
|
||||
/*****************************************************************************/
|
||||
/* Data Structures */
|
||||
/*****************************************************************************/
|
||||
/* AFE handle */
|
||||
// CQ1775
|
||||
#define HAL_SPI_BRR 1//SPICLK=60/4=15MHz // changed from 2
|
||||
#define HAL_status_t Uint16
|
||||
typedef struct
|
||||
{
|
||||
UINT16 HAL_afe_spiErrCnt;
|
||||
UINT16 HAL_afe_spiReadBack;
|
||||
UINT16 HAL_afe_spiRecoverCnt;
|
||||
UINT16 HAL_afe_spiRecoverFailCnt;
|
||||
}HAL_afe032_spiTest_t;
|
||||
|
||||
typedef struct
|
||||
{
|
||||
Uint16 txSize; // 0 TX size
|
||||
Uint16 txActive; // 1 TX active flag
|
||||
|
||||
Uint16 updateGainFlag; // 2 AGC gain update flag
|
||||
int16 agcGainVal; // 3 AGC gain value
|
||||
|
||||
/* Added for ADC int */
|
||||
volatile Uint16 *rxBufPtr_p[2]; // 4 5 6 7 RX buffer address (ping-pong buffer)
|
||||
volatile Uint16 *rxBufDat_p; // 8 9
|
||||
Uint16 rxBufSize[2]; // 10 11 RX buffer size (Number of bursts in a transfer - 1)
|
||||
Uint16 rxBufIdx; // 12 RX buffer buffer index (next active buffer being filled)
|
||||
Uint16 adcCnt; // 13
|
||||
Uint16 rxBufCnt; // 14
|
||||
Uint16 adcIntCnt; // 15
|
||||
Uint16 activeBufIdx; // 16 Active buffer index. Reload rxBufIdx @symbol done
|
||||
Uint16 activeBufSize; // 17 Active buffer size. Reload rxBufSize[activeBufIdx] @symbol done
|
||||
|
||||
/* For TX Buffers */
|
||||
volatile Uint16 *txBufReady_p; // 18 19 TX buffer ready to be read
|
||||
volatile Uint16 *bufDat_p; // 20 21 TX active buffer pointer
|
||||
Uint16 txBufIdx; // 22
|
||||
Uint16 txIntCnt; // 23
|
||||
Uint16 txBufSize; // 24
|
||||
|
||||
UINT16 timer01ShotFlag; // 25 Timer 0 cfg flags
|
||||
|
||||
Uint32 cb_param;
|
||||
Uint32 rxDmaTime; // RX DMA time (in 10us)
|
||||
Uint32 zcaTime; // Zero-crossing time (in 10us)
|
||||
|
||||
//Uint16 zcaPeriod; // half-cycle period (in 10us)
|
||||
|
||||
Uint32 zcaLatency; // Zero-crossing latency (in CPU ticks)
|
||||
Uint32 zcaCap1; // Zero-crossing captured (in CPU ticks)
|
||||
Uint32 zcbTime; // Zero-crossing time (in 10us)
|
||||
Uint32 zcbLatency; // Zero-crossing latency (in CPU ticks)
|
||||
Uint32 zcbCap1; // Zero-crossing captured (in CPU ticks)
|
||||
|
||||
Uint32 t0Prd; // T0 period in us (Q1)
|
||||
|
||||
UINT16 txPgaAttn;
|
||||
Uint16 zcaPeriod; // half-cycle period (in 10us)
|
||||
|
||||
}HAL_afe_handle_t;
|
||||
|
||||
//
|
||||
// Function Prototypes
|
||||
//
|
||||
HAL_status_t HAL_afe_init(void);
|
||||
HAL_status_t HAL_afe_cfg(void *setParms);
|
||||
|
||||
HAL_status_t HAL_afe_rxCfg(void *setParms);
|
||||
HAL_status_t HAL_afe_rxStart(void *setParms);
|
||||
HAL_status_t HAL_afe_rxStop(void *setParms);
|
||||
HAL_status_t HAL_afe_rxReCfg(void *setParms);
|
||||
HAL_status_t HAL_afe_setGain(void *setParms);
|
||||
HAL_status_t HAL_afe_updateGain(void *setParms);
|
||||
HAL_status_t HAL_afe_cancelGain(void *setParms);
|
||||
HAL_status_t HAL_afe_adcOffsetAdj(void *setParms);
|
||||
HAL_status_t HAL_afe_txDmaSize(void *setParms);
|
||||
HAL_status_t HAL_afe_txDmaAddr(void *setParms);
|
||||
HAL_status_t HAL_cpuTimer1CfgStart(void);
|
||||
Uint32 HAL_cpuTimer1GetCount(void);
|
||||
//#if 0
|
||||
HAL_status_t HAL_cpuTimer0TimeoutCfg(void *setParms);
|
||||
//#endif
|
||||
HAL_status_t HAL_cpuTimer0Cfg(UINT16 t0Prd);
|
||||
HAL_status_t HAL_cpuTimer0Start();
|
||||
HAL_status_t HAL_cpuTimer0Stop();
|
||||
|
||||
|
||||
HAL_status_t HAL_cpuTimerCfg();
|
||||
|
||||
HAL_status_t HAL_afe_txCfg(void *setParms);
|
||||
HAL_status_t HAL_afe_txStart(void *setParms);
|
||||
|
||||
HAL_status_t HAL_afe_txStop(void *setParms);
|
||||
HAL_status_t HAL_afe_txReCfg(void *setParms);
|
||||
|
||||
HAL_status_t HAL_afe_rxDmaTime(void *getParms);
|
||||
HAL_status_t HAL_afe_zcTime(void *getParms);
|
||||
HAL_status_t HAL_afe_rxDmaIdx(void *getParms);
|
||||
|
||||
HAL_status_t HAL_afe_prfCfg(void *setParms);
|
||||
|
||||
Uint16 HAL_afe031_readIntFlag(void);
|
||||
|
||||
#endif /* AFE031_CONFIG_H_ */
|
||||
|
||||
//
|
||||
// End of file
|
||||
//
|
||||
+537
@@ -0,0 +1,537 @@
|
||||
//#############################################################################
|
||||
//
|
||||
// FILE: boostxl_afe031_f28379d_pwmmode_main.c
|
||||
//
|
||||
// TITLE: FSK Transmitter using PWM mode on the AFE031
|
||||
//
|
||||
|
||||
//! \addtogroup cpu01_example_list
|
||||
//! <h1> FSK Transmitter using PWM mode on the AFE031 </h1>
|
||||
//!
|
||||
//! This example sets up the TMDS28379D Launchpad with the BOOSTXL-AFE031
|
||||
//! boosterpack to transmit 131.25 and 143.75 KHz FSK signals in a desired
|
||||
//! sequence, configured using EPWMs
|
||||
//!
|
||||
//! \b External \b Connections \n
|
||||
//! - Remove JP1, JP2, and JP3 headers on TMDS28379D Launchpad
|
||||
//! - Connect the BOOSTXL-AFE031 boosterpack to the upper TMDS28379D
|
||||
//! Launchpad pins
|
||||
//! - Supply 15V power via upper right most jumpers
|
||||
//!
|
||||
//! \b Watch \b Variables \n
|
||||
//! - txDataEnable
|
||||
//! - currentChar
|
||||
//! - cycleCount
|
||||
//!
|
||||
//
|
||||
//###########################################################################
|
||||
//
|
||||
//
|
||||
// $Copyright:
|
||||
// Copyright (C) 2013-2024 Texas Instruments Incorporated - http://www.ti.com/
|
||||
//
|
||||
// Redistribution and use in source and binary forms, with or without
|
||||
// modification, are permitted provided that the following conditions
|
||||
// are met:
|
||||
//
|
||||
// Redistributions of source code must retain the above copyright
|
||||
// notice, this list of conditions and the following disclaimer.
|
||||
//
|
||||
// Redistributions in binary form must reproduce the above copyright
|
||||
// notice, this list of conditions and the following disclaimer in the
|
||||
// documentation and/or other materials provided with the
|
||||
// distribution.
|
||||
//
|
||||
// Neither the name of Texas Instruments Incorporated nor the names of
|
||||
// its contributors may be used to endorse or promote products derived
|
||||
// from this software without specific prior written permission.
|
||||
//
|
||||
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||
// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||
// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
||||
// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
||||
// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||
// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||
// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
||||
// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
||||
// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
// $
|
||||
//###########################################################################
|
||||
|
||||
//
|
||||
// Included Files
|
||||
//
|
||||
#include "F28x_Project.h" // Device Header file and Examples Include File
|
||||
#include "SFO_V8.h"
|
||||
#include "afe031_config.h"
|
||||
|
||||
//
|
||||
// Defines
|
||||
//
|
||||
#define EPWM1_TIMER_TBPRD 380 // Period register
|
||||
#define EPWM1_CMPA 128
|
||||
#define EPWM1_CMPB 252
|
||||
|
||||
#define EPWM2_TIMER_TBPRD 32000 // Period register
|
||||
|
||||
#define EPWM_CMP_UP 1
|
||||
#define EPWM_CMP_DOWN 0
|
||||
|
||||
//
|
||||
//Defines for PWM FSK Application
|
||||
//
|
||||
#define EPWM1B_SPACE_COMPARE 229
|
||||
#define EPWM1A_SPACE_COMPARE 118
|
||||
#define EPWM1B_MARK_COMPARE 252
|
||||
#define EPWM1A_MARK_COMPARE 128
|
||||
|
||||
#define MARKFREQ 1
|
||||
#define SPACEFREQ 0
|
||||
#define YES 1
|
||||
#define NO 0
|
||||
#define STOP 2
|
||||
|
||||
//
|
||||
// Globals
|
||||
//
|
||||
int MEP_ScaleFactor; // Global variable used by the SFO library
|
||||
// Used by SFO library (ePWM[0] is a dummy value that isn't used)
|
||||
volatile struct EPWM_REGS *ePWM[PWM_CH_MAX] = { &EPwm1Regs, &EPwm1Regs };
|
||||
|
||||
//
|
||||
// Globals used for FSK Application
|
||||
//
|
||||
Uint16 txDataEnable = 0;
|
||||
Uint16 txMessage_1[12] = { 0, 0, 0, 1, 1, 1, 0, 1, 1, 0, 1, STOP }; // Logic 1 word
|
||||
Uint16 txMessage_0[12] = { 1, 1, 1, 0, 0, 0, 1, 0, 0, 1, 0, STOP }; // Logic 0 word
|
||||
//Uint16 txMessage_1[12] = { 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, STOP };
|
||||
//Uint16 txMessage_1[12] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, STOP };
|
||||
Uint16 currentChar = 0;
|
||||
Uint16 cycleCount = 0;
|
||||
Uint16 status;
|
||||
Uint16 packet_to_send = 1;
|
||||
|
||||
//
|
||||
// Function Prototypes
|
||||
//
|
||||
void AFE_InitGpio(void);
|
||||
void EPWM1_Init(void);
|
||||
void EPWM2_Init(void);
|
||||
void error (void);
|
||||
__interrupt void epwm2_isr(void);
|
||||
|
||||
#ifdef _FLASH
|
||||
extern Uint16 RamfuncsLoadStart;
|
||||
extern Uint16 RamfuncsLoadSize;
|
||||
extern Uint16 RamfuncsRunStart;
|
||||
#endif
|
||||
|
||||
void main(void)
|
||||
{
|
||||
//
|
||||
// Initialize System Control:
|
||||
// PLL, WatchDog, enable Peripheral Clocks
|
||||
//
|
||||
InitSysCtrl();
|
||||
|
||||
//
|
||||
// Initialize GPIO:
|
||||
// These GPIOs control LEDs, AFE GPIOS.
|
||||
//
|
||||
InitGpio();
|
||||
AFE_InitGpio();
|
||||
|
||||
//
|
||||
// Init GPIO pins for ePWM1
|
||||
//
|
||||
InitEPwm1Gpio();
|
||||
|
||||
|
||||
//
|
||||
// Initialize PIE vector table:
|
||||
//
|
||||
DINT;
|
||||
|
||||
//
|
||||
// Initialize PIE control registers to their default state:
|
||||
//
|
||||
InitPieCtrl();
|
||||
|
||||
// Disable and clear all CPU interrupts
|
||||
IER = 0x0000;
|
||||
IFR = 0x0000;
|
||||
|
||||
//
|
||||
// Initialize the PIE vector table with pointers to the shell Interrupt
|
||||
// Service Routines (ISR).
|
||||
// This will populate the entire table, even if the interrupt
|
||||
// is not used in this example. This is useful for debug purposes.
|
||||
//
|
||||
InitPieVectTable();
|
||||
|
||||
//
|
||||
// Interrupts that are used in this example are re-mapped to
|
||||
// ISR functions found within this file.
|
||||
//
|
||||
EALLOW;
|
||||
PieVectTable.EPWM2_INT = &epwm2_isr;
|
||||
EDIS;
|
||||
|
||||
//
|
||||
//initialize the ePWM
|
||||
//
|
||||
EALLOW;
|
||||
CpuSysRegs.PCLKCR0.bit.TBCLKSYNC = 0;
|
||||
EDIS;
|
||||
|
||||
EPWM1_Init();
|
||||
EPWM2_Init();
|
||||
|
||||
EALLOW;
|
||||
InputXbarRegs.INPUT5SELECT = 500; // Setting to a GPIO number above what exists on device, to avoid interference.
|
||||
EPwm1Regs.TBCTL.bit.PHSEN = 1;
|
||||
EPwm2Regs.TBCTL.bit.PHSEN = 1;
|
||||
EPwm1Regs.TBCTL.bit.SYNCOSEL = 0;
|
||||
CpuSysRegs.PCLKCR0.bit.TBCLKSYNC = 1;
|
||||
EPwm1Regs.TBCTL.bit.SWFSYNC = 1; // Sync PWM1 and PWM2 clocks
|
||||
EDIS;
|
||||
|
||||
//
|
||||
// Enable CPU INT3 which is connected to EPWM2 INT:
|
||||
//
|
||||
IER |= M_INT3;
|
||||
|
||||
//
|
||||
// Enable EPWM2 INTn in the PIE: Group 3 interrupt 2
|
||||
//
|
||||
PieCtrlRegs.PIEIER3.bit.INTx2 = 1;
|
||||
|
||||
status = SFO_INCOMPLETE;
|
||||
|
||||
//
|
||||
// Calling SFO() updates the HRMSTEP register with calibrated MEP_ScaleFactor.
|
||||
// HRMSTEP must be populated with a scale factor value prior to enabling
|
||||
// high resolution period control.
|
||||
//
|
||||
while(status == SFO_INCOMPLETE)
|
||||
{
|
||||
status = SFO();
|
||||
if(status == SFO_ERROR)
|
||||
{
|
||||
error(); // SFO function returns 2 if an error occurs & # of MEP
|
||||
} // steps/coarse step exceeds maximum of 255.
|
||||
}
|
||||
|
||||
//
|
||||
// Enable global Interrupts and higher priority real-time debug events:
|
||||
//
|
||||
EINT;
|
||||
ERTM;
|
||||
|
||||
//
|
||||
//Configure AFE
|
||||
//
|
||||
HAL_afe031Init();
|
||||
|
||||
//
|
||||
// Turn on AFE PWM transmit Enable
|
||||
//
|
||||
HAL_afe031_txPWMEnable();
|
||||
|
||||
//
|
||||
// Disable the DAC on the AFE, and set GPIO7 LOW.
|
||||
//(When GPIO7 is high, the device enters DAC Mode)
|
||||
//
|
||||
HAL_afe031_dacDisable();
|
||||
|
||||
//
|
||||
//Enable Transmission Mode
|
||||
//
|
||||
txDataEnable = YES;
|
||||
|
||||
//
|
||||
//Create a toggle variable for LEDs
|
||||
//
|
||||
Uint16 toggle = 0;
|
||||
while(1)
|
||||
{
|
||||
//Toggle LEDs as packets are sent.
|
||||
GPIO_WritePin(4, toggle);
|
||||
toggle = !toggle;
|
||||
GPIO_WritePin(5, toggle);
|
||||
DELAY_US(100000);
|
||||
}
|
||||
}
|
||||
|
||||
//
|
||||
// AFE_InitGpio - Initialize the GPIOs on launchpad and boosterpack
|
||||
//
|
||||
void AFE_InitGpio()
|
||||
{
|
||||
EALLOW;
|
||||
|
||||
//GPIO-34 - LaunchPad RED LED
|
||||
GPIO_SetupPinMux(34, GPIO_MUX_CPU1, 0);
|
||||
GPIO_SetupPinOptions(34, GPIO_OUTPUT, GPIO_PUSHPULL);
|
||||
|
||||
// GPIO-31 - LaunchPad BLUE LED
|
||||
GPIO_SetupPinMux(31, GPIO_MUX_CPU1, 0);
|
||||
GPIO_SetupPinOptions(31, GPIO_OUTPUT, GPIO_PUSHPULL);
|
||||
|
||||
// GPIO AFE BoosterPack LED
|
||||
GPIO_SetupPinMux(4, GPIO_MUX_CPU1, 0);
|
||||
GPIO_SetupPinOptions(4, GPIO_OUTPUT, GPIO_PUSHPULL);
|
||||
|
||||
GPIO_SetupPinMux(5, GPIO_MUX_CPU1, 0);
|
||||
GPIO_SetupPinOptions(5, GPIO_OUTPUT, GPIO_PUSHPULL);
|
||||
|
||||
GPIO_WritePin(4, 0);
|
||||
GPIO_WritePin(5, 0);
|
||||
EDIS;
|
||||
}
|
||||
|
||||
//
|
||||
// epwm2_isr - EPWM2 ISR
|
||||
//
|
||||
__interrupt void epwm2_isr(void)
|
||||
{
|
||||
EALLOW;
|
||||
|
||||
//
|
||||
//Checking for cycle count. If cycle count is 209, we can reset the cycle
|
||||
//count and enable Tx Data
|
||||
//
|
||||
if (cycleCount == 209)
|
||||
{
|
||||
txDataEnable = YES;
|
||||
cycleCount = 0;
|
||||
EALLOW;
|
||||
EPwm1Regs.TZCLR.bit.OST = 1;
|
||||
EDIS;
|
||||
}
|
||||
|
||||
//
|
||||
//Checking for cycle count. If cycle count is 33, then we can disable Tx Data
|
||||
//
|
||||
if(cycleCount == 33)
|
||||
{
|
||||
txDataEnable = NO;
|
||||
EPwm1Regs.TZFRC.bit.OST = 1;
|
||||
|
||||
//software breakpoint after sending full 33 bit message, for debug
|
||||
//asm(" ESTOP0");
|
||||
}
|
||||
|
||||
//
|
||||
//Check Cycle Count
|
||||
//Check for Data to send
|
||||
//
|
||||
if(txDataEnable == YES)
|
||||
{
|
||||
//
|
||||
// Transmit packet of txMessage_1's
|
||||
//
|
||||
if(packet_to_send == 1){
|
||||
if(txMessage_1[currentChar] == MARKFREQ)
|
||||
{
|
||||
EPwm1Regs.TBPRD = 380;
|
||||
EPwm1Regs.TBPRDHR = (243U << 8);
|
||||
EPwm1Regs.CMPA.bit.CMPA = EPWM1A_MARK_COMPARE; // Set compare A value
|
||||
EPwm1Regs.CMPB.bit.CMPB = EPWM1B_MARK_COMPARE; // Set Compare B value
|
||||
}
|
||||
|
||||
if(txMessage_1[currentChar] == SPACEFREQ)
|
||||
{
|
||||
EPwm1Regs.TBPRD = 347;
|
||||
EPwm1Regs.TBPRDHR = (211U << 8);
|
||||
EPwm1Regs.CMPA.bit.CMPA = EPWM1A_SPACE_COMPARE; // Set compare A value
|
||||
EPwm1Regs.CMPB.bit.CMPB = EPWM1B_SPACE_COMPARE; // Set Compare B value
|
||||
}
|
||||
|
||||
currentChar++;
|
||||
|
||||
if(txMessage_1[currentChar] == STOP)
|
||||
{
|
||||
currentChar = 0;
|
||||
}
|
||||
}
|
||||
//
|
||||
// Transmit packet of txMessage_0's
|
||||
//
|
||||
else
|
||||
{
|
||||
if(txMessage_0[currentChar] == MARKFREQ)
|
||||
{
|
||||
EPwm1Regs.TBPRD = 380;
|
||||
EPwm1Regs.TBPRDHR = (243U << 8);
|
||||
EPwm1Regs.CMPA.bit.CMPA = EPWM1A_MARK_COMPARE; // Set compare A value
|
||||
EPwm1Regs.CMPB.bit.CMPB = EPWM1B_MARK_COMPARE; // Set Compare B value
|
||||
}
|
||||
|
||||
if(txMessage_0[currentChar] == SPACEFREQ)
|
||||
{
|
||||
EPwm1Regs.TBPRD = 347;
|
||||
EPwm1Regs.TBPRDHR = (211U << 8);
|
||||
EPwm1Regs.CMPA.bit.CMPA = EPWM1A_SPACE_COMPARE; // Set compare A value
|
||||
EPwm1Regs.CMPB.bit.CMPB = EPWM1B_SPACE_COMPARE; // Set Compare B value
|
||||
}
|
||||
|
||||
currentChar++;
|
||||
|
||||
if(txMessage_0[currentChar] == STOP)
|
||||
{
|
||||
currentChar = 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
cycleCount++; // comment out for continuous run
|
||||
|
||||
EDIS;
|
||||
|
||||
//
|
||||
// Clear INT flag for this timer
|
||||
//
|
||||
EPwm2Regs.ETCLR.bit.INT = 1;
|
||||
|
||||
//
|
||||
// Acknowledge this interrupt to receive more interrupts from group 3
|
||||
//
|
||||
PieCtrlRegs.PIEACK.all = PIEACK_GROUP3;
|
||||
}
|
||||
|
||||
//
|
||||
// EPWM1_Init - Initialize EPWM1 configuration
|
||||
//
|
||||
void EPWM1_Init()
|
||||
{
|
||||
//
|
||||
//Setup for HRPWM
|
||||
//
|
||||
EALLOW;
|
||||
EPwm1Regs.HRMSTEP.bit.HRMSTEP = 55;
|
||||
CpuSysRegs.PCLKCR0.bit.HRPWM = 1;
|
||||
EDIS;
|
||||
|
||||
//
|
||||
// Setup TBCLK
|
||||
//
|
||||
EPwm1Regs.TBPRD = EPWM1_TIMER_TBPRD; // Set timer period 380 TBCLKs
|
||||
EPwm1Regs.TBPHS.bit.TBPHS = 0x0000; // Phase is 0
|
||||
EPwm1Regs.TBCTR = 0x0000; // Clear counter
|
||||
|
||||
//
|
||||
// Set Compare values
|
||||
//
|
||||
EPwm1Regs.CMPA.bit.CMPA = EPWM1_CMPA; // Set compare A value
|
||||
EPwm1Regs.CMPB.bit.CMPB = EPWM1_CMPB; // Set Compare B value
|
||||
|
||||
//
|
||||
// Setup counter mode
|
||||
//
|
||||
EPwm1Regs.TBCTL.bit.CTRMODE = TB_COUNT_UPDOWN; // Count up and down
|
||||
EPwm1Regs.TBCTL.bit.PHSEN = TB_DISABLE; // Disable phase loading
|
||||
EPwm1Regs.TBCTL.bit.SYNCOSEL = TB_SYNC_DISABLE;
|
||||
EPwm1Regs.TBCTL.bit.HSPCLKDIV = TB_DIV1; // Clock ratio to SYSCLKOUT
|
||||
EPwm1Regs.TBCTL.bit.CLKDIV = TB_DIV1;
|
||||
EPwm1Regs.TBCTL.bit.FREE_SOFT = 0x03;
|
||||
|
||||
//
|
||||
// Setup shadowing
|
||||
//
|
||||
EPwm1Regs.CMPCTL.bit.SHDWAMODE = CC_SHADOW;
|
||||
EPwm1Regs.CMPCTL.bit.SHDWBMODE = CC_SHADOW;
|
||||
EPwm1Regs.CMPCTL.bit.LOADAMODE = CC_CTR_ZERO_PRD; // Load on Zero
|
||||
EPwm1Regs.CMPCTL.bit.LOADBMODE = CC_CTR_ZERO_PRD;
|
||||
|
||||
//
|
||||
//Setup Tripping
|
||||
//
|
||||
|
||||
//TZCTL[TZA] = 2: EPWM1A will be forced low on a trip event.
|
||||
EPwm1Regs.TZCTL.bit.TZA = 2;
|
||||
EPwm1Regs.TZCTL.bit.DCAEVT1 = 3;
|
||||
EPwm1Regs.TZCTL.bit.DCAEVT2 = 3;
|
||||
// – TZCTL[TZB] = 2: EPWM1B will be forced low on a trip event.
|
||||
EPwm1Regs.TZCTL.bit.TZB = 2;
|
||||
EPwm1Regs.TZCTL.bit.DCBEVT1 = 3;
|
||||
EPwm1Regs.TZCTL.bit.DCBEVT2 = 3;
|
||||
|
||||
//
|
||||
// Set actions
|
||||
//
|
||||
EPwm1Regs.AQCTLA.bit.CAU = AQ_SET; // Set PWM1A on event A, up
|
||||
// count
|
||||
EPwm1Regs.AQCTLA.bit.CAD = AQ_CLEAR; // Clear PWM1A on event A,
|
||||
// down count
|
||||
EPwm1Regs.AQCTLB.bit.CBU = AQ_SET; // Set PWM1B on event B, up
|
||||
// count
|
||||
EPwm1Regs.AQCTLB.bit.CBD = AQ_CLEAR; // Clear PWM1B on event B,
|
||||
// down count
|
||||
|
||||
//
|
||||
//Disable Interrupt
|
||||
//
|
||||
EPwm1Regs.ETSEL.bit.INTEN = 0; // disable INT
|
||||
|
||||
//
|
||||
//HRPWM SETUP
|
||||
//
|
||||
EALLOW;
|
||||
EPwm1Regs.HRCNFG.bit.HRLOAD = 2;
|
||||
EPwm1Regs.HRCNFG.bit.AUTOCONV = 1;
|
||||
EPwm1Regs.HRCNFG.bit.EDGMODE = 3;
|
||||
EPwm1Regs.HRPCTL.bit.HRPE = 1;
|
||||
EDIS;
|
||||
}
|
||||
|
||||
//
|
||||
// EPWM2_Init - Initialize EPWM2 configuration
|
||||
//
|
||||
void EPWM2_Init()
|
||||
{
|
||||
//
|
||||
// Setup TBCLK
|
||||
//
|
||||
EPwm2Regs.TBPRD = EPWM2_TIMER_TBPRD; // Set timer period 16000 TBCLKs
|
||||
EPwm2Regs.TBPHS.bit.TBPHS = 0x0000; // Phase is 0
|
||||
EPwm2Regs.TBCTR = 0x0000; // Clear counter
|
||||
|
||||
//
|
||||
// Setup counter mode
|
||||
//
|
||||
EPwm2Regs.TBCTL.bit.CTRMODE = TB_COUNT_UP; // Count up/down
|
||||
EPwm2Regs.TBCTL.bit.HSPCLKDIV = TB_DIV4; // Clock ratio to SYSCLKOUT
|
||||
EPwm2Regs.TBCTL.bit.CLKDIV = TB_DIV4;
|
||||
|
||||
//
|
||||
// Setup shadowing
|
||||
//
|
||||
EPwm2Regs.CMPCTL.bit.SHDWAMODE = CC_SHADOW;
|
||||
EPwm2Regs.CMPCTL.bit.SHDWBMODE = CC_SHADOW;
|
||||
EPwm2Regs.CMPCTL.bit.LOADAMODE = CC_CTR_ZERO; // Load on Zero
|
||||
EPwm2Regs.CMPCTL.bit.LOADBMODE = CC_CTR_ZERO;
|
||||
|
||||
|
||||
//
|
||||
// Interrupt where we will change the Compare Values
|
||||
//
|
||||
EPwm2Regs.ETSEL.bit.INTSEL = ET_CTR_PRD; // Select INT on period event
|
||||
EPwm2Regs.ETSEL.bit.INTEN = 1; // Enable INT
|
||||
EPwm2Regs.ETPS.bit.INTPRD = ET_1ST; // Generate INT on every event
|
||||
}
|
||||
|
||||
//
|
||||
// error - Halt debugger when called
|
||||
//
|
||||
void error(void)
|
||||
{
|
||||
ESTOP0; // Stop here and handle error
|
||||
}
|
||||
|
||||
//
|
||||
// End of file
|
||||
//
|
||||
|
||||
+40
@@ -0,0 +1,40 @@
|
||||
<projectSpec>
|
||||
<project
|
||||
name="boostxl_afe031_f28379d_pwmmode"
|
||||
device="TMS320F28379D"
|
||||
cgtVersion="22.6.0.LTS"
|
||||
products="C2000WARE"
|
||||
launchWizard="False"
|
||||
linkerCommandFile="" >
|
||||
<configuration name="CPU1_RAM"
|
||||
compilerBuildOptions="--opt_level=off -I${F28379D_DEVICE_SUPPORT_ROOT}/../../libraries/calibration/hrpwm/f2837xd/include
|
||||
-I${F28379D_DEVICE_SUPPORT_ROOT}/headers/include -I${F28379D_DEVICE_SUPPORT_ROOT}/common/include -v28 -ml -mt --vcu_support=vcu2 --cla_support=cla1 --float_support=fpu32 --tmu_support=tmu0 --define=CPU1 --define=_LAUNCHXL_F28379D --diag_warning=225 --diag_suppress=10063 --display_error_number"
|
||||
linkerBuildOptions="--stack_size=0x100 -i${F28379D_DEVICE_SUPPORT_ROOT}/../../libraries/calibration/hrpwm/f2837xd/lib -l rts2800_fpu32.lib -l SFO_v8_fpu_lib_build_c28.lib" />
|
||||
<configuration name="CPU1_FLASH"
|
||||
compilerBuildOptions="--opt_level=off -I${F28379D_DEVICE_SUPPORT_ROOT}/../../libraries/calibration/hrpwm/f2837xd/include
|
||||
-I${F28379D_DEVICE_SUPPORT_ROOT}/headers/include -I${F28379D_DEVICE_SUPPORT_ROOT}/common/include
|
||||
--define=_FLASH -v28 -ml -mt --vcu_support=vcu2 --cla_support=cla1 --float_support=fpu32 --tmu_support=tmu0 --define=CPU1 --define=_LAUNCHXL_F28379D --diag_warning=225 --diag_suppress=10063 --display_error_number"
|
||||
linkerBuildOptions="--stack_size=0x100 -i${F28379D_DEVICE_SUPPORT_ROOT}/../../libraries/calibration/hrpwm/f2837xd/lib -l rts2800_fpu32.lib -l SFO_v8_fpu_lib_build_c28.lib" />
|
||||
<pathVariable name="F28379D_DEVICE_SUPPORT_ROOT" path="../../../../../" scope="project" />
|
||||
<file action="copy" path="../../../../../common/targetConfigs/TMS320F28377D.ccxml" targetDirectory="targetConfigs" />
|
||||
<file action="copy" path="../../../../../common/cmd/2837xD_RAM_afe031_lnk_cpu1.cmd" targetDirectory="" applicableConfigurations="CPU1_RAM" />
|
||||
<file action="copy" path="../../../../../common/cmd/2837xD_FLASH_afe031_lnk_cpu1.cmd" targetDirectory="" applicableConfigurations="CPU1_FLASH" />
|
||||
<file action="copy" path="../../../../../common/source/F2837xD_CodeStartBranch.asm" targetDirectory="" />
|
||||
<file action="copy" path="../../../../../common/source/F2837xD_DefaultISR.c" targetDirectory="" />
|
||||
<file action="copy" path="../../../../../common/source/F2837xD_EPwm.c" targetDirectory="" />
|
||||
<file action="copy" path="../../../../../common/source/F2837xD_Gpio.c" targetDirectory="" />
|
||||
<file action="copy" path="../../../../../common/source/F2837xD_Ipc.c" targetDirectory="" />
|
||||
<file action="copy" path="../../../../../common/source/F2837xD_PieCtrl.c" targetDirectory="" />
|
||||
<file action="copy" path="../../../../../common/source/F2837xD_PieVect.c" targetDirectory="" />
|
||||
<file action="copy" path="../../../../../common/source/F2837xD_SysCtrl.c" targetDirectory="" />
|
||||
<file action="copy" path="../../../../../common/source/F2837xD_usDelay.asm" targetDirectory="" />
|
||||
<file action="copy" path="../../../../../headers/source/F2837xD_GlobalVariableDefs.c" targetDirectory="" />
|
||||
<file action="copy" path="../../../../../headers/cmd/F2837xD_Headers_nonBIOS_cpu1.cmd" targetDirectory="" />
|
||||
<file action="copy" path="../afe031_config.c" targetDirectory="" />
|
||||
<file action="copy" path="../afe031_config.h" targetDirectory="" />
|
||||
<file action="copy" path="../boostxl_afe031_f28379d_pwmmode_main.c" targetDirectory="" />
|
||||
<file action="copy" path="../hal_afe031.h" targetDirectory="" />
|
||||
<file action="copy" path="../hal_spi.c" targetDirectory="" />
|
||||
<file action="copy" path="../hal_spi.h" targetDirectory="" />
|
||||
</project>
|
||||
</projectSpec>
|
||||
+22
@@ -0,0 +1,22 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<configurations XML_version="1.2" id="configurations_0">
|
||||
<configuration XML_version="1.2" id="Texas Instruments XDS100v2 USB Debug Probe_0">
|
||||
<instance XML_version="1.2" desc="Texas Instruments XDS100v2 USB Debug Probe_0" href="connections/TIXDS100v2_Connection.xml" id="Texas Instruments XDS100v2 USB Debug Probe_0" xml="TIXDS100v2_Connection.xml" xmlpath="connections"/>
|
||||
<connection XML_version="1.2" id="Texas Instruments XDS100v2 USB Debug Probe_0">
|
||||
<instance XML_version="1.2" href="drivers/tixds100v2icepick_c.xml" id="drivers" xml="tixds100v2icepick_c.xml" xmlpath="drivers"/>
|
||||
<instance XML_version="1.2" href="drivers/tixds100v2c28x.xml" id="drivers" xml="tixds100v2c28x.xml" xmlpath="drivers"/>
|
||||
<instance XML_version="1.2" href="drivers/tixds100v2cla1.xml" id="drivers" xml="tixds100v2cla1.xml" xmlpath="drivers"/>
|
||||
<instance XML_version="1.2" href="drivers/tixds100v2cs_child.xml" id="drivers" xml="tixds100v2cs_child.xml" xmlpath="drivers"/>
|
||||
<platform XML_version="1.2" id="platform_0">
|
||||
<instance XML_version="1.2" desc="TMS320F28377D_0" href="devices/tms320f28377d.xml" id="TMS320F28377D_0" xml="tms320f28377d.xml" xmlpath="devices"/>
|
||||
<device HW_revision="1" XML_version="1.2" description="" id="TMS320F28377D_0" partnum="TMS320F28377D">
|
||||
<router HW_revision="1.0" XML_version="1.2" description="ICEPick_C router" id="IcePick_C_0" isa="ICEPICK_C">
|
||||
<subpath id="Subpath_1">
|
||||
<property Type="numericfield" Value="0x11" desc="Port Number_0" id="Port Number"/>
|
||||
</subpath>
|
||||
</router>
|
||||
</device>
|
||||
</platform>
|
||||
</connection>
|
||||
</configuration>
|
||||
</configurations>
|
||||
+368
@@ -0,0 +1,368 @@
|
||||
//#############################################################################
|
||||
//
|
||||
// FILE: hal_afe031.h
|
||||
//
|
||||
// TITLE: AFE031 Functions
|
||||
//
|
||||
//###########################################################################
|
||||
//
|
||||
//
|
||||
// $Copyright:
|
||||
// Copyright (C) 2013-2024 Texas Instruments Incorporated - http://www.ti.com/
|
||||
//
|
||||
// Redistribution and use in source and binary forms, with or without
|
||||
// modification, are permitted provided that the following conditions
|
||||
// are met:
|
||||
//
|
||||
// Redistributions of source code must retain the above copyright
|
||||
// notice, this list of conditions and the following disclaimer.
|
||||
//
|
||||
// Redistributions in binary form must reproduce the above copyright
|
||||
// notice, this list of conditions and the following disclaimer in the
|
||||
// documentation and/or other materials provided with the
|
||||
// distribution.
|
||||
//
|
||||
// Neither the name of Texas Instruments Incorporated nor the names of
|
||||
// its contributors may be used to endorse or promote products derived
|
||||
// from this software without specific prior written permission.
|
||||
//
|
||||
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||
// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||
// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
||||
// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
||||
// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||
// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||
// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
||||
// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
||||
// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
// $
|
||||
//###########################################################################
|
||||
|
||||
#ifndef _HAL_AFE031_H
|
||||
#define _HAL_AFE031_H
|
||||
|
||||
//
|
||||
// Included Files
|
||||
//
|
||||
#include "F28x_Project.h" // Device Headerfile and Examples Include File
|
||||
|
||||
//
|
||||
// Defines
|
||||
//
|
||||
#define UINT16 Uint16
|
||||
#define HAL_AFE031_CMD_SHIFT 8
|
||||
#define HAL_AFE031_CMD_MASK 0xFF
|
||||
#define HAL_AFE031_DATA_SHIFT 0
|
||||
#define HAL_AFE031_DATA_MASK 0xFF
|
||||
|
||||
#define HAL_AFE031_CMD_WR 0x0
|
||||
#define HAL_AFE031_CMD_RD 0x8
|
||||
#define HAL_AFE031_CMD_RW_SHIFT 4
|
||||
#define HAL_AFE031_CMD_RW_MASK 0xF
|
||||
|
||||
#define HAL_AFE031_ENABLE_REG 0x1
|
||||
#define HAL_AFE031_ENABLE2_REG 0x3
|
||||
#define HAL_AFE031_GAINSEL_REG 0x2
|
||||
#define HAL_AFE031_CTRL_REG 0x4
|
||||
#define HAL_AFE031_CTRL2_REG 0x5
|
||||
#define HAL_AFE031_FUSE1_REG 0x8
|
||||
#define HAL_AFE031_RESET_REG 0x9
|
||||
#define HAL_AFE031_DIEID_REG 0xA
|
||||
#define HAL_AFE031_REV_REG 0xB
|
||||
#define HAL_AFE031_IFLAG_REG 0xC
|
||||
|
||||
/* Register Bit Definitions */
|
||||
/* Enable Register */
|
||||
#define HAL_AFE031_ENABLE_PA 0x1
|
||||
#define HAL_AFE031_ENABLE_TX 0x2
|
||||
#define HAL_AFE031_ENABLE_RX 0x4
|
||||
#define HAL_AFE031_ENABLE_ERX 0x8
|
||||
#define HAL_AFE031_ENABLE_ETX 0x10
|
||||
#define HAL_AFE031_ENABLE_DAC 0x20
|
||||
|
||||
/* Enable2 Register */
|
||||
#define HAL_AFE031_ENABLE2_ZC 0x1
|
||||
#define HAL_AFE031_ENABLE2_REF1 0x2
|
||||
#define HAL_AFE031_ENABLE2_REF2 0x4
|
||||
#define HAL_AFE031_ENABLE2_REF 0x6
|
||||
#define HAL_AFE031_ENABLE2_PAOUT 0x8
|
||||
#define HAL_AFE031_ENABLE2_OVWR 0x80
|
||||
|
||||
/* Fuse1 Register */
|
||||
#define HAL_AFE031_FUSE1_TX0 0x1
|
||||
#define HAL_AFE031_FUSE1_TX1 0x2
|
||||
#define HAL_AFE031_FUSE1_TX2 0x4
|
||||
#define HAL_AFE031_FUSE1_TX3 0x8
|
||||
#define HAL_AFE031_FUSE1_RX0 0x10
|
||||
#define HAL_AFE031_FUSE1_RX1 0x20
|
||||
#define HAL_AFE031_FUSE1_RX2 0x40
|
||||
#define HAL_AFE031_FUSE1_RX3 0x80
|
||||
|
||||
/* Reset Register */
|
||||
#define HAL_AFE031_RESET_SOFTRST0 0x4 //write only
|
||||
#define HAL_AFE031_RESET_SOFTRST1 0x8 //write only
|
||||
#define HAL_AFE031_RESET_SOFTRST2 0x10 //write only
|
||||
#define HAL_AFE031_RESET_SOFTRST_MASK 0x1C
|
||||
#define HAL_AFE031_RESET_SOFTRST 0x14 //101 to reset
|
||||
#define HAL_AFE031_RESET_TFLAG 0x20 //read only (status)
|
||||
#define HAL_AFE031_RESET_IFLAG 0x40 //read only (status)
|
||||
#define HAL_AFE031_RESET_PWRFLAG 0x80 //read only (status)
|
||||
|
||||
/* Gain Select Register */
|
||||
#define HAL_AFE031_GAINSEL_RXGAIN_MASK 0xF //b3-0
|
||||
#define HAL_AFE031_GAINSEL_TXGAIN_MASK 0x3 //b5b4
|
||||
#define HAL_AFE031_GAINSEL_TXGAIN_SHIFT 0x4
|
||||
|
||||
/* Control Register */
|
||||
#define HAL_AFE031_CTRL_TXCAL 0x1 //b0
|
||||
#define HAL_AFE031_CTRL_RXCAL 0x2 //b1
|
||||
#define HAL_AFE031_CTRL_TXPGACAL 0x4 //b2
|
||||
#define HAL_AFE031_CTRL_BAND 0x8 //b3 (0-A; 1-BCD)
|
||||
#define HAL_AFE031_CTRL_ABAND 0
|
||||
#define HAL_AFE031_CTRL_BCDBAND 1
|
||||
#define HAL_AFE031_CTRL_BAND_SHIFT 3
|
||||
#define HAL_AFE031_CTRL_TXFLAG 0x40 //b6 (read only)
|
||||
#define HAL_AFE031_CTRL_RXFLAG 0x80 //b7 (read only)
|
||||
|
||||
/* Control2 Register */
|
||||
#define HAL_AFE031_CTRL2_TFLAG 0x20 //b5
|
||||
#define HAL_AFE031_CTRL2_IFLAG 0x40 //b6
|
||||
#define HAL_AFE031_CTRL2_PFLAG 0x80 //b7
|
||||
|
||||
#define HAL_AFE031_BIAS_ON_DELAY 2000 //in us
|
||||
|
||||
/* For true SPI (F28035), 10-bit SPI I/F for DAC
|
||||
For McBSP/SPI, 12-bit I/F for DAC */
|
||||
//#ifdef F2803X
|
||||
#define HAL_AFE031_SPI_DAC_LEN 10
|
||||
//#else
|
||||
//#define HAL_AFE031_SPI_DAC_LEN 12
|
||||
//#endif // end F2803X
|
||||
#define HAL_AFE031_SPI_DEFAULT_LEN 16
|
||||
|
||||
typedef enum
|
||||
{
|
||||
HAL_AFE031_ABAND = 0,
|
||||
HAL_AFE031_BCDBAND = 1
|
||||
}HAL_afe031_band_t;
|
||||
|
||||
/*****************************************************************************/
|
||||
/* Macro Definitions */
|
||||
/*****************************************************************************/
|
||||
#define HAL_afe031_softReset() \
|
||||
{HAL_afe031_reg_s.reset.bits.SOFT_RST = HAL_AFE031_RESET_SOFTRST;\
|
||||
HAL_afe031_regWrite(HAL_AFE031_RESET_REG, HAL_afe031_reg_s.reset.all);}
|
||||
|
||||
#define HAL_afe031_biasEnable() \
|
||||
{HAL_afe031_reg_s.enable2.bits.REF = 3; \
|
||||
HAL_afe031_regWrite(HAL_AFE031_ENABLE2_REG, HAL_afe031_reg_s.enable2.all);\
|
||||
DELAY_US(HAL_AFE031_BIAS_ON_DELAY);}
|
||||
|
||||
#define HAL_afe031_txDACEnable() \
|
||||
{HAL_afe031_reg_s.enable.bits.TX = 1; \
|
||||
HAL_afe031_reg_s.enable.bits.DAC = 1; \
|
||||
HAL_afe031_reg_s.enable.bits.PA = 1; \
|
||||
HAL_afe031_regWrite(HAL_AFE031_ENABLE_REG, HAL_afe031_reg_s.enable.all); \
|
||||
DELAY_US(2); \
|
||||
HAL_afe031_reg_s.enable2.bits.PA_OUT = 1; \
|
||||
HAL_afe031_regWrite(HAL_AFE031_ENABLE2_REG, HAL_afe031_reg_s.enable2.all); }
|
||||
|
||||
#define HAL_afe031_txPWMEnable() \
|
||||
{HAL_afe031_reg_s.enable.bits.TX = 1; \
|
||||
HAL_afe031_reg_s.enable.bits.DAC = 0; \
|
||||
HAL_afe031_reg_s.enable.bits.PA = 1; \
|
||||
HAL_afe031_regWrite(HAL_AFE031_ENABLE_REG, HAL_afe031_reg_s.enable.all); \
|
||||
DELAY_US(2); \
|
||||
HAL_afe031_reg_s.enable2.bits.PA_OUT = 1; \
|
||||
HAL_afe031_regWrite(HAL_AFE031_ENABLE2_REG, HAL_afe031_reg_s.enable2.all); }
|
||||
|
||||
#define HAL_afe031_txDisable() \
|
||||
{HAL_afe031_reg_s.enable2.bits.PA_OUT = 0; \
|
||||
HAL_afe031_regWrite(HAL_AFE031_ENABLE2_REG, HAL_afe031_reg_s.enable2.all); \
|
||||
HAL_afe031_reg_s.enable.bits.TX = 0; \
|
||||
HAL_afe031_reg_s.enable.bits.PA = 0; \
|
||||
HAL_afe031_regWrite(HAL_AFE031_ENABLE_REG, HAL_afe031_reg_s.enable.all);}
|
||||
|
||||
#define HAL_afe031_dacEnable() \
|
||||
{HAL_afe031_reg_s.enable.bits.DAC = 1; \
|
||||
HAL_afe031_regWrite(HAL_AFE031_ENABLE_REG, HAL_afe031_reg_s.enable.all); \
|
||||
DELAY_US(2); \
|
||||
HAL_afe031_cfgWdLen(HAL_AFE031_SPI_DAC_LEN); \
|
||||
GPIO_WritePin(2, 1);}
|
||||
|
||||
|
||||
#define HAL_afe031_dacDisable() \
|
||||
{GpioDataRegs.GPADAT.bit.GPIO7 = 0; \
|
||||
DELAY_US(10); \
|
||||
HAL_afe031_cfgWdLen(HAL_AFE031_SPI_DEFAULT_LEN); \
|
||||
GPIO_WritePin(2, 0); \
|
||||
HAL_afe031_regWrite(HAL_AFE031_ENABLE_REG, HAL_afe031_reg_s.enable.all);}
|
||||
|
||||
|
||||
#define HAL_afe031_rxEnable() \
|
||||
{HAL_afe031_reg_s.enable.bits.RX = 1; \
|
||||
HAL_afe031_regWrite(HAL_AFE031_ENABLE_REG, HAL_afe031_reg_s.enable.all);}
|
||||
|
||||
#define HAL_afe031_rxDisable() \
|
||||
{HAL_afe031_reg_s.enable.bits.RX = 0; \
|
||||
HAL_afe031_regWrite(HAL_AFE031_ENABLE_REG, HAL_afe031_reg_s.enable.all);}
|
||||
|
||||
#define HAL_afe031_bandSelect(band) \
|
||||
{HAL_afe031_reg_s.control.bits.CA_BCD = band; \
|
||||
HAL_afe031_regWrite(HAL_AFE031_CTRL_REG, HAL_afe031_reg_s.control.all);}
|
||||
|
||||
#define HAL_afe031_zcEnable() \
|
||||
{ HAL_afe031_reg_s.enable2.bits.ZC = 1;\
|
||||
HAL_afe031_regWrite(HAL_AFE031_ENABLE2_REG, HAL_afe031_reg_s.enable2.all);}
|
||||
|
||||
/*****************************************************************************/
|
||||
/* Data Structures */
|
||||
/*****************************************************************************/
|
||||
typedef struct
|
||||
{
|
||||
UINT16 PA :1; //b0 - PA enable
|
||||
UINT16 TX :1; //b1 - TX enable
|
||||
UINT16 RX :1; //b2 - RX enable
|
||||
UINT16 ERX :1; //b3 - ERX enable
|
||||
UINT16 ETX :1; //b4 - ETX enable
|
||||
UINT16 DAC :1; //b5 - DAC enable
|
||||
UINT16 rsvd :10; //reserved
|
||||
}HAL_afe031_enable_t;
|
||||
|
||||
typedef struct
|
||||
{
|
||||
UINT16 ZC :1; //b0 - ZC enable
|
||||
UINT16 REF :2; //b2:1 - Ref12Ref1 enable
|
||||
UINT16 PA_OUT :1; //b3 - PA out enable
|
||||
UINT16 rsvd :3; //b6:4 - reserved
|
||||
UINT16 OVWR :1; //Fuse1 overwrite enable
|
||||
UINT16 rsvd1 :8; //reserved
|
||||
}HAL_afe031_enable2_t;
|
||||
|
||||
typedef struct
|
||||
{
|
||||
UINT16 RXG :4; //b1:0 - RX PGA1 gain
|
||||
//b3:2 - RX PGA2 gain
|
||||
UINT16 TXG :2; //b5:4 - TX PGA gain
|
||||
UINT16 rsvd :10; //b15:6 reserved
|
||||
}HAL_afe031_gain_sel_t;
|
||||
|
||||
typedef struct
|
||||
{
|
||||
UINT16 TX_CAL :1; //b0 - TX calibration enable
|
||||
UINT16 RX_CAL :1; //b1 - RX calibration enable
|
||||
UINT16 TXPGA_CAL :1; //b2 - TXPGA calibration enable
|
||||
UINT16 CA_BCD :1; //b3 - Cenelec A (0) or BCD (1) band
|
||||
UINT16 rsvd :2; //b5:4 - reserved
|
||||
UINT16 TX_FLAG :1; //b6 - TX flag status (read only)
|
||||
UINT16 RX_FLAG :1; //b7 - RX flag status (read only)
|
||||
UINT16 rsvd1 :8; //reserved
|
||||
}HAL_afe031_control_t;
|
||||
|
||||
typedef struct
|
||||
{
|
||||
UINT16 rsvd :5; //b4:0 - reserved
|
||||
UINT16 TFLAG_EN :1; //b5 - TFlag enable
|
||||
UINT16 IFLAG_EN :1; //b6 - IFlag enable
|
||||
UINT16 PFLAG_EN :1; //b7 - PFlag enable
|
||||
UINT16 rsvd1 :8; //reserved
|
||||
}HAL_afe031_control2_t;
|
||||
|
||||
typedef struct
|
||||
{
|
||||
UINT16 TX_TRIM :4; //b3:0 - Each bit, 0:Clear TX trim fuse; 1:Set TX trim fuse
|
||||
UINT16 RX_TRIM :4; //b7:4 - Each bit, 0:Clear RX trim fuse; 1:Set RX trim fuse
|
||||
UINT16 rsvd :8; //reserved
|
||||
}HAL_afe031_fuse1_t;
|
||||
|
||||
typedef struct
|
||||
{
|
||||
UINT16 rsvd :2; //b1:0 - reserved
|
||||
UINT16 SOFT_RST :3; //b4:2 - Writing 101 to soft reset
|
||||
UINT16 TFLAG :1; //b5 - TFlag status (write 0 to clear)
|
||||
UINT16 IFLAG :1; //b6 - IFlag status (write 0 to clear)
|
||||
UINT16 PFLAG :1; //b7 - PFlag status (write 0 to clear)
|
||||
UINT16 rsvd1 :8; //reserved
|
||||
}HAL_afe031_reset_t;
|
||||
|
||||
|
||||
typedef struct
|
||||
{
|
||||
union
|
||||
{
|
||||
UINT16 all;
|
||||
HAL_afe031_enable_t bits;
|
||||
}enable;
|
||||
|
||||
union
|
||||
{
|
||||
UINT16 all;
|
||||
HAL_afe031_enable2_t bits;
|
||||
}enable2;
|
||||
|
||||
union
|
||||
{
|
||||
UINT16 all;
|
||||
HAL_afe031_gain_sel_t bits;
|
||||
}gain_sel;
|
||||
|
||||
union
|
||||
{
|
||||
UINT16 all;
|
||||
HAL_afe031_control_t bits;
|
||||
}control;
|
||||
|
||||
union
|
||||
{
|
||||
UINT16 all;
|
||||
HAL_afe031_control2_t bits;
|
||||
}control2;
|
||||
|
||||
union
|
||||
{
|
||||
UINT16 all;
|
||||
HAL_afe031_fuse1_t bits;
|
||||
}fuse1;
|
||||
|
||||
union
|
||||
{
|
||||
UINT16 all;
|
||||
HAL_afe031_reset_t bits;
|
||||
}reset;
|
||||
|
||||
UINT16 iflag_tm;
|
||||
|
||||
UINT16 die_id;
|
||||
|
||||
UINT16 rev;
|
||||
}HAL_afe031_reg_t;
|
||||
|
||||
//
|
||||
// Externals
|
||||
//
|
||||
extern HAL_afe031_reg_t HAL_afe031_reg_s;
|
||||
|
||||
//
|
||||
// Function Prototypes
|
||||
//
|
||||
void HAL_afe031_regWrite(UINT16 addr, UINT16 data);
|
||||
UINT16 HAL_afe031_regRead(UINT16 addr);
|
||||
void HAL_afe031_writeRxGain(UINT16 gain);
|
||||
void HAL_afe031_writeRxGain_noWait(UINT16 gain);
|
||||
void HAL_afe031_writeTxGain(UINT16 gain);
|
||||
void HAL_afe031_clrAllInt(void);
|
||||
void HAL_afe031_cfgInt(void);
|
||||
void HAL_afe031_clrInt(UINT16 flag);
|
||||
void HAL_afe031_cfgGpio(void);
|
||||
void HAL_afe031_cfgWdLen(UINT16 len);
|
||||
void HAL_afe031Init(void);
|
||||
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
//
|
||||
// End of file
|
||||
//
|
||||
+238
@@ -0,0 +1,238 @@
|
||||
//#############################################################################
|
||||
//
|
||||
// FILE: hal_spi.c
|
||||
//
|
||||
// TITLE: HAL SPI Functions
|
||||
//
|
||||
//#############################################################################
|
||||
//
|
||||
//
|
||||
// $Copyright:
|
||||
// Copyright (C) 2013-2024 Texas Instruments Incorporated - http://www.ti.com/
|
||||
//
|
||||
// Redistribution and use in source and binary forms, with or without
|
||||
// modification, are permitted provided that the following conditions
|
||||
// are met:
|
||||
//
|
||||
// Redistributions of source code must retain the above copyright
|
||||
// notice, this list of conditions and the following disclaimer.
|
||||
//
|
||||
// Redistributions in binary form must reproduce the above copyright
|
||||
// notice, this list of conditions and the following disclaimer in the
|
||||
// documentation and/or other materials provided with the
|
||||
// distribution.
|
||||
//
|
||||
// Neither the name of Texas Instruments Incorporated nor the names of
|
||||
// its contributors may be used to endorse or promote products derived
|
||||
// from this software without specific prior written permission.
|
||||
//
|
||||
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||
// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||
// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
||||
// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
||||
// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||
// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||
// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
||||
// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
||||
// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
// $
|
||||
//#############################################################################
|
||||
|
||||
//
|
||||
// Included Files
|
||||
//
|
||||
#include "F28x_Project.h"
|
||||
#include "hal_spi.h"
|
||||
#include "afe031_config.h"
|
||||
#include "hal_afe031.h"
|
||||
|
||||
//
|
||||
// FUNCTION NAME: HAL_spi_cfg
|
||||
//
|
||||
// DESCRIPTION: Configure SPI.
|
||||
//
|
||||
// Return Value: None
|
||||
//
|
||||
// Input Parameters:
|
||||
//
|
||||
// Output Parameters:
|
||||
// Functions Called:
|
||||
// InitSpiaGpio (TI header lib)
|
||||
// HAL_spi_fifo_init
|
||||
// HAL_spi_init
|
||||
//
|
||||
void HAL_spi_cfg()
|
||||
{
|
||||
InitAFESpiGpio();
|
||||
HAL_spi_fifoInit();
|
||||
HAL_spi_init();
|
||||
}
|
||||
|
||||
void InitAFESpiGpio()
|
||||
{
|
||||
EALLOW;
|
||||
|
||||
GPIO_SetupPinOptions(58, GPIO_INPUT, GPIO_ASYNC | GPIO_PULLUP);
|
||||
GPIO_SetupPinOptions(59, GPIO_INPUT, GPIO_ASYNC | GPIO_PULLUP);
|
||||
GPIO_SetupPinOptions(61, GPIO_INPUT, GPIO_ASYNC | GPIO_PULLUP);
|
||||
GPIO_SetupPinOptions(60, GPIO_INPUT, GPIO_ASYNC | GPIO_PULLUP);
|
||||
|
||||
GPIO_SetupPinMux(58, GPIO_MUX_CPU1, 15);
|
||||
GPIO_SetupPinMux(59, GPIO_MUX_CPU1, 15);
|
||||
GPIO_SetupPinMux(60, GPIO_MUX_CPU1, 15);
|
||||
GPIO_SetupPinMux(61, GPIO_MUX_CPU1, 15);
|
||||
|
||||
EDIS;
|
||||
}
|
||||
|
||||
//
|
||||
// FUNCTION NAME: HAL_spi_init
|
||||
//
|
||||
// DESCRIPTION: Initialize SPI.
|
||||
//
|
||||
// Return Value: None
|
||||
//
|
||||
// Input Parameters:
|
||||
//
|
||||
// Output Parameters:
|
||||
// Functions Called:
|
||||
//
|
||||
//
|
||||
void HAL_spi_init()
|
||||
{
|
||||
EALLOW;
|
||||
ClkCfgRegs.LOSPCP.all = HAL_SPI_LSPCLK;
|
||||
EDIS;
|
||||
|
||||
SpiaRegs.SPICCR.bit.SPISWRESET = 0;
|
||||
SpiaRegs.SPICCR.bit.CLKPOLARITY = 1;
|
||||
SpiaRegs.SPICCR.bit.SPILBK = 0;
|
||||
SpiaRegs.SPICCR.bit.SPICHAR = 15; //16-bit character
|
||||
SpiaRegs.SPICCR.bit.HS_MODE = 0x1;
|
||||
SpiaRegs.SPICTL.bit.SPIINTENA = 0; // Interrupt disable
|
||||
SpiaRegs.SPICTL.bit.TALK = 1; // Transmit enable
|
||||
SpiaRegs.SPICTL.bit.MASTER_SLAVE = 1; //Master
|
||||
SpiaRegs.SPICTL.bit.CLK_PHASE = 0; //Normal phase, depending on SPICCR.6 (CLOCK_POLARITY)
|
||||
SpiaRegs.SPICTL.bit.OVERRUNINTENA = 0; //Overrun interrupt disable
|
||||
|
||||
SpiaRegs.SPIBRR.bit.SPI_BIT_RATE = HAL_SPI_BRR;
|
||||
|
||||
SpiaRegs.SPIPRI.bit.FREE = 1; // Set so breakpoints don't disturb xmission
|
||||
|
||||
SpiaRegs.SPICCR.bit.SPISWRESET = 1; // Ready to transmit
|
||||
}
|
||||
|
||||
//
|
||||
// FUNCTION NAME: HAL_spi_xmt
|
||||
//
|
||||
// DESCRIPTION: SPI transmit.
|
||||
//
|
||||
// Return Value: None
|
||||
//
|
||||
// Input Parameters: val to be transmitted
|
||||
//
|
||||
// Output Parameters:
|
||||
// Functions Called:
|
||||
//
|
||||
//
|
||||
UINT16 spiXmtErrState = 0;
|
||||
void HAL_spi_xmt(Uint16 a)
|
||||
{
|
||||
SpiaRegs.SPITXBUF = a;
|
||||
DELAY_US(1);
|
||||
}
|
||||
|
||||
//
|
||||
// FUNCTION NAME: PHY_spiFifoInit
|
||||
//
|
||||
// DESCRIPTION: Initialize SPI FIFO.
|
||||
//
|
||||
// Return Value: None
|
||||
//
|
||||
// Input Parameters:
|
||||
//
|
||||
// Output Parameters:
|
||||
// Functions Called:
|
||||
//
|
||||
//
|
||||
void HAL_spi_fifoInit()
|
||||
{
|
||||
//
|
||||
// Initialize SPI FIFO registers
|
||||
//
|
||||
SpiaRegs.SPIFFTX.all = HAL_SPI_FFTX;
|
||||
SpiaRegs.SPIFFRX.all = HAL_SPI_FFRX;
|
||||
SpiaRegs.SPIFFCT.all = 0x0;
|
||||
}
|
||||
|
||||
//
|
||||
// FUNCTION NAME: HAL_spi_writeGain
|
||||
//
|
||||
// DESCRIPTION: AFE start. Start DMA, adc SOC.
|
||||
//
|
||||
// Return Value: None
|
||||
//
|
||||
// Input Parameters: val - gain to be written to PGA
|
||||
//
|
||||
// Output Parameters:
|
||||
// Functions Called:
|
||||
//
|
||||
//
|
||||
void HAL_spi_writeGain(Uint16 val)
|
||||
{
|
||||
Uint16 regVal;
|
||||
|
||||
regVal = (HAL_SPI_PGA_WRITE << HAL_SPI_PGA_RWSHIFT)
|
||||
| ((val & 0xF) << HAL_SPI_PGA_GAINSHIFT) |
|
||||
HAL_SPI_PGA_CH1;
|
||||
HAL_spi_xmt(regVal);
|
||||
}
|
||||
|
||||
//
|
||||
// FUNCTION NAME: HAL_spi_cfgWdLen
|
||||
//
|
||||
// DESCRIPTION: Configure word length.
|
||||
//
|
||||
// Return Value: None
|
||||
//
|
||||
// Input Parameters: val - length
|
||||
//
|
||||
// Output Parameters:
|
||||
// Functions Called:
|
||||
//
|
||||
//
|
||||
void HAL_spi_cfgWdLen(Uint16 val)
|
||||
{
|
||||
SpiaRegs.SPICCR.bit.SPICHAR = val - 1;
|
||||
}
|
||||
|
||||
//
|
||||
// FUNCTION NAME: HAL_spi_read
|
||||
//
|
||||
// DESCRIPTION: SPI read.
|
||||
//
|
||||
// Return Value: None
|
||||
//
|
||||
// Input Parameters:
|
||||
//
|
||||
// Output Parameters:
|
||||
// Functions Called:
|
||||
//
|
||||
//
|
||||
Uint16 HAL_spi_read(Uint16 a)
|
||||
{
|
||||
SpiaRegs.SPITXBUF = a;
|
||||
/* Need to check out */
|
||||
DELAY_US(2);
|
||||
/* Write a dummy */
|
||||
SpiaRegs.SPITXBUF = 0xFFFF;
|
||||
DELAY_US(2);
|
||||
|
||||
return SpiaRegs.SPIDAT;
|
||||
}
|
||||
|
||||
//
|
||||
// End of file
|
||||
//
|
||||
+87
@@ -0,0 +1,87 @@
|
||||
//#############################################################################
|
||||
//
|
||||
// FILE: hal_spi.h
|
||||
//
|
||||
// TITLE: HAL SPI Functions
|
||||
//
|
||||
//#############################################################################
|
||||
//
|
||||
//
|
||||
// $Copyright:
|
||||
// Copyright (C) 2013-2024 Texas Instruments Incorporated - http://www.ti.com/
|
||||
//
|
||||
// Redistribution and use in source and binary forms, with or without
|
||||
// modification, are permitted provided that the following conditions
|
||||
// are met:
|
||||
//
|
||||
// Redistributions of source code must retain the above copyright
|
||||
// notice, this list of conditions and the following disclaimer.
|
||||
//
|
||||
// Redistributions in binary form must reproduce the above copyright
|
||||
// notice, this list of conditions and the following disclaimer in the
|
||||
// documentation and/or other materials provided with the
|
||||
// distribution.
|
||||
//
|
||||
// Neither the name of Texas Instruments Incorporated nor the names of
|
||||
// its contributors may be used to endorse or promote products derived
|
||||
// from this software without specific prior written permission.
|
||||
//
|
||||
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||
// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||
// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
||||
// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
||||
// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||
// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||
// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
||||
// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
||||
// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
// $
|
||||
//#############################################################################
|
||||
|
||||
#ifndef _HAL_SPI_H
|
||||
#define _HAL_SPI_H
|
||||
|
||||
//
|
||||
// Defines
|
||||
//
|
||||
|
||||
/* LSPCLK = SYSCLK/2/LSPCLK */
|
||||
/* SPICLK = LSPCLK/(BRR+1) */
|
||||
/* SYSCLK=100MHz, SPICLK=100/4/5=5MHz */
|
||||
|
||||
#define HAL_SPI_LSPCLK 0 //LSPCLK=SYSCLK
|
||||
|
||||
#define HAL_SPI_CCR_RST0 0x0F
|
||||
#define HAL_SPI_CCR_RST1 0x8F
|
||||
#define HAL_SPI_CTL_MSTR 0x06
|
||||
#define HAL_SPI_FFTX 0xE040
|
||||
#define HAL_SPI_FFRX 0x204F
|
||||
|
||||
/* PGA112 */
|
||||
#define HAL_SPI_PGA_READ 0x6A
|
||||
#define HAL_SPI_PGA_WRITE 0x2A
|
||||
#define HAL_SPI_PGA_RWSHIFT 8
|
||||
#define HAL_SPI_PGA_GAINSHIFT 4
|
||||
#define HAL_SPI_PGA_CH0 0x0
|
||||
#define HAL_SPI_PGA_CH1 0x1
|
||||
|
||||
//
|
||||
// Function Prototypes
|
||||
//
|
||||
void HAL_spi_cfg();
|
||||
void HAL_spi_init();
|
||||
void HAL_spi_xmt(Uint16 a);
|
||||
void HAL_spi_fifoInit();
|
||||
void HAL_spi_writeGain(Uint16 val);
|
||||
void InitAFESpiGpio();
|
||||
void HAL_spi_cfgWdLen(Uint16 val);
|
||||
Uint16 HAL_spi_read(Uint16 a);
|
||||
|
||||
|
||||
#endif
|
||||
|
||||
//
|
||||
// End of file
|
||||
//
|
||||
+353
@@ -0,0 +1,353 @@
|
||||
//#############################################################################
|
||||
//
|
||||
// FILE: AFE031_Config.c
|
||||
//
|
||||
// TITLE: AFE Setup Functions
|
||||
//
|
||||
//###########################################################################
|
||||
//
|
||||
//
|
||||
// $Copyright:
|
||||
// Copyright (C) 2013-2024 Texas Instruments Incorporated - http://www.ti.com/
|
||||
//
|
||||
// Redistribution and use in source and binary forms, with or without
|
||||
// modification, are permitted provided that the following conditions
|
||||
// are met:
|
||||
//
|
||||
// Redistributions of source code must retain the above copyright
|
||||
// notice, this list of conditions and the following disclaimer.
|
||||
//
|
||||
// Redistributions in binary form must reproduce the above copyright
|
||||
// notice, this list of conditions and the following disclaimer in the
|
||||
// documentation and/or other materials provided with the
|
||||
// distribution.
|
||||
//
|
||||
// Neither the name of Texas Instruments Incorporated nor the names of
|
||||
// its contributors may be used to endorse or promote products derived
|
||||
// from this software without specific prior written permission.
|
||||
//
|
||||
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||
// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||
// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
||||
// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
||||
// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||
// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||
// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
||||
// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
||||
// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
// $
|
||||
//###########################################################################
|
||||
|
||||
//
|
||||
// Included Files
|
||||
//
|
||||
#include "afe031_config.h"
|
||||
#include "F28x_Project.h" // Device Header File and Examples Include File
|
||||
|
||||
//
|
||||
// Platform-dependent GPIO
|
||||
//
|
||||
#define GPIO_INT 1
|
||||
#define GPIO_DAC 2
|
||||
#define GPIO_SD 3
|
||||
|
||||
/* RX Gain LUT */
|
||||
UINT16 HAL_afe031_rxGainLut[] = { 0, 1, 2, 3, 6, 7, 10, 11, 14, 15 };
|
||||
/* TX Gain LUT */
|
||||
UINT16 HAL_afe031_txGainLut[] = { 0, 1, 2, 3 };
|
||||
|
||||
HAL_afe031_reg_t HAL_afe031_reg_s;
|
||||
|
||||
//
|
||||
// FUNCTION NAME: HAL_afe031Init()
|
||||
//
|
||||
// DESCRIPTION: AFE031 init function.
|
||||
//
|
||||
// Return Value: None
|
||||
//
|
||||
// Input Parameters:
|
||||
//
|
||||
// Output Parameters:
|
||||
// Functions Called:
|
||||
//
|
||||
//
|
||||
void HAL_afe031Init(void)
|
||||
{
|
||||
HAL_afe031_cfgGpio();
|
||||
|
||||
HAL_spi_cfg();
|
||||
|
||||
HAL_afe031_softReset();
|
||||
DELAY_US(2);
|
||||
|
||||
HAL_afe031_biasEnable();
|
||||
DELAY_US(2);
|
||||
|
||||
HAL_afe031_bandSelect(1);
|
||||
DELAY_US(2);
|
||||
|
||||
HAL_afe031_clrAllInt();
|
||||
DELAY_US(2);
|
||||
|
||||
HAL_afe031_zcEnable();
|
||||
DELAY_US(2);
|
||||
|
||||
HAL_afe031_writeGain(4, 1);
|
||||
DELAY_US(2);
|
||||
}
|
||||
|
||||
//
|
||||
// FUNCTION NAME: HAL_afe031_intAsserted()
|
||||
//
|
||||
// DESCRIPTION: Return INT pin state.
|
||||
//
|
||||
// Return Value: 0 = Not Asserted, 1 = Asserted
|
||||
//
|
||||
// Input Parameters:
|
||||
//
|
||||
// Output Parameters:
|
||||
// Functions Called:
|
||||
//
|
||||
//
|
||||
UINT16 HAL_afe031_intAsserted(void)
|
||||
{
|
||||
return GPIO_ReadPin(GPIO_INT) ? 0 : 1;
|
||||
}
|
||||
|
||||
//
|
||||
// FUNCTION NAME: HAL_afe031_shutdown(sd)
|
||||
//
|
||||
// DESCRIPTION: AFE031 Shutdown Control
|
||||
//
|
||||
// Return Value: None
|
||||
//
|
||||
// Input Parameters:
|
||||
//
|
||||
// Output Parameters:
|
||||
// Functions Called:
|
||||
//
|
||||
//
|
||||
void HAL_afe031_shutdown(UINT16 sd)
|
||||
{
|
||||
GPIO_WritePin(GPIO_SD, sd);
|
||||
}
|
||||
|
||||
//
|
||||
// FUNCTION NAME: HAL_afe031_cfgGpio()
|
||||
//
|
||||
// DESCRIPTION: Configure GPIO for AFE031.
|
||||
//
|
||||
// GPIO Profile for AFE031 Module:
|
||||
// GPIO3 - SD (1-SD; 0-normal)
|
||||
// GPIO2 - DAC (1-DAC; 0-normal)
|
||||
// GPIO1 - INT (1-INT; 0-no INT)
|
||||
// Return Value: None
|
||||
//
|
||||
// Input Parameters:
|
||||
//
|
||||
// Output Parameters:
|
||||
// Functions Called:
|
||||
//
|
||||
//
|
||||
void HAL_afe031_cfgGpio(void)
|
||||
{
|
||||
//SD PIN
|
||||
GPIO_SetupPinMux(GPIO_SD, GPIO_MUX_CPU1, 0);
|
||||
GPIO_SetupPinOptions(GPIO_SD, GPIO_OUTPUT, GPIO_PUSHPULL);
|
||||
// SD=0
|
||||
GPIO_WritePin(GPIO_SD, 0);
|
||||
|
||||
//DAC Pin Enable
|
||||
GPIO_SetupPinMux(GPIO_DAC, GPIO_MUX_CPU1, 0);
|
||||
GPIO_SetupPinOptions(GPIO_DAC, GPIO_OUTPUT, GPIO_PUSHPULL);
|
||||
// DAC=0
|
||||
GPIO_WritePin(GPIO_DAC, 0);
|
||||
|
||||
// INT Pin
|
||||
GPIO_SetupPinMux(GPIO_INT, GPIO_MUX_CPU1, 0);
|
||||
GPIO_SetupPinOptions(GPIO_INT, GPIO_INPUT, GPIO_OPENDRAIN | GPIO_PULLUP);
|
||||
// NOTE: For RevE2 BoosterPack, jumper from J2.18 to J4.39
|
||||
GPIO_SetupPinMux(123, GPIO_MUX_CPU1, 0);
|
||||
GPIO_SetupPinOptions(123, GPIO_INPUT, GPIO_OPENDRAIN | GPIO_PULLUP);
|
||||
}
|
||||
|
||||
//
|
||||
// FUNCTION NAME: HAL_afe031_writeGain()
|
||||
//
|
||||
// DESCRIPTION: Write RX and TX Gain.
|
||||
//
|
||||
// Return Value: None
|
||||
//
|
||||
// Input Parameters:
|
||||
//
|
||||
// Output Parameters:
|
||||
// Functions Called:
|
||||
//
|
||||
//
|
||||
void HAL_afe031_writeGain(UINT16 rxgain, UINT16 txgain)
|
||||
{
|
||||
UINT16 rxGainSetting, txGainSetting;
|
||||
|
||||
rxGainSetting = HAL_afe031_rxGainLut[rxgain];
|
||||
HAL_afe031_reg_s.gain_sel.bits.RXG = rxGainSetting;
|
||||
txGainSetting = HAL_afe031_txGainLut[txgain];
|
||||
HAL_afe031_reg_s.gain_sel.bits.TXG = txGainSetting;
|
||||
HAL_afe031_regWrite(HAL_AFE031_GAINSEL_REG, HAL_afe031_reg_s.gain_sel.all);
|
||||
}
|
||||
|
||||
//
|
||||
// FUNCTION NAME: HAL_afe031_regWrite(addr, data)
|
||||
//
|
||||
// DESCRIPTION: AFE031 Register Write
|
||||
//
|
||||
// Return Value: None
|
||||
//
|
||||
// Input Parameters:
|
||||
//
|
||||
// Output Parameters:
|
||||
// Functions Called:
|
||||
//
|
||||
//
|
||||
void HAL_afe031_regWrite(UINT16 addr, UINT16 data)
|
||||
{
|
||||
UINT16 cmd, data16;
|
||||
|
||||
cmd = (HAL_AFE031_CMD_WR << HAL_AFE031_CMD_RW_SHIFT) | addr;
|
||||
data16 = (cmd << HAL_AFE031_CMD_SHIFT) | (data & HAL_AFE031_DATA_MASK);
|
||||
/* For F28035, use SPI; all others, use McBSPA */
|
||||
|
||||
HAL_spi_xmt(data16);
|
||||
|
||||
DELAY_US(1);
|
||||
}
|
||||
|
||||
//
|
||||
// FUNCTION NAME: HAL_afe031_regRead(addr)
|
||||
//
|
||||
// DESCRIPTION: AFE031 Register Write
|
||||
//
|
||||
// Return Value: Register value
|
||||
//
|
||||
// Input Parameters:
|
||||
//
|
||||
// Output Parameters:
|
||||
// Functions Called:
|
||||
//
|
||||
//
|
||||
UINT16 HAL_afe031_regRead(UINT16 addr)
|
||||
{
|
||||
UINT16 cmd;
|
||||
|
||||
cmd = (HAL_AFE031_CMD_RD << HAL_AFE031_CMD_RW_SHIFT) | addr;
|
||||
cmd = (cmd << HAL_AFE031_CMD_SHIFT);
|
||||
/* For F28035, use SPI; all others, use McBSPA */
|
||||
|
||||
return HAL_spi_read(cmd);
|
||||
}
|
||||
|
||||
//
|
||||
// FUNCTION NAME: HAL_afe031_clrAllInt
|
||||
//
|
||||
// DESCRIPTION: AFE031 Clear All Interrupts
|
||||
//
|
||||
// Return Value: None
|
||||
//
|
||||
// Input Parameters:
|
||||
//
|
||||
// Output Parameters:
|
||||
// Functions Called:
|
||||
//
|
||||
//
|
||||
void HAL_afe031_clrAllInt(void)
|
||||
{
|
||||
HAL_afe031_reg_s.control2.all = 0;
|
||||
HAL_afe031_regWrite(HAL_AFE031_CTRL2_REG, 0);
|
||||
}
|
||||
|
||||
//
|
||||
// FUNCTION NAME: HAL_afe031_clrInt
|
||||
//
|
||||
// DESCRIPTION: AFE031 Clear All Interrupts
|
||||
//
|
||||
// Return Value: None
|
||||
//
|
||||
// Input Parameters:
|
||||
//
|
||||
// Output Parameters:
|
||||
// Functions Called:
|
||||
//
|
||||
//
|
||||
void HAL_afe031_clrInt(UINT16 flag)
|
||||
{
|
||||
HAL_afe031_reg_s.control2.all &= (~flag);
|
||||
HAL_afe031_regWrite(HAL_AFE031_CTRL2_REG, HAL_afe031_reg_s.control2.all);
|
||||
}
|
||||
|
||||
//
|
||||
// FUNCTION NAME: HAL_afe031_readIntFlag
|
||||
//
|
||||
// DESCRIPTION: AFE031 Read Interrupt Flag
|
||||
//
|
||||
// Return Value: None
|
||||
//
|
||||
// Input Parameters:
|
||||
//
|
||||
// Output Parameters:
|
||||
// Functions Called:
|
||||
//
|
||||
//
|
||||
UINT16 HAL_afe031_readIntFlag(void)
|
||||
{
|
||||
return HAL_afe031_regRead(HAL_AFE031_RESET_REG);
|
||||
}
|
||||
|
||||
//
|
||||
// FUNCTION NAME: HAL_afe031_cfgInt
|
||||
//
|
||||
// DESCRIPTION: AFE031 Configure Interrupts
|
||||
//
|
||||
// Return Value: None
|
||||
//
|
||||
// Input Parameters:
|
||||
//
|
||||
// Output Parameters:
|
||||
// Functions Called:
|
||||
//
|
||||
//
|
||||
void HAL_afe031_cfgInt(void)
|
||||
{
|
||||
// NOTE: Disable/clear interrupts before enabling
|
||||
HAL_afe031_clrAllInt();
|
||||
DELAY_US(2);
|
||||
HAL_afe031_regWrite(HAL_AFE031_RESET_REG, 0);
|
||||
DELAY_US(2);
|
||||
// Enable both TFlag and IFlag
|
||||
HAL_afe031_reg_s.control2.bits.IFLAG_EN = 1;
|
||||
HAL_afe031_reg_s.control2.bits.TFLAG_EN = 1;
|
||||
HAL_afe031_regWrite(HAL_AFE031_CTRL2_REG, HAL_afe031_reg_s.control2.all);
|
||||
DELAY_US(2);
|
||||
}
|
||||
|
||||
//
|
||||
// FUNCTION NAME: HAL_afe031_cfgWdLen
|
||||
//
|
||||
// DESCRIPTION: Configure word length
|
||||
//
|
||||
// Return Value: None
|
||||
//
|
||||
// Input Parameters:
|
||||
//
|
||||
// Output Parameters:
|
||||
// Functions Called:
|
||||
//
|
||||
//
|
||||
void HAL_afe031_cfgWdLen(UINT16 len)
|
||||
{
|
||||
HAL_spi_cfgWdLen(len);
|
||||
}
|
||||
|
||||
//
|
||||
// End of file
|
||||
//
|
||||
+161
@@ -0,0 +1,161 @@
|
||||
//#############################################################################
|
||||
//
|
||||
// FILE: AFE031_Config.h
|
||||
//
|
||||
// TITLE: AFE Setup Functions
|
||||
//
|
||||
//###########################################################################
|
||||
//
|
||||
//
|
||||
// $Copyright:
|
||||
// Copyright (C) 2013-2024 Texas Instruments Incorporated - http://www.ti.com/
|
||||
//
|
||||
// Redistribution and use in source and binary forms, with or without
|
||||
// modification, are permitted provided that the following conditions
|
||||
// are met:
|
||||
//
|
||||
// Redistributions of source code must retain the above copyright
|
||||
// notice, this list of conditions and the following disclaimer.
|
||||
//
|
||||
// Redistributions in binary form must reproduce the above copyright
|
||||
// notice, this list of conditions and the following disclaimer in the
|
||||
// documentation and/or other materials provided with the
|
||||
// distribution.
|
||||
//
|
||||
// Neither the name of Texas Instruments Incorporated nor the names of
|
||||
// its contributors may be used to endorse or promote products derived
|
||||
// from this software without specific prior written permission.
|
||||
//
|
||||
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||
// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||
// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
||||
// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
||||
// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||
// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||
// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
||||
// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
||||
// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
// $
|
||||
//###########################################################################
|
||||
|
||||
#ifndef AFE031_CONFIG_H_
|
||||
#define AFE031_CONFIG_H_
|
||||
|
||||
//
|
||||
// Included Files
|
||||
//
|
||||
#include "afe031_config.h"
|
||||
#include "hal_afe031.h"
|
||||
#include "hal_spi.h"
|
||||
|
||||
/*****************************************************************************/
|
||||
/* Data Structures */
|
||||
/*****************************************************************************/
|
||||
/* AFE handle */
|
||||
// CQ1775
|
||||
#define HAL_SPI_BRR 1//SPICLK=60/4=15MHz // changed from 2
|
||||
#define HAL_status_t Uint16
|
||||
typedef struct
|
||||
{
|
||||
UINT16 HAL_afe_spiErrCnt;
|
||||
UINT16 HAL_afe_spiReadBack;
|
||||
UINT16 HAL_afe_spiRecoverCnt;
|
||||
UINT16 HAL_afe_spiRecoverFailCnt;
|
||||
}HAL_afe032_spiTest_t;
|
||||
|
||||
typedef struct
|
||||
{
|
||||
Uint16 txSize; // 0 TX size
|
||||
Uint16 txActive; // 1 TX active flag
|
||||
|
||||
Uint16 updateGainFlag; // 2 AGC gain update flag
|
||||
int16 agcGainVal; // 3 AGC gain value
|
||||
|
||||
/* Added for ADC int */
|
||||
volatile Uint16 *rxBufPtr_p[2]; // 4 5 6 7 RX buffer address (ping-pong buffer)
|
||||
volatile Uint16 *rxBufDat_p; // 8 9
|
||||
Uint16 rxBufSize[2]; // 10 11 RX buffer size (Number of bursts in a transfer - 1)
|
||||
Uint16 rxBufIdx; // 12 RX buffer buffer index (next active buffer being filled)
|
||||
Uint16 adcCnt; // 13
|
||||
Uint16 rxBufCnt; // 14
|
||||
Uint16 adcIntCnt; // 15
|
||||
Uint16 activeBufIdx; // 16 Active buffer index. Reload rxBufIdx @symbol done
|
||||
Uint16 activeBufSize; // 17 Active buffer size. Reload rxBufSize[activeBufIdx] @symbol done
|
||||
|
||||
/* For TX Buffers */
|
||||
volatile Uint16 *txBufReady_p; // 18 19 TX buffer ready to be read
|
||||
volatile Uint16 *bufDat_p; // 20 21 TX active buffer pointer
|
||||
Uint16 txBufIdx; // 22
|
||||
Uint16 txIntCnt; // 23
|
||||
Uint16 txBufSize; // 24
|
||||
|
||||
UINT16 timer01ShotFlag; // 25 Timer 0 cfg flags
|
||||
|
||||
Uint32 cb_param;
|
||||
Uint32 rxDmaTime; // RX DMA time (in 10us)
|
||||
Uint32 zcaTime; // Zero-crossing time (in 10us)
|
||||
|
||||
//Uint16 zcaPeriod; // half-cycle period (in 10us)
|
||||
|
||||
Uint32 zcaLatency; // Zero-crossing latency (in CPU ticks)
|
||||
Uint32 zcaCap1; // Zero-crossing captured (in CPU ticks)
|
||||
Uint32 zcbTime; // Zero-crossing time (in 10us)
|
||||
Uint32 zcbLatency; // Zero-crossing latency (in CPU ticks)
|
||||
Uint32 zcbCap1; // Zero-crossing captured (in CPU ticks)
|
||||
|
||||
Uint32 t0Prd; // T0 period in us (Q1)
|
||||
|
||||
UINT16 txPgaAttn;
|
||||
Uint16 zcaPeriod; // half-cycle period (in 10us)
|
||||
|
||||
}HAL_afe_handle_t;
|
||||
|
||||
//
|
||||
// Function Prototypes
|
||||
//
|
||||
HAL_status_t HAL_afe_init(void);
|
||||
HAL_status_t HAL_afe_cfg(void *setParms);
|
||||
|
||||
HAL_status_t HAL_afe_rxCfg(void *setParms);
|
||||
HAL_status_t HAL_afe_rxStart(void *setParms);
|
||||
HAL_status_t HAL_afe_rxStop(void *setParms);
|
||||
HAL_status_t HAL_afe_rxReCfg(void *setParms);
|
||||
HAL_status_t HAL_afe_setGain(void *setParms);
|
||||
HAL_status_t HAL_afe_updateGain(void *setParms);
|
||||
HAL_status_t HAL_afe_cancelGain(void *setParms);
|
||||
HAL_status_t HAL_afe_adcOffsetAdj(void *setParms);
|
||||
HAL_status_t HAL_afe_txDmaSize(void *setParms);
|
||||
HAL_status_t HAL_afe_txDmaAddr(void *setParms);
|
||||
HAL_status_t HAL_cpuTimer1CfgStart(void);
|
||||
Uint32 HAL_cpuTimer1GetCount(void);
|
||||
//#if 0
|
||||
HAL_status_t HAL_cpuTimer0TimeoutCfg(void *setParms);
|
||||
//#endif
|
||||
HAL_status_t HAL_cpuTimer0Cfg(UINT16 t0Prd);
|
||||
HAL_status_t HAL_cpuTimer0Start();
|
||||
HAL_status_t HAL_cpuTimer0Stop();
|
||||
|
||||
|
||||
HAL_status_t HAL_cpuTimerCfg();
|
||||
|
||||
HAL_status_t HAL_afe_txCfg(void *setParms);
|
||||
HAL_status_t HAL_afe_txStart(void *setParms);
|
||||
|
||||
HAL_status_t HAL_afe_txStop(void *setParms);
|
||||
HAL_status_t HAL_afe_txReCfg(void *setParms);
|
||||
|
||||
HAL_status_t HAL_afe_rxDmaTime(void *getParms);
|
||||
HAL_status_t HAL_afe_zcTime(void *getParms);
|
||||
HAL_status_t HAL_afe_rxDmaIdx(void *getParms);
|
||||
|
||||
HAL_status_t HAL_afe_prfCfg(void *setParms);
|
||||
|
||||
Uint16 HAL_afe031_readIntFlag(void);
|
||||
|
||||
#endif /* AFE031_CONFIG_H_ */
|
||||
|
||||
//
|
||||
// End of file
|
||||
//
|
||||
+20686
File diff suppressed because it is too large.
Load diff
+721
@@ -0,0 +1,721 @@
|
||||
//#############################################################################
|
||||
//
|
||||
// FILE: boost_afe031_f28379d_rx_main.c
|
||||
//
|
||||
// TITLE: FSK Receiver on the AFE031
|
||||
//
|
||||
//#############################################################################
|
||||
//
|
||||
//
|
||||
// $Copyright:
|
||||
// Copyright (C) 2013-2024 Texas Instruments Incorporated - http://www.ti.com/
|
||||
//
|
||||
// Redistribution and use in source and binary forms, with or without
|
||||
// modification, are permitted provided that the following conditions
|
||||
// are met:
|
||||
//
|
||||
// Redistributions of source code must retain the above copyright
|
||||
// notice, this list of conditions and the following disclaimer.
|
||||
//
|
||||
// Redistributions in binary form must reproduce the above copyright
|
||||
// notice, this list of conditions and the following disclaimer in the
|
||||
// documentation and/or other materials provided with the
|
||||
// distribution.
|
||||
//
|
||||
// Neither the name of Texas Instruments Incorporated nor the names of
|
||||
// its contributors may be used to endorse or promote products derived
|
||||
// from this software without specific prior written permission.
|
||||
//
|
||||
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||
// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||
// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
||||
// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
||||
// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||
// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||
// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
||||
// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
||||
// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
// $
|
||||
//#############################################################################
|
||||
|
||||
//
|
||||
// Included Files
|
||||
//
|
||||
#include "F28x_Project.h"
|
||||
#include "afe031_config.h"
|
||||
#include "fsk_corr_detector.h"
|
||||
#include "fsk_packetization.h"
|
||||
|
||||
//
|
||||
// Enable ADC interrupt service nesting, per TI-WIKI page found here:
|
||||
// http://processors.wiki.ti.com/index.php/Interrupt_Nesting_on_C28x
|
||||
//
|
||||
#include "boostxl_afe031_f28379d_rx_isr.h"
|
||||
#define ISRS_GROUP1 (M_INT1|M_INT2|M_INT3|M_INT4|M_INT5|M_INT6|M_INT7|M_INT8)
|
||||
|
||||
//
|
||||
// Platform-dependent GPIO
|
||||
//
|
||||
#ifdef _LAUNCHXL_F28379D
|
||||
#define GPIO_RED_LED_LP 34
|
||||
#define GPIO_BLUE_LED_LP 31
|
||||
#define GPIO_RED_LED2_BP 4
|
||||
#define GPIO_BLUE_LED1_BP 5
|
||||
#endif
|
||||
|
||||
//
|
||||
// Defines
|
||||
//
|
||||
#define EPWM1_TIMER_TBPRD 333 // EPwm1 Period register, 333 ==> 300kHz
|
||||
#define EPWM2_TIMER_TBPRD 10667 // EPwm2 Period register, 10666 ==> 586Hz
|
||||
#define FSK_BIT_DETECTION_THRESHOLD 0.1 // Bit detection threshold value
|
||||
#define RX_MESSAGE_TIMEOUT 2000000 // Timeout in uSeconds
|
||||
|
||||
#define ADC_PU_SCALE_FACTOR (float)(1.0 / 4096.0) // ADC Scaling Factor
|
||||
#define SCALE_ADC_INPUT(adc_input) (((float)(adc_input))*ADC_PU_SCALE_FACTOR)*2.0
|
||||
|
||||
//
|
||||
// Globals
|
||||
//
|
||||
float input; // adc_input holder variable
|
||||
volatile FSK_CORR_DETECTOR FSK_struct1; // FSK structure
|
||||
int16_t rxMessage[RX_MESSAGE_SIZE]; // Buffer to hold received message
|
||||
volatile uint16_t msgFull; // Flag to signify that the message buffer is full
|
||||
uint16_t message_index;
|
||||
int16_t packet[NUMBER_OF_WORDS]; // Buffer to hold received packet
|
||||
int16_t packet_sum;
|
||||
|
||||
//
|
||||
// Function Prototypes
|
||||
//
|
||||
|
||||
// Initialization Prototypes
|
||||
void AFE_InitGpio(void);
|
||||
void ConfigureADC(void);
|
||||
void SetupADCEpwm(Uint16 channel);
|
||||
void initEPWM1(void);
|
||||
void initEPWM2(void);
|
||||
void InitEPwm1Gpio(void);
|
||||
void initADCSOC(void);
|
||||
|
||||
// Receive Handling Prototypes
|
||||
void Start_Receiving(void);
|
||||
void Stop_Receiving(void);
|
||||
void Visual_Indication(void);
|
||||
|
||||
// ISR Prototypes
|
||||
__interrupt void adc_sample_signal(void);
|
||||
__interrupt void epwm2_isr(void);
|
||||
__interrupt void cpu_timer2_isr(void);
|
||||
|
||||
#ifdef _FLASH
|
||||
extern Uint16 RamfuncsLoadStart;
|
||||
extern Uint16 RamfuncsLoadSize;
|
||||
extern Uint16 RamfuncsRunStart;
|
||||
#endif
|
||||
|
||||
//
|
||||
// Main
|
||||
//
|
||||
void main(void)
|
||||
{
|
||||
//
|
||||
// Initialize System Control:
|
||||
//
|
||||
InitSysCtrl();
|
||||
|
||||
//
|
||||
// For Flash mode, copy designated functions to RAM
|
||||
//
|
||||
#ifdef _FLASH
|
||||
memcpy(&RamfuncsRunStart, &RamfuncsLoadStart, (size_t)&RamfuncsLoadSize);
|
||||
#endif
|
||||
|
||||
//
|
||||
// Initialize LaunchPad GPIO
|
||||
//
|
||||
InitGpio();
|
||||
|
||||
//
|
||||
// Initialize BoosterPack GPIO
|
||||
// IMPORTANT: Wait a second to ensure
|
||||
// host PC has enumerated the LaunchPad
|
||||
// COM port before AFE is initialized!
|
||||
//
|
||||
DELAY_US(1000000);
|
||||
AFE_InitGpio();
|
||||
|
||||
//
|
||||
// Disable CPU interrupts
|
||||
//
|
||||
DINT;
|
||||
|
||||
//
|
||||
// Initialize the PIE control registers to their default state.
|
||||
// The default state is all PIE interrupts disabled and flags
|
||||
// are cleared.
|
||||
//
|
||||
InitPieCtrl();
|
||||
|
||||
//
|
||||
// Disable CPU interrupts and clear all CPU interrupt flags:
|
||||
//
|
||||
IER = 0x0000;
|
||||
IFR = 0x0000;
|
||||
|
||||
//
|
||||
// Initialize the PIE vector table
|
||||
//
|
||||
InitPieVectTable();
|
||||
|
||||
//
|
||||
// Map ISR functions
|
||||
//
|
||||
EALLOW;
|
||||
PieVectTable.ADCA1_INT = &adc_sample_signal; // ISR for ADCA
|
||||
PieVectTable.EPWM2_INT = &epwm2_isr; // ISR for EPwm2
|
||||
PieVectTable.TIMER2_INT = &cpu_timer2_isr; // ISR for CPU_timer2
|
||||
EDIS;
|
||||
|
||||
//
|
||||
// Initialize CPU Timer
|
||||
//
|
||||
InitCpuTimers();
|
||||
|
||||
//
|
||||
// Configure CPU Timer 2 for desired timeout (in uSeconds)
|
||||
//
|
||||
ConfigCpuTimer(&CpuTimer2, 200, RX_MESSAGE_TIMEOUT);
|
||||
|
||||
//
|
||||
// Configure the ADC and power it up
|
||||
//
|
||||
ConfigureADC();
|
||||
|
||||
//
|
||||
// Sync EPwms
|
||||
//
|
||||
EALLOW;
|
||||
CpuSysRegs.PCLKCR0.bit.TBCLKSYNC = 0;
|
||||
EDIS;
|
||||
|
||||
//
|
||||
// Configure ePWMs
|
||||
//
|
||||
initEPWM1();
|
||||
initEPWM2();
|
||||
|
||||
EALLOW;
|
||||
InputXbarRegs.INPUT5SELECT = 500; // Setting to a GPIO number above what exists on device, to avoid interference.
|
||||
EPwm1Regs.TBCTL.bit.PHSEN = 1;
|
||||
EPwm2Regs.TBCTL.bit.PHSEN = 1;
|
||||
EPwm1Regs.TBCTL.bit.SYNCOSEL = 0;
|
||||
CpuSysRegs.PCLKCR0.bit.TBCLKSYNC = 1; // Sync EPwms
|
||||
EPwm1Regs.TBCTL.bit.SWFSYNC = 1; // Sync PWM1 and PWM2 clocks
|
||||
EDIS;
|
||||
|
||||
//
|
||||
// Setup the ADC for ePWM triggered conversions on channel 1
|
||||
//
|
||||
SetupADCEpwm(2); // Boosterpack RX connected to ADCINA2
|
||||
// this ADC_Input may only work on LaunchPad revision Ver. 2 and later
|
||||
// If using older LaunchPad use a different ADCIN
|
||||
|
||||
//
|
||||
// Enable global Interrupts and higher priority real-time debug events:
|
||||
//
|
||||
IER |= M_INT1; // Enable int1 (EPwm1)
|
||||
IER |= M_INT3; // Enable int3 (EPwm2)
|
||||
IER |= M_INT14; // Enable in14 (CPU_Timer2)
|
||||
|
||||
//
|
||||
// Enable PIE interrupt for EPwms
|
||||
//
|
||||
PieCtrlRegs.PIEIER1.bit.INTx1 = 1; // EPwm1/ADC
|
||||
PieCtrlRegs.PIEIER3.bit.INTx2 = 1; // EPwm2
|
||||
|
||||
//
|
||||
//Configure AFE
|
||||
//
|
||||
HAL_afe031Init();
|
||||
|
||||
//
|
||||
// Disable AFE TX
|
||||
//
|
||||
HAL_afe031_txDisable(); // make sure PA is disabled
|
||||
|
||||
//
|
||||
// Enable AFE RX mode
|
||||
//
|
||||
HAL_afe031_rxEnable();
|
||||
|
||||
//
|
||||
// NOTE: Enable INT output/flags after initializing DAC/PA.
|
||||
//
|
||||
HAL_afe031_cfgInt();
|
||||
|
||||
//
|
||||
// NOTE: Enable interrupts after initializing AFE031.
|
||||
//
|
||||
EINT;
|
||||
ERTM;
|
||||
|
||||
//
|
||||
// GPIO toggle for measuring ISR frequencies, will be half the frequency witnessed if probed
|
||||
//
|
||||
EALLOW;
|
||||
GpioCtrlRegs.GPEMUX1.bit.GPIO139 = 0; // LP Pin 43, ADC Sampling ISR
|
||||
GpioCtrlRegs.GPEDIR.bit.GPIO139 = 1;
|
||||
GpioCtrlRegs.GPCMUX1.bit.GPIO65 = 0; // LP Pin 47, Oversampling Bit-rate ISR
|
||||
GpioCtrlRegs.GPCDIR.bit.GPIO65 = 1;
|
||||
EDIS;
|
||||
|
||||
//
|
||||
// Set FSK Correlation Detector parameters
|
||||
//
|
||||
FSK_struct1.bit_freq = 586;
|
||||
FSK_struct1.isr_freq = 300000; // ADC Sampling frequency
|
||||
FSK_struct1.mark_freq = 131250; // Mark Frequency Detected
|
||||
FSK_struct1.space_freq = 143750; // Space Frequency Detected
|
||||
FSK_struct1.detection_threshold = FSK_BIT_DETECTION_THRESHOLD; // Set threshold to meet input signal
|
||||
// FSK_struct1.bit_detected ==> Watch variable showing detected bit
|
||||
|
||||
FSK_CORR_DETECTOR_INIT(&FSK_struct1); // Initialize FSK structure
|
||||
|
||||
//
|
||||
// Initialize received message buffer
|
||||
//
|
||||
for(message_index = 0; message_index < RX_MESSAGE_SIZE; message_index++)
|
||||
{
|
||||
rxMessage[message_index] = 0;
|
||||
}
|
||||
message_index = 0;
|
||||
msgFull = 0;
|
||||
|
||||
//
|
||||
// Take input indefinitely
|
||||
//
|
||||
while(1)
|
||||
{
|
||||
//
|
||||
// Begin receiving data
|
||||
//
|
||||
Start_Receiving();
|
||||
|
||||
//
|
||||
// wait for message to be received, timeout if not received within set time
|
||||
//
|
||||
while(!msgFull){}
|
||||
|
||||
msgFull = 0; // Clear the msgFull flag
|
||||
|
||||
//
|
||||
// Stop receiving data
|
||||
//
|
||||
Stop_Receiving();
|
||||
|
||||
//
|
||||
// Packetize the received message, clears the received message buffer
|
||||
//
|
||||
Packetize(rxMessage, packet);
|
||||
|
||||
//
|
||||
// LED indication of received packet
|
||||
//
|
||||
Visual_Indication();
|
||||
|
||||
//
|
||||
// software breakpoint after receiving full message
|
||||
//
|
||||
//asm(" ESTOP0"); // Uncomment to receive only one packet
|
||||
}
|
||||
}
|
||||
|
||||
//
|
||||
// Function to Initialize GPIOs/LEDs on BOOSTXL-AFE031
|
||||
//
|
||||
void AFE_InitGpio()
|
||||
{
|
||||
// Enable register access
|
||||
EALLOW;
|
||||
|
||||
// LaunchPad LEDs
|
||||
GPIO_SetupPinMux(GPIO_RED_LED_LP, GPIO_MUX_CPU1, 0);
|
||||
GPIO_SetupPinOptions(GPIO_RED_LED_LP, GPIO_OUTPUT, GPIO_PUSHPULL);
|
||||
|
||||
GPIO_SetupPinMux(GPIO_BLUE_LED_LP, GPIO_MUX_CPU1, 0);
|
||||
GPIO_SetupPinOptions(GPIO_BLUE_LED_LP, GPIO_OUTPUT, GPIO_PUSHPULL);
|
||||
|
||||
// BoosterPack LEDs
|
||||
GPIO_SetupPinMux(GPIO_RED_LED2_BP, GPIO_MUX_CPU1, 0);
|
||||
GPIO_SetupPinOptions(GPIO_RED_LED2_BP, GPIO_OUTPUT, GPIO_PUSHPULL);
|
||||
|
||||
GPIO_SetupPinMux(GPIO_BLUE_LED1_BP, GPIO_MUX_CPU1, 0);
|
||||
GPIO_SetupPinOptions(GPIO_BLUE_LED1_BP, GPIO_OUTPUT, GPIO_PUSHPULL);
|
||||
|
||||
// Disable register access
|
||||
EDIS;
|
||||
}
|
||||
|
||||
//
|
||||
// ConfigureADC - Write ADC configurations and power up ADC A
|
||||
//
|
||||
void ConfigureADC(void)
|
||||
{
|
||||
EALLOW;
|
||||
|
||||
//
|
||||
//write configurations
|
||||
//
|
||||
AdcaRegs.ADCCTL2.bit.PRESCALE = 6; //set ADCCLK divider to /4
|
||||
AdcSetMode(ADC_ADCA, ADC_RESOLUTION_12BIT, ADC_SIGNALMODE_SINGLE); // 12 bit res
|
||||
|
||||
//
|
||||
//Set pulse positions to late
|
||||
//
|
||||
AdcaRegs.ADCCTL1.bit.INTPULSEPOS = 1;
|
||||
|
||||
//
|
||||
//power up the ADC
|
||||
//
|
||||
AdcaRegs.ADCCTL1.bit.ADCPWDNZ = 1;
|
||||
|
||||
//
|
||||
//delay for 1ms to allow ADC time to power up
|
||||
//
|
||||
DELAY_US(1000);
|
||||
|
||||
EDIS;
|
||||
}
|
||||
|
||||
//
|
||||
// initEPWM1 - Function to configure ePWM1 to generate the SOC.
|
||||
//
|
||||
void initEPWM1(void)
|
||||
{
|
||||
EALLOW;
|
||||
|
||||
EPwm1Regs.ETSEL.bit.SOCAEN = 0; // Disable SOC on A group
|
||||
EPwm1Regs.ETSEL.bit.SOCASEL = 4; // Select SOC on up-count
|
||||
EPwm1Regs.ETPS.bit.SOCAPRD = 1; // Generate pulse on 1st event
|
||||
|
||||
EPwm1Regs.TBPRD = EPWM1_TIMER_TBPRD; // Set EPwm1 Timer period
|
||||
|
||||
EPwm1Regs.TBCTL.bit.CTRMODE = TB_FREEZE; // Freeze counter
|
||||
|
||||
//
|
||||
// Setup TBCLK
|
||||
//
|
||||
|
||||
EPwm1Regs.TBPHS.bit.TBPHS = 0x0000; // Phase is 0
|
||||
EPwm1Regs.TBCTR = 0x0000; // Clear counter
|
||||
|
||||
//
|
||||
// Setup counter mode
|
||||
//
|
||||
EPwm1Regs.TBCTL.bit.HSPCLKDIV = TB_DIV1; // 300kHz == TB_DIV1; 586Hz == TB_DIV2
|
||||
EPwm1Regs.TBCTL.bit.CLKDIV = TB_DIV1; // 300kHz == TB_DIV1; 586Hz == TB_DIV4;
|
||||
|
||||
//
|
||||
// Setup shadowing
|
||||
//
|
||||
EPwm1Regs.CMPCTL.bit.SHDWAMODE = CC_SHADOW;
|
||||
EPwm1Regs.CMPCTL.bit.SHDWBMODE = CC_SHADOW;
|
||||
EPwm1Regs.CMPCTL.bit.LOADAMODE = CC_CTR_ZERO; // Load on Zero
|
||||
EPwm1Regs.CMPCTL.bit.LOADBMODE = CC_CTR_ZERO;
|
||||
|
||||
//
|
||||
// Interrupt where we will change the Compare Values
|
||||
//
|
||||
EPwm1Regs.ETSEL.bit.INTSEL = ET_CTR_ZERO; // Select INT on period event
|
||||
EPwm1Regs.ETSEL.bit.INTEN = 1; // Enable INT
|
||||
EPwm1Regs.ETPS.bit.INTPRD = ET_1ST; // Generate INT on every event
|
||||
|
||||
EDIS;
|
||||
}
|
||||
|
||||
//
|
||||
// initEPWM2 - Function to configure ePWM1 to generate the SOC.
|
||||
//
|
||||
void initEPWM2(void)
|
||||
{
|
||||
EALLOW;
|
||||
|
||||
EPwm2Regs.TBPRD = EPWM2_TIMER_TBPRD; // Set EPwm1 Timer period
|
||||
|
||||
EPwm2Regs.TBCTL.bit.CTRMODE = TB_FREEZE; // Freeze counter
|
||||
|
||||
//
|
||||
// Setup TBCLK
|
||||
//
|
||||
EPwm2Regs.TBPHS.bit.TBPHS = 0x0000; // Phase is 0
|
||||
EPwm2Regs.TBCTR = 0x0000; // Clear counter
|
||||
|
||||
//
|
||||
// Setup counter mode
|
||||
//
|
||||
EPwm2Regs.TBCTL.bit.HSPCLKDIV = TB_DIV2; // 300kHz == TB_DIV1; 586Hz == TB_DIV2
|
||||
EPwm2Regs.TBCTL.bit.CLKDIV = TB_DIV4; // 300kHz == TB_DIV1; 586Hz == TB_DIV4;
|
||||
|
||||
//
|
||||
// Setup shadowing
|
||||
//
|
||||
EPwm2Regs.CMPCTL.bit.SHDWAMODE = CC_SHADOW;
|
||||
EPwm2Regs.CMPCTL.bit.SHDWBMODE = CC_SHADOW;
|
||||
EPwm2Regs.CMPCTL.bit.LOADAMODE = CC_CTR_ZERO; // Load on Zero
|
||||
EPwm2Regs.CMPCTL.bit.LOADBMODE = CC_CTR_ZERO;
|
||||
|
||||
//
|
||||
// Interrupt where we will change the Compare Values
|
||||
//
|
||||
EPwm2Regs.ETSEL.bit.INTSEL = ET_CTR_ZERO; // Select INT on period event
|
||||
EPwm2Regs.ETSEL.bit.INTEN = 1; // Enable INT
|
||||
EPwm2Regs.ETPS.bit.INTPRD = ET_1ST; // Generate INT on every event
|
||||
|
||||
EDIS;
|
||||
}
|
||||
|
||||
//
|
||||
// SetupADCEpwm - Setup ADC EPWM acquisition window
|
||||
//
|
||||
void SetupADCEpwm(Uint16 channel)
|
||||
{
|
||||
Uint16 acqps;
|
||||
|
||||
//
|
||||
//determine minimum acquisition window (in SYSCLKS) based on resolution
|
||||
//
|
||||
if(ADC_RESOLUTION_12BIT == AdcaRegs.ADCCTL2.bit.RESOLUTION)
|
||||
{
|
||||
acqps = 14; //75ns
|
||||
}
|
||||
else //resolution is 16-bit
|
||||
{
|
||||
acqps = 63; //320ns
|
||||
}
|
||||
|
||||
//
|
||||
//Select the channels to convert and end of conversion flag
|
||||
//
|
||||
EALLOW;
|
||||
AdcaRegs.ADCSOC0CTL.bit.CHSEL = channel; // SOC0 will convert pin A2 ==> pin 29 on LaunchXL-F28379D
|
||||
AdcaRegs.ADCSOC0CTL.bit.ACQPS = acqps; // sample window is 100 SYSCLK cycles
|
||||
AdcaRegs.ADCSOC0CTL.bit.TRIGSEL = 5; // trigger on ePWM1 SOCA/C
|
||||
AdcaRegs.ADCINTSEL1N2.bit.INT1SEL = 0; // end of SOC0 will set INT1 flag
|
||||
AdcaRegs.ADCINTSEL1N2.bit.INT1E = 1; // enable INT1 flag
|
||||
AdcaRegs.ADCINTFLGCLR.bit.ADCINT1 = 1; // make sure INT1 flag is cleared
|
||||
EDIS;
|
||||
}
|
||||
|
||||
//
|
||||
// ADC Sampling ISR function
|
||||
//
|
||||
#pragma CODE_SECTION(adc_sample_signal,".TI.ramfunc");
|
||||
__interrupt void adc_sample_signal(void)
|
||||
{
|
||||
//
|
||||
// Retrieve ADC input value and scale (0 to 2)
|
||||
//
|
||||
input = SCALE_ADC_INPUT(AdcaResultRegs.ADCRESULT0);
|
||||
|
||||
//
|
||||
// Pass ADC sample to FSK correlation function
|
||||
//
|
||||
FSK_CORR_DETECTOR_RUN(input);
|
||||
|
||||
//
|
||||
// Clear the interrupt flag and issue ACK
|
||||
//
|
||||
AdcaRegs.ADCINTFLGCLR.bit.ADCINT1 = 1;
|
||||
PieCtrlRegs.PIEACK.all = PIEACK_GROUP1;
|
||||
|
||||
//
|
||||
// Toggle gpio pin for measuring frequency, debug
|
||||
//
|
||||
//GpioDataRegs.GPETOGGLE.bit.GPIO139 = 1; // LP Pin 43, uncomment and probe for frequency test
|
||||
}
|
||||
|
||||
//
|
||||
// Bit-decision ISR function
|
||||
//
|
||||
#pragma CODE_SECTION(epwm2_isr,".TI.ramfunc");
|
||||
__interrupt void epwm2_isr(void)
|
||||
{
|
||||
//
|
||||
// Enable ADC ISR Nesting
|
||||
//
|
||||
uint16_t TempPIEIER;
|
||||
TempPIEIER = PieCtrlRegs.PIEIER2.all;
|
||||
IER |= M_INT1;
|
||||
IER &= MINT1; // Set "global" priority
|
||||
PieCtrlRegs.PIEIER2.all &= MG1_1; // Set "group" priority
|
||||
PieCtrlRegs.PIEACK.all = 0xFFFF; // Enable PIE interrupts
|
||||
asm(" NOP"); // Wait one cycle
|
||||
EINT; // Clear INTM to enable interrupts
|
||||
|
||||
//
|
||||
// Run the FSK Correlation Detector Function
|
||||
//
|
||||
FSK_CORR_DETECTOR_OverSampl_RUN(&FSK_struct1);
|
||||
|
||||
//
|
||||
// See if a mark or space bit is detected
|
||||
//
|
||||
if(FSK_struct1.bit_detected != 0)
|
||||
{
|
||||
rxMessage[message_index++] = FSK_struct1.bit_detected; // Save the detected bit in the message buffer
|
||||
|
||||
FSK_struct1.bit_detected = 0; // Clear the detected bit member
|
||||
|
||||
//
|
||||
// Set flags when message buffer is full
|
||||
//
|
||||
if(RX_MESSAGE_SIZE <= message_index)
|
||||
{
|
||||
message_index = 0;
|
||||
msgFull = 1;
|
||||
}
|
||||
}
|
||||
|
||||
//
|
||||
// Clear INT flag for EPwm2
|
||||
//
|
||||
EPwm2Regs.ETCLR.bit.INT = 1;
|
||||
|
||||
//
|
||||
// Acknowledge this interrupt to receive more interrupts from group 3
|
||||
//
|
||||
PieCtrlRegs.PIEACK.all = PIEACK_GROUP3;
|
||||
|
||||
//
|
||||
// Restore registers saved for ADC ISR Nesting
|
||||
//
|
||||
DINT;
|
||||
PieCtrlRegs.PIEIER2.all = TempPIEIER;
|
||||
|
||||
//
|
||||
// Toggle gpio pin for measuring frequency, debug purposes
|
||||
//
|
||||
//GpioDataRegs.GPCTOGGLE.bit.GPIO65 = 1; // LP Pin 47
|
||||
}
|
||||
|
||||
//
|
||||
// cpu_timer2_isr CPU Timer2 ISR, for message timeout
|
||||
//
|
||||
#pragma CODE_SECTION(cpu_timer2_isr,".TI.ramfunc");
|
||||
__interrupt void cpu_timer2_isr(void)
|
||||
{
|
||||
//
|
||||
// Set msgFull flag to 1 to timeout
|
||||
//
|
||||
msgFull = 1;
|
||||
|
||||
//
|
||||
// Clear INT flags for EPwm2 and ADC
|
||||
//
|
||||
EPwm2Regs.ETCLR.bit.INT = 1;
|
||||
AdcaRegs.ADCINTFLGCLR.bit.ADCINT1 = 1;
|
||||
}
|
||||
|
||||
//
|
||||
// Begin Receiving input function
|
||||
//
|
||||
void Start_Receiving(void)
|
||||
{
|
||||
//
|
||||
// Start CPU Timer2 for Message Timeout
|
||||
//
|
||||
StartCpuTimer2();
|
||||
|
||||
//
|
||||
// Start ePWMs to start ISRs
|
||||
//
|
||||
EPwm1Regs.ETSEL.bit.SOCAEN = 1; // Enable SOCA, start of conversion
|
||||
EPwm1Regs.TBCTL.bit.CTRMODE = TB_COUNT_UP; // 300kHz == TB_COUNT_UP; 586Hz == TB_COUNT_UPDOWN
|
||||
EPwm2Regs.TBCTL.bit.CTRMODE = TB_COUNT_UPDOWN; // 300kHz == TB_COUNT_UP; 586Hz == TB_COUNT_UPDOWN
|
||||
}
|
||||
|
||||
//
|
||||
// Stop Receiving input function
|
||||
//
|
||||
void Stop_Receiving(void)
|
||||
{
|
||||
//
|
||||
// Stop CPU Timer2 for Message Timeout
|
||||
//
|
||||
StopCpuTimer2();
|
||||
|
||||
//
|
||||
// Reset CPU Timer2 for Message Timeout
|
||||
//
|
||||
ReloadCpuTimer2();
|
||||
|
||||
//
|
||||
// Stop ePWMs to stop ISRs
|
||||
//
|
||||
EPwm1Regs.ETSEL.bit.SOCAEN = 0;
|
||||
EPwm1Regs.TBCTL.bit.CTRMODE = TB_FREEZE;
|
||||
EPwm2Regs.TBCTL.bit.CTRMODE = TB_FREEZE;
|
||||
}
|
||||
|
||||
//
|
||||
// Function for Visual indication of packet received
|
||||
//
|
||||
void Visual_Indication(void)
|
||||
{
|
||||
//
|
||||
// Turn both LEDs off
|
||||
//
|
||||
GPIO_WritePin(GPIO_RED_LED2_BP, 1);
|
||||
GPIO_WritePin(GPIO_BLUE_LED1_BP, 1);
|
||||
|
||||
//
|
||||
// W1,W1,W1 received
|
||||
//
|
||||
if(packet_sum == packet_1)
|
||||
{
|
||||
// Toggle blue LED
|
||||
GPIO_WritePin(GPIO_BLUE_LED1_BP, 0);
|
||||
DELAY_US(250000);
|
||||
GPIO_WritePin(GPIO_BLUE_LED1_BP, 1);
|
||||
}
|
||||
//
|
||||
// W0,W0,W0 received
|
||||
//
|
||||
else if(packet_sum == packet_0)
|
||||
{
|
||||
// Toggle red LED
|
||||
GPIO_WritePin(GPIO_RED_LED2_BP, 0);
|
||||
DELAY_US(250000);
|
||||
GPIO_WritePin(GPIO_RED_LED2_BP, 1);
|
||||
}
|
||||
//
|
||||
// Continuous Mark
|
||||
//
|
||||
else if(packet_sum == packet_m)
|
||||
{
|
||||
// Turn blue LED on
|
||||
GPIO_WritePin(GPIO_BLUE_LED1_BP, 0);
|
||||
}
|
||||
//
|
||||
// Continuous Space
|
||||
//
|
||||
else if(packet_sum == packet_s)
|
||||
{
|
||||
// Turn red LED on
|
||||
GPIO_WritePin(GPIO_RED_LED2_BP, 0);
|
||||
}
|
||||
//
|
||||
// Zero energy or unspecified packet received
|
||||
//
|
||||
else
|
||||
{
|
||||
// Leave both LEDs off
|
||||
}
|
||||
}
|
||||
|
||||
//
|
||||
// End of file
|
||||
//
|
||||
+47
@@ -0,0 +1,47 @@
|
||||
<projectSpec>
|
||||
<project
|
||||
name="boostxl_afe031_f28379d_rx"
|
||||
device="TMS320F28379D"
|
||||
cgtVersion="22.6.0.LTS"
|
||||
products="C2000WARE"
|
||||
launchWizard="False"
|
||||
linkerCommandFile="" >
|
||||
<configuration name="CPU1_RAM"
|
||||
compilerBuildOptions="--opt_level=2 -I${F28379D_DEVICE_SUPPORT_ROOT}/../../libraries/math/IQmath/c28/include
|
||||
-I${F28379D_DEVICE_SUPPORT_ROOT}/headers/include -I${F28379D_DEVICE_SUPPORT_ROOT}/common/include
|
||||
-v28 -ml -mt --cla_support=cla1 --float_support=fpu32 --tmu_support=tmu0 --vcu_support=vcu0 --fp_mode=relaxed --define=CPU1 --define=_LAUNCHXL_F28379D -g --diag_suppress=1311 --diag_warning=225 --display_error_number"
|
||||
linkerBuildOptions="--stack_size=0x100 -l rts2800_fpu32.lib" />
|
||||
<configuration name="CPU1_FLASH"
|
||||
compilerBuildOptions="--opt_level=2 -I${F28379D_DEVICE_SUPPORT_ROOT}/../../libraries/math/IQmath/c28/include
|
||||
-I${F28379D_DEVICE_SUPPORT_ROOT}/headers/include -I${F28379D_DEVICE_SUPPORT_ROOT}/common/include
|
||||
--define=_FLASH -v28 -ml -mt --cla_support=cla1 --float_support=fpu32 --tmu_support=tmu0 --vcu_support=vcu0 --fp_mode=relaxed --define=CPU1 --define=_LAUNCHXL_F28379D -g --diag_suppress=1311 --diag_warning=225 --display_error_number"
|
||||
linkerBuildOptions="--stack_size=0x100 -l rts2800_fpu32.lib" />
|
||||
<pathVariable name="F28379D_DEVICE_SUPPORT_ROOT" path="../../../../../" scope="project" />
|
||||
<file action="copy" path="../../../../../common/targetConfigs/TMS320F28379D.ccxml" targetDirectory="targetConfigs" />
|
||||
<file action="copy" path="../../../../../common/cmd/2837xD_RAM_afe031_lnk_cpu1.cmd" targetDirectory="" applicableConfigurations="CPU1_RAM" />
|
||||
<file action="copy" path="../../../../../common/cmd/2837xD_FLASH_afe031_lnk_cpu1.cmd" targetDirectory="" applicableConfigurations="CPU1_FLASH" />
|
||||
<file action="copy" path="../../../../../common/source/F2837xD_CodeStartBranch.asm" targetDirectory="" applicableConfigurations="CPU1_FLASH" />
|
||||
<file action="copy" path="../../../../../common/source/F2837xD_DefaultISR.c" targetDirectory="" />
|
||||
<file action="copy" path="../../../../../common/source/F2837xD_EPwm.c" targetDirectory="" />
|
||||
<file action="copy" path="../../../../../common/source/F2837xD_Gpio.c" targetDirectory="" />
|
||||
<file action="copy" path="../../../../../common/source/F2837xD_Ipc.c" targetDirectory="" />
|
||||
<file action="copy" path="../../../../../common/source/F2837xD_PieCtrl.c" targetDirectory="" />
|
||||
<file action="copy" path="../../../../../common/source/F2837xD_PieVect.c" targetDirectory="" />
|
||||
<file action="copy" path="../../../../../common/source/F2837xD_SysCtrl.c" targetDirectory="" />
|
||||
<file action="copy" path="../../../../../common/source/F2837xD_Adc.c" targetDirectory="" />
|
||||
<file action="copy" path="../../../../../common/source/F2837xD_CpuTimers.c" targetDirectory="" />
|
||||
<file action="copy" path="../../../../../common/source/F2837xD_usDelay.asm" targetDirectory="" />
|
||||
<file action="copy" path="../../../../../headers/source/F2837xD_GlobalVariableDefs.c" targetDirectory="" />
|
||||
<file action="copy" path="../../../../../headers/cmd/F2837xD_Headers_nonBIOS_cpu1.cmd" targetDirectory="" />
|
||||
<file action="copy" path="../afe031_config.c" targetDirectory="" />
|
||||
<file action="copy" path="../afe031_config.h" targetDirectory="" />
|
||||
<file action="copy" path="../boostxl_afe031_f28379d_rx_isr.h" targetDirectory="" />
|
||||
<file action="copy" path="../boostxl_afe031_f28379d_rx_main.c" targetDirectory="" />
|
||||
<file action="copy" path="../hal_afe031.h" targetDirectory="" />
|
||||
<file action="copy" path="../hal_spi.c" targetDirectory="" />
|
||||
<file action="copy" path="../hal_spi.h" targetDirectory="" />
|
||||
<file action="copy" path="../fsk_corr_detector.h" targetDirectory="" />
|
||||
<file action="copy" path="../fsk_packetization.h" targetDirectory="" />
|
||||
<file action="copy" path="../fsk_corr_detect.lib" targetDirectory="" />
|
||||
</project>
|
||||
</projectSpec>
|
||||
+22
@@ -0,0 +1,22 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<configurations XML_version="1.2" id="configurations_0">
|
||||
<configuration XML_version="1.2" id="Texas Instruments XDS100v2 USB Debug Probe_0">
|
||||
<instance XML_version="1.2" desc="Texas Instruments XDS100v2 USB Debug Probe_0" href="connections/TIXDS100v2_Connection.xml" id="Texas Instruments XDS100v2 USB Debug Probe_0" xml="TIXDS100v2_Connection.xml" xmlpath="connections"/>
|
||||
<connection XML_version="1.2" id="Texas Instruments XDS100v2 USB Debug Probe_0">
|
||||
<instance XML_version="1.2" href="drivers/tixds100v2icepick_c.xml" id="drivers" xml="tixds100v2icepick_c.xml" xmlpath="drivers"/>
|
||||
<instance XML_version="1.2" href="drivers/tixds100v2c28x.xml" id="drivers" xml="tixds100v2c28x.xml" xmlpath="drivers"/>
|
||||
<instance XML_version="1.2" href="drivers/tixds100v2cla1.xml" id="drivers" xml="tixds100v2cla1.xml" xmlpath="drivers"/>
|
||||
<instance XML_version="1.2" href="drivers/tixds100v2cs_child.xml" id="drivers" xml="tixds100v2cs_child.xml" xmlpath="drivers"/>
|
||||
<platform XML_version="1.2" id="platform_0">
|
||||
<instance XML_version="1.2" desc="TMS320F28377D_0" href="devices/tms320f28377d.xml" id="TMS320F28377D_0" xml="tms320f28377d.xml" xmlpath="devices"/>
|
||||
<device HW_revision="1" XML_version="1.2" description="" id="TMS320F28377D_0" partnum="TMS320F28377D">
|
||||
<router HW_revision="1.0" XML_version="1.2" description="ICEPick_C router" id="IcePick_C_0" isa="ICEPICK_C">
|
||||
<subpath id="Subpath_1">
|
||||
<property Type="numericfield" Value="0x11" desc="Port Number_0" id="Port Number"/>
|
||||
</subpath>
|
||||
</router>
|
||||
</device>
|
||||
</platform>
|
||||
</connection>
|
||||
</configuration>
|
||||
</configurations>
|
||||
BIN
Binary file not shown.
+77
@@ -0,0 +1,77 @@
|
||||
//#############################################################################
|
||||
//
|
||||
// FILE: fsk_corr_detector.h
|
||||
//
|
||||
// TITLE: Header file for FSK detect functions, part of fsk_corr_detect_lib
|
||||
//
|
||||
//#############################################################################
|
||||
//
|
||||
//
|
||||
// $Copyright:
|
||||
// Copyright (C) 2013-2024 Texas Instruments Incorporated - http://www.ti.com/
|
||||
//
|
||||
// Redistribution and use in source and binary forms, with or without
|
||||
// modification, are permitted provided that the following conditions
|
||||
// are met:
|
||||
//
|
||||
// Redistributions of source code must retain the above copyright
|
||||
// notice, this list of conditions and the following disclaimer.
|
||||
//
|
||||
// Redistributions in binary form must reproduce the above copyright
|
||||
// notice, this list of conditions and the following disclaimer in the
|
||||
// documentation and/or other materials provided with the
|
||||
// distribution.
|
||||
//
|
||||
// Neither the name of Texas Instruments Incorporated nor the names of
|
||||
// its contributors may be used to endorse or promote products derived
|
||||
// from this software without specific prior written permission.
|
||||
//
|
||||
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||
// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||
// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
||||
// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
||||
// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||
// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||
// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
||||
// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
||||
// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
// $
|
||||
//#############################################################################
|
||||
|
||||
#ifndef FSK_CORR_DETECT_INCLUDE_H
|
||||
#define FSK_CORR_DETECT_INCLUDE_H
|
||||
|
||||
#ifndef MATH_TYPE
|
||||
#define MATH_TYPE 1 //FLOAT_MATH
|
||||
#endif
|
||||
#include <stdint.h>
|
||||
#include "IQmathLib.h"
|
||||
|
||||
#define RX_MESSAGE_SIZE 33 // Number of bits to receive
|
||||
|
||||
typedef struct{
|
||||
float mark_freq;
|
||||
float space_freq;
|
||||
float isr_freq;
|
||||
float bit_freq;
|
||||
float detection_threshold;
|
||||
int16_t bit_detected; // +1 mark, -1 space, 0 zero energy or unspecified frequency
|
||||
}FSK_CORR_DETECTOR;
|
||||
|
||||
//
|
||||
// global counter variables
|
||||
//
|
||||
extern uint16_t mark_counter, space_counter, zero_counter, bit_sample_counter;
|
||||
//extern uint16_t mark_detect[RX_MESSAGE_SIZE], space_detect[RX_MESSAGE_SIZE], n; // Used for debug
|
||||
|
||||
extern void FSK_CORR_DETECTOR_INIT( volatile FSK_CORR_DETECTOR *obj);
|
||||
|
||||
extern void FSK_CORR_DETECTOR_BITRATE_RUN(volatile FSK_CORR_DETECTOR *obj);
|
||||
|
||||
extern void FSK_CORR_DETECTOR_RUN(volatile float adc_value);
|
||||
|
||||
extern void FSK_CORR_DETECTOR_OverSampl_RUN(volatile FSK_CORR_DETECTOR *obj);
|
||||
|
||||
#endif
|
||||
+76
@@ -0,0 +1,76 @@
|
||||
//#############################################################################
|
||||
//
|
||||
// FILE: fsk_packetization.h
|
||||
//
|
||||
// TITLE: Header file for FSK packetization functions, part of fsk_corr_detect_lib
|
||||
//
|
||||
//#############################################################################
|
||||
//
|
||||
//
|
||||
// $Copyright:
|
||||
// Copyright (C) 2013-2024 Texas Instruments Incorporated - http://www.ti.com/
|
||||
//
|
||||
// Redistribution and use in source and binary forms, with or without
|
||||
// modification, are permitted provided that the following conditions
|
||||
// are met:
|
||||
//
|
||||
// Redistributions of source code must retain the above copyright
|
||||
// notice, this list of conditions and the following disclaimer.
|
||||
//
|
||||
// Redistributions in binary form must reproduce the above copyright
|
||||
// notice, this list of conditions and the following disclaimer in the
|
||||
// documentation and/or other materials provided with the
|
||||
// distribution.
|
||||
//
|
||||
// Neither the name of Texas Instruments Incorporated nor the names of
|
||||
// its contributors may be used to endorse or promote products derived
|
||||
// from this software without specific prior written permission.
|
||||
//
|
||||
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||
// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||
// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
||||
// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
||||
// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||
// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||
// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
||||
// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
||||
// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
// $
|
||||
//#############################################################################
|
||||
|
||||
#ifndef FSK_PACKETIZATION_H_
|
||||
#define FSK_PACKETIZATION_H_
|
||||
|
||||
//
|
||||
// Defines
|
||||
//
|
||||
#define NUMBER_OF_WORDS 3
|
||||
#define NUMBER_OF_BITS_PER_WORD 11
|
||||
|
||||
//
|
||||
// global variables
|
||||
//
|
||||
extern int packet_sum;
|
||||
|
||||
//
|
||||
// enum for deciphering received packet
|
||||
//
|
||||
enum word{
|
||||
word_0 = -1,
|
||||
word_1 = 1,
|
||||
word_z = 0,
|
||||
packet_0 = -3,
|
||||
packet_1 = 3,
|
||||
packet_z = 0,
|
||||
packet_s = -33,
|
||||
packet_m = 33
|
||||
};
|
||||
|
||||
//
|
||||
// Function Prototypes
|
||||
//
|
||||
void Packetize(int message[], int packet[]);
|
||||
|
||||
#endif // FSK_PACKETIZATION_H_
|
||||
+364
@@ -0,0 +1,364 @@
|
||||
//#############################################################################
|
||||
//
|
||||
// FILE: hal_afe031.h
|
||||
//
|
||||
// TITLE: AFE031 Functions
|
||||
//
|
||||
//#############################################################################
|
||||
//
|
||||
//
|
||||
// $Copyright:
|
||||
// Copyright (C) 2013-2024 Texas Instruments Incorporated - http://www.ti.com/
|
||||
//
|
||||
// Redistribution and use in source and binary forms, with or without
|
||||
// modification, are permitted provided that the following conditions
|
||||
// are met:
|
||||
//
|
||||
// Redistributions of source code must retain the above copyright
|
||||
// notice, this list of conditions and the following disclaimer.
|
||||
//
|
||||
// Redistributions in binary form must reproduce the above copyright
|
||||
// notice, this list of conditions and the following disclaimer in the
|
||||
// documentation and/or other materials provided with the
|
||||
// distribution.
|
||||
//
|
||||
// Neither the name of Texas Instruments Incorporated nor the names of
|
||||
// its contributors may be used to endorse or promote products derived
|
||||
// from this software without specific prior written permission.
|
||||
//
|
||||
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||
// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||
// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
||||
// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
||||
// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||
// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||
// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
||||
// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
||||
// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
// $
|
||||
//#############################################################################
|
||||
|
||||
#ifndef _HAL_AFE031_H
|
||||
#define _HAL_AFE031_H
|
||||
|
||||
//
|
||||
// Included Files
|
||||
//
|
||||
#include "F28x_Project.h" // Device Headerfile and Examples Include File
|
||||
|
||||
//
|
||||
// Defines
|
||||
//
|
||||
#define UINT16 Uint16
|
||||
#define HAL_AFE031_CMD_SHIFT 8
|
||||
#define HAL_AFE031_CMD_MASK 0xFF
|
||||
#define HAL_AFE031_DATA_SHIFT 0
|
||||
#define HAL_AFE031_DATA_MASK 0xFF
|
||||
|
||||
#define HAL_AFE031_CMD_WR 0x0
|
||||
#define HAL_AFE031_CMD_RD 0x8
|
||||
#define HAL_AFE031_CMD_RW_SHIFT 4
|
||||
#define HAL_AFE031_CMD_RW_MASK 0xF
|
||||
|
||||
#define HAL_AFE031_ENABLE_REG 0x1
|
||||
#define HAL_AFE031_ENABLE2_REG 0x3
|
||||
#define HAL_AFE031_GAINSEL_REG 0x2
|
||||
#define HAL_AFE031_CTRL_REG 0x4
|
||||
#define HAL_AFE031_CTRL2_REG 0x5
|
||||
#define HAL_AFE031_FUSE1_REG 0x8
|
||||
#define HAL_AFE031_RESET_REG 0x9
|
||||
#define HAL_AFE031_DIEID_REG 0xA
|
||||
#define HAL_AFE031_REV_REG 0xB
|
||||
#define HAL_AFE031_IFLAG_REG 0xC
|
||||
|
||||
/* Register Bit Definitions */
|
||||
/* Enable Register */
|
||||
#define HAL_AFE031_ENABLE_PA 0x1
|
||||
#define HAL_AFE031_ENABLE_TX 0x2
|
||||
#define HAL_AFE031_ENABLE_RX 0x4
|
||||
#define HAL_AFE031_ENABLE_ERX 0x8
|
||||
#define HAL_AFE031_ENABLE_ETX 0x10
|
||||
#define HAL_AFE031_ENABLE_DAC 0x20
|
||||
|
||||
/* Enable2 Register */
|
||||
#define HAL_AFE031_ENABLE2_ZC 0x1
|
||||
#define HAL_AFE031_ENABLE2_REF1 0x2
|
||||
#define HAL_AFE031_ENABLE2_REF2 0x4
|
||||
#define HAL_AFE031_ENABLE2_REF 0x6
|
||||
#define HAL_AFE031_ENABLE2_PAOUT 0x8
|
||||
#define HAL_AFE031_ENABLE2_OVWR 0x80
|
||||
|
||||
/* Fuse1 Register */
|
||||
#define HAL_AFE031_FUSE1_TX0 0x1
|
||||
#define HAL_AFE031_FUSE1_TX1 0x2
|
||||
#define HAL_AFE031_FUSE1_TX2 0x4
|
||||
#define HAL_AFE031_FUSE1_TX3 0x8
|
||||
#define HAL_AFE031_FUSE1_RX0 0x10
|
||||
#define HAL_AFE031_FUSE1_RX1 0x20
|
||||
#define HAL_AFE031_FUSE1_RX2 0x40
|
||||
#define HAL_AFE031_FUSE1_RX3 0x80
|
||||
|
||||
/* Reset Register */
|
||||
#define HAL_AFE031_RESET_SOFTRST0 0x4 //write only
|
||||
#define HAL_AFE031_RESET_SOFTRST1 0x8 //write only
|
||||
#define HAL_AFE031_RESET_SOFTRST2 0x10 //write only
|
||||
#define HAL_AFE031_RESET_SOFTRST_MASK 0x1C
|
||||
#define HAL_AFE031_RESET_SOFTRST 0x14 //101 to reset
|
||||
#define HAL_AFE031_RESET_TFLAG 0x20 //read only (status)
|
||||
#define HAL_AFE031_RESET_IFLAG 0x40 //read only (status)
|
||||
#define HAL_AFE031_RESET_PWRFLAG 0x80 //read only (status)
|
||||
|
||||
/* Gain Select Register */
|
||||
#define HAL_AFE031_GAINSEL_RXGAIN_MASK 0xF //b3-0
|
||||
#define HAL_AFE031_GAINSEL_TXGAIN_MASK 0x3 //b5b4
|
||||
#define HAL_AFE031_GAINSEL_TXGAIN_SHIFT 0x4
|
||||
|
||||
/* Control Register */
|
||||
#define HAL_AFE031_CTRL_TXCAL 0x1 //b0
|
||||
#define HAL_AFE031_CTRL_RXCAL 0x2 //b1
|
||||
#define HAL_AFE031_CTRL_TXPGACAL 0x4 //b2
|
||||
#define HAL_AFE031_CTRL_BAND 0x8 //b3 (0-A; 1-BCD)
|
||||
#define HAL_AFE031_CTRL_ABAND 0
|
||||
#define HAL_AFE031_CTRL_BCDBAND 1
|
||||
#define HAL_AFE031_CTRL_BAND_SHIFT 3
|
||||
#define HAL_AFE031_CTRL_TXFLAG 0x40 //b6 (read only)
|
||||
#define HAL_AFE031_CTRL_RXFLAG 0x80 //b7 (read only)
|
||||
|
||||
/* Control2 Register */
|
||||
#define HAL_AFE031_CTRL2_TFLAG 0x20 //b5
|
||||
#define HAL_AFE031_CTRL2_IFLAG 0x40 //b6
|
||||
#define HAL_AFE031_CTRL2_PFLAG 0x80 //b7
|
||||
|
||||
#define HAL_AFE031_BIAS_ON_DELAY 2000 //in us
|
||||
|
||||
/* For true SPI (F28035), 10-bit SPI I/F for DAC
|
||||
For McBSP/SPI, 12-bit I/F for DAC */
|
||||
//#ifdef F2803X
|
||||
#define HAL_AFE031_SPI_DAC_LEN 10
|
||||
|
||||
#define HAL_AFE031_SPI_DEFAULT_LEN 16
|
||||
|
||||
typedef enum
|
||||
{
|
||||
HAL_AFE031_ABAND = 0,
|
||||
HAL_AFE031_BCDBAND = 1
|
||||
}HAL_afe031_band_t;
|
||||
|
||||
/*****************************************************************************/
|
||||
/* Macro Definistions */
|
||||
/*****************************************************************************/
|
||||
#define HAL_afe031_softReset() \
|
||||
{HAL_afe031_reg_s.reset.bits.SOFT_RST = HAL_AFE031_RESET_SOFTRST;\
|
||||
HAL_afe031_regWrite(HAL_AFE031_RESET_REG, HAL_afe031_reg_s.reset.all);}
|
||||
|
||||
#define HAL_afe031_biasEnable() \
|
||||
{HAL_afe031_reg_s.enable2.bits.REF = 3; \
|
||||
HAL_afe031_regWrite(HAL_AFE031_ENABLE2_REG, HAL_afe031_reg_s.enable2.all);\
|
||||
DELAY_US(HAL_AFE031_BIAS_ON_DELAY);}
|
||||
|
||||
#define HAL_afe031_txDACEnable() \
|
||||
{HAL_afe031_reg_s.enable.bits.TX = 1; \
|
||||
HAL_afe031_reg_s.enable.bits.DAC = 1; \
|
||||
HAL_afe031_reg_s.enable.bits.PA = 1; \
|
||||
HAL_afe031_regWrite(HAL_AFE031_ENABLE_REG, HAL_afe031_reg_s.enable.all); \
|
||||
DELAY_US(2); \
|
||||
HAL_afe031_reg_s.enable2.bits.PA_OUT = 1; \
|
||||
HAL_afe031_regWrite(HAL_AFE031_ENABLE2_REG, HAL_afe031_reg_s.enable2.all); }
|
||||
|
||||
#define HAL_afe031_txPWMEnable() \
|
||||
{HAL_afe031_reg_s.enable.bits.TX = 1; \
|
||||
HAL_afe031_reg_s.enable.bits.DAC = 0; \
|
||||
HAL_afe031_reg_s.enable.bits.PA = 1; \
|
||||
HAL_afe031_regWrite(HAL_AFE031_ENABLE_REG, HAL_afe031_reg_s.enable.all); \
|
||||
DELAY_US(2); \
|
||||
HAL_afe031_reg_s.enable2.bits.PA_OUT = 1; \
|
||||
HAL_afe031_regWrite(HAL_AFE031_ENABLE2_REG, HAL_afe031_reg_s.enable2.all); }
|
||||
|
||||
#define HAL_afe031_txDisable() \
|
||||
{HAL_afe031_reg_s.enable2.bits.PA_OUT = 0; \
|
||||
HAL_afe031_regWrite(HAL_AFE031_ENABLE2_REG, HAL_afe031_reg_s.enable2.all); \
|
||||
HAL_afe031_reg_s.enable.bits.TX = 0; \
|
||||
HAL_afe031_reg_s.enable.bits.PA = 0; \
|
||||
HAL_afe031_regWrite(HAL_AFE031_ENABLE_REG, HAL_afe031_reg_s.enable.all);}
|
||||
|
||||
#define HAL_afe031_dacEnable() \
|
||||
{HAL_afe031_reg_s.enable.bits.DAC = 1; \
|
||||
HAL_afe031_regWrite(HAL_AFE031_ENABLE_REG, HAL_afe031_reg_s.enable.all); \
|
||||
DELAY_US(2); \
|
||||
HAL_afe031_cfgWdLen(HAL_AFE031_SPI_DAC_LEN); \
|
||||
GPIO_WritePin(2, 1);}
|
||||
|
||||
|
||||
#define HAL_afe031_dacDisable() \
|
||||
{GpioDataRegs.GPADAT.bit.GPIO7 = 0; \
|
||||
DELAY_US(10); \
|
||||
HAL_afe031_cfgWdLen(HAL_AFE031_SPI_DEFAULT_LEN); \
|
||||
GPIO_WritePin(2, 0); \
|
||||
HAL_afe031_regWrite(HAL_AFE031_ENABLE_REG, HAL_afe031_reg_s.enable.all);}
|
||||
|
||||
|
||||
#define HAL_afe031_rxEnable() \
|
||||
{HAL_afe031_reg_s.enable.bits.RX = 1; \
|
||||
HAL_afe031_regWrite(HAL_AFE031_ENABLE_REG, HAL_afe031_reg_s.enable.all);}
|
||||
|
||||
#define HAL_afe031_rxDisable() \
|
||||
{HAL_afe031_reg_s.enable.bits.RX = 0; \
|
||||
HAL_afe031_regWrite(HAL_AFE031_ENABLE_REG, HAL_afe031_reg_s.enable.all);}
|
||||
|
||||
#define HAL_afe031_bandSelect(band) \
|
||||
{HAL_afe031_reg_s.control.bits.CA_BCD = band; \
|
||||
HAL_afe031_regWrite(HAL_AFE031_CTRL_REG, HAL_afe031_reg_s.control.all);}
|
||||
|
||||
#define HAL_afe031_zcEnable() \
|
||||
{ HAL_afe031_reg_s.enable2.bits.ZC = 1;\
|
||||
HAL_afe031_regWrite(HAL_AFE031_ENABLE2_REG, HAL_afe031_reg_s.enable2.all);}
|
||||
|
||||
/*****************************************************************************/
|
||||
/* Data Structures */
|
||||
/*****************************************************************************/
|
||||
typedef struct
|
||||
{
|
||||
UINT16 PA :1; //b0 - PA enable
|
||||
UINT16 TX :1; //b1 - TX enable
|
||||
UINT16 RX :1; //b2 - RX enable
|
||||
UINT16 ERX :1; //b3 - ERX enable
|
||||
UINT16 ETX :1; //b4 - ETX enable
|
||||
UINT16 DAC :1; //b5 - DAC enable
|
||||
UINT16 rsvd :10; //reserved
|
||||
}HAL_afe031_enable_t;
|
||||
|
||||
typedef struct
|
||||
{
|
||||
UINT16 ZC :1; //b0 - ZC enable
|
||||
UINT16 REF :2; //b2:1 - Ref12Ref1 enable
|
||||
UINT16 PA_OUT :1; //b3 - PA out enable
|
||||
UINT16 rsvd :3; //b6:4 - reserved
|
||||
UINT16 OVWR :1; //Fuse1 overwrite enable
|
||||
UINT16 rsvd1 :8; //reserved
|
||||
}HAL_afe031_enable2_t;
|
||||
|
||||
typedef struct
|
||||
{
|
||||
UINT16 RXG :4; //b1:0 - RX PGA1 gain
|
||||
//b3:2 - RX PGA2 gain
|
||||
UINT16 TXG :2; //b5:4 - TX PGA gain
|
||||
UINT16 rsvd :10; //b15:6 reserved
|
||||
}HAL_afe031_gain_sel_t;
|
||||
|
||||
typedef struct
|
||||
{
|
||||
UINT16 TX_CAL :1; //b0 - TX calibration enable
|
||||
UINT16 RX_CAL :1; //b1 - RX calibration enable
|
||||
UINT16 TXPGA_CAL :1; //b2 - TXPGA calibration enable
|
||||
UINT16 CA_BCD :1; //b3 - Cenelec A (0) or BCD (1) band
|
||||
UINT16 rsvd :2; //b5:4 - reserved
|
||||
UINT16 TX_FLAG :1; //b6 - TX flag status (read only)
|
||||
UINT16 RX_FLAG :1; //b7 - RX flag status (read only)
|
||||
UINT16 rsvd1 :8; //reserved
|
||||
}HAL_afe031_control_t;
|
||||
|
||||
typedef struct
|
||||
{
|
||||
UINT16 rsvd :5; //b4:0 - reserved
|
||||
UINT16 TFLAG_EN :1; //b5 - TFlag enable
|
||||
UINT16 IFLAG_EN :1; //b6 - IFlag enable
|
||||
UINT16 PFLAG_EN :1; //b7 - PFlag enable
|
||||
UINT16 rsvd1 :8; //reserved
|
||||
}HAL_afe031_control2_t;
|
||||
|
||||
typedef struct
|
||||
{
|
||||
UINT16 TX_TRIM :4; //b3:0 - Each bit, 0:Clear TX trim fuse; 1:Set TX trim fuse
|
||||
UINT16 RX_TRIM :4; //b7:4 - Each bit, 0:Clear RX trim fuse; 1:Set RX trim fuse
|
||||
UINT16 rsvd :8; //reserved
|
||||
}HAL_afe031_fuse1_t;
|
||||
|
||||
typedef struct
|
||||
{
|
||||
UINT16 rsvd :2; //b1:0 - reserved
|
||||
UINT16 SOFT_RST :3; //b4:2 - Writing 101 to soft reset
|
||||
UINT16 TFLAG :1; //b5 - TFlag status (write 0 to clear)
|
||||
UINT16 IFLAG :1; //b6 - IFlag status (write 0 to clear)
|
||||
UINT16 PFLAG :1; //b7 - PFlag status (write 0 to clear)
|
||||
UINT16 rsvd1 :8; //reserved
|
||||
}HAL_afe031_reset_t;
|
||||
|
||||
|
||||
typedef struct
|
||||
{
|
||||
union
|
||||
{
|
||||
UINT16 all;
|
||||
HAL_afe031_enable_t bits;
|
||||
}enable;
|
||||
|
||||
union
|
||||
{
|
||||
UINT16 all;
|
||||
HAL_afe031_enable2_t bits;
|
||||
}enable2;
|
||||
|
||||
union
|
||||
{
|
||||
UINT16 all;
|
||||
HAL_afe031_gain_sel_t bits;
|
||||
}gain_sel;
|
||||
|
||||
union
|
||||
{
|
||||
UINT16 all;
|
||||
HAL_afe031_control_t bits;
|
||||
}control;
|
||||
|
||||
union
|
||||
{
|
||||
UINT16 all;
|
||||
HAL_afe031_control2_t bits;
|
||||
}control2;
|
||||
|
||||
union
|
||||
{
|
||||
UINT16 all;
|
||||
HAL_afe031_fuse1_t bits;
|
||||
}fuse1;
|
||||
|
||||
union
|
||||
{
|
||||
UINT16 all;
|
||||
HAL_afe031_reset_t bits;
|
||||
}reset;
|
||||
|
||||
UINT16 iflag_tm;
|
||||
|
||||
UINT16 die_id;
|
||||
|
||||
UINT16 rev;
|
||||
}HAL_afe031_reg_t;
|
||||
|
||||
//
|
||||
// Externals
|
||||
//
|
||||
extern HAL_afe031_reg_t HAL_afe031_reg_s;
|
||||
|
||||
//
|
||||
// Function Prototypes
|
||||
//
|
||||
void HAL_afe031_regWrite(UINT16 addr, UINT16 data);
|
||||
UINT16 HAL_afe031_regRead(UINT16 addr);
|
||||
void HAL_afe031_writeGain(UINT16 rxgain, UINT16 txgain);
|
||||
void HAL_afe031_clrAllInt(void);
|
||||
void HAL_afe031_cfgInt(void);
|
||||
void HAL_afe031_clrInt(UINT16 flag);
|
||||
UINT16 HAL_afe031_intAsserted(void);
|
||||
void HAL_afe031_shutdown(UINT16 sd);
|
||||
void HAL_afe031_cfgGpio(void);
|
||||
void HAL_afe031_cfgWdLen(UINT16 len);
|
||||
void HAL_afe031Init(void);
|
||||
|
||||
#endif
|
||||
|
||||
//
|
||||
// End of file
|
||||
//
|
||||
+238
@@ -0,0 +1,238 @@
|
||||
//#############################################################################
|
||||
//
|
||||
// FILE: hal_spi.c
|
||||
//
|
||||
// TITLE: HAL SPI Functions
|
||||
//
|
||||
//#############################################################################
|
||||
//
|
||||
//
|
||||
// $Copyright:
|
||||
// Copyright (C) 2013-2024 Texas Instruments Incorporated - http://www.ti.com/
|
||||
//
|
||||
// Redistribution and use in source and binary forms, with or without
|
||||
// modification, are permitted provided that the following conditions
|
||||
// are met:
|
||||
//
|
||||
// Redistributions of source code must retain the above copyright
|
||||
// notice, this list of conditions and the following disclaimer.
|
||||
//
|
||||
// Redistributions in binary form must reproduce the above copyright
|
||||
// notice, this list of conditions and the following disclaimer in the
|
||||
// documentation and/or other materials provided with the
|
||||
// distribution.
|
||||
//
|
||||
// Neither the name of Texas Instruments Incorporated nor the names of
|
||||
// its contributors may be used to endorse or promote products derived
|
||||
// from this software without specific prior written permission.
|
||||
//
|
||||
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||
// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||
// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
||||
// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
||||
// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||
// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||
// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
||||
// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
||||
// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
// $
|
||||
//#############################################################################
|
||||
|
||||
//
|
||||
// Included Files
|
||||
//
|
||||
#include "F28x_Project.h"
|
||||
#include "hal_spi.h"
|
||||
#include "afe031_config.h"
|
||||
#include "hal_afe031.h"
|
||||
|
||||
//
|
||||
// FUNCTION NAME: HAL_spi_cfg
|
||||
//
|
||||
// DESCRIPTION: Configure SPI.
|
||||
//
|
||||
// Return Value: None
|
||||
//
|
||||
// Input Parameters:
|
||||
//
|
||||
// Output Parameters:
|
||||
// Functions Called:
|
||||
// InitSpiaGpio (TI header lib)
|
||||
// HAL_spi_fifo_init
|
||||
// HAL_spi_init
|
||||
//
|
||||
void HAL_spi_cfg()
|
||||
{
|
||||
InitAFESpiGpio();
|
||||
HAL_spi_fifoInit();
|
||||
HAL_spi_init();
|
||||
}
|
||||
|
||||
void InitAFESpiGpio()
|
||||
{
|
||||
EALLOW;
|
||||
|
||||
GPIO_SetupPinOptions(58, GPIO_INPUT, GPIO_ASYNC | GPIO_PULLUP);
|
||||
GPIO_SetupPinOptions(59, GPIO_INPUT, GPIO_ASYNC | GPIO_PULLUP);
|
||||
GPIO_SetupPinOptions(61, GPIO_INPUT, GPIO_ASYNC | GPIO_PULLUP);
|
||||
GPIO_SetupPinOptions(60, GPIO_INPUT, GPIO_ASYNC | GPIO_PULLUP);
|
||||
|
||||
GPIO_SetupPinMux(58, GPIO_MUX_CPU1, 15);
|
||||
GPIO_SetupPinMux(59, GPIO_MUX_CPU1, 15);
|
||||
GPIO_SetupPinMux(60, GPIO_MUX_CPU1, 15);
|
||||
GPIO_SetupPinMux(61, GPIO_MUX_CPU1, 15);
|
||||
|
||||
EDIS;
|
||||
}
|
||||
|
||||
//
|
||||
// FUNCTION NAME: HAL_spi_init
|
||||
//
|
||||
// DESCRIPTION: Initialize SPI.
|
||||
//
|
||||
// Return Value: None
|
||||
//
|
||||
// Input Parameters:
|
||||
//
|
||||
// Output Parameters:
|
||||
// Functions Called:
|
||||
//
|
||||
//
|
||||
void HAL_spi_init()
|
||||
{
|
||||
EALLOW;
|
||||
ClkCfgRegs.LOSPCP.all = HAL_SPI_LSPCLK;
|
||||
EDIS;
|
||||
|
||||
SpiaRegs.SPICCR.bit.SPISWRESET = 0;
|
||||
SpiaRegs.SPICCR.bit.CLKPOLARITY = 1;
|
||||
SpiaRegs.SPICCR.bit.SPILBK = 0;
|
||||
SpiaRegs.SPICCR.bit.SPICHAR = 15; //16-bit character
|
||||
SpiaRegs.SPICCR.bit.HS_MODE = 0x1;
|
||||
SpiaRegs.SPICTL.bit.SPIINTENA = 0; // Interrupt disable
|
||||
SpiaRegs.SPICTL.bit.TALK = 1; // Transmit enable
|
||||
SpiaRegs.SPICTL.bit.MASTER_SLAVE = 1; //Master
|
||||
SpiaRegs.SPICTL.bit.CLK_PHASE = 0; //Normal phase, depending on SPICCR.6 (CLOCK_POLARITY)
|
||||
SpiaRegs.SPICTL.bit.OVERRUNINTENA = 0; //Overrun interrupt disable
|
||||
|
||||
SpiaRegs.SPIBRR.bit.SPI_BIT_RATE = HAL_SPI_BRR;
|
||||
|
||||
SpiaRegs.SPIPRI.bit.FREE = 1; // Set so breakpoints don't disturb xmission
|
||||
|
||||
SpiaRegs.SPICCR.bit.SPISWRESET = 1; // Ready to transmit
|
||||
}
|
||||
|
||||
//
|
||||
// FUNCTION NAME: HAL_spi_xmt
|
||||
//
|
||||
// DESCRIPTION: SPI transmit.
|
||||
//
|
||||
// Return Value: None
|
||||
//
|
||||
// Input Parameters: val to be transmitted
|
||||
//
|
||||
// Output Parameters:
|
||||
// Functions Called:
|
||||
//
|
||||
//
|
||||
UINT16 spiXmtErrState = 0;
|
||||
void HAL_spi_xmt(Uint16 a)
|
||||
{
|
||||
SpiaRegs.SPITXBUF = a;
|
||||
DELAY_US(1);
|
||||
}
|
||||
|
||||
//
|
||||
// FUNCTION NAME: PHY_spiFifoInit
|
||||
//
|
||||
// DESCRIPTION: Initialize SPI FIFO.
|
||||
//
|
||||
// Return Value: None
|
||||
//
|
||||
// Input Parameters:
|
||||
//
|
||||
// Output Parameters:
|
||||
// Functions Called:
|
||||
//
|
||||
//
|
||||
void HAL_spi_fifoInit()
|
||||
{
|
||||
//
|
||||
// Initialize SPI FIFO registers
|
||||
//
|
||||
SpiaRegs.SPIFFTX.all = HAL_SPI_FFTX;
|
||||
SpiaRegs.SPIFFRX.all = HAL_SPI_FFRX;
|
||||
SpiaRegs.SPIFFCT.all = 0x0;
|
||||
}
|
||||
|
||||
//
|
||||
// FUNCTION NAME: HAL_spi_writeGain
|
||||
//
|
||||
// DESCRIPTION: AFE start. Start DMA, adc SOC.
|
||||
//
|
||||
// Return Value: None
|
||||
//
|
||||
// Input Parameters: val - gain to be written to PGA
|
||||
//
|
||||
// Output Parameters:
|
||||
// Functions Called:
|
||||
//
|
||||
//
|
||||
void HAL_spi_writeGain(Uint16 val)
|
||||
{
|
||||
Uint16 regVal;
|
||||
|
||||
regVal = (HAL_SPI_PGA_WRITE << HAL_SPI_PGA_RWSHIFT)
|
||||
| ((val & 0xF) << HAL_SPI_PGA_GAINSHIFT) |
|
||||
HAL_SPI_PGA_CH1;
|
||||
HAL_spi_xmt(regVal);
|
||||
}
|
||||
|
||||
//
|
||||
// FUNCTION NAME: HAL_spi_cfgWdLen
|
||||
//
|
||||
// DESCRIPTION: Configure word length.
|
||||
//
|
||||
// Return Value: None
|
||||
//
|
||||
// Input Parameters: val - length
|
||||
//
|
||||
// Output Parameters:
|
||||
// Functions Called:
|
||||
//
|
||||
//
|
||||
void HAL_spi_cfgWdLen(Uint16 val)
|
||||
{
|
||||
SpiaRegs.SPICCR.bit.SPICHAR = val - 1;
|
||||
}
|
||||
|
||||
//
|
||||
// FUNCTION NAME: HAL_spi_read
|
||||
//
|
||||
// DESCRIPTION: SPI read.
|
||||
//
|
||||
// Return Value: None
|
||||
//
|
||||
// Input Parameters:
|
||||
//
|
||||
// Output Parameters:
|
||||
// Functions Called:
|
||||
//
|
||||
//
|
||||
Uint16 HAL_spi_read(Uint16 a)
|
||||
{
|
||||
SpiaRegs.SPITXBUF = a;
|
||||
/* Need to check out */
|
||||
DELAY_US(2);
|
||||
/* Write a dummy */
|
||||
SpiaRegs.SPITXBUF = 0xFFFF;
|
||||
DELAY_US(2);
|
||||
|
||||
return SpiaRegs.SPIDAT;
|
||||
}
|
||||
|
||||
//
|
||||
// End of file
|
||||
//
|
||||
+87
@@ -0,0 +1,87 @@
|
||||
//#############################################################################
|
||||
//
|
||||
// FILE: hal_spi.h
|
||||
//
|
||||
// TITLE: HAL SPI Functions
|
||||
//
|
||||
//#############################################################################
|
||||
//
|
||||
//
|
||||
// $Copyright:
|
||||
// Copyright (C) 2013-2024 Texas Instruments Incorporated - http://www.ti.com/
|
||||
//
|
||||
// Redistribution and use in source and binary forms, with or without
|
||||
// modification, are permitted provided that the following conditions
|
||||
// are met:
|
||||
//
|
||||
// Redistributions of source code must retain the above copyright
|
||||
// notice, this list of conditions and the following disclaimer.
|
||||
//
|
||||
// Redistributions in binary form must reproduce the above copyright
|
||||
// notice, this list of conditions and the following disclaimer in the
|
||||
// documentation and/or other materials provided with the
|
||||
// distribution.
|
||||
//
|
||||
// Neither the name of Texas Instruments Incorporated nor the names of
|
||||
// its contributors may be used to endorse or promote products derived
|
||||
// from this software without specific prior written permission.
|
||||
//
|
||||
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||
// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||
// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
||||
// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
||||
// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||
// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||
// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
||||
// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
||||
// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
// $
|
||||
//#############################################################################
|
||||
|
||||
#ifndef _HAL_SPI_H
|
||||
#define _HAL_SPI_H
|
||||
|
||||
//
|
||||
// Defines
|
||||
//
|
||||
|
||||
/* LSPCLK = SYSCLK/2/LSPCLK */
|
||||
/* SPICLK = LSPCLK/(BRR+1) */
|
||||
/* SYSCLK=100MHz, SPICLK=100/4/5=5MHz */
|
||||
|
||||
#define HAL_SPI_LSPCLK 0 //LSPCLK=SYSCLK
|
||||
|
||||
#define HAL_SPI_CCR_RST0 0x0F
|
||||
#define HAL_SPI_CCR_RST1 0x8F
|
||||
#define HAL_SPI_CTL_MSTR 0x06
|
||||
#define HAL_SPI_FFTX 0xE040
|
||||
#define HAL_SPI_FFRX 0x204F
|
||||
|
||||
/* PGA112 */
|
||||
#define HAL_SPI_PGA_READ 0x6A
|
||||
#define HAL_SPI_PGA_WRITE 0x2A
|
||||
#define HAL_SPI_PGA_RWSHIFT 8
|
||||
#define HAL_SPI_PGA_GAINSHIFT 4
|
||||
#define HAL_SPI_PGA_CH0 0x0
|
||||
#define HAL_SPI_PGA_CH1 0x1
|
||||
|
||||
//
|
||||
// Function Prototypes
|
||||
//
|
||||
void HAL_spi_cfg();
|
||||
void HAL_spi_init();
|
||||
void HAL_spi_xmt(Uint16 a);
|
||||
void HAL_spi_fifoInit();
|
||||
void HAL_spi_writeGain(Uint16 val);
|
||||
void InitAFESpiGpio();
|
||||
void HAL_spi_cfgWdLen(Uint16 val);
|
||||
Uint16 HAL_spi_read(Uint16 a);
|
||||
|
||||
|
||||
#endif
|
||||
|
||||
//
|
||||
// End of file
|
||||
//
|
||||
+137
@@ -0,0 +1,137 @@
|
||||
//###########################################################################
|
||||
//
|
||||
// FILE: buffdac_enable_cpu01.c
|
||||
//
|
||||
// TITLE: Buffered DAC Enable Output Example for F2837xD.
|
||||
//
|
||||
//! \addtogroup cpu01_example_list
|
||||
//! <h1> Buffered DAC Enable (buffdac_enable) </h1>
|
||||
//!
|
||||
//! This example generates a voltage on the buffered DAC output,
|
||||
//! DACOUTA/ADCINA0 (HSEC Pin 9) and uses the default DAC reference setting
|
||||
//! of VDAC.
|
||||
//!
|
||||
//! When the DAC reference is set to VDAC, an external reference voltage
|
||||
//! must be applied to the VDAC pin. This can accomplished by connecting a
|
||||
//! jumper wire from 3.3V to ADCINB0 (HSEC pin 12).
|
||||
//!
|
||||
//
|
||||
//###########################################################################
|
||||
//
|
||||
// $Release Date: $
|
||||
// $Copyright:
|
||||
// Copyright (C) 2013-2024 Texas Instruments Incorporated - http://www.ti.com/
|
||||
//
|
||||
// Redistribution and use in source and binary forms, with or without
|
||||
// modification, are permitted provided that the following conditions
|
||||
// are met:
|
||||
//
|
||||
// Redistributions of source code must retain the above copyright
|
||||
// notice, this list of conditions and the following disclaimer.
|
||||
//
|
||||
// Redistributions in binary form must reproduce the above copyright
|
||||
// notice, this list of conditions and the following disclaimer in the
|
||||
// documentation and/or other materials provided with the
|
||||
// distribution.
|
||||
//
|
||||
// Neither the name of Texas Instruments Incorporated nor the names of
|
||||
// its contributors may be used to endorse or promote products derived
|
||||
// from this software without specific prior written permission.
|
||||
//
|
||||
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||
// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||
// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
||||
// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
||||
// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||
// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||
// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
||||
// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
||||
// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
// $
|
||||
//###########################################################################
|
||||
|
||||
//
|
||||
// Included Files
|
||||
//
|
||||
#include "F28x_Project.h"
|
||||
|
||||
//
|
||||
// Globals
|
||||
//
|
||||
volatile struct DAC_REGS* DAC_PTR[4] = {0x0,&DacaRegs,&DacbRegs,&DaccRegs};
|
||||
Uint16 dacval = 2048;
|
||||
|
||||
//
|
||||
// Defines
|
||||
//
|
||||
#define REFERENCE_VDAC 0
|
||||
#define REFERENCE_VREF 1
|
||||
#define DACA 1
|
||||
#define DACB 2
|
||||
#define DACC 3
|
||||
#define REFERENCE REFERENCE_VDAC
|
||||
#define DAC_NUM DACA
|
||||
|
||||
//
|
||||
// Function Prototypes
|
||||
//
|
||||
void configureDAC(Uint16 dac_num);
|
||||
|
||||
void main(void)
|
||||
{
|
||||
//
|
||||
// Initialize System Control:
|
||||
// PLL, WatchDog, enable Peripheral Clocks
|
||||
// This example function is found in the F2837xD_SysCtrl.c file.
|
||||
//
|
||||
InitSysCtrl();
|
||||
|
||||
//
|
||||
// Disable CPU interrupts
|
||||
//
|
||||
DINT;
|
||||
|
||||
//
|
||||
// Initialize the PIE control registers to their default state.
|
||||
// The default state is all PIE interrupts disabled and flags are cleared.
|
||||
// This function is found in the F2837xD_PieCtrl.c file.
|
||||
//
|
||||
InitPieCtrl();
|
||||
|
||||
//
|
||||
// Clear all interrupts and initialize PIE vector table:
|
||||
//
|
||||
IER = 0x0000;
|
||||
IFR = 0x0000;
|
||||
InitPieVectTable();
|
||||
|
||||
//
|
||||
// Configure DAC
|
||||
//
|
||||
configureDAC(DAC_NUM);
|
||||
|
||||
while(1)
|
||||
{
|
||||
DAC_PTR[DAC_NUM]->DACVALS.all = dacval;
|
||||
DELAY_US(2);
|
||||
}
|
||||
}
|
||||
|
||||
//
|
||||
// configureDAC - Configure specified DAC output
|
||||
//
|
||||
void configureDAC(Uint16 dac_num)
|
||||
{
|
||||
EALLOW;
|
||||
DAC_PTR[dac_num]->DACCTL.bit.DACREFSEL = REFERENCE;
|
||||
DAC_PTR[dac_num]->DACOUTEN.bit.DACOUTEN = 1;
|
||||
DAC_PTR[dac_num]->DACVALS.all = 0;
|
||||
DELAY_US(10); // Delay for buffered DAC to power up
|
||||
EDIS;
|
||||
}
|
||||
|
||||
//
|
||||
// End of file
|
||||
//
|
||||
@@ -0,0 +1,12 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<?ccsproject version="1.0"?>
|
||||
<projectOptions>
|
||||
<deviceVariant value="com.ti.ccstudio.deviceModel.C2000.GenericC28xxDevice"/>
|
||||
<deviceFamily value="C2000"/>
|
||||
<codegenToolVersion value="6.3.0.A13150"/>
|
||||
<isElfFormat value="false"/>
|
||||
<connection value=""/>
|
||||
<rts value="libc.a"/>
|
||||
<templateProperties value="id=com.ti.common.project.core.emptyProjectTemplate,"/>
|
||||
<isTargetManual value="false"/>
|
||||
</projectOptions>
|
||||
@@ -0,0 +1,190 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<?fileVersion 4.0.0?><cproject storage_type_id="org.eclipse.cdt.core.XmlProjectDescriptionStorage">
|
||||
<storageModule configRelations="2" moduleId="org.eclipse.cdt.core.settings">
|
||||
<cconfiguration id="com.ti.ccstudio.buildDefinitions.C2000.Debug.2121059750">
|
||||
<storageModule buildSystemId="org.eclipse.cdt.managedbuilder.core.configurationDataProvider" id="com.ti.ccstudio.buildDefinitions.C2000.Debug.2121059750" moduleId="org.eclipse.cdt.core.settings" name="CPU1_RAM">
|
||||
<macros>
|
||||
<stringMacro name="INSTALLROOT_F2837XD" type="VALUE_PATH_DIR" value="${PROJECT_ROOT}/../../../../.."/>
|
||||
</macros>
|
||||
<externalSettings/>
|
||||
<extensions>
|
||||
<extension id="com.ti.ccstudio.errorparser.CoffErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
|
||||
<extension id="com.ti.ccstudio.errorparser.LinkErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
|
||||
<extension id="com.ti.ccstudio.errorparser.AsmErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
|
||||
<extension id="org.eclipse.cdt.core.GmakeErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
|
||||
<extension id="com.ti.ccstudio.binaryparser.CoffParser" point="org.eclipse.cdt.core.BinaryParser"/>
|
||||
</extensions>
|
||||
</storageModule>
|
||||
<storageModule moduleId="cdtBuildSystem" version="4.0.0">
|
||||
<configuration artifactExtension="out" artifactName="${ProjName}" buildProperties="" cleanCommand="${CG_CLEAN_CMD}" description="RAM Build Configuration w/o Debugger Support for CPU1" id="com.ti.ccstudio.buildDefinitions.C2000.Debug.2121059750" name="CPU1_RAM" parent="com.ti.ccstudio.buildDefinitions.C2000.Debug">
|
||||
<folderInfo id="com.ti.ccstudio.buildDefinitions.C2000.Debug.2121059750." name="/" resourcePath="">
|
||||
<toolChain id="com.ti.ccstudio.buildDefinitions.C2000_15.12.exe.DebugToolchain.1626351896" name="TI Build Tools" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.exe.DebugToolchain" targetTool="com.ti.ccstudio.buildDefinitions.C2000_15.12.exe.linkerDebug.274554176">
|
||||
<option id="com.ti.ccstudio.buildDefinitions.core.OPT_TAGS.1449399112" superClass="com.ti.ccstudio.buildDefinitions.core.OPT_TAGS" valueType="stringList">
|
||||
<listOptionValue builtIn="false" value="DEVICE_CONFIGURATION_ID=com.ti.ccstudio.deviceModel.C2000.GenericC28xxDevice"/>
|
||||
<listOptionValue builtIn="false" value="DEVICE_ENDIANNESS=little"/>
|
||||
<listOptionValue builtIn="false" value="OUTPUT_FORMAT=COFF"/>
|
||||
<listOptionValue builtIn="false" value="CCS_MBS_VERSION=6.1.3"/>
|
||||
<listOptionValue builtIn="false" value="RUNTIME_SUPPORT_LIBRARY=libc.a"/>
|
||||
<listOptionValue builtIn="false" value="OUTPUT_TYPE=executable"/>
|
||||
</option>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.core.OPT_CODEGEN_VERSION.667178920" name="Compiler version" superClass="com.ti.ccstudio.buildDefinitions.core.OPT_CODEGEN_VERSION" value="15.12.1.LTS" valueType="string"/>
|
||||
<targetPlatform id="com.ti.ccstudio.buildDefinitions.C2000_15.12.exe.targetPlatformDebug.107943781" name="Platform" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.exe.targetPlatformDebug"/>
|
||||
<builder buildPath="${BuildDirectory}" id="com.ti.ccstudio.buildDefinitions.C2000_15.12.exe.builderDebug.593802178" keepEnvironmentInBuildfile="false" name="GNU Make" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.exe.builderDebug"/>
|
||||
<tool id="com.ti.ccstudio.buildDefinitions.C2000_15.12.exe.compilerDebug.1666949421" name="C2000 Compiler" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.exe.compilerDebug">
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.SILICON_VERSION.799941910" name="Processor version (--silicon_version, -v)" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.SILICON_VERSION" value="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.SILICON_VERSION.28" valueType="enumerated"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.LARGE_MEMORY_MODEL.1066725927" name="Option deprecated, set by default (--large_memory_model, -ml)" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.LARGE_MEMORY_MODEL" value="true" valueType="boolean"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.UNIFIED_MEMORY.2012790695" name="Unified memory (--unified_memory, -mt)" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.UNIFIED_MEMORY" value="true" valueType="boolean"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.CLA_SUPPORT.1832720608" name="Specify CLA support (--cla_support)" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.CLA_SUPPORT" value="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.CLA_SUPPORT.cla1" valueType="enumerated"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.FLOAT_SUPPORT.1401757362" name="Specify floating point support (--float_support)" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.FLOAT_SUPPORT" value="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.FLOAT_SUPPORT.fpu32" valueType="enumerated"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.TMU_SUPPORT.1735038279" name="Specify TMU support (--tmu_support)" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.TMU_SUPPORT" value="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.TMU_SUPPORT.tmu0" valueType="enumerated"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.VCU_SUPPORT.2029545781" name="Specify VCU support (--vcu_support)" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.VCU_SUPPORT" value="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.VCU_SUPPORT.vcu2" valueType="enumerated"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.FP_MODE.1849649186" name="Floating Point mode (--fp_mode)" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.FP_MODE" value="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.FP_MODE.relaxed" valueType="enumerated"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.INCLUDE_PATH.2055223430" name="Add dir to #include search path (--include_path, -I)" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.INCLUDE_PATH" valueType="includePath">
|
||||
<listOptionValue builtIn="false" value=""${CG_TOOL_ROOT}/include""/>
|
||||
<listOptionValue builtIn="false" value=""${INSTALLROOT_F2837XD}/headers/include""/>
|
||||
<listOptionValue builtIn="false" value=""${INSTALLROOT_F2837XD}/common/include""/>
|
||||
</option>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.DEBUGGING_MODEL.1925449758" name="Debugging model" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.DEBUGGING_MODEL" value="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.DEBUGGING_MODEL.SYMDEBUG__DWARF" valueType="enumerated"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.DEFINE.1545850766" name="Pre-define NAME (--define, -D)" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.DEFINE" valueType="definedSymbols">
|
||||
<listOptionValue builtIn="false" value="CPU1"/>
|
||||
</option>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.DIAG_WARNING.569702849" name="Treat diagnostic <id> as warning (--diag_warning, -pdsw)" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.DIAG_WARNING" valueType="stringList">
|
||||
<listOptionValue builtIn="false" value="225"/>
|
||||
</option>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.DISPLAY_ERROR_NUMBER.517679581" name="Emit diagnostic identifier numbers (--display_error_number, -pden)" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.DISPLAY_ERROR_NUMBER" value="true" valueType="boolean"/>
|
||||
<inputType id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compiler.inputType__C_SRCS.1390442881" name="C Sources" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compiler.inputType__C_SRCS"/>
|
||||
<inputType id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compiler.inputType__CPP_SRCS.1233419180" name="C++ Sources" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compiler.inputType__CPP_SRCS"/>
|
||||
<inputType id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compiler.inputType__ASM_SRCS.615473481" name="Assembly Sources" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compiler.inputType__ASM_SRCS"/>
|
||||
<inputType id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compiler.inputType__ASM2_SRCS.987545035" name="Assembly Sources" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compiler.inputType__ASM2_SRCS"/>
|
||||
</tool>
|
||||
<tool id="com.ti.ccstudio.buildDefinitions.C2000_15.12.exe.linkerDebug.274554176" name="C2000 Linker" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.exe.linkerDebug">
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.OUTPUT_FILE.7393761" name="Specify output file name (--output_file, -o)" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.OUTPUT_FILE" value=""${ProjName}.out"" valueType="string"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.MAP_FILE.1073000406" name="Link information (map) listed into <file> (--map_file, -m)" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.MAP_FILE" value=""${ProjName}.map"" valueType="string"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.STACK_SIZE.1713217674" name="Set C system stack size (--stack_size, -stack)" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.STACK_SIZE" value="0x100" valueType="string"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.LIBRARY.1784936612" name="Include library file or command file as input (--library, -l)" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.LIBRARY" valueType="libs">
|
||||
<listOptionValue builtIn="false" value=""rts2800_fpu32.lib""/>
|
||||
<listOptionValue builtIn="false" value=""2837xD_RAM_lnk_cpu1.cmd""/>
|
||||
<listOptionValue builtIn="false" value=""F2837xD_Headers_nonBIOS_cpu1.cmd""/>
|
||||
<listOptionValue builtIn="false" value=""libc.a""/>
|
||||
</option>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.SEARCH_PATH.682805442" name="Add <dir> to library search path (--search_path, -i)" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.SEARCH_PATH" valueType="libPaths">
|
||||
<listOptionValue builtIn="false" value=""${CG_TOOL_ROOT}/lib""/>
|
||||
<listOptionValue builtIn="false" value=""${CG_TOOL_ROOT}/include""/>
|
||||
<listOptionValue builtIn="false" value=""${INSTALLROOT_F2837XD}/common/cmd""/>
|
||||
<listOptionValue builtIn="false" value=""${INSTALLROOT_F2837XD}/headers/cmd""/>
|
||||
</option>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.DISPLAY_ERROR_NUMBER.52253747" name="Emit diagnostic identifier numbers (--display_error_number)" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.DISPLAY_ERROR_NUMBER" value="true" valueType="boolean"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.XML_LINK_INFO.717826328" name="Detailed link information data-base into <file> (--xml_link_info, -xml_link_info)" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.XML_LINK_INFO" value=""${ProjName}_linkInfo.xml"" valueType="string"/>
|
||||
<inputType id="com.ti.ccstudio.buildDefinitions.C2000_15.12.exeLinker.inputType__CMD_SRCS.581792170" name="Linker Command Files" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.exeLinker.inputType__CMD_SRCS"/>
|
||||
<inputType id="com.ti.ccstudio.buildDefinitions.C2000_15.12.exeLinker.inputType__CMD2_SRCS.198033244" name="Linker Command Files" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.exeLinker.inputType__CMD2_SRCS"/>
|
||||
<inputType id="com.ti.ccstudio.buildDefinitions.C2000_15.12.exeLinker.inputType__GEN_CMDS.819462273" name="Generated Linker Command Files" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.exeLinker.inputType__GEN_CMDS"/>
|
||||
</tool>
|
||||
</toolChain>
|
||||
</folderInfo>
|
||||
</configuration>
|
||||
</storageModule>
|
||||
<storageModule moduleId="org.eclipse.cdt.core.externalSettings"/>
|
||||
</cconfiguration>
|
||||
<cconfiguration id="com.ti.ccstudio.buildDefinitions.C2000.Debug.2121059750.1037066777">
|
||||
<storageModule buildSystemId="org.eclipse.cdt.managedbuilder.core.configurationDataProvider" id="com.ti.ccstudio.buildDefinitions.C2000.Debug.2121059750.1037066777" moduleId="org.eclipse.cdt.core.settings" name="CPU1_FLASH">
|
||||
<macros>
|
||||
<stringMacro name="INSTALLROOT_F2837XD" type="VALUE_PATH_DIR" value="${PROJECT_ROOT}/../../../../.."/>
|
||||
</macros>
|
||||
<externalSettings/>
|
||||
<extensions>
|
||||
<extension id="com.ti.ccstudio.errorparser.CoffErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
|
||||
<extension id="com.ti.ccstudio.errorparser.LinkErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
|
||||
<extension id="com.ti.ccstudio.errorparser.AsmErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
|
||||
<extension id="org.eclipse.cdt.core.GmakeErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
|
||||
<extension id="com.ti.ccstudio.binaryparser.CoffParser" point="org.eclipse.cdt.core.BinaryParser"/>
|
||||
</extensions>
|
||||
</storageModule>
|
||||
<storageModule moduleId="cdtBuildSystem" version="4.0.0">
|
||||
<configuration artifactExtension="out" artifactName="${ProjName}" buildProperties="" cleanCommand="${CG_CLEAN_CMD}" description="Flash Build Configuration w/o Debugger Support for CPU1" id="com.ti.ccstudio.buildDefinitions.C2000.Debug.2121059750.1037066777" name="CPU1_FLASH" parent="com.ti.ccstudio.buildDefinitions.C2000.Debug">
|
||||
<folderInfo id="com.ti.ccstudio.buildDefinitions.C2000.Debug.2121059750.1037066777." name="/" resourcePath="">
|
||||
<toolChain id="com.ti.ccstudio.buildDefinitions.C2000_15.12.exe.DebugToolchain.1177211332" name="TI Build Tools" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.exe.DebugToolchain" targetTool="com.ti.ccstudio.buildDefinitions.C2000_15.12.exe.linkerDebug.743667912">
|
||||
<option id="com.ti.ccstudio.buildDefinitions.core.OPT_TAGS.697027685" superClass="com.ti.ccstudio.buildDefinitions.core.OPT_TAGS" valueType="stringList">
|
||||
<listOptionValue builtIn="false" value="DEVICE_CONFIGURATION_ID=com.ti.ccstudio.deviceModel.C2000.GenericC28xxDevice"/>
|
||||
<listOptionValue builtIn="false" value="DEVICE_ENDIANNESS=little"/>
|
||||
<listOptionValue builtIn="false" value="OUTPUT_FORMAT=COFF"/>
|
||||
<listOptionValue builtIn="false" value="CCS_MBS_VERSION=6.1.3"/>
|
||||
<listOptionValue builtIn="false" value="RUNTIME_SUPPORT_LIBRARY=libc.a"/>
|
||||
<listOptionValue builtIn="false" value="OUTPUT_TYPE=executable"/>
|
||||
</option>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.core.OPT_CODEGEN_VERSION.415277532" superClass="com.ti.ccstudio.buildDefinitions.core.OPT_CODEGEN_VERSION" value="15.12.1.LTS" valueType="string"/>
|
||||
<targetPlatform id="com.ti.ccstudio.buildDefinitions.C2000_15.12.exe.targetPlatformDebug.1650153971" name="Platform" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.exe.targetPlatformDebug"/>
|
||||
<builder buildPath="${BuildDirectory}" id="com.ti.ccstudio.buildDefinitions.C2000_15.12.exe.builderDebug.1189546496" name="GNU Make.CPU1_FLASH" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.exe.builderDebug"/>
|
||||
<tool id="com.ti.ccstudio.buildDefinitions.C2000_15.12.exe.compilerDebug.1063563298" name="C2000 Compiler" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.exe.compilerDebug">
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.SILICON_VERSION.1750405301" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.SILICON_VERSION" value="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.SILICON_VERSION.28" valueType="enumerated"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.LARGE_MEMORY_MODEL.655590251" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.LARGE_MEMORY_MODEL" value="true" valueType="boolean"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.UNIFIED_MEMORY.786343774" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.UNIFIED_MEMORY" value="true" valueType="boolean"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.CLA_SUPPORT.190829224" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.CLA_SUPPORT" value="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.CLA_SUPPORT.cla1" valueType="enumerated"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.FLOAT_SUPPORT.1075154920" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.FLOAT_SUPPORT" value="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.FLOAT_SUPPORT.fpu32" valueType="enumerated"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.TMU_SUPPORT.944973614" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.TMU_SUPPORT" value="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.TMU_SUPPORT.tmu0" valueType="enumerated"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.VCU_SUPPORT.1927515036" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.VCU_SUPPORT" value="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.VCU_SUPPORT.vcu2" valueType="enumerated"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.FP_MODE.79859508" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.FP_MODE" value="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.FP_MODE.relaxed" valueType="enumerated"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.INCLUDE_PATH.834624486" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.INCLUDE_PATH" valueType="includePath">
|
||||
<listOptionValue builtIn="false" value=""${CG_TOOL_ROOT}/include""/>
|
||||
<listOptionValue builtIn="false" value=""${INSTALLROOT_F2837XD}/headers/include""/>
|
||||
<listOptionValue builtIn="false" value=""${INSTALLROOT_F2837XD}/common/include""/>
|
||||
</option>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.DEBUGGING_MODEL.449357132" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.DEBUGGING_MODEL" value="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.DEBUGGING_MODEL.SYMDEBUG__DWARF" valueType="enumerated"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.DEFINE.1723976808" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.DEFINE" valueType="definedSymbols">
|
||||
<listOptionValue builtIn="false" value="CPU1"/>
|
||||
<listOptionValue builtIn="false" value="_FLASH"/>
|
||||
</option>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.DIAG_WARNING.1322827490" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.DIAG_WARNING" valueType="stringList">
|
||||
<listOptionValue builtIn="false" value="225"/>
|
||||
</option>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.DISPLAY_ERROR_NUMBER.1651156234" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.DISPLAY_ERROR_NUMBER" value="true" valueType="boolean"/>
|
||||
<inputType id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compiler.inputType__C_SRCS.1064390923" name="C Sources" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compiler.inputType__C_SRCS"/>
|
||||
<inputType id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compiler.inputType__CPP_SRCS.1125581101" name="C++ Sources" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compiler.inputType__CPP_SRCS"/>
|
||||
<inputType id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compiler.inputType__ASM_SRCS.734580511" name="Assembly Sources" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compiler.inputType__ASM_SRCS"/>
|
||||
<inputType id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compiler.inputType__ASM2_SRCS.97223423" name="Assembly Sources" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compiler.inputType__ASM2_SRCS"/>
|
||||
</tool>
|
||||
<tool id="com.ti.ccstudio.buildDefinitions.C2000_15.12.exe.linkerDebug.743667912" name="C2000 Linker" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.exe.linkerDebug">
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.OUTPUT_FILE.1281277224" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.OUTPUT_FILE" value=""${ProjName}.out"" valueType="string"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.MAP_FILE.580640729" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.MAP_FILE" value=""${ProjName}.map"" valueType="string"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.STACK_SIZE.139718515" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.STACK_SIZE" value="0x100" valueType="string"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.LIBRARY.1570941005" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.LIBRARY" valueType="libs">
|
||||
<listOptionValue builtIn="false" value=""rts2800_fpu32.lib""/>
|
||||
<listOptionValue builtIn="false" value=""2837xD_FLASH_lnk_cpu1.cmd""/>
|
||||
<listOptionValue builtIn="false" value=""F2837xD_Headers_nonBIOS_cpu1.cmd""/>
|
||||
<listOptionValue builtIn="false" value=""libc.a""/>
|
||||
</option>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.SEARCH_PATH.1434459465" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.SEARCH_PATH" valueType="libPaths">
|
||||
<listOptionValue builtIn="false" value=""${CG_TOOL_ROOT}/lib""/>
|
||||
<listOptionValue builtIn="false" value=""${CG_TOOL_ROOT}/include""/>
|
||||
<listOptionValue builtIn="false" value=""${INSTALLROOT_F2837XD}/common/cmd""/>
|
||||
<listOptionValue builtIn="false" value=""${INSTALLROOT_F2837XD}/headers/cmd""/>
|
||||
</option>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.DISPLAY_ERROR_NUMBER.1548249577" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.DISPLAY_ERROR_NUMBER" value="true" valueType="boolean"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.XML_LINK_INFO.438719985" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.XML_LINK_INFO" value=""${ProjName}_linkInfo.xml"" valueType="string"/>
|
||||
<inputType id="com.ti.ccstudio.buildDefinitions.C2000_15.12.exeLinker.inputType__CMD_SRCS.319346525" name="Linker Command Files" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.exeLinker.inputType__CMD_SRCS"/>
|
||||
<inputType id="com.ti.ccstudio.buildDefinitions.C2000_15.12.exeLinker.inputType__CMD2_SRCS.1416195143" name="Linker Command Files" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.exeLinker.inputType__CMD2_SRCS"/>
|
||||
<inputType id="com.ti.ccstudio.buildDefinitions.C2000_15.12.exeLinker.inputType__GEN_CMDS.1806547260" name="Generated Linker Command Files" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.exeLinker.inputType__GEN_CMDS"/>
|
||||
</tool>
|
||||
</toolChain>
|
||||
</folderInfo>
|
||||
</configuration>
|
||||
</storageModule>
|
||||
<storageModule moduleId="org.eclipse.cdt.core.externalSettings"/>
|
||||
</cconfiguration>
|
||||
</storageModule>
|
||||
<storageModule moduleId="org.eclipse.cdt.core.LanguageSettingsProviders"/>
|
||||
<storageModule moduleId="cdtBuildSystem" version="4.0.0">
|
||||
<project id="buffdac_enable_dc_cpu01.com.ti.ccstudio.buildDefinitions.C2000.ProjectType.253935156" name="C2000" projectType="com.ti.ccstudio.buildDefinitions.C2000.ProjectType"/>
|
||||
</storageModule>
|
||||
<storageModule moduleId="scannerConfiguration"/>
|
||||
<storageModule moduleId="org.eclipse.cdt.core.language.mapping">
|
||||
<project-mappings>
|
||||
<content-type-mapping configuration="" content-type="org.eclipse.cdt.core.asmSource" language="com.ti.ccstudio.core.TIASMLanguage"/>
|
||||
<content-type-mapping configuration="" content-type="org.eclipse.cdt.core.cHeader" language="com.ti.ccstudio.core.TIGCCLanguage"/>
|
||||
<content-type-mapping configuration="" content-type="org.eclipse.cdt.core.cSource" language="com.ti.ccstudio.core.TIGCCLanguage"/>
|
||||
<content-type-mapping configuration="" content-type="org.eclipse.cdt.core.cxxHeader" language="com.ti.ccstudio.core.TIGPPLanguage"/>
|
||||
<content-type-mapping configuration="" content-type="org.eclipse.cdt.core.cxxSource" language="com.ti.ccstudio.core.TIGPPLanguage"/>
|
||||
</project-mappings>
|
||||
</storageModule>
|
||||
<storageModule moduleId="null.endianPreference"/>
|
||||
<storageModule moduleId="cpuFamily"/>
|
||||
</cproject>
|
||||
@@ -0,0 +1,85 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<projectDescription>
|
||||
<name>buffdac_enable_cpu01</name>
|
||||
<comment></comment>
|
||||
<projects>
|
||||
</projects>
|
||||
<buildSpec>
|
||||
<buildCommand>
|
||||
<name>org.eclipse.cdt.managedbuilder.core.genmakebuilder</name>
|
||||
<arguments>
|
||||
</arguments>
|
||||
</buildCommand>
|
||||
<buildCommand>
|
||||
<name>org.eclipse.cdt.managedbuilder.core.ScannerConfigBuilder</name>
|
||||
<triggers>full,incremental,</triggers>
|
||||
<arguments>
|
||||
</arguments>
|
||||
</buildCommand>
|
||||
</buildSpec>
|
||||
<natures>
|
||||
<nature>com.ti.ccstudio.core.ccsNature</nature>
|
||||
<nature>org.eclipse.cdt.core.cnature</nature>
|
||||
<nature>org.eclipse.cdt.managedbuilder.core.managedBuildNature</nature>
|
||||
<nature>org.eclipse.cdt.core.ccnature</nature>
|
||||
<nature>org.eclipse.cdt.managedbuilder.core.ScannerConfigNature</nature>
|
||||
</natures>
|
||||
<linkedResources>
|
||||
<link>
|
||||
<name>F2837xD_CodeStartBranch.asm</name>
|
||||
<type>1</type>
|
||||
<locationURI>PARENT-5-PROJECT_LOC/common/source/F2837xD_CodeStartBranch.asm</locationURI>
|
||||
</link>
|
||||
<link>
|
||||
<name>F2837xD_DefaultISR.c</name>
|
||||
<type>1</type>
|
||||
<locationURI>PARENT-5-PROJECT_LOC/common/source/F2837xD_DefaultISR.c</locationURI>
|
||||
</link>
|
||||
<link>
|
||||
<name>F2837xD_GlobalVariableDefs.c</name>
|
||||
<type>1</type>
|
||||
<locationURI>PARENT-5-PROJECT_LOC/headers/source/F2837xD_GlobalVariableDefs.c</locationURI>
|
||||
</link>
|
||||
<link>
|
||||
<name>F2837xD_Gpio.c</name>
|
||||
<type>1</type>
|
||||
<locationURI>PARENT-5-PROJECT_LOC/common/source/F2837xD_Gpio.c</locationURI>
|
||||
</link>
|
||||
<link>
|
||||
<name>F2837xD_Ipc.c</name>
|
||||
<type>1</type>
|
||||
<locationURI>PARENT-5-PROJECT_LOC/common/source/F2837xD_Ipc.c</locationURI>
|
||||
</link>
|
||||
<link>
|
||||
<name>F2837xD_PieCtrl.c</name>
|
||||
<type>1</type>
|
||||
<locationURI>PARENT-5-PROJECT_LOC/common/source/F2837xD_PieCtrl.c</locationURI>
|
||||
</link>
|
||||
<link>
|
||||
<name>F2837xD_PieVect.c</name>
|
||||
<type>1</type>
|
||||
<locationURI>PARENT-5-PROJECT_LOC/common/source/F2837xD_PieVect.c</locationURI>
|
||||
</link>
|
||||
<link>
|
||||
<name>F2837xD_SysCtrl.c</name>
|
||||
<type>1</type>
|
||||
<locationURI>PARENT-5-PROJECT_LOC/common/source/F2837xD_SysCtrl.c</locationURI>
|
||||
</link>
|
||||
<link>
|
||||
<name>F2837xD_usDelay.asm</name>
|
||||
<type>1</type>
|
||||
<locationURI>PARENT-5-PROJECT_LOC/common/source/F2837xD_usDelay.asm</locationURI>
|
||||
</link>
|
||||
<link>
|
||||
<name>buffdac_enable_cpu01.c</name>
|
||||
<type>1</type>
|
||||
<locationURI>PARENT-1-PROJECT_LOC/buffdac_enable_cpu01.c</locationURI>
|
||||
</link>
|
||||
</linkedResources>
|
||||
<variableList>
|
||||
<variable>
|
||||
<name>INSTALLROOT_F2837XD</name>
|
||||
<value>$%7BPARENT-4-PROJECT_LOC%7D</value>
|
||||
</variable>
|
||||
</variableList>
|
||||
</projectDescription>
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
//Add Watch window Variables
|
||||
expRemoveAll()
|
||||
expAdd ("dacval")
|
||||
+22
@@ -0,0 +1,22 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<configurations XML_version="1.2" id="configurations_0">
|
||||
<configuration XML_version="1.2" id="Texas Instruments XDS100v2 USB Debug Probe_0">
|
||||
<instance XML_version="1.2" desc="Texas Instruments XDS100v2 USB Debug Probe_0" href="connections/TIXDS100v2_Connection.xml" id="Texas Instruments XDS100v2 USB Debug Probe_0" xml="TIXDS100v2_Connection.xml" xmlpath="connections"/>
|
||||
<connection XML_version="1.2" id="Texas Instruments XDS100v2 USB Debug Probe_0">
|
||||
<instance XML_version="1.2" href="drivers/tixds100v2icepick_c.xml" id="drivers" xml="tixds100v2icepick_c.xml" xmlpath="drivers"/>
|
||||
<instance XML_version="1.2" href="drivers/tixds100v2c28x.xml" id="drivers" xml="tixds100v2c28x.xml" xmlpath="drivers"/>
|
||||
<instance XML_version="1.2" href="drivers/tixds100v2cla1.xml" id="drivers" xml="tixds100v2cla1.xml" xmlpath="drivers"/>
|
||||
<instance XML_version="1.2" href="drivers/tixds100v2cs_child.xml" id="drivers" xml="tixds100v2cs_child.xml" xmlpath="drivers"/>
|
||||
<platform XML_version="1.2" id="platform_0">
|
||||
<instance XML_version="1.2" desc="TMS320F28377D_0" href="devices/tms320f28377d.xml" id="TMS320F28377D_0" xml="tms320f28377d.xml" xmlpath="devices"/>
|
||||
<device HW_revision="1" XML_version="1.2" description="" id="TMS320F28377D_0" partnum="TMS320F28377D">
|
||||
<router HW_revision="1.0" XML_version="1.2" description="ICEPick_C router" id="IcePick_C_0" isa="ICEPICK_C">
|
||||
<subpath id="Subpath_1">
|
||||
<property Type="numericfield" Value="0x11" desc="Port Number_0" id="Port Number"/>
|
||||
</subpath>
|
||||
</router>
|
||||
</device>
|
||||
</platform>
|
||||
</connection>
|
||||
</configuration>
|
||||
</configurations>
|
||||
+384
@@ -0,0 +1,384 @@
|
||||
//###########################################################################
|
||||
//
|
||||
// FILE: buffdac_ramp_cpu01.c
|
||||
//
|
||||
// TITLE: Buffered DAC Ramp Wave Output Example for F2837xD.
|
||||
//
|
||||
//! \addtogroup cpu01_example_list
|
||||
//! <h1> Buffered DAC Ramp (buffdac_ramp) </h1>
|
||||
//!
|
||||
//! This example generates a ramp wave on the buffered DAC output,
|
||||
//! DACOUTA/ADCINA0 (HSEC Pin 9) and uses the default DAC reference setting
|
||||
//! of VDAC.
|
||||
//!
|
||||
//! When the DAC reference is set to VDAC, an external reference voltage
|
||||
//! must be applied to the VDAC pin. This can accomplished by connecting a
|
||||
//! jumper wire from 3.3V to ADCINB0 (HSEC pin 12).
|
||||
//!
|
||||
//! Run the included .js file to add the watch variables.
|
||||
//! This example uses the SGEN module. Documentation for the SGEN module can be
|
||||
//! found in the SGEN library directory.
|
||||
//!
|
||||
//! The generated waveform can be adjusted with the following variables while
|
||||
//! running:
|
||||
//! - \b waveformGain \b : Adjust the magnitude of the waveform.
|
||||
//! Range is from 0.0 to 1.0. The default value of 0.8003 centers the waveform
|
||||
//! within the linear range of the DAC
|
||||
//! - \b waveformOffset \b : Adjust the offset of the waveform.
|
||||
//! Range is from -1.0 to 1.0. The default value of 0 centers the waveform
|
||||
//! - \b outputFreq_hz \b : Adjust the output frequency of the waveform.
|
||||
//! Range is from -maxOutputFreq_hz to maxOutputFreq_hz
|
||||
//! - \b maxOutputFreq_hz \b : Adjust the max output frequency of the waveform.
|
||||
//! Range - See SGEN module documentation for how this affects other parameters
|
||||
//!
|
||||
//! The generated waveform can be adjusted with the following variables/macros
|
||||
//! but require recompile:
|
||||
//! - \b samplingFreq_hz \b : Adjust the rate at which the DAC is updated.
|
||||
//! Range - See SGEN module documentation for how this affects other parameters
|
||||
//! - \b REFERENCE \b : The reference for the DAC.
|
||||
//! Range - REFERENCE_VDAC, REFERENCE_VREF
|
||||
//! - \b CPUFREQ_MHZ \b : The cpu frequency. This does not set the cpu
|
||||
//! frequency.
|
||||
//! Range - See device data manual
|
||||
//! - \b DAC_NUM \b : The DAC to use.
|
||||
//! Range - DACA, DACB, DACC
|
||||
//!
|
||||
//! The following variables give additional information about the generated
|
||||
//! waveform:
|
||||
//! See SGEN module documentation for details
|
||||
//! - \b freqResolution_hz \b
|
||||
//! - \b maxOutput_lsb \b : Maximum value written to the DAC.
|
||||
//! - \b minOutput_lsb \b : Minimum value written to the DAC.
|
||||
//! - \b pk_to_pk_lsb \b : Magnitude of generated waveform.
|
||||
//! - \b cpuPeriod_us \b : Period of cpu.
|
||||
//! - \b samplingPeriod_us \b : The rate at which the DAC is updated.
|
||||
//! Note that samplingPeriod_us has to be greater than the DAC settling time.
|
||||
//! - \b interruptCycles \b : Interrupt duration in cycles.
|
||||
//! - \b interruptDuration_us \b : Interrupt duration in uS.
|
||||
//! - \b sgen \b : The SGEN module instance.
|
||||
//! - \b DataLog \b : Circular log of writes to the DAC.
|
||||
//!
|
||||
//
|
||||
//###########################################################################
|
||||
//
|
||||
//
|
||||
// $Copyright:
|
||||
// Copyright (C) 2013-2024 Texas Instruments Incorporated - http://www.ti.com/
|
||||
//
|
||||
// Redistribution and use in source and binary forms, with or without
|
||||
// modification, are permitted provided that the following conditions
|
||||
// are met:
|
||||
//
|
||||
// Redistributions of source code must retain the above copyright
|
||||
// notice, this list of conditions and the following disclaimer.
|
||||
//
|
||||
// Redistributions in binary form must reproduce the above copyright
|
||||
// notice, this list of conditions and the following disclaimer in the
|
||||
// documentation and/or other materials provided with the
|
||||
// distribution.
|
||||
//
|
||||
// Neither the name of Texas Instruments Incorporated nor the names of
|
||||
// its contributors may be used to endorse or promote products derived
|
||||
// from this software without specific prior written permission.
|
||||
//
|
||||
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||
// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||
// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
||||
// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
||||
// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||
// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||
// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
||||
// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
||||
// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
// $
|
||||
//###########################################################################
|
||||
|
||||
//
|
||||
// Included Files
|
||||
//
|
||||
#include "F28x_Project.h"
|
||||
#include "sgen.h" // Signal Generation Headerfile
|
||||
|
||||
//
|
||||
// Defines
|
||||
//
|
||||
#define DLOG_SIZE 1024 //datalog
|
||||
#define REFERENCE_VDAC 0
|
||||
#define REFERENCE_VREF 1
|
||||
#define DACA 1
|
||||
#define DACB 2
|
||||
#define DACC 3
|
||||
#define REFERENCE REFERENCE_VDAC
|
||||
#define CPUFREQ_MHZ 200
|
||||
#define DAC_NUM DACA
|
||||
|
||||
//
|
||||
// Globals
|
||||
//
|
||||
Uint16 DataLog[DLOG_SIZE];
|
||||
#pragma DATA_SECTION(DataLog, "DLOG");
|
||||
volatile struct DAC_REGS* DAC_PTR[4] = {0x0,&DacaRegs,&DacbRegs,&DaccRegs};
|
||||
Uint16 sgen_out = 0;
|
||||
Uint16 ndx = 0;
|
||||
float freqResolution_hz = 0;
|
||||
float cpuPeriod_us = 0;
|
||||
Uint32 interruptCycles = 0;
|
||||
float interruptDuration_us = 0;
|
||||
float samplingPeriod_us = 0;
|
||||
Uint16 maxOutput_lsb = 0;
|
||||
Uint16 minOutput_lsb = 0;
|
||||
Uint16 pk_to_pk_lsb = 0;
|
||||
Uint32 samplingFreq_hz = 200000;
|
||||
int32 outputFreq_hz = 1000;
|
||||
Uint32 maxOutputFreq_hz = 5000;
|
||||
float waveformGain = 0.8003; // Range 0.0 -> 1.0
|
||||
float waveformOffset = 0; // Range -1.0 -> 1.0
|
||||
|
||||
RMPGEN sgen = RMPGEN_DEFAULTS; //initialize ramp wave
|
||||
|
||||
//
|
||||
// Function Prototypes
|
||||
//
|
||||
static inline void dlog(Uint16 value);
|
||||
static inline void setFreq(void);
|
||||
static inline void setGain(void);
|
||||
static inline void setOffset(void);
|
||||
static inline Uint16 getMax(void);
|
||||
static inline Uint16 getMin(void);
|
||||
void configureDAC(Uint16 dac_num);
|
||||
void configureWaveform(void);
|
||||
interrupt void cpu_timer0_isr(void);
|
||||
|
||||
void main(void)
|
||||
{
|
||||
//
|
||||
// Initialize System Control:
|
||||
// PLL, WatchDog, enable Peripheral Clocks
|
||||
// This example function is found in the F2837xD_SysCtrl.c file.
|
||||
//
|
||||
InitSysCtrl();
|
||||
|
||||
//
|
||||
// Disable CPU interrupts
|
||||
//
|
||||
DINT;
|
||||
|
||||
//
|
||||
// Initialize the PIE control registers to their default state.
|
||||
// The default state is all PIE interrupts disabled and flags are cleared.
|
||||
// This function is found in the F2837xD_PieCtrl.c file.
|
||||
//
|
||||
InitPieCtrl();
|
||||
|
||||
//
|
||||
// Clear all interrupts and initialize PIE vector table:
|
||||
//
|
||||
IER = 0x0000;
|
||||
IFR = 0x0000;
|
||||
InitPieVectTable();
|
||||
|
||||
//
|
||||
// Map Cpu Timer0 interrupt function to the PIE vector table
|
||||
//
|
||||
EALLOW;
|
||||
PieVectTable.TIMER0_INT = &cpu_timer0_isr;
|
||||
EDIS;
|
||||
|
||||
//
|
||||
// Initialize variables
|
||||
//
|
||||
cpuPeriod_us = (1.0/CPUFREQ_MHZ);
|
||||
samplingPeriod_us = (1000000.0/samplingFreq_hz);
|
||||
|
||||
//
|
||||
// Initialize datalog
|
||||
//
|
||||
for(ndx=0; ndx<DLOG_SIZE; ndx++) DataLog[ndx] = 0;
|
||||
ndx = 0;
|
||||
|
||||
//
|
||||
// Configure DAC
|
||||
//
|
||||
configureDAC(DAC_NUM);
|
||||
|
||||
//
|
||||
// Configure Waveform
|
||||
//
|
||||
configureWaveform();
|
||||
|
||||
//
|
||||
// Initialize Cpu Timers
|
||||
//
|
||||
InitCpuTimers();
|
||||
|
||||
//
|
||||
// Configure Cpu Timer0 to interrupt at specified sampling frequency
|
||||
//
|
||||
ConfigCpuTimer(&CpuTimer0, CPUFREQ_MHZ, 1000000.0/samplingFreq_hz);
|
||||
|
||||
//
|
||||
// Start Cpu Timer0
|
||||
//
|
||||
CpuTimer0Regs.TCR.all = 0x4000;
|
||||
|
||||
//
|
||||
// Enable interrupt
|
||||
//
|
||||
IER |= M_INT1;
|
||||
PieCtrlRegs.PIEIER1.bit.INTx7 = 1;
|
||||
EINT;
|
||||
ERTM;
|
||||
|
||||
while(1)
|
||||
{
|
||||
setFreq(); // Set Output Frequency and Max Output Frequency
|
||||
setGain(); // Set Magnitude of Waveform
|
||||
setOffset(); // Set Offset of Waveform
|
||||
maxOutput_lsb = getMax();
|
||||
minOutput_lsb = getMin();
|
||||
pk_to_pk_lsb = maxOutput_lsb - minOutput_lsb;
|
||||
}
|
||||
}
|
||||
|
||||
//
|
||||
// dlog - Circular DataLog. DataLog[0] contains the next index to be
|
||||
// overwritten
|
||||
//
|
||||
static inline void dlog(Uint16 value)
|
||||
{
|
||||
DataLog[ndx] = value;
|
||||
if(++ndx==DLOG_SIZE)
|
||||
{
|
||||
ndx = 0;
|
||||
}
|
||||
DataLog[0] = ndx;
|
||||
}
|
||||
|
||||
//
|
||||
// setFreq - Set frequency resolution in HZ
|
||||
//
|
||||
static inline void setFreq(void)
|
||||
{
|
||||
// Range(Q0) = 0x0000 -> 0x7FFF, step_max(Q0) =
|
||||
//(Max_Freq_hz*0x10000)/Sampling_Freq_hz
|
||||
sgen.step_max = (maxOutputFreq_hz*0x10000)/samplingFreq_hz;
|
||||
|
||||
// Range(Q15) = 0x8000 -> 0x7FFF, freq(Q15) =
|
||||
//(Required_Freq_hz/Max_Freq_hz)*0x8000
|
||||
sgen.freq = ((float)outputFreq_hz/maxOutputFreq_hz)*0x8000;
|
||||
|
||||
freqResolution_hz = (float)maxOutputFreq_hz/sgen.step_max;
|
||||
}
|
||||
|
||||
//
|
||||
// setGain - Set the SGEN gain
|
||||
//
|
||||
static inline void setGain(void)
|
||||
{
|
||||
sgen.gain = waveformGain * 0x7FFF; // Range(Q15) = 0x0000 -> 0x7FFF
|
||||
}
|
||||
|
||||
//
|
||||
// setOffset - Set the SGEN offset value
|
||||
//
|
||||
static inline void setOffset(void)
|
||||
{
|
||||
sgen.offset = waveformOffset * 0x7FFF; // Range(Q15) = 0x8000 -> 0x7FFF
|
||||
}
|
||||
|
||||
//
|
||||
// getMax - Get the max value in the buffer
|
||||
//
|
||||
static inline Uint16 getMax(void)
|
||||
{
|
||||
Uint16 index = 0;
|
||||
Uint16 tempMax = 0;
|
||||
for(index=1;index<DLOG_SIZE;index++)
|
||||
{
|
||||
if(tempMax<DataLog[index])
|
||||
{
|
||||
tempMax = DataLog[index];
|
||||
}
|
||||
}
|
||||
return tempMax;
|
||||
}
|
||||
|
||||
//
|
||||
// getMin - Get the min value in the buffer
|
||||
//
|
||||
static inline Uint16 getMin(void)
|
||||
{
|
||||
Uint16 index = 0;
|
||||
Uint16 tempMin = 0xFFFF;
|
||||
for(index=1;index<DLOG_SIZE;index++)
|
||||
{
|
||||
if(tempMin>DataLog[index])
|
||||
{
|
||||
tempMin = DataLog[index];
|
||||
}
|
||||
}
|
||||
return tempMin;
|
||||
}
|
||||
|
||||
//
|
||||
// configureDAC - Configure and enable the DAC output
|
||||
//
|
||||
void configureDAC(Uint16 dac_num)
|
||||
{
|
||||
EALLOW;
|
||||
DAC_PTR[dac_num]->DACCTL.bit.DACREFSEL = REFERENCE;
|
||||
DAC_PTR[dac_num]->DACOUTEN.bit.DACOUTEN = 1;
|
||||
DAC_PTR[dac_num]->DACVALS.all = 0;
|
||||
DELAY_US(10); // Delay for buffered DAC to power up
|
||||
EDIS;
|
||||
}
|
||||
|
||||
//
|
||||
// configureWaveform - Set the waveform frequency, gain, and offset
|
||||
//
|
||||
void configureWaveform(void)
|
||||
{
|
||||
sgen.angle = 0; // Range(16) = 0x0000 -> 0xFFFF
|
||||
setFreq();
|
||||
setGain();
|
||||
setOffset();
|
||||
}
|
||||
|
||||
//
|
||||
// cpu_timer0_isr - Timer0 ISR to write value to DAC, log current value,
|
||||
// compute next ramp value, and restart timer
|
||||
//
|
||||
interrupt void cpu_timer0_isr(void)
|
||||
{
|
||||
CpuTimer1Regs.TCR.all = 0x0000; // Start Cpu Timer1 to indicate
|
||||
// begin of interrupt
|
||||
DAC_PTR[DAC_NUM]->DACVALS.all = sgen_out; // Write current ramp value to
|
||||
// buffered DAC
|
||||
dlog(sgen_out); // Log current ramp value
|
||||
|
||||
sgen.calc(&sgen); // Compute next ramp value
|
||||
sgen_out = (sgen.out+32768)>>4; // Scale next ramp value
|
||||
|
||||
// Acknowledge this interrupt to receive more interrupts from group 1
|
||||
PieCtrlRegs.PIEACK.all = PIEACK_GROUP1;
|
||||
|
||||
CpuTimer1Regs.TCR.all = 0x0010; // Stop Cpu Timer1 to indicate end of
|
||||
// interrupt
|
||||
|
||||
//
|
||||
// Calculate interrupt duration in cycles
|
||||
//
|
||||
interruptCycles = 0xFFFFFFFFUL - CpuTimer1Regs.TIM.all;
|
||||
|
||||
//
|
||||
// Calculate interrupt duration in micro seconds
|
||||
//
|
||||
interruptDuration_us = cpuPeriod_us * interruptCycles;
|
||||
CpuTimer1Regs.TCR.all = 0x0030; // Reload Cpu Timer1
|
||||
}
|
||||
|
||||
//
|
||||
// End of file
|
||||
//
|
||||
@@ -0,0 +1,12 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<?ccsproject version="1.0"?>
|
||||
<projectOptions>
|
||||
<deviceVariant value="com.ti.ccstudio.deviceModel.C2000.GenericC28xxDevice"/>
|
||||
<deviceFamily value="C2000"/>
|
||||
<codegenToolVersion value="6.3.0.A13150"/>
|
||||
<isElfFormat value="false"/>
|
||||
<connection value=""/>
|
||||
<rts value="libc.a"/>
|
||||
<templateProperties value="id=com.ti.common.project.core.emptyProjectTemplate,"/>
|
||||
<isTargetManual value="false"/>
|
||||
</projectOptions>
|
||||
@@ -0,0 +1,196 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<?fileVersion 4.0.0?><cproject storage_type_id="org.eclipse.cdt.core.XmlProjectDescriptionStorage">
|
||||
<storageModule configRelations="2" moduleId="org.eclipse.cdt.core.settings">
|
||||
<cconfiguration id="com.ti.ccstudio.buildDefinitions.C2000.Debug.2121059750">
|
||||
<storageModule buildSystemId="org.eclipse.cdt.managedbuilder.core.configurationDataProvider" id="com.ti.ccstudio.buildDefinitions.C2000.Debug.2121059750" moduleId="org.eclipse.cdt.core.settings" name="CPU1_RAM">
|
||||
<macros>
|
||||
<stringMacro name="INSTALLROOT_F2837XD" type="VALUE_PATH_DIR" value="${PROJECT_ROOT}/../../../../.."/>
|
||||
</macros>
|
||||
<externalSettings/>
|
||||
<extensions>
|
||||
<extension id="com.ti.ccstudio.errorparser.CoffErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
|
||||
<extension id="com.ti.ccstudio.errorparser.LinkErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
|
||||
<extension id="com.ti.ccstudio.errorparser.AsmErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
|
||||
<extension id="org.eclipse.cdt.core.GmakeErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
|
||||
<extension id="com.ti.ccstudio.binaryparser.CoffParser" point="org.eclipse.cdt.core.BinaryParser"/>
|
||||
</extensions>
|
||||
</storageModule>
|
||||
<storageModule moduleId="cdtBuildSystem" version="4.0.0">
|
||||
<configuration artifactExtension="out" artifactName="${ProjName}" buildProperties="" cleanCommand="${CG_CLEAN_CMD}" description="RAM Build Configuration w/o Debugger Support for CPU1" id="com.ti.ccstudio.buildDefinitions.C2000.Debug.2121059750" name="CPU1_RAM" parent="com.ti.ccstudio.buildDefinitions.C2000.Debug">
|
||||
<folderInfo id="com.ti.ccstudio.buildDefinitions.C2000.Debug.2121059750." name="/" resourcePath="">
|
||||
<toolChain id="com.ti.ccstudio.buildDefinitions.C2000_15.12.exe.DebugToolchain.740280149" name="TI Build Tools" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.exe.DebugToolchain" targetTool="com.ti.ccstudio.buildDefinitions.C2000_15.12.exe.linkerDebug.978831873">
|
||||
<option id="com.ti.ccstudio.buildDefinitions.core.OPT_TAGS.484168151" superClass="com.ti.ccstudio.buildDefinitions.core.OPT_TAGS" valueType="stringList">
|
||||
<listOptionValue builtIn="false" value="DEVICE_CONFIGURATION_ID=com.ti.ccstudio.deviceModel.C2000.GenericC28xxDevice"/>
|
||||
<listOptionValue builtIn="false" value="DEVICE_ENDIANNESS=little"/>
|
||||
<listOptionValue builtIn="false" value="OUTPUT_FORMAT=COFF"/>
|
||||
<listOptionValue builtIn="false" value="CCS_MBS_VERSION=6.1.3"/>
|
||||
<listOptionValue builtIn="false" value="RUNTIME_SUPPORT_LIBRARY=libc.a"/>
|
||||
<listOptionValue builtIn="false" value="OUTPUT_TYPE=executable"/>
|
||||
</option>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.core.OPT_CODEGEN_VERSION.438687948" name="Compiler version" superClass="com.ti.ccstudio.buildDefinitions.core.OPT_CODEGEN_VERSION" value="15.12.1.LTS" valueType="string"/>
|
||||
<targetPlatform id="com.ti.ccstudio.buildDefinitions.C2000_15.12.exe.targetPlatformDebug.11266496" name="Platform" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.exe.targetPlatformDebug"/>
|
||||
<builder buildPath="${BuildDirectory}" id="com.ti.ccstudio.buildDefinitions.C2000_15.12.exe.builderDebug.398083099" keepEnvironmentInBuildfile="false" name="GNU Make" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.exe.builderDebug"/>
|
||||
<tool id="com.ti.ccstudio.buildDefinitions.C2000_15.12.exe.compilerDebug.275755927" name="C2000 Compiler" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.exe.compilerDebug">
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.SILICON_VERSION.971982585" name="Processor version (--silicon_version, -v)" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.SILICON_VERSION" value="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.SILICON_VERSION.28" valueType="enumerated"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.LARGE_MEMORY_MODEL.1457716541" name="Option deprecated, set by default (--large_memory_model, -ml)" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.LARGE_MEMORY_MODEL" value="true" valueType="boolean"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.UNIFIED_MEMORY.1683674004" name="Unified memory (--unified_memory, -mt)" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.UNIFIED_MEMORY" value="true" valueType="boolean"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.CLA_SUPPORT.1544498642" name="Specify CLA support (--cla_support)" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.CLA_SUPPORT" value="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.CLA_SUPPORT.cla1" valueType="enumerated"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.FLOAT_SUPPORT.2125016127" name="Specify floating point support (--float_support)" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.FLOAT_SUPPORT" value="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.FLOAT_SUPPORT.fpu32" valueType="enumerated"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.TMU_SUPPORT.641730904" name="Specify TMU support (--tmu_support)" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.TMU_SUPPORT" value="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.TMU_SUPPORT.tmu0" valueType="enumerated"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.VCU_SUPPORT.132187293" name="Specify VCU support (--vcu_support)" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.VCU_SUPPORT" value="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.VCU_SUPPORT.vcu2" valueType="enumerated"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.FP_MODE.799225031" name="Floating Point mode (--fp_mode)" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.FP_MODE" value="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.FP_MODE.relaxed" valueType="enumerated"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.INCLUDE_PATH.2182699" name="Add dir to #include search path (--include_path, -I)" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.INCLUDE_PATH" valueType="includePath">
|
||||
<listOptionValue builtIn="false" value=""${CG_TOOL_ROOT}/include""/>
|
||||
<listOptionValue builtIn="false" value=""${PROJECT_ROOT}/../../../../../../../archive/libraries/dsp/SGEN/c28/include""/>
|
||||
<listOptionValue builtIn="false" value=""${INSTALLROOT_F2837XD}/headers/include""/>
|
||||
<listOptionValue builtIn="false" value=""${INSTALLROOT_F2837XD}/common/include""/>
|
||||
</option>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.DEBUGGING_MODEL.1623273742" name="Debugging model" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.DEBUGGING_MODEL" value="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.DEBUGGING_MODEL.SYMDEBUG__DWARF" valueType="enumerated"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.DEFINE.1429232578" name="Pre-define NAME (--define, -D)" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.DEFINE" valueType="definedSymbols">
|
||||
<listOptionValue builtIn="false" value="CPU1"/>
|
||||
</option>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.DIAG_WARNING.1066363585" name="Treat diagnostic <id> as warning (--diag_warning, -pdsw)" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.DIAG_WARNING" valueType="stringList">
|
||||
<listOptionValue builtIn="false" value="225"/>
|
||||
</option>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.DISPLAY_ERROR_NUMBER.251968864" name="Emit diagnostic identifier numbers (--display_error_number, -pden)" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.DISPLAY_ERROR_NUMBER" value="true" valueType="boolean"/>
|
||||
<inputType id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compiler.inputType__C_SRCS.674270040" name="C Sources" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compiler.inputType__C_SRCS"/>
|
||||
<inputType id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compiler.inputType__CPP_SRCS.1869656227" name="C++ Sources" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compiler.inputType__CPP_SRCS"/>
|
||||
<inputType id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compiler.inputType__ASM_SRCS.2010102563" name="Assembly Sources" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compiler.inputType__ASM_SRCS"/>
|
||||
<inputType id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compiler.inputType__ASM2_SRCS.963438409" name="Assembly Sources" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compiler.inputType__ASM2_SRCS"/>
|
||||
</tool>
|
||||
<tool id="com.ti.ccstudio.buildDefinitions.C2000_15.12.exe.linkerDebug.978831873" name="C2000 Linker" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.exe.linkerDebug">
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.OUTPUT_FILE.1150284516" name="Specify output file name (--output_file, -o)" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.OUTPUT_FILE" value=""${ProjName}.out"" valueType="string"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.MAP_FILE.405512120" name="Link information (map) listed into <file> (--map_file, -m)" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.MAP_FILE" value=""${ProjName}.map"" valueType="string"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.STACK_SIZE.959849838" name="Set C system stack size (--stack_size, -stack)" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.STACK_SIZE" value="0x100" valueType="string"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.LIBRARY.631317750" name="Include library file or command file as input (--library, -l)" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.LIBRARY" valueType="libs">
|
||||
<listOptionValue builtIn="false" value=""rts2800_fpu32.lib""/>
|
||||
<listOptionValue builtIn="false" value=""C28x_SGEN_Lib_fpu32.lib""/>
|
||||
<listOptionValue builtIn="false" value=""2837xD_RAM_SGEN_lnk_cpu1.cmd""/>
|
||||
<listOptionValue builtIn="false" value=""F2837xD_Headers_nonBIOS_cpu1.cmd""/>
|
||||
<listOptionValue builtIn="false" value=""libc.a""/>
|
||||
</option>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.SEARCH_PATH.306154162" name="Add <dir> to library search path (--search_path, -i)" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.SEARCH_PATH" valueType="libPaths">
|
||||
<listOptionValue builtIn="false" value=""${CG_TOOL_ROOT}/lib""/>
|
||||
<listOptionValue builtIn="false" value=""${PROJECT_ROOT}/../../../../../../../archive/libraries/dsp/SGEN/c28/lib""/>
|
||||
<listOptionValue builtIn="false" value=""${CG_TOOL_ROOT}/include""/>
|
||||
<listOptionValue builtIn="false" value=""${INSTALLROOT_F2837XD}/common/cmd""/>
|
||||
<listOptionValue builtIn="false" value=""${INSTALLROOT_F2837XD}/headers/cmd""/>
|
||||
</option>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.DISPLAY_ERROR_NUMBER.266881663" name="Emit diagnostic identifier numbers (--display_error_number)" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.DISPLAY_ERROR_NUMBER" value="true" valueType="boolean"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.XML_LINK_INFO.1918009166" name="Detailed link information data-base into <file> (--xml_link_info, -xml_link_info)" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.XML_LINK_INFO" value=""${ProjName}_linkInfo.xml"" valueType="string"/>
|
||||
<inputType id="com.ti.ccstudio.buildDefinitions.C2000_15.12.exeLinker.inputType__CMD_SRCS.1551368720" name="Linker Command Files" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.exeLinker.inputType__CMD_SRCS"/>
|
||||
<inputType id="com.ti.ccstudio.buildDefinitions.C2000_15.12.exeLinker.inputType__CMD2_SRCS.561072212" name="Linker Command Files" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.exeLinker.inputType__CMD2_SRCS"/>
|
||||
<inputType id="com.ti.ccstudio.buildDefinitions.C2000_15.12.exeLinker.inputType__GEN_CMDS.135301039" name="Generated Linker Command Files" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.exeLinker.inputType__GEN_CMDS"/>
|
||||
</tool>
|
||||
</toolChain>
|
||||
</folderInfo>
|
||||
</configuration>
|
||||
</storageModule>
|
||||
<storageModule moduleId="org.eclipse.cdt.core.externalSettings"/>
|
||||
</cconfiguration>
|
||||
<cconfiguration id="com.ti.ccstudio.buildDefinitions.C2000.Debug.2121059750.1037066777">
|
||||
<storageModule buildSystemId="org.eclipse.cdt.managedbuilder.core.configurationDataProvider" id="com.ti.ccstudio.buildDefinitions.C2000.Debug.2121059750.1037066777" moduleId="org.eclipse.cdt.core.settings" name="CPU1_FLASH">
|
||||
<macros>
|
||||
<stringMacro name="INSTALLROOT_F2837XD" type="VALUE_PATH_DIR" value="${PROJECT_ROOT}/../../../../.."/>
|
||||
</macros>
|
||||
<externalSettings/>
|
||||
<extensions>
|
||||
<extension id="com.ti.ccstudio.errorparser.CoffErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
|
||||
<extension id="com.ti.ccstudio.errorparser.LinkErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
|
||||
<extension id="com.ti.ccstudio.errorparser.AsmErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
|
||||
<extension id="org.eclipse.cdt.core.GmakeErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
|
||||
<extension id="com.ti.ccstudio.binaryparser.CoffParser" point="org.eclipse.cdt.core.BinaryParser"/>
|
||||
</extensions>
|
||||
</storageModule>
|
||||
<storageModule moduleId="cdtBuildSystem" version="4.0.0">
|
||||
<configuration artifactExtension="out" artifactName="${ProjName}" buildProperties="" cleanCommand="${CG_CLEAN_CMD}" description="Flash Build Configuration w/o Debugger Support for CPU1" id="com.ti.ccstudio.buildDefinitions.C2000.Debug.2121059750.1037066777" name="CPU1_FLASH" parent="com.ti.ccstudio.buildDefinitions.C2000.Debug">
|
||||
<folderInfo id="com.ti.ccstudio.buildDefinitions.C2000.Debug.2121059750.1037066777." name="/" resourcePath="">
|
||||
<toolChain id="com.ti.ccstudio.buildDefinitions.C2000_15.12.exe.DebugToolchain.1089452169" name="TI Build Tools" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.exe.DebugToolchain" targetTool="com.ti.ccstudio.buildDefinitions.C2000_15.12.exe.linkerDebug.1113259332">
|
||||
<option id="com.ti.ccstudio.buildDefinitions.core.OPT_TAGS.393498599" superClass="com.ti.ccstudio.buildDefinitions.core.OPT_TAGS" valueType="stringList">
|
||||
<listOptionValue builtIn="false" value="DEVICE_CONFIGURATION_ID=com.ti.ccstudio.deviceModel.C2000.GenericC28xxDevice"/>
|
||||
<listOptionValue builtIn="false" value="DEVICE_ENDIANNESS=little"/>
|
||||
<listOptionValue builtIn="false" value="OUTPUT_FORMAT=COFF"/>
|
||||
<listOptionValue builtIn="false" value="CCS_MBS_VERSION=6.1.3"/>
|
||||
<listOptionValue builtIn="false" value="RUNTIME_SUPPORT_LIBRARY=libc.a"/>
|
||||
<listOptionValue builtIn="false" value="OUTPUT_TYPE=executable"/>
|
||||
</option>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.core.OPT_CODEGEN_VERSION.1418037056" superClass="com.ti.ccstudio.buildDefinitions.core.OPT_CODEGEN_VERSION" value="15.12.1.LTS" valueType="string"/>
|
||||
<targetPlatform id="com.ti.ccstudio.buildDefinitions.C2000_15.12.exe.targetPlatformDebug.1216124367" name="Platform" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.exe.targetPlatformDebug"/>
|
||||
<builder buildPath="${BuildDirectory}" id="com.ti.ccstudio.buildDefinitions.C2000_15.12.exe.builderDebug.643780133" name="GNU Make.CPU1_FLASH" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.exe.builderDebug"/>
|
||||
<tool id="com.ti.ccstudio.buildDefinitions.C2000_15.12.exe.compilerDebug.1452174158" name="C2000 Compiler" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.exe.compilerDebug">
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.SILICON_VERSION.871596328" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.SILICON_VERSION" value="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.SILICON_VERSION.28" valueType="enumerated"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.LARGE_MEMORY_MODEL.2039924890" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.LARGE_MEMORY_MODEL" value="true" valueType="boolean"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.UNIFIED_MEMORY.800953273" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.UNIFIED_MEMORY" value="true" valueType="boolean"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.CLA_SUPPORT.1096644087" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.CLA_SUPPORT" value="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.CLA_SUPPORT.cla1" valueType="enumerated"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.FLOAT_SUPPORT.56880001" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.FLOAT_SUPPORT" value="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.FLOAT_SUPPORT.fpu32" valueType="enumerated"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.TMU_SUPPORT.1660932312" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.TMU_SUPPORT" value="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.TMU_SUPPORT.tmu0" valueType="enumerated"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.VCU_SUPPORT.457273333" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.VCU_SUPPORT" value="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.VCU_SUPPORT.vcu2" valueType="enumerated"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.FP_MODE.1066709975" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.FP_MODE" value="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.FP_MODE.relaxed" valueType="enumerated"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.INCLUDE_PATH.733957639" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.INCLUDE_PATH" valueType="includePath">
|
||||
<listOptionValue builtIn="false" value=""${CG_TOOL_ROOT}/include""/>
|
||||
<listOptionValue builtIn="false" value=""${PROJECT_ROOT}/../../../../../../../archive/libraries/dsp/SGEN/c28/include""/>
|
||||
<listOptionValue builtIn="false" value=""${INSTALLROOT_F2837XD}/headers/include""/>
|
||||
<listOptionValue builtIn="false" value=""${INSTALLROOT_F2837XD}/common/include""/>
|
||||
</option>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.DEBUGGING_MODEL.2029393928" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.DEBUGGING_MODEL" value="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.DEBUGGING_MODEL.SYMDEBUG__DWARF" valueType="enumerated"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.DEFINE.1005718301" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.DEFINE" valueType="definedSymbols">
|
||||
<listOptionValue builtIn="false" value="CPU1"/>
|
||||
<listOptionValue builtIn="false" value="_FLASH"/>
|
||||
</option>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.DIAG_WARNING.1258898350" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.DIAG_WARNING" valueType="stringList">
|
||||
<listOptionValue builtIn="false" value="225"/>
|
||||
</option>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.DISPLAY_ERROR_NUMBER.808866311" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compilerID.DISPLAY_ERROR_NUMBER" value="true" valueType="boolean"/>
|
||||
<inputType id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compiler.inputType__C_SRCS.1115876755" name="C Sources" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compiler.inputType__C_SRCS"/>
|
||||
<inputType id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compiler.inputType__CPP_SRCS.681335706" name="C++ Sources" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compiler.inputType__CPP_SRCS"/>
|
||||
<inputType id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compiler.inputType__ASM_SRCS.2117206010" name="Assembly Sources" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compiler.inputType__ASM_SRCS"/>
|
||||
<inputType id="com.ti.ccstudio.buildDefinitions.C2000_15.12.compiler.inputType__ASM2_SRCS.1815252445" name="Assembly Sources" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.compiler.inputType__ASM2_SRCS"/>
|
||||
</tool>
|
||||
<tool id="com.ti.ccstudio.buildDefinitions.C2000_15.12.exe.linkerDebug.1113259332" name="C2000 Linker" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.exe.linkerDebug">
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.OUTPUT_FILE.1172222962" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.OUTPUT_FILE" value=""${ProjName}.out"" valueType="string"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.MAP_FILE.789946981" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.MAP_FILE" value=""${ProjName}.map"" valueType="string"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.STACK_SIZE.2046121503" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.STACK_SIZE" value="0x100" valueType="string"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.LIBRARY.1809694410" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.LIBRARY" valueType="libs">
|
||||
<listOptionValue builtIn="false" value=""rts2800_fpu32.lib""/>
|
||||
<listOptionValue builtIn="false" value=""C28x_SGEN_Lib_fpu32.lib""/>
|
||||
<listOptionValue builtIn="false" value=""2837xD_FLASH_SGEN_lnk_cpu1.cmd""/>
|
||||
<listOptionValue builtIn="false" value=""F2837xD_Headers_nonBIOS_cpu1.cmd""/>
|
||||
<listOptionValue builtIn="false" value=""libc.a""/>
|
||||
</option>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.SEARCH_PATH.402887800" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.SEARCH_PATH" valueType="libPaths">
|
||||
<listOptionValue builtIn="false" value=""${CG_TOOL_ROOT}/lib""/>
|
||||
<listOptionValue builtIn="false" value=""${PROJECT_ROOT}/../../../../../../../archive/libraries/dsp/SGEN/c28/lib""/>
|
||||
<listOptionValue builtIn="false" value=""${CG_TOOL_ROOT}/include""/>
|
||||
<listOptionValue builtIn="false" value=""${INSTALLROOT_F2837XD}/common/cmd""/>
|
||||
<listOptionValue builtIn="false" value=""${INSTALLROOT_F2837XD}/headers/cmd""/>
|
||||
</option>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.DISPLAY_ERROR_NUMBER.817912802" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.DISPLAY_ERROR_NUMBER" value="true" valueType="boolean"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.XML_LINK_INFO.1759949017" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.linkerID.XML_LINK_INFO" value=""${ProjName}_linkInfo.xml"" valueType="string"/>
|
||||
<inputType id="com.ti.ccstudio.buildDefinitions.C2000_15.12.exeLinker.inputType__CMD_SRCS.465622970" name="Linker Command Files" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.exeLinker.inputType__CMD_SRCS"/>
|
||||
<inputType id="com.ti.ccstudio.buildDefinitions.C2000_15.12.exeLinker.inputType__CMD2_SRCS.1703277587" name="Linker Command Files" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.exeLinker.inputType__CMD2_SRCS"/>
|
||||
<inputType id="com.ti.ccstudio.buildDefinitions.C2000_15.12.exeLinker.inputType__GEN_CMDS.580967490" name="Generated Linker Command Files" superClass="com.ti.ccstudio.buildDefinitions.C2000_15.12.exeLinker.inputType__GEN_CMDS"/>
|
||||
</tool>
|
||||
</toolChain>
|
||||
</folderInfo>
|
||||
</configuration>
|
||||
</storageModule>
|
||||
<storageModule moduleId="org.eclipse.cdt.core.externalSettings"/>
|
||||
</cconfiguration>
|
||||
</storageModule>
|
||||
<storageModule moduleId="org.eclipse.cdt.core.LanguageSettingsProviders"/>
|
||||
<storageModule moduleId="cdtBuildSystem" version="4.0.0">
|
||||
<project id="buffdac_enable_dc_cpu01.com.ti.ccstudio.buildDefinitions.C2000.ProjectType.253935156" name="C2000" projectType="com.ti.ccstudio.buildDefinitions.C2000.ProjectType"/>
|
||||
</storageModule>
|
||||
<storageModule moduleId="scannerConfiguration"/>
|
||||
<storageModule moduleId="org.eclipse.cdt.core.language.mapping">
|
||||
<project-mappings>
|
||||
<content-type-mapping configuration="" content-type="org.eclipse.cdt.core.asmSource" language="com.ti.ccstudio.core.TIASMLanguage"/>
|
||||
<content-type-mapping configuration="" content-type="org.eclipse.cdt.core.cHeader" language="com.ti.ccstudio.core.TIGCCLanguage"/>
|
||||
<content-type-mapping configuration="" content-type="org.eclipse.cdt.core.cSource" language="com.ti.ccstudio.core.TIGCCLanguage"/>
|
||||
<content-type-mapping configuration="" content-type="org.eclipse.cdt.core.cxxHeader" language="com.ti.ccstudio.core.TIGPPLanguage"/>
|
||||
<content-type-mapping configuration="" content-type="org.eclipse.cdt.core.cxxSource" language="com.ti.ccstudio.core.TIGPPLanguage"/>
|
||||
</project-mappings>
|
||||
</storageModule>
|
||||
<storageModule moduleId="null.endianPreference"/>
|
||||
<storageModule moduleId="cpuFamily"/>
|
||||
</cproject>
|
||||
@@ -0,0 +1,94 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<projectDescription>
|
||||
<name>buffdac_ramp_cpu01</name>
|
||||
<comment></comment>
|
||||
<projects>
|
||||
</projects>
|
||||
<buildSpec>
|
||||
<buildCommand>
|
||||
<name>org.eclipse.cdt.managedbuilder.core.genmakebuilder</name>
|
||||
<arguments>
|
||||
</arguments>
|
||||
</buildCommand>
|
||||
<buildCommand>
|
||||
<name>org.eclipse.cdt.managedbuilder.core.ScannerConfigBuilder</name>
|
||||
<triggers>full,incremental,</triggers>
|
||||
<arguments>
|
||||
</arguments>
|
||||
</buildCommand>
|
||||
</buildSpec>
|
||||
<natures>
|
||||
<nature>com.ti.ccstudio.core.ccsNature</nature>
|
||||
<nature>org.eclipse.cdt.core.cnature</nature>
|
||||
<nature>org.eclipse.cdt.managedbuilder.core.managedBuildNature</nature>
|
||||
<nature>org.eclipse.cdt.core.ccnature</nature>
|
||||
<nature>org.eclipse.cdt.managedbuilder.core.ScannerConfigNature</nature>
|
||||
</natures>
|
||||
<linkedResources>
|
||||
<link>
|
||||
<name>F2837xD_CodeStartBranch.asm</name>
|
||||
<type>1</type>
|
||||
<locationURI>PARENT-5-PROJECT_LOC/common/source/F2837xD_CodeStartBranch.asm</locationURI>
|
||||
</link>
|
||||
<link>
|
||||
<name>F2837xD_CpuTimers.c</name>
|
||||
<type>1</type>
|
||||
<locationURI>PARENT-5-PROJECT_LOC/common/source/F2837xD_CpuTimers.c</locationURI>
|
||||
</link>
|
||||
<link>
|
||||
<name>F2837xD_DefaultISR.c</name>
|
||||
<type>1</type>
|
||||
<locationURI>PARENT-5-PROJECT_LOC/common/source/F2837xD_DefaultISR.c</locationURI>
|
||||
</link>
|
||||
<link>
|
||||
<name>F2837xD_GlobalVariableDefs.c</name>
|
||||
<type>1</type>
|
||||
<locationURI>PARENT-5-PROJECT_LOC/headers/source/F2837xD_GlobalVariableDefs.c</locationURI>
|
||||
</link>
|
||||
<link>
|
||||
<name>F2837xD_Gpio.c</name>
|
||||
<type>1</type>
|
||||
<locationURI>PARENT-5-PROJECT_LOC/common/source/F2837xD_Gpio.c</locationURI>
|
||||
</link>
|
||||
<link>
|
||||
<name>F2837xD_PieCtrl.c</name>
|
||||
<type>1</type>
|
||||
<locationURI>PARENT-5-PROJECT_LOC/common/source/F2837xD_PieCtrl.c</locationURI>
|
||||
</link>
|
||||
<link>
|
||||
<name>F2837xD_PieVect.c</name>
|
||||
<type>1</type>
|
||||
<locationURI>PARENT-5-PROJECT_LOC/common/source/F2837xD_PieVect.c</locationURI>
|
||||
</link>
|
||||
<link>
|
||||
<name>F2837xD_SysCtrl.c</name>
|
||||
<type>1</type>
|
||||
<locationURI>PARENT-5-PROJECT_LOC/common/source/F2837xD_SysCtrl.c</locationURI>
|
||||
</link>
|
||||
<link>
|
||||
<name>F2837xD_usDelay.asm</name>
|
||||
<type>1</type>
|
||||
<locationURI>PARENT-5-PROJECT_LOC/common/source/F2837xD_usDelay.asm</locationURI>
|
||||
</link>
|
||||
<link>
|
||||
<name>buffdac_ramp_cpu01.c</name>
|
||||
<type>1</type>
|
||||
<locationURI>PARENT-1-PROJECT_LOC/buffdac_ramp_cpu01.c</locationURI>
|
||||
</link>
|
||||
<link>
|
||||
<name>rampgc.asm</name>
|
||||
<type>1</type>
|
||||
<locationURI>PARENT-7-PROJECT_LOC/archive/libraries/dsp/SGEN/c28/source/rampgc.asm</locationURI>
|
||||
</link>
|
||||
</linkedResources>
|
||||
<variableList>
|
||||
<variable>
|
||||
<name>INSTALLROOT_F2837XD</name>
|
||||
<value>$%7BPARENT-4-PROJECT_LOC%7D</value>
|
||||
</variable>
|
||||
<variable>
|
||||
<name>SGEN_LIB_LOC</name>
|
||||
<value>$%7BPARENT-7-PROJECT_LOC%7D/libs/dsp/SGEN</value>
|
||||
</variable>
|
||||
</variableList>
|
||||
</projectDescription>
|
||||
+18
@@ -0,0 +1,18 @@
|
||||
//Add Watch window Variables
|
||||
expRemoveAll()
|
||||
expAdd ("waveformGain")
|
||||
expAdd ("waveformOffset")
|
||||
expAdd ("outputFreq_hz")
|
||||
expAdd ("maxOutputFreq_hz")
|
||||
expAdd ("samplingFreq_hz")
|
||||
expAdd ("freqResolution_hz")
|
||||
expAdd ("maxOutput_lsb")
|
||||
expAdd ("minOutput_lsb")
|
||||
expAdd ("pk_to_pk_lsb")
|
||||
expAdd ("cpuPeriod_us")
|
||||
expAdd ("samplingPeriod_us")
|
||||
expAdd ("interruptCycles")
|
||||
expAdd ("interruptDuration_us")
|
||||
expAdd ("sgen")
|
||||
expAdd ("DataLog")
|
||||
|
||||
Loaded 100 of 14950 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user