feat: add macros for different PCBs (Basil, Battery Smart Basil, Battery Swapping Station) and update CPU clock frequencies
- Added macros for different PCBs: Basil, Battery Smart Basil, and Battery Swapping Station. - Increased CPU clock frequency from 48 MHz to 72 MHz. - Increased UART clock frequency from 24 MHz to 36 MHz.stable
parent
1ed44dbf4f
commit
49357f5d62
82
.cproject
82
.cproject
|
|
@ -362,7 +362,6 @@
|
||||||
<externalSettings/>
|
<externalSettings/>
|
||||||
<extensions>
|
<extensions>
|
||||||
<extension id="com.ti.ccstudio.binaryparser.CoffParser" point="org.eclipse.cdt.core.BinaryParser"/>
|
<extension id="com.ti.ccstudio.binaryparser.CoffParser" point="org.eclipse.cdt.core.BinaryParser"/>
|
||||||
<extension id="org.eclipse.cdt.core.GNU_ELF" point="org.eclipse.cdt.core.BinaryParser"/>
|
|
||||||
<extension id="org.eclipse.cdt.core.GmakeErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
|
<extension id="org.eclipse.cdt.core.GmakeErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
|
||||||
<extension id="org.eclipse.cdt.core.GASErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
|
<extension id="org.eclipse.cdt.core.GASErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
|
||||||
<extension id="org.eclipse.cdt.core.GLDErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
|
<extension id="org.eclipse.cdt.core.GLDErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
|
||||||
|
|
@ -372,8 +371,8 @@
|
||||||
<storageModule moduleId="cdtBuildSystem" version="4.0.0">
|
<storageModule moduleId="cdtBuildSystem" version="4.0.0">
|
||||||
<configuration artifactExtension="out" artifactName="${ProjName}" buildProperties="" cleanCommand="${CG_CLEAN_CMD}" description="" id="com.ti.ccstudio.buildDefinitions.TMS470.Debug.1136992125.19874194" name="Test__GNU" parent="com.ti.ccstudio.buildDefinitions.TMS470.Debug">
|
<configuration artifactExtension="out" artifactName="${ProjName}" buildProperties="" cleanCommand="${CG_CLEAN_CMD}" description="" id="com.ti.ccstudio.buildDefinitions.TMS470.Debug.1136992125.19874194" name="Test__GNU" parent="com.ti.ccstudio.buildDefinitions.TMS470.Debug">
|
||||||
<folderInfo id="com.ti.ccstudio.buildDefinitions.TMS470.Debug.1136992125.19874194." name="/" resourcePath="">
|
<folderInfo id="com.ti.ccstudio.buildDefinitions.TMS470.Debug.1136992125.19874194." name="/" resourcePath="">
|
||||||
<toolChain id="com.ti.ccstudio.buildDefinitions.TMS470_GNU_9.0.exe.DebugToolchain.1205821571" name="TI Build Tools" secondaryOutputs="com.ti.ccstudio.buildDefinitions.TMS470_GNU_9.0.hex.outputType__BIN.1678560495" superClass="com.ti.ccstudio.buildDefinitions.TMS470_GNU_9.0.exe.DebugToolchain" targetTool="com.ti.ccstudio.buildDefinitions.TMS470_GNU_9.0.exe.linkerDebug.1691743039">
|
<toolChain id="com.ti.ccstudio.buildDefinitions.TMS470_GNU_9.0.exe.DebugToolchain.1151030021" name="TI Build Tools" secondaryOutputs="com.ti.ccstudio.buildDefinitions.TMS470_GNU_9.0.hex.outputType__BIN.1303094658" superClass="com.ti.ccstudio.buildDefinitions.TMS470_GNU_9.0.exe.DebugToolchain" targetTool="com.ti.ccstudio.buildDefinitions.TMS470_GNU_9.0.exe.linkerDebug.1000144524">
|
||||||
<option IS_BUILTIN_EMPTY="false" IS_VALUE_EMPTY="false" id="com.ti.ccstudio.buildDefinitions.core.OPT_TAGS.2024724862" superClass="com.ti.ccstudio.buildDefinitions.core.OPT_TAGS" useByScannerDiscovery="false" valueType="stringList">
|
<option IS_BUILTIN_EMPTY="false" IS_VALUE_EMPTY="false" id="com.ti.ccstudio.buildDefinitions.core.OPT_TAGS.2058679244" superClass="com.ti.ccstudio.buildDefinitions.core.OPT_TAGS" valueType="stringList">
|
||||||
<listOptionValue builtIn="false" value="DEVICE_CONFIGURATION_ID=Cortex M.MSPM0G3507"/>
|
<listOptionValue builtIn="false" value="DEVICE_CONFIGURATION_ID=Cortex M.MSPM0G3507"/>
|
||||||
<listOptionValue builtIn="false" value="DEVICE_CORE_ID=CORTEX_M0P"/>
|
<listOptionValue builtIn="false" value="DEVICE_CORE_ID=CORTEX_M0P"/>
|
||||||
<listOptionValue builtIn="false" value="DEVICE_ENDIANNESS=little"/>
|
<listOptionValue builtIn="false" value="DEVICE_ENDIANNESS=little"/>
|
||||||
|
|
@ -385,21 +384,21 @@
|
||||||
<listOptionValue builtIn="false" value="PRODUCT_MACRO_IMPORTS={"MSPM0-SDK":["${COM_TI_MSPM0_SDK_INCLUDE_PATH}","${COM_TI_MSPM0_SDK_LIBRARY_PATH}","${COM_TI_MSPM0_SDK_LIBRARIES}","${COM_TI_MSPM0_SDK_SYMBOLS}","${COM_TI_MSPM0_SDK_SYSCONFIG_MANIFEST}"],"sysconfig":["${SYSCONFIG_TOOL_INCLUDE_PATH}","${SYSCONFIG_TOOL_LIBRARY_PATH}","${SYSCONFIG_TOOL_LIBRARIES}","${SYSCONFIG_TOOL_SYMBOLS}","${SYSCONFIG_TOOL_SYSCONFIG_MANIFEST}"]}"/>
|
<listOptionValue builtIn="false" value="PRODUCT_MACRO_IMPORTS={"MSPM0-SDK":["${COM_TI_MSPM0_SDK_INCLUDE_PATH}","${COM_TI_MSPM0_SDK_LIBRARY_PATH}","${COM_TI_MSPM0_SDK_LIBRARIES}","${COM_TI_MSPM0_SDK_SYMBOLS}","${COM_TI_MSPM0_SDK_SYSCONFIG_MANIFEST}"],"sysconfig":["${SYSCONFIG_TOOL_INCLUDE_PATH}","${SYSCONFIG_TOOL_LIBRARY_PATH}","${SYSCONFIG_TOOL_LIBRARIES}","${SYSCONFIG_TOOL_SYMBOLS}","${SYSCONFIG_TOOL_SYSCONFIG_MANIFEST}"]}"/>
|
||||||
<listOptionValue builtIn="false" value="OUTPUT_TYPE=executable"/>
|
<listOptionValue builtIn="false" value="OUTPUT_TYPE=executable"/>
|
||||||
</option>
|
</option>
|
||||||
<option id="com.ti.ccstudio.buildDefinitions.core.OPT_CODEGEN_VERSION.1316909640" name="Compiler version" superClass="com.ti.ccstudio.buildDefinitions.core.OPT_CODEGEN_VERSION" useByScannerDiscovery="false" value="GNU_9.2.1:FSF" valueType="string"/>
|
<option id="com.ti.ccstudio.buildDefinitions.core.OPT_CODEGEN_VERSION.416761197" superClass="com.ti.ccstudio.buildDefinitions.core.OPT_CODEGEN_VERSION" value="GNU_9.2.1:Linaro" valueType="string"/>
|
||||||
<targetPlatform binaryParser="com.ti.ccstudio.binaryparser.CoffParser;org.eclipse.cdt.core.GNU_ELF" id="com.ti.ccstudio.buildDefinitions.TMS470_GNU_9.0.exe.targetPlatformDebug.1272720461" name="Platform" superClass="com.ti.ccstudio.buildDefinitions.TMS470_GNU_9.0.exe.targetPlatformDebug"/>
|
<targetPlatform id="com.ti.ccstudio.buildDefinitions.TMS470_GNU_9.0.exe.targetPlatformDebug.149693371" name="Platform" superClass="com.ti.ccstudio.buildDefinitions.TMS470_GNU_9.0.exe.targetPlatformDebug"/>
|
||||||
<builder buildPath="${BuildDirectory}" id="com.ti.ccstudio.buildDefinitions.TMS470_GNU_9.0.exe.builderDebug.2030921413" keepEnvironmentInBuildfile="false" name="GNU Make" parallelBuildOn="true" parallelizationNumber="optimal" superClass="com.ti.ccstudio.buildDefinitions.TMS470_GNU_9.0.exe.builderDebug"/>
|
<builder buildPath="${BuildDirectory}" id="com.ti.ccstudio.buildDefinitions.TMS470_GNU_9.0.exe.builderDebug.1185751452" name="GNU Make.Test__GNU" parallelBuildOn="true" parallelizationNumber="optimal" superClass="com.ti.ccstudio.buildDefinitions.TMS470_GNU_9.0.exe.builderDebug"/>
|
||||||
<tool id="com.ti.ccstudio.buildDefinitions.TMS470_GNU_9.0.exe.compilerDebug.1564213659" name="GNU Compiler" superClass="com.ti.ccstudio.buildDefinitions.TMS470_GNU_9.0.exe.compilerDebug">
|
<tool id="com.ti.ccstudio.buildDefinitions.TMS470_GNU_9.0.exe.compilerDebug.1024471374" name="GNU Compiler" superClass="com.ti.ccstudio.buildDefinitions.TMS470_GNU_9.0.exe.compilerDebug">
|
||||||
<option id="com.ti.ccstudio.buildDefinitions.TMS470_GNU_9.0.compilerID.MCPU.1419879465" name="Target CPU (-mcpu)" superClass="com.ti.ccstudio.buildDefinitions.TMS470_GNU_9.0.compilerID.MCPU" useByScannerDiscovery="false" value="cortex-m0plus" valueType="string"/>
|
<option id="com.ti.ccstudio.buildDefinitions.TMS470_GNU_9.0.compilerID.MCPU.85555502" superClass="com.ti.ccstudio.buildDefinitions.TMS470_GNU_9.0.compilerID.MCPU" value="cortex-m0plus" valueType="string"/>
|
||||||
<option id="com.ti.ccstudio.buildDefinitions.TMS470_GNU_9.0.compilerID.MARCH.459919818" name="Target architecture (-march)" superClass="com.ti.ccstudio.buildDefinitions.TMS470_GNU_9.0.compilerID.MARCH" useByScannerDiscovery="false" value="armv6-m" valueType="string"/>
|
<option id="com.ti.ccstudio.buildDefinitions.TMS470_GNU_9.0.compilerID.MARCH.1352827936" superClass="com.ti.ccstudio.buildDefinitions.TMS470_GNU_9.0.compilerID.MARCH" value="armv6-m" valueType="string"/>
|
||||||
<option id="com.ti.ccstudio.buildDefinitions.TMS470_GNU_9.0.compilerID.CODE_STATE.1382933154" name="Code state" superClass="com.ti.ccstudio.buildDefinitions.TMS470_GNU_9.0.compilerID.CODE_STATE" useByScannerDiscovery="false" value="com.ti.ccstudio.buildDefinitions.TMS470_GNU_9.0.compilerID.CODE_STATE.THUMB" valueType="enumerated"/>
|
<option id="com.ti.ccstudio.buildDefinitions.TMS470_GNU_9.0.compilerID.CODE_STATE.1352763914" superClass="com.ti.ccstudio.buildDefinitions.TMS470_GNU_9.0.compilerID.CODE_STATE" value="com.ti.ccstudio.buildDefinitions.TMS470_GNU_9.0.compilerID.CODE_STATE.THUMB" valueType="enumerated"/>
|
||||||
<option id="com.ti.ccstudio.buildDefinitions.TMS470_GNU_9.0.compilerID.MFLOAT_ABI.1453137523" name="Use floating point hardware (-mfloat-abi)" superClass="com.ti.ccstudio.buildDefinitions.TMS470_GNU_9.0.compilerID.MFLOAT_ABI" useByScannerDiscovery="false" value="soft" valueType="string"/>
|
<option id="com.ti.ccstudio.buildDefinitions.TMS470_GNU_9.0.compilerID.MFLOAT_ABI.2071683333" superClass="com.ti.ccstudio.buildDefinitions.TMS470_GNU_9.0.compilerID.MFLOAT_ABI" value="soft" valueType="string"/>
|
||||||
<option IS_BUILTIN_EMPTY="false" IS_VALUE_EMPTY="false" id="com.ti.ccstudio.buildDefinitions.TMS470_GNU_9.0.compilerID.DEFINE.1458057742" name="Define symbols (-D)" superClass="com.ti.ccstudio.buildDefinitions.TMS470_GNU_9.0.compilerID.DEFINE" useByScannerDiscovery="false" valueType="definedSymbols">
|
<option IS_BUILTIN_EMPTY="false" IS_VALUE_EMPTY="false" id="com.ti.ccstudio.buildDefinitions.TMS470_GNU_9.0.compilerID.DEFINE.926517778" superClass="com.ti.ccstudio.buildDefinitions.TMS470_GNU_9.0.compilerID.DEFINE" valueType="definedSymbols">
|
||||||
<listOptionValue builtIn="false" value="${COM_TI_MSPM0_SDK_SYMBOLS}"/>
|
<listOptionValue builtIn="false" value="${COM_TI_MSPM0_SDK_SYMBOLS}"/>
|
||||||
<listOptionValue builtIn="false" value="${SYSCONFIG_TOOL_SYMBOLS}"/>
|
<listOptionValue builtIn="false" value="${SYSCONFIG_TOOL_SYMBOLS}"/>
|
||||||
<listOptionValue builtIn="false" value="__MSPM0G3507__"/>
|
<listOptionValue builtIn="false" value="__MSPM0G3507__"/>
|
||||||
<listOptionValue builtIn="false" value="DeviceFamily_ID=DeviceFamily_ID_MSPM0G350X"/>
|
<listOptionValue builtIn="false" value="DeviceFamily_ID=DeviceFamily_ID_MSPM0G350X"/>
|
||||||
</option>
|
</option>
|
||||||
<option IS_BUILTIN_EMPTY="false" IS_VALUE_EMPTY="false" id="com.ti.ccstudio.buildDefinitions.TMS470_GNU_9.0.compilerID.INCLUDE_PATH.288007187" name="Include paths (-I)" superClass="com.ti.ccstudio.buildDefinitions.TMS470_GNU_9.0.compilerID.INCLUDE_PATH" useByScannerDiscovery="false" valueType="includePath">
|
<option IS_BUILTIN_EMPTY="false" IS_VALUE_EMPTY="false" id="com.ti.ccstudio.buildDefinitions.TMS470_GNU_9.0.compilerID.INCLUDE_PATH.1406977247" superClass="com.ti.ccstudio.buildDefinitions.TMS470_GNU_9.0.compilerID.INCLUDE_PATH" valueType="includePath">
|
||||||
<listOptionValue builtIn="false" value="${COM_TI_MSPM0_SDK_INCLUDE_PATH}"/>
|
<listOptionValue builtIn="false" value="${COM_TI_MSPM0_SDK_INCLUDE_PATH}"/>
|
||||||
<listOptionValue builtIn="false" value="${SYSCONFIG_TOOL_INCLUDE_PATH}"/>
|
<listOptionValue builtIn="false" value="${SYSCONFIG_TOOL_INCLUDE_PATH}"/>
|
||||||
<listOptionValue builtIn="false" value="${workspace_loc:/${ProjName}/Generated Codes}"/>
|
<listOptionValue builtIn="false" value="${workspace_loc:/${ProjName}/Generated Codes}"/>
|
||||||
|
|
@ -421,30 +420,30 @@
|
||||||
<listOptionValue builtIn="false" value="${workspace_loc:/${ProjName}/Core/Include}"/>
|
<listOptionValue builtIn="false" value="${workspace_loc:/${ProjName}/Core/Include}"/>
|
||||||
<listOptionValue builtIn="false" value="${workspace_loc:/${ProjName}/Core/Source}"/>
|
<listOptionValue builtIn="false" value="${workspace_loc:/${ProjName}/Core/Source}"/>
|
||||||
</option>
|
</option>
|
||||||
<option id="com.ti.ccstudio.buildDefinitions.TMS470_GNU_9.0.compilerID.OPT_LEVEL.1780645341" name="Optimization Level" superClass="com.ti.ccstudio.buildDefinitions.TMS470_GNU_9.0.compilerID.OPT_LEVEL" useByScannerDiscovery="false" value="com.ti.ccstudio.buildDefinitions.TMS470_GNU_9.0.compilerID.OPT_LEVEL.OPT_FOR_DEBUG" valueType="enumerated"/>
|
<option id="com.ti.ccstudio.buildDefinitions.TMS470_GNU_9.0.compilerID.OPT_LEVEL.764173782" superClass="com.ti.ccstudio.buildDefinitions.TMS470_GNU_9.0.compilerID.OPT_LEVEL" value="com.ti.ccstudio.buildDefinitions.TMS470_GNU_9.0.compilerID.OPT_LEVEL.OPT_FOR_DEBUG" valueType="enumerated"/>
|
||||||
<option id="com.ti.ccstudio.buildDefinitions.TMS470_GNU_9.0.compilerID.FUNCTION_SECTIONS.1169413269" name="Place each function into its own section (-ffunction-sections)" superClass="com.ti.ccstudio.buildDefinitions.TMS470_GNU_9.0.compilerID.FUNCTION_SECTIONS" useByScannerDiscovery="false" value="true" valueType="boolean"/>
|
<option id="com.ti.ccstudio.buildDefinitions.TMS470_GNU_9.0.compilerID.FUNCTION_SECTIONS.343631336" superClass="com.ti.ccstudio.buildDefinitions.TMS470_GNU_9.0.compilerID.FUNCTION_SECTIONS" value="true" valueType="boolean"/>
|
||||||
<option id="com.ti.ccstudio.buildDefinitions.TMS470_GNU_9.0.compilerID.DATA_SECTIONS.1798321361" name="Place data items into their own section (-fdata-sections)" superClass="com.ti.ccstudio.buildDefinitions.TMS470_GNU_9.0.compilerID.DATA_SECTIONS" useByScannerDiscovery="false" value="true" valueType="boolean"/>
|
<option id="com.ti.ccstudio.buildDefinitions.TMS470_GNU_9.0.compilerID.DATA_SECTIONS.260438983" superClass="com.ti.ccstudio.buildDefinitions.TMS470_GNU_9.0.compilerID.DATA_SECTIONS" value="true" valueType="boolean"/>
|
||||||
<option id="com.ti.ccstudio.buildDefinitions.TMS470_GNU_9.0.compilerID.DEBUG.1745765211" name="Generate debug information (-g)" superClass="com.ti.ccstudio.buildDefinitions.TMS470_GNU_9.0.compilerID.DEBUG" useByScannerDiscovery="false" value="true" valueType="boolean"/>
|
<option id="com.ti.ccstudio.buildDefinitions.TMS470_GNU_9.0.compilerID.DEBUG.1087585413" superClass="com.ti.ccstudio.buildDefinitions.TMS470_GNU_9.0.compilerID.DEBUG" value="true" valueType="boolean"/>
|
||||||
<option id="com.ti.ccstudio.buildDefinitions.TMS470_GNU_9.0.compilerID.DWARF_VERSION.2068011491" name="Generate debug information in DWARF version (-gdwarf-)" superClass="com.ti.ccstudio.buildDefinitions.TMS470_GNU_9.0.compilerID.DWARF_VERSION" useByScannerDiscovery="false" value="com.ti.ccstudio.buildDefinitions.TMS470_GNU_9.0.compilerID.DWARF_VERSION.3" valueType="enumerated"/>
|
<option id="com.ti.ccstudio.buildDefinitions.TMS470_GNU_9.0.compilerID.DWARF_VERSION.1099895322" superClass="com.ti.ccstudio.buildDefinitions.TMS470_GNU_9.0.compilerID.DWARF_VERSION" value="com.ti.ccstudio.buildDefinitions.TMS470_GNU_9.0.compilerID.DWARF_VERSION.3" valueType="enumerated"/>
|
||||||
<option id="com.ti.ccstudio.buildDefinitions.TMS470_GNU_9.0.compilerID.STRICT_DWARF.1909037642" name="Do not emit DWARF additions beyond selected version (-gstrict-dwarf)" superClass="com.ti.ccstudio.buildDefinitions.TMS470_GNU_9.0.compilerID.STRICT_DWARF" useByScannerDiscovery="false" value="true" valueType="boolean"/>
|
<option id="com.ti.ccstudio.buildDefinitions.TMS470_GNU_9.0.compilerID.STRICT_DWARF.1918790934" superClass="com.ti.ccstudio.buildDefinitions.TMS470_GNU_9.0.compilerID.STRICT_DWARF" value="true" valueType="boolean"/>
|
||||||
<option IS_BUILTIN_EMPTY="false" IS_VALUE_EMPTY="false" id="com.ti.ccstudio.buildDefinitions.TMS470_GNU_9.0.compilerID.OTHER_FLAGS.1706611254" name="Miscellaneous flags" superClass="com.ti.ccstudio.buildDefinitions.TMS470_GNU_9.0.compilerID.OTHER_FLAGS" useByScannerDiscovery="false" valueType="stringList">
|
<option IS_BUILTIN_EMPTY="false" IS_VALUE_EMPTY="false" id="com.ti.ccstudio.buildDefinitions.TMS470_GNU_9.0.compilerID.OTHER_FLAGS.1652229166" superClass="com.ti.ccstudio.buildDefinitions.TMS470_GNU_9.0.compilerID.OTHER_FLAGS" valueType="stringList">
|
||||||
<listOptionValue builtIn="false" value=""/>
|
<listOptionValue builtIn="false" value=""/>
|
||||||
</option>
|
</option>
|
||||||
<option IS_BUILTIN_EMPTY="false" IS_VALUE_EMPTY="false" id="com.ti.ccstudio.buildDefinitions.TMS470_GNU_9.0.compilerID.ASM_SPECIFIC_FLAGS.1702060781" name="Miscellaneous assembly source specific flags" superClass="com.ti.ccstudio.buildDefinitions.TMS470_GNU_9.0.compilerID.ASM_SPECIFIC_FLAGS" useByScannerDiscovery="false" valueType="stringList">
|
<option IS_BUILTIN_EMPTY="false" IS_VALUE_EMPTY="false" id="com.ti.ccstudio.buildDefinitions.TMS470_GNU_9.0.compilerID.ASM_SPECIFIC_FLAGS.2136097121" superClass="com.ti.ccstudio.buildDefinitions.TMS470_GNU_9.0.compilerID.ASM_SPECIFIC_FLAGS" valueType="stringList">
|
||||||
<listOptionValue builtIn="false" value="[asm: -xassembler-with-cpp]"/>
|
<listOptionValue builtIn="false" value="[asm: -xassembler-with-cpp]"/>
|
||||||
</option>
|
</option>
|
||||||
<inputType id="com.ti.ccstudio.buildDefinitions.TMS470_GNU_9.0.compiler.inputType__C_SRCS.1494865805" name="C Sources" superClass="com.ti.ccstudio.buildDefinitions.TMS470_GNU_9.0.compiler.inputType__C_SRCS"/>
|
<inputType id="com.ti.ccstudio.buildDefinitions.TMS470_GNU_9.0.compiler.inputType__C_SRCS.1639579902" name="C Sources" superClass="com.ti.ccstudio.buildDefinitions.TMS470_GNU_9.0.compiler.inputType__C_SRCS"/>
|
||||||
<inputType id="com.ti.ccstudio.buildDefinitions.TMS470_GNU_9.0.compiler.inputType__CPP_SRCS.2016707101" name="C++ Sources" superClass="com.ti.ccstudio.buildDefinitions.TMS470_GNU_9.0.compiler.inputType__CPP_SRCS"/>
|
<inputType id="com.ti.ccstudio.buildDefinitions.TMS470_GNU_9.0.compiler.inputType__CPP_SRCS.975495131" name="C++ Sources" superClass="com.ti.ccstudio.buildDefinitions.TMS470_GNU_9.0.compiler.inputType__CPP_SRCS"/>
|
||||||
<inputType id="com.ti.ccstudio.buildDefinitions.TMS470_GNU_9.0.compiler.inputType__ASM_SRCS.669902214" name="Assembly Sources" superClass="com.ti.ccstudio.buildDefinitions.TMS470_GNU_9.0.compiler.inputType__ASM_SRCS"/>
|
<inputType id="com.ti.ccstudio.buildDefinitions.TMS470_GNU_9.0.compiler.inputType__ASM_SRCS.619972672" name="Assembly Sources" superClass="com.ti.ccstudio.buildDefinitions.TMS470_GNU_9.0.compiler.inputType__ASM_SRCS"/>
|
||||||
<inputType id="com.ti.ccstudio.buildDefinitions.TMS470_GNU_9.0.compiler.inputType__ASM2_SRCS.460451555" name="Assembly Sources" superClass="com.ti.ccstudio.buildDefinitions.TMS470_GNU_9.0.compiler.inputType__ASM2_SRCS"/>
|
<inputType id="com.ti.ccstudio.buildDefinitions.TMS470_GNU_9.0.compiler.inputType__ASM2_SRCS.1432406178" name="Assembly Sources" superClass="com.ti.ccstudio.buildDefinitions.TMS470_GNU_9.0.compiler.inputType__ASM2_SRCS"/>
|
||||||
</tool>
|
</tool>
|
||||||
<tool id="com.ti.ccstudio.buildDefinitions.TMS470_GNU_9.0.exe.linkerDebug.1691743039" name="GNU Linker" superClass="com.ti.ccstudio.buildDefinitions.TMS470_GNU_9.0.exe.linkerDebug">
|
<tool id="com.ti.ccstudio.buildDefinitions.TMS470_GNU_9.0.exe.linkerDebug.1000144524" name="GNU Linker" superClass="com.ti.ccstudio.buildDefinitions.TMS470_GNU_9.0.exe.linkerDebug">
|
||||||
<option id="com.ti.ccstudio.buildDefinitions.TMS470_GNU_9.0.linkerID.OUTPUT_FILE.1342131543" name="Output file (-o)" superClass="com.ti.ccstudio.buildDefinitions.TMS470_GNU_9.0.linkerID.OUTPUT_FILE" useByScannerDiscovery="false" value="${ProjName}.out" valueType="string"/>
|
<option id="com.ti.ccstudio.buildDefinitions.TMS470_GNU_9.0.linkerID.OUTPUT_FILE.34135815" superClass="com.ti.ccstudio.buildDefinitions.TMS470_GNU_9.0.linkerID.OUTPUT_FILE" value="${ProjName}.out" valueType="string"/>
|
||||||
<option id="com.ti.ccstudio.buildDefinitions.TMS470_GNU_9.0.linkerID.MAP_FILE.620762351" name="Write a map file (-Map)" superClass="com.ti.ccstudio.buildDefinitions.TMS470_GNU_9.0.linkerID.MAP_FILE" useByScannerDiscovery="false" value="${ProjName}.map" valueType="string"/>
|
<option id="com.ti.ccstudio.buildDefinitions.TMS470_GNU_9.0.linkerID.MAP_FILE.573004638" superClass="com.ti.ccstudio.buildDefinitions.TMS470_GNU_9.0.linkerID.MAP_FILE" value="${ProjName}.map" valueType="string"/>
|
||||||
<option id="com.ti.ccstudio.buildDefinitions.TMS470_GNU_9.0.linkerID.NOSTARTFILES.185442689" name="Do not use the standard system startup files when linking (-nostartfiles)" superClass="com.ti.ccstudio.buildDefinitions.TMS470_GNU_9.0.linkerID.NOSTARTFILES" useByScannerDiscovery="false" value="true" valueType="boolean"/>
|
<option id="com.ti.ccstudio.buildDefinitions.TMS470_GNU_9.0.linkerID.NOSTARTFILES.400973291" superClass="com.ti.ccstudio.buildDefinitions.TMS470_GNU_9.0.linkerID.NOSTARTFILES" value="true" valueType="boolean"/>
|
||||||
<option id="com.ti.ccstudio.buildDefinitions.TMS470_GNU_9.0.linkerID.STATIC.694543137" name="Do not link with the shared libraries (-static)" superClass="com.ti.ccstudio.buildDefinitions.TMS470_GNU_9.0.linkerID.STATIC" useByScannerDiscovery="false" value="true" valueType="boolean"/>
|
<option id="com.ti.ccstudio.buildDefinitions.TMS470_GNU_9.0.linkerID.STATIC.193004299" superClass="com.ti.ccstudio.buildDefinitions.TMS470_GNU_9.0.linkerID.STATIC" value="true" valueType="boolean"/>
|
||||||
<option id="com.ti.ccstudio.buildDefinitions.TMS470_GNU_9.0.linkerID.GC_SECTIONS.1426210029" name="Remove unused sections (--gc-sections)" superClass="com.ti.ccstudio.buildDefinitions.TMS470_GNU_9.0.linkerID.GC_SECTIONS" useByScannerDiscovery="false" value="true" valueType="boolean"/>
|
<option id="com.ti.ccstudio.buildDefinitions.TMS470_GNU_9.0.linkerID.GC_SECTIONS.418719281" superClass="com.ti.ccstudio.buildDefinitions.TMS470_GNU_9.0.linkerID.GC_SECTIONS" value="true" valueType="boolean"/>
|
||||||
<option IS_BUILTIN_EMPTY="false" IS_VALUE_EMPTY="false" id="com.ti.ccstudio.buildDefinitions.TMS470_GNU_9.0.linkerID.LIBRARY.1970279033" name="Libraries (-l, --library)" superClass="com.ti.ccstudio.buildDefinitions.TMS470_GNU_9.0.linkerID.LIBRARY" useByScannerDiscovery="false" valueType="libs">
|
<option IS_BUILTIN_EMPTY="false" IS_VALUE_EMPTY="false" id="com.ti.ccstudio.buildDefinitions.TMS470_GNU_9.0.linkerID.LIBRARY.195483867" superClass="com.ti.ccstudio.buildDefinitions.TMS470_GNU_9.0.linkerID.LIBRARY" valueType="libs">
|
||||||
<listOptionValue builtIn="false" value="${COM_TI_MSPM0_SDK_LIBRARIES}"/>
|
<listOptionValue builtIn="false" value="${COM_TI_MSPM0_SDK_LIBRARIES}"/>
|
||||||
<listOptionValue builtIn="false" value="${SYSCONFIG_TOOL_LIBRARIES}"/>
|
<listOptionValue builtIn="false" value="${SYSCONFIG_TOOL_LIBRARIES}"/>
|
||||||
<listOptionValue builtIn="false" value="gcc"/>
|
<listOptionValue builtIn="false" value="gcc"/>
|
||||||
|
|
@ -452,7 +451,7 @@
|
||||||
<listOptionValue builtIn="false" value="m"/>
|
<listOptionValue builtIn="false" value="m"/>
|
||||||
<listOptionValue builtIn="false" value="nosys"/>
|
<listOptionValue builtIn="false" value="nosys"/>
|
||||||
</option>
|
</option>
|
||||||
<option IS_BUILTIN_EMPTY="false" IS_VALUE_EMPTY="false" id="com.ti.ccstudio.buildDefinitions.TMS470_GNU_9.0.linkerID.SEARCH_PATH.642059397" name="Library search path (-L, --library-path)" superClass="com.ti.ccstudio.buildDefinitions.TMS470_GNU_9.0.linkerID.SEARCH_PATH" useByScannerDiscovery="false" valueType="libPaths">
|
<option IS_BUILTIN_EMPTY="false" IS_VALUE_EMPTY="false" id="com.ti.ccstudio.buildDefinitions.TMS470_GNU_9.0.linkerID.SEARCH_PATH.33957587" superClass="com.ti.ccstudio.buildDefinitions.TMS470_GNU_9.0.linkerID.SEARCH_PATH" valueType="libPaths">
|
||||||
<listOptionValue builtIn="false" value="${COM_TI_MSPM0_SDK_LIBRARY_PATH}"/>
|
<listOptionValue builtIn="false" value="${COM_TI_MSPM0_SDK_LIBRARY_PATH}"/>
|
||||||
<listOptionValue builtIn="false" value="${SYSCONFIG_TOOL_LIBRARY_PATH}"/>
|
<listOptionValue builtIn="false" value="${SYSCONFIG_TOOL_LIBRARY_PATH}"/>
|
||||||
<listOptionValue builtIn="false" value="${COM_TI_MSPM0_SDK_INSTALL_DIR}/source"/>
|
<listOptionValue builtIn="false" value="${COM_TI_MSPM0_SDK_INSTALL_DIR}/source"/>
|
||||||
|
|
@ -460,18 +459,17 @@
|
||||||
<listOptionValue builtIn="false" value="${PROJECT_BUILD_DIR}/syscfg"/>
|
<listOptionValue builtIn="false" value="${PROJECT_BUILD_DIR}/syscfg"/>
|
||||||
<listOptionValue builtIn="false" value="${CG_TOOL_ROOT}/arm-none-eabi/lib/thumb/v6-m/nofp"/>
|
<listOptionValue builtIn="false" value="${CG_TOOL_ROOT}/arm-none-eabi/lib/thumb/v6-m/nofp"/>
|
||||||
</option>
|
</option>
|
||||||
<option IS_BUILTIN_EMPTY="false" IS_VALUE_EMPTY="false" id="com.ti.ccstudio.buildDefinitions.TMS470_GNU_9.0.linkerID.OTHER_FLAGS.1446698506" name="Miscellaneous flags" superClass="com.ti.ccstudio.buildDefinitions.TMS470_GNU_9.0.linkerID.OTHER_FLAGS" useByScannerDiscovery="false" valueType="stringList">
|
<option IS_BUILTIN_EMPTY="false" IS_VALUE_EMPTY="false" id="com.ti.ccstudio.buildDefinitions.TMS470_GNU_9.0.linkerID.OTHER_FLAGS.1870280945" superClass="com.ti.ccstudio.buildDefinitions.TMS470_GNU_9.0.linkerID.OTHER_FLAGS" valueType="stringList">
|
||||||
<listOptionValue builtIn="false" value="-march=armv6-m -mthumb"/>
|
<listOptionValue builtIn="false" value="-march=armv6-m -mthumb"/>
|
||||||
</option>
|
</option>
|
||||||
<inputType id="com.ti.ccstudio.buildDefinitions.TMS470_GNU_9.0.exeLinker.inputType__CMD_SRCS.8918875" name="Linker Command Files" superClass="com.ti.ccstudio.buildDefinitions.TMS470_GNU_9.0.exeLinker.inputType__CMD_SRCS"/>
|
<inputType id="com.ti.ccstudio.buildDefinitions.TMS470_GNU_9.0.exeLinker.inputType__CMD_SRCS.509703605" name="Linker Command Files" superClass="com.ti.ccstudio.buildDefinitions.TMS470_GNU_9.0.exeLinker.inputType__CMD_SRCS"/>
|
||||||
<inputType id="com.ti.ccstudio.buildDefinitions.TMS470_GNU_9.0.exeLinker.inputType__CMD2_SRCS.1699824610" name="Linker Command Files" superClass="com.ti.ccstudio.buildDefinitions.TMS470_GNU_9.0.exeLinker.inputType__CMD2_SRCS"/>
|
<inputType id="com.ti.ccstudio.buildDefinitions.TMS470_GNU_9.0.exeLinker.inputType__CMD2_SRCS.709954183" name="Linker Command Files" superClass="com.ti.ccstudio.buildDefinitions.TMS470_GNU_9.0.exeLinker.inputType__CMD2_SRCS"/>
|
||||||
<inputType id="com.ti.ccstudio.buildDefinitions.TMS470_GNU_9.0.exeLinker.inputType__GEN_CMDS.1906401970" name="Generated Linker Command Files" superClass="com.ti.ccstudio.buildDefinitions.TMS470_GNU_9.0.exeLinker.inputType__GEN_CMDS"/>
|
<inputType id="com.ti.ccstudio.buildDefinitions.TMS470_GNU_9.0.exeLinker.inputType__GEN_CMDS.549626369" name="Generated Linker Command Files" superClass="com.ti.ccstudio.buildDefinitions.TMS470_GNU_9.0.exeLinker.inputType__GEN_CMDS"/>
|
||||||
</tool>
|
</tool>
|
||||||
<tool id="com.ti.ccstudio.buildDefinitions.TMS470_GNU_9.0.hex.844000148" name="GNU Objcopy Utility" superClass="com.ti.ccstudio.buildDefinitions.TMS470_GNU_9.0.hex">
|
<tool id="com.ti.ccstudio.buildDefinitions.TMS470_GNU_9.0.hex.441697188" name="GNU Objcopy Utility" superClass="com.ti.ccstudio.buildDefinitions.TMS470_GNU_9.0.hex">
|
||||||
<option id="com.ti.ccstudio.buildDefinitions.TMS470_GNU_9.0.hex.OUTPUT_TARGET.2034251039" name="Create an output file in format <bfdname> (-O, --output-target)" superClass="com.ti.ccstudio.buildDefinitions.TMS470_GNU_9.0.hex.OUTPUT_TARGET" useByScannerDiscovery="false" value="com.ti.ccstudio.buildDefinitions.TMS470_GNU_9.0.hex.OUTPUT_TARGET.IHEX" valueType="enumerated"/>
|
<option id="com.ti.ccstudio.buildDefinitions.TMS470_GNU_9.0.hex.TOOL_ENABLE.416049721" superClass="com.ti.ccstudio.buildDefinitions.TMS470_GNU_9.0.hex.TOOL_ENABLE" value="true" valueType="boolean"/>
|
||||||
<option id="com.ti.ccstudio.buildDefinitions.TMS470_GNU_9.0.hex.OUTPUT_FILE.1496414824" name="Specify output file name" superClass="com.ti.ccstudio.buildDefinitions.TMS470_GNU_9.0.hex.OUTPUT_FILE" useByScannerDiscovery="false" value="" valueType="string"/>
|
<option id="com.ti.ccstudio.buildDefinitions.TMS470_GNU_9.0.hex.OUTPUT_TARGET.1303449514" superClass="com.ti.ccstudio.buildDefinitions.TMS470_GNU_9.0.hex.OUTPUT_TARGET" value="com.ti.ccstudio.buildDefinitions.TMS470_GNU_9.0.hex.OUTPUT_TARGET.IHEX" valueType="enumerated"/>
|
||||||
<option id="com.ti.ccstudio.buildDefinitions.TMS470_GNU_9.0.hex.TOOL_ENABLE.1681465396" name="Enable tool" superClass="com.ti.ccstudio.buildDefinitions.TMS470_GNU_9.0.hex.TOOL_ENABLE" value="true" valueType="boolean"/>
|
<outputType id="com.ti.ccstudio.buildDefinitions.TMS470_GNU_9.0.hex.outputType__BIN.1303094658" name="Binary File" superClass="com.ti.ccstudio.buildDefinitions.TMS470_GNU_9.0.hex.outputType__BIN"/>
|
||||||
<outputType id="com.ti.ccstudio.buildDefinitions.TMS470_GNU_9.0.hex.outputType__BIN.1678560495" name="Binary File" superClass="com.ti.ccstudio.buildDefinitions.TMS470_GNU_9.0.hex.outputType__BIN"/>
|
|
||||||
</tool>
|
</tool>
|
||||||
</toolChain>
|
</toolChain>
|
||||||
</folderInfo>
|
</folderInfo>
|
||||||
|
|
|
||||||
|
|
@ -305,11 +305,22 @@ exit:
|
||||||
/////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////
|
||||||
static xCoreStatus_t uart_init(McalUartHandle_s* pxUartHandle, McalUartBaudRate_e xBaud)
|
static xCoreStatus_t uart_init(McalUartHandle_s* pxUartHandle, McalUartBaudRate_e xBaud)
|
||||||
{
|
{
|
||||||
// DL_GPIO_initPeripheralOutputFunction(IOMUX_PINCM32, IOMUX_PINCM32_PF_UART2_TX);
|
|
||||||
// DL_GPIO_initPeripheralInputFunction(IOMUX_PINCM33, IOMUX_PINCM33_PF_UART2_RX);
|
|
||||||
|
|
||||||
|
#if UART_PIN_SELECTION == 1
|
||||||
|
DL_GPIO_initPeripheralOutputFunction(IOMUX_PINCM32, IOMUX_PINCM32_PF_UART2_TX);
|
||||||
|
DL_GPIO_initPeripheralInputFunction(IOMUX_PINCM33, IOMUX_PINCM33_PF_UART2_RX);
|
||||||
|
|
||||||
|
#elif UART_PIN_SELECTION == 2
|
||||||
DL_GPIO_initPeripheralOutputFunction(IOMUX_PINCM19, IOMUX_PINCM19_PF_UART1_TX);
|
DL_GPIO_initPeripheralOutputFunction(IOMUX_PINCM19, IOMUX_PINCM19_PF_UART1_TX);
|
||||||
DL_GPIO_initPeripheralInputFunction(IOMUX_PINCM20, IOMUX_PINCM20_PF_UART1_RX);
|
DL_GPIO_initPeripheralInputFunction(IOMUX_PINCM20, IOMUX_PINCM20_PF_UART1_RX);
|
||||||
|
|
||||||
|
#elif UART_PIN_SELECTION == 3
|
||||||
|
DL_GPIO_initPeripheralOutputFunction(IOMUX_PINCM19, IOMUX_PINCM19_PF_UART1_TX);
|
||||||
|
DL_GPIO_initPeripheralInputFunction(IOMUX_PINCM20, IOMUX_PINCM20_PF_UART1_RX);
|
||||||
|
DL_GPIO_initPeripheralOutputFunction(IOMUX_PINCM32, IOMUX_PINCM32_PF_UART2_TX);
|
||||||
|
DL_GPIO_initPeripheralInputFunction(IOMUX_PINCM33, IOMUX_PINCM33_PF_UART2_RX);
|
||||||
|
|
||||||
|
#endif
|
||||||
// Get the UART instance based on the port number in the handle
|
// Get the UART instance based on the port number in the handle
|
||||||
UART_Regs* uart_inst = GetUartInstance(pxUartHandle->eUartPortNumber);
|
UART_Regs* uart_inst = GetUartInstance(pxUartHandle->eUartPortNumber);
|
||||||
|
|
||||||
|
|
@ -380,60 +391,62 @@ static xCoreStatus_t uart_init(McalUartHandle_s* pxUartHandle, McalUartBaudRate_
|
||||||
* Target baud rate: 115200
|
* Target baud rate: 115200
|
||||||
* Actual baud rate: 115211.52
|
* Actual baud rate: 115211.52
|
||||||
*/
|
*/
|
||||||
DL_UART_Main_setBaudRateDivisor(uart_inst, 13, 1);
|
// DL_UART_Main_setBaudRateDivisor(uart_inst, 13, 1);
|
||||||
|
//DL_UART_Main_setBaudRateDivisor(uart_inst, 19, 20);
|
||||||
|
DL_UART_Main_setBaudRateDivisor(uart_inst, 19, 34);
|
||||||
}
|
}
|
||||||
else if(xBaud==9600)
|
else if(xBaud==9600)
|
||||||
{
|
{
|
||||||
DL_UART_Main_setBaudRateDivisor(uart_inst, 156, 16);
|
DL_UART_Main_setBaudRateDivisor(uart_inst, 234, 24);
|
||||||
}
|
}
|
||||||
|
|
||||||
else if(xBaud==2400)
|
else if(xBaud==2400)
|
||||||
{
|
{
|
||||||
DL_UART_Main_setBaudRateDivisor(uart_inst, 625, 0);
|
DL_UART_Main_setBaudRateDivisor(uart_inst, 937, 32);
|
||||||
}
|
}
|
||||||
else if(xBaud==4800)
|
else if(xBaud==4800)
|
||||||
{
|
{
|
||||||
DL_UART_Main_setBaudRateDivisor(uart_inst, 312, 32);
|
DL_UART_Main_setBaudRateDivisor(uart_inst, 468, 48);
|
||||||
}
|
}
|
||||||
else if(xBaud==14400)
|
else if(xBaud==14400)
|
||||||
{
|
{
|
||||||
DL_UART_Main_setBaudRateDivisor(uart_inst, 104, 11);
|
DL_UART_Main_setBaudRateDivisor(uart_inst, 156, 16);
|
||||||
}
|
}
|
||||||
else if(xBaud==19200)
|
else if(xBaud==19200)
|
||||||
{
|
{
|
||||||
DL_UART_Main_setBaudRateDivisor(uart_inst, 78, 8);
|
DL_UART_Main_setBaudRateDivisor(uart_inst, 117, 12);
|
||||||
}
|
}
|
||||||
else if(xBaud==28800)
|
else if(xBaud==28800)
|
||||||
{
|
{
|
||||||
DL_UART_Main_setBaudRateDivisor(uart_inst, 52, 5);
|
DL_UART_Main_setBaudRateDivisor(uart_inst, 78, 8);
|
||||||
}
|
}
|
||||||
else if(xBaud==33600)
|
else if(xBaud==33600)
|
||||||
{
|
{
|
||||||
DL_UART_Main_setBaudRateDivisor(uart_inst, 44, 41);
|
DL_UART_Main_setBaudRateDivisor(uart_inst, 66, 62);
|
||||||
}
|
}
|
||||||
else if(xBaud==38400)
|
else if(xBaud==38400)
|
||||||
{
|
{
|
||||||
DL_UART_Main_setBaudRateDivisor(uart_inst, 39, 4);
|
DL_UART_Main_setBaudRateDivisor(uart_inst, 58, 38);
|
||||||
}
|
}
|
||||||
else if(xBaud==57600)
|
else if(xBaud==57600)
|
||||||
{
|
{
|
||||||
DL_UART_Main_setBaudRateDivisor(uart_inst, 26, 3);
|
DL_UART_Main_setBaudRateDivisor(uart_inst, 39, 4);
|
||||||
}
|
}
|
||||||
else if(xBaud==230400)
|
else if(xBaud==230400)
|
||||||
{
|
{
|
||||||
DL_UART_Main_setBaudRateDivisor(uart_inst, 6, 33);
|
DL_UART_Main_setBaudRateDivisor(uart_inst, 9, 49);
|
||||||
}
|
}
|
||||||
else if(xBaud==460800)
|
else if(xBaud==460800)
|
||||||
{
|
{
|
||||||
DL_UART_Main_setBaudRateDivisor(uart_inst, 3, 16);
|
DL_UART_Main_setBaudRateDivisor(uart_inst, 4, 57);
|
||||||
}
|
}
|
||||||
else if(xBaud==921600)
|
else if(xBaud==921600)
|
||||||
{
|
{
|
||||||
DL_UART_Main_setBaudRateDivisor(uart_inst, 1, 40);
|
DL_UART_Main_setBaudRateDivisor(uart_inst, 2, 28);
|
||||||
}
|
}
|
||||||
else if(xBaud==1000000)
|
else if(xBaud==1000000)
|
||||||
{
|
{
|
||||||
DL_UART_Main_setBaudRateDivisor(uart_inst, 1, 32);
|
DL_UART_Main_setBaudRateDivisor(uart_inst, 2, 16);
|
||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
/*
|
/*
|
||||||
|
|
|
||||||
|
|
@ -37,8 +37,14 @@
|
||||||
* DO NOT EDIT - This file is generated for the MSPM0G350X
|
* DO NOT EDIT - This file is generated for the MSPM0G350X
|
||||||
* by the SysConfig tool.
|
* by the SysConfig tool.
|
||||||
*/
|
*/
|
||||||
|
///* Port definition for Pin Group GPIO_tick */
|
||||||
|
//#define GPIO_tick_PORT (GPIOA)
|
||||||
|
//
|
||||||
|
///* Defines for PIN_0: GPIOA.2 with pinCMx 7 on package pin 8 */
|
||||||
|
//#define tick_PIN_0_PIN (0x00004000)
|
||||||
|
|
||||||
#include "ti_msp_dl_config.h"
|
#include "ti_msp_dl_config.h"
|
||||||
|
#include "../../utils/utils.h"
|
||||||
|
|
||||||
DL_TimerA_backupConfig gCAPTURE_0Backup;
|
DL_TimerA_backupConfig gCAPTURE_0Backup;
|
||||||
DL_TimerA_backupConfig gTIMER_1Backup;
|
DL_TimerA_backupConfig gTIMER_1Backup;
|
||||||
|
|
@ -101,15 +107,33 @@ SYSCONFIG_WEAK void SYSCFG_DL_initPower(void)
|
||||||
DL_TimerA_reset(CAPTURE_0_INST);
|
DL_TimerA_reset(CAPTURE_0_INST);
|
||||||
DL_TimerG_reset(TIMER_0_INST);
|
DL_TimerG_reset(TIMER_0_INST);
|
||||||
DL_TimerA_reset(TIMER_1_INST);
|
DL_TimerA_reset(TIMER_1_INST);
|
||||||
DL_UART_Main_reset(UART_0_INST);
|
|
||||||
DL_MCAN_reset(MCAN0_INST);
|
DL_MCAN_reset(MCAN0_INST);
|
||||||
|
|
||||||
|
#if UART_PIN_SELECTION == 1
|
||||||
|
DL_UART_Main_reset(UART2);
|
||||||
|
DL_UART_Main_enablePower(UART2);
|
||||||
|
|
||||||
|
#elif UART_PIN_SELECTION == 2
|
||||||
|
DL_UART_Main_reset(UART1);
|
||||||
|
DL_UART_Main_enablePower(UART1);
|
||||||
|
|
||||||
|
#elif UART_PIN_SELECTION == 3
|
||||||
|
// UART1 pins
|
||||||
|
DL_UART_Main_reset(UART1);
|
||||||
|
DL_UART_Main_enablePower(UART1);
|
||||||
|
DL_UART_Main_reset(UART2);
|
||||||
|
DL_UART_Main_enablePower(UART2);
|
||||||
|
|
||||||
|
|
||||||
|
#endif
|
||||||
|
|
||||||
DL_GPIO_enablePower(GPIOA);
|
DL_GPIO_enablePower(GPIOA);
|
||||||
DL_GPIO_enablePower(GPIOB);
|
DL_GPIO_enablePower(GPIOB);
|
||||||
DL_TimerA_enablePower(CAPTURE_0_INST);
|
DL_TimerA_enablePower(CAPTURE_0_INST);
|
||||||
DL_TimerG_enablePower(TIMER_0_INST);
|
DL_TimerG_enablePower(TIMER_0_INST);
|
||||||
DL_TimerA_enablePower(TIMER_1_INST);
|
DL_TimerA_enablePower(TIMER_1_INST);
|
||||||
DL_UART_Main_enablePower(UART_0_INST);
|
|
||||||
DL_MCAN_enablePower(MCAN0_INST);
|
DL_MCAN_enablePower(MCAN0_INST);
|
||||||
delay_cycles(POWER_STARTUP_DELAY);
|
delay_cycles(POWER_STARTUP_DELAY);
|
||||||
}
|
}
|
||||||
|
|
@ -137,6 +161,11 @@ SYSCONFIG_WEAK void SYSCFG_DL_GPIO_init(void)
|
||||||
DL_GPIO_initPeripheralInputFunction(
|
DL_GPIO_initPeripheralInputFunction(
|
||||||
GPIO_MCAN0_IOMUX_CAN_RX, GPIO_MCAN0_IOMUX_CAN_RX_FUNC);
|
GPIO_MCAN0_IOMUX_CAN_RX, GPIO_MCAN0_IOMUX_CAN_RX_FUNC);
|
||||||
|
|
||||||
|
// DL_GPIO_initDigitalOutput(IOMUX_PINCM31);
|
||||||
|
//
|
||||||
|
// DL_GPIO_clearPins(GPIOB, tick_PIN_0_PIN);
|
||||||
|
// DL_GPIO_enableOutput(GPIOB, tick_PIN_0_PIN);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -13,6 +13,8 @@ CmplxFifoQueueHandle_s __gprv_MyEcuUARTResponseQueue = { 0 };
|
||||||
static uint8_t __gprv_u8CANUartDataBuffer[CAN_UART_BUFFER_MAX_SIZE];
|
static uint8_t __gprv_u8CANUartDataBuffer[CAN_UART_BUFFER_MAX_SIZE];
|
||||||
static uint32_t __gprv_u32CanUartDataAvailable = 0;
|
static uint32_t __gprv_u32CanUartDataAvailable = 0;
|
||||||
|
|
||||||
|
int uartCount = 1;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// Get the UART instance based on the enum
|
// Get the UART instance based on the enum
|
||||||
|
|
@ -72,15 +74,25 @@ IVEC_EcuCommonErr_e xECU_UARTInit(McalUartHandle_s* prvUartHandle, uint32_t spee
|
||||||
}
|
}
|
||||||
|
|
||||||
IVEC_ECU_LOG(LOG_STRING, "Initilising UART");
|
IVEC_ECU_LOG(LOG_STRING, "Initilising UART");
|
||||||
|
#if (UART_PIN_SELECTION == 1 || ((uartCount == 1) && (UART_PIN_SELECTION == 3)))
|
||||||
|
prvUartHandle->eUartPortNumber = mcalUART_PORT3;
|
||||||
|
uartCount = 2;
|
||||||
|
|
||||||
|
#elif (UART_PIN_SELECTION == 2 || ((uartCount == 2) && (UART_PIN_SELECTION == 3)))
|
||||||
prvUartHandle->eUartPortNumber = mcalUART_PORT2;
|
prvUartHandle->eUartPortNumber = mcalUART_PORT2;
|
||||||
|
uartCount = 1;
|
||||||
|
|
||||||
|
#endif
|
||||||
|
|
||||||
prvUartHandle->pvUartRecvCallback = __prv_vEcu_CANOverUartMsgCallback;
|
prvUartHandle->pvUartRecvCallback = __prv_vEcu_CANOverUartMsgCallback;
|
||||||
prvUartHandle->xUartConfig.eUartBaudrate = speed;
|
prvUartHandle->xUartConfig.eUartBaudrate = speed;
|
||||||
prvUartHandle->xUartConfig.eUartFlowCtrl = mcalUART_FC_NONE;
|
prvUartHandle->xUartConfig.eUartFlowCtrl = mcalUART_FC_NONE;
|
||||||
prvUartHandle->xUartConfig.eUartDataBit = mcalUART_DATABIT_8;
|
prvUartHandle->xUartConfig.eUartDataBit = mcalUART_DATABIT_8;
|
||||||
prvUartHandle->xUartConfig.eUartStopBit = mcalUART_STOP_1;
|
prvUartHandle->xUartConfig.eUartStopBit = mcalUART_STOP_1;
|
||||||
prvUartHandle->xUartConfig.eUartParityBit = mcalUART_PARITY_NONE;
|
prvUartHandle->xUartConfig.eUartParityBit = mcalUART_PARITY_NONE;
|
||||||
|
|
||||||
l_i32Ret = xMCAL_UartInit(prvUartHandle);
|
l_i32Ret = xMCAL_UartInit(prvUartHandle);
|
||||||
|
|
||||||
|
|
||||||
if (l_i32Ret != 0)
|
if (l_i32Ret != 0)
|
||||||
{
|
{
|
||||||
l_xFuncStatus = commonECU_INIT_FAIL;
|
l_xFuncStatus = commonECU_INIT_FAIL;
|
||||||
|
|
|
||||||
|
|
@ -15,6 +15,7 @@
|
||||||
|
|
||||||
|
|
||||||
McalUartHandle_s g_xUartHandle;
|
McalUartHandle_s g_xUartHandle;
|
||||||
|
McalUartHandle_s g_xUart2Handle;
|
||||||
uint32_t g_u32UartSpeed = 0;
|
uint32_t g_u32UartSpeed = 0;
|
||||||
xCAN_baud_t g_u16CanSpeed = 0;
|
xCAN_baud_t g_u16CanSpeed = 0;
|
||||||
uint8_t g_pu8Buf[MAX_PACKET_LENGTH] = {0};
|
uint8_t g_pu8Buf[MAX_PACKET_LENGTH] = {0};
|
||||||
|
|
@ -31,6 +32,7 @@ uint32_t filterCount = 0;
|
||||||
uint16_t extendedFilter = 0;
|
uint16_t extendedFilter = 0;
|
||||||
uint16_t standardFilter = 0;
|
uint16_t standardFilter = 0;
|
||||||
|
|
||||||
|
|
||||||
static uint8_t __gprv_u8Idx = 0;
|
static uint8_t __gprv_u8Idx = 0;
|
||||||
static uint8_t __gprv_u8Buf = 0;
|
static uint8_t __gprv_u8Buf = 0;
|
||||||
|
|
||||||
|
|
@ -230,6 +232,11 @@ void vRTE_InitUARTCANEcho(void)
|
||||||
g_u32UartSpeed = mcalUART_BAUD_115200;
|
g_u32UartSpeed = mcalUART_BAUD_115200;
|
||||||
g_u16CanSpeed = BAUD_500;
|
g_u16CanSpeed = BAUD_500;
|
||||||
xECU_UARTInit(&g_xUartHandle, g_u32UartSpeed);
|
xECU_UARTInit(&g_xUartHandle, g_u32UartSpeed);
|
||||||
|
|
||||||
|
#if UART_PIN_SELECTION == 3
|
||||||
|
xECU_UARTInit(&g_xUart2Handle, g_u32UartSpeed);
|
||||||
|
#endif
|
||||||
|
|
||||||
xECU_CANInit(CANFD0,g_u16CanSpeed);
|
xECU_CANInit(CANFD0,g_u16CanSpeed);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -237,15 +244,6 @@ void vCanFilterMaskSaveVal(uint8_t ucIdx, uint32_t mask, bool isExtended)
|
||||||
{
|
{
|
||||||
maskCount = ucIdx;
|
maskCount = ucIdx;
|
||||||
maskValues[maskCount] = mask;
|
maskValues[maskCount] = mask;
|
||||||
// isExtendedID[maskCount++] = isExtended;
|
|
||||||
// if(isExtended)
|
|
||||||
// {
|
|
||||||
// extendedFilter++;
|
|
||||||
// }
|
|
||||||
// else
|
|
||||||
// {
|
|
||||||
// standardFilter++;
|
|
||||||
// }
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -254,16 +252,6 @@ void vCanFilterSaveVal(uint8_t ucIdx, uint32_t Filter, bool isExtended)
|
||||||
filterCount = ucIdx;
|
filterCount = ucIdx;
|
||||||
// Store filter value
|
// Store filter value
|
||||||
filterValues[filterCount] = Filter;
|
filterValues[filterCount] = Filter;
|
||||||
// isExtendedID[filterCount] = isExtended;
|
|
||||||
// if(isExtended)
|
|
||||||
// {
|
|
||||||
// extendedFilter++;
|
|
||||||
// }
|
|
||||||
// else
|
|
||||||
// {
|
|
||||||
// standardFilter++;
|
|
||||||
// }
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
10
main.c
10
main.c
|
|
@ -19,7 +19,10 @@
|
||||||
|
|
||||||
void vMCAL_TimerCallback(void)
|
void vMCAL_TimerCallback(void)
|
||||||
{
|
{
|
||||||
//vRTE_MatlabRun();
|
#if UART_PIN_SELECTION == 1
|
||||||
|
vRTE_MatlabRun();
|
||||||
|
#endif
|
||||||
|
|
||||||
DL_TimerA_clearInterruptStatus(TIMER_1_INST, GPTIMER_CPU_INT_IMASK_Z_SET);
|
DL_TimerA_clearInterruptStatus(TIMER_1_INST, GPTIMER_CPU_INT_IMASK_Z_SET);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -41,7 +44,10 @@ int main(void)
|
||||||
xMCAL_SYSTICK_INIT(Period_1ms);
|
xMCAL_SYSTICK_INIT(Period_1ms);
|
||||||
__prv_TimerConfig();
|
__prv_TimerConfig();
|
||||||
|
|
||||||
//vRTE_MatlabInit();
|
#if UART_PIN_SELECTION == 1
|
||||||
|
vRTE_MatlabInit();
|
||||||
|
#endif
|
||||||
|
|
||||||
vRTE_InitUARTCANEcho();
|
vRTE_InitUARTCANEcho();
|
||||||
while(1)
|
while(1)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -1,43 +1,23 @@
|
||||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||||
<configurations XML_version="1.2" id="configurations_0">
|
<configurations XML_version="1.2" id="configurations_0">
|
||||||
|
|
||||||
|
|
||||||
<configuration XML_version="1.2" id="Texas Instruments XDS110 USB Debug Probe_0">
|
<configuration XML_version="1.2" id="Texas Instruments XDS110 USB Debug Probe_0">
|
||||||
|
|
||||||
<instance XML_version="1.2" desc="Texas Instruments XDS110 USB Debug Probe_0" href="connections/TIXDS110_Connection.xml" id="Texas Instruments XDS110 USB Debug Probe_0" xml="TIXDS110_Connection.xml" xmlpath="connections"/>
|
<instance XML_version="1.2" desc="Texas Instruments XDS110 USB Debug Probe_0" href="connections/TIXDS110_Connection.xml" id="Texas Instruments XDS110 USB Debug Probe_0" xml="TIXDS110_Connection.xml" xmlpath="connections"/>
|
||||||
|
<connection XML_version="1.2" id="Texas Instruments XDS110 USB Debug Probe_0">
|
||||||
<connection XML_version="1.2" desc="Texas Instruments XDS110 USB Debug Probe_0" id="Texas Instruments XDS110 USB Debug Probe_0">
|
|
||||||
|
|
||||||
<instance XML_version="1.2" href="drivers/tixds510cs_dap.xml" id="drivers" xml="tixds510cs_dap.xml" xmlpath="drivers"/>
|
<instance XML_version="1.2" href="drivers/tixds510cs_dap.xml" id="drivers" xml="tixds510cs_dap.xml" xmlpath="drivers"/>
|
||||||
|
|
||||||
<instance XML_version="1.2" href="drivers/tixds510cortexM0.xml" id="drivers" xml="tixds510cortexM0.xml" xmlpath="drivers"/>
|
<instance XML_version="1.2" href="drivers/tixds510cortexM0.xml" id="drivers" xml="tixds510cortexM0.xml" xmlpath="drivers"/>
|
||||||
|
|
||||||
<instance XML_version="1.2" href="drivers/tixds510sec_ap.xml" id="drivers" xml="tixds510sec_ap.xml" xmlpath="drivers"/>
|
<instance XML_version="1.2" href="drivers/tixds510sec_ap.xml" id="drivers" xml="tixds510sec_ap.xml" xmlpath="drivers"/>
|
||||||
|
|
||||||
<property Type="choicelist" Value="1" id="The JTAG TCLK Frequency (MHz)">
|
<property Type="choicelist" Value="1" id="The JTAG TCLK Frequency (MHz)">
|
||||||
|
|
||||||
<choice Name="Fixed with user specified value" value="SPECIFIC">
|
<choice Name="Fixed with user specified value" value="SPECIFIC">
|
||||||
|
|
||||||
<property Type="stringfield" Value="1MHz" id="-- Enter a value from 100.0kHz to 2.5MHz"/>
|
<property Type="stringfield" Value="1MHz" id="-- Enter a value from 100.0kHz to 2.5MHz"/>
|
||||||
|
|
||||||
</choice>
|
</choice>
|
||||||
|
|
||||||
</property>
|
</property>
|
||||||
|
|
||||||
<property Type="choicelist" Value="2" id="SWD Mode Settings">
|
<property Type="choicelist" Value="2" id="SWD Mode Settings">
|
||||||
|
|
||||||
<choice Name="SWD Mode - Aux COM port is target TDO pin" value="nothing"/>
|
<choice Name="SWD Mode - Aux COM port is target TDO pin" value="nothing"/>
|
||||||
|
|
||||||
</property>
|
</property>
|
||||||
|
|
||||||
<platform XML_version="1.2" id="platform_0">
|
<platform XML_version="1.2" id="platform_0">
|
||||||
|
|
||||||
<instance XML_version="1.2" desc="MSPM0G3507_0" href="devices/MSPM0G3507.xml" id="MSPM0G3507_0" xml="MSPM0G3507.xml" xmlpath="devices"/>
|
<instance XML_version="1.2" desc="MSPM0G3507_0" href="devices/MSPM0G3507.xml" id="MSPM0G3507_0" xml="MSPM0G3507.xml" xmlpath="devices"/>
|
||||||
|
|
||||||
</platform>
|
</platform>
|
||||||
|
|
||||||
</connection>
|
</connection>
|
||||||
|
|
||||||
</configuration>
|
</configuration>
|
||||||
|
|
||||||
</configurations>
|
</configurations>
|
||||||
|
|
|
||||||
|
|
@ -6,9 +6,13 @@
|
||||||
#include <utils/utils.h>
|
#include <utils/utils.h>
|
||||||
#include "../Generated Codes/ti_msp_config.h"
|
#include "../Generated Codes/ti_msp_config.h"
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
volatile uint32_t systic_Count;
|
volatile uint32_t systic_Count;
|
||||||
volatile uint32_t systic_init_flag =0;
|
volatile uint32_t systic_init_flag =0;
|
||||||
static volatile uint32_t g_u32VrefInitFalg = 0;
|
static volatile uint32_t g_u32VrefInitFalg = 0;
|
||||||
|
//#define tick_PIN_0_PIN (0x00004000)
|
||||||
|
//uint8_t tickmeasurement = 1;
|
||||||
|
|
||||||
static const DL_VREF_Config gVREFConfig = {
|
static const DL_VREF_Config gVREFConfig = {
|
||||||
.vrefEnable = DL_VREF_ENABLE_DISABLE,
|
.vrefEnable = DL_VREF_ENABLE_DISABLE,
|
||||||
|
|
@ -90,11 +94,11 @@ static const DL_SYSCTL_SYSPLLConfig gSYSPLLConfig = {
|
||||||
.rDivClk1 = 0,
|
.rDivClk1 = 0,
|
||||||
.rDivClk0 = 0,
|
.rDivClk0 = 0,
|
||||||
.enableCLK2x = DL_SYSCTL_SYSPLL_CLK2X_DISABLE,
|
.enableCLK2x = DL_SYSCTL_SYSPLL_CLK2X_DISABLE,
|
||||||
.enableCLK1 = DL_SYSCTL_SYSPLL_CLK1_ENABLE,
|
.enableCLK1 = DL_SYSCTL_SYSPLL_CLK1_DISABLE,
|
||||||
.enableCLK0 = DL_SYSCTL_SYSPLL_CLK0_ENABLE,
|
.enableCLK0 = DL_SYSCTL_SYSPLL_CLK0_ENABLE,
|
||||||
.sysPLLMCLK = DL_SYSCTL_SYSPLL_MCLK_CLK0,
|
.sysPLLMCLK = DL_SYSCTL_SYSPLL_MCLK_CLK0,
|
||||||
.sysPLLRef = DL_SYSCTL_SYSPLL_REF_HFCLK,
|
.sysPLLRef = DL_SYSCTL_SYSPLL_REF_HFCLK,
|
||||||
.qDiv = 3,
|
.qDiv = 5,
|
||||||
.pDiv = DL_SYSCTL_SYSPLL_PDIV_1
|
.pDiv = DL_SYSCTL_SYSPLL_PDIV_1
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
@ -213,6 +217,17 @@ xCoreStatus_t xMCAL_SYSCTL_INIT(uint8_t u8CLK_SRC,uint8_t u8LP_MODE)
|
||||||
void SysTick_Handler(void)
|
void SysTick_Handler(void)
|
||||||
{
|
{
|
||||||
i32TickCnt++;
|
i32TickCnt++;
|
||||||
|
// if(tickmeasurement)
|
||||||
|
// {
|
||||||
|
// DL_GPIO_clearPins(GPIOB, tick_PIN_0_PIN);
|
||||||
|
// tickmeasurement = 0;
|
||||||
|
// }
|
||||||
|
// else
|
||||||
|
// {
|
||||||
|
// DL_GPIO_setPins(GPIOB, tick_PIN_0_PIN);
|
||||||
|
// tickmeasurement = 1;
|
||||||
|
// }
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -235,8 +250,7 @@ void vMCAL_DelayTicks(int i32Delay_ms)
|
||||||
void xMCAL_McuInit()
|
void xMCAL_McuInit()
|
||||||
{
|
{
|
||||||
SYSCFG_DL_initPower();
|
SYSCFG_DL_initPower();
|
||||||
DL_UART_Main_reset(UART1);
|
|
||||||
DL_UART_Main_enablePower(UART1);
|
|
||||||
SYSCFG_DL_GPIO_init();
|
SYSCFG_DL_GPIO_init();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -34,6 +34,13 @@ typedef enum
|
||||||
#define SYSOSC 4
|
#define SYSOSC 4
|
||||||
#define SLEEP0 6
|
#define SLEEP0 6
|
||||||
|
|
||||||
|
// UART_PIN_SELECTION values:
|
||||||
|
// 1 - Basil Battery Smart
|
||||||
|
// 2 - Basil
|
||||||
|
// 3 - Battery Swapping Station
|
||||||
|
#define UART_PIN_SELECTION 2 // Set the desired UART configuration here
|
||||||
|
|
||||||
|
|
||||||
volatile int i32TickCnt;
|
volatile int i32TickCnt;
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -75,7 +82,7 @@ typedef enum
|
||||||
typedef enum
|
typedef enum
|
||||||
{
|
{
|
||||||
/*SysTick Period Options*/
|
/*SysTick Period Options*/
|
||||||
Period_1ms = 48000, /*!< sets period of SysTick to 1ms @48Mhz*/
|
Period_1ms = 72000, /*!< sets period of SysTick to 1ms @48Mhz*/
|
||||||
}xTicks_t;
|
}xTicks_t;
|
||||||
|
|
||||||
typedef enum
|
typedef enum
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue