update headers
This commit is contained in:
194
.cproject.bak
194
.cproject.bak
@ -1,194 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
|
||||||
<?fileVersion 4.0.0?><cproject storage_type_id="org.eclipse.cdt.core.XmlProjectDescriptionStorage">
|
|
||||||
<storageModule moduleId="org.eclipse.cdt.core.settings">
|
|
||||||
<cconfiguration id="com.st.stm32cube.ide.mcu.gnu.managedbuild.config.exe.debug.1259310335">
|
|
||||||
<storageModule buildSystemId="org.eclipse.cdt.managedbuilder.core.configurationDataProvider" id="com.st.stm32cube.ide.mcu.gnu.managedbuild.config.exe.debug.1259310335" moduleId="org.eclipse.cdt.core.settings" name="Debug">
|
|
||||||
<externalSettings/>
|
|
||||||
<extensions>
|
|
||||||
<extension id="org.eclipse.cdt.core.ELF" point="org.eclipse.cdt.core.BinaryParser"/>
|
|
||||||
<extension id="org.eclipse.cdt.core.GASErrorParser" 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.GLDErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
|
|
||||||
<extension id="org.eclipse.cdt.core.CWDLocator" point="org.eclipse.cdt.core.ErrorParser"/>
|
|
||||||
<extension id="org.eclipse.cdt.core.GCCErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
|
|
||||||
</extensions>
|
|
||||||
</storageModule>
|
|
||||||
<storageModule moduleId="cdtBuildSystem" version="4.0.0">
|
|
||||||
<configuration artifactExtension="elf" artifactName="${ProjName}" buildArtefactType="org.eclipse.cdt.build.core.buildArtefactType.exe" buildProperties="org.eclipse.cdt.build.core.buildArtefactType=org.eclipse.cdt.build.core.buildArtefactType.exe,org.eclipse.cdt.build.core.buildType=org.eclipse.cdt.build.core.buildType.debug" cleanCommand="rm -rf" description="" id="com.st.stm32cube.ide.mcu.gnu.managedbuild.config.exe.debug.1259310335" name="Debug" parent="com.st.stm32cube.ide.mcu.gnu.managedbuild.config.exe.debug">
|
|
||||||
<folderInfo id="com.st.stm32cube.ide.mcu.gnu.managedbuild.config.exe.debug.1259310335." name="/" resourcePath="">
|
|
||||||
<toolChain id="com.st.stm32cube.ide.mcu.gnu.managedbuild.toolchain.exe.debug.818023230" name="MCU ARM GCC" superClass="com.st.stm32cube.ide.mcu.gnu.managedbuild.toolchain.exe.debug">
|
|
||||||
<option id="com.st.stm32cube.ide.mcu.gnu.managedbuild.option.target_mcu.939933267" name="MCU" superClass="com.st.stm32cube.ide.mcu.gnu.managedbuild.option.target_mcu" useByScannerDiscovery="true" value="STM32L432KBUx" valueType="string"/>
|
|
||||||
<option id="com.st.stm32cube.ide.mcu.gnu.managedbuild.option.target_cpuid.1051438551" name="CPU" superClass="com.st.stm32cube.ide.mcu.gnu.managedbuild.option.target_cpuid" useByScannerDiscovery="false" value="0" valueType="string"/>
|
|
||||||
<option id="com.st.stm32cube.ide.mcu.gnu.managedbuild.option.target_coreid.478405131" name="Core" superClass="com.st.stm32cube.ide.mcu.gnu.managedbuild.option.target_coreid" useByScannerDiscovery="false" value="0" valueType="string"/>
|
|
||||||
<option id="com.st.stm32cube.ide.mcu.gnu.managedbuild.option.fpu.1109304080" name="Floating-point unit" superClass="com.st.stm32cube.ide.mcu.gnu.managedbuild.option.fpu" useByScannerDiscovery="true" value="com.st.stm32cube.ide.mcu.gnu.managedbuild.option.fpu.value.fpv4-sp-d16" valueType="enumerated"/>
|
|
||||||
<option id="com.st.stm32cube.ide.mcu.gnu.managedbuild.option.floatabi.1294915403" name="Floating-point ABI" superClass="com.st.stm32cube.ide.mcu.gnu.managedbuild.option.floatabi" useByScannerDiscovery="true" value="com.st.stm32cube.ide.mcu.gnu.managedbuild.option.floatabi.value.hard" valueType="enumerated"/>
|
|
||||||
<option id="com.st.stm32cube.ide.mcu.gnu.managedbuild.option.target_board.1022516520" name="Board" superClass="com.st.stm32cube.ide.mcu.gnu.managedbuild.option.target_board" useByScannerDiscovery="false" value="genericBoard" valueType="string"/>
|
|
||||||
<option id="com.st.stm32cube.ide.mcu.gnu.managedbuild.option.defaults.791609738" name="Defaults" superClass="com.st.stm32cube.ide.mcu.gnu.managedbuild.option.defaults" useByScannerDiscovery="false" value="com.st.stm32cube.ide.common.services.build.inputs.revA.1.0.5 || Debug || true || Executable || com.st.stm32cube.ide.mcu.gnu.managedbuild.option.toolchain.value.workspace || STM32L432KBUx || 0 || 0 || arm-none-eabi- || ${gnu_tools_for_stm32_compiler_path} || ../Middlewares/Third_Party/FreeRTOS/Source/include | ../Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM4F | ../Drivers/CMSIS/Include | ../Core/Inc | ../Drivers/CMSIS/Device/ST/STM32L4xx/Include | ../Drivers/STM32L4xx_HAL_Driver/Inc | ../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS_V2 | ../Drivers/STM32L4xx_HAL_Driver/Inc/Legacy || || || USE_HAL_DRIVER | STM32L432xx || || Drivers | Core/Startup | Middlewares | Core || || || ${workspace_loc:/${ProjName}/STM32L432KBUX_FLASH.ld} || true || NonSecure || || secure_nsclib.o || || None || " valueType="string"/>
|
|
||||||
<targetPlatform archList="all" binaryParser="org.eclipse.cdt.core.ELF" id="com.st.stm32cube.ide.mcu.gnu.managedbuild.targetplatform.99642332" isAbstract="false" osList="all" superClass="com.st.stm32cube.ide.mcu.gnu.managedbuild.targetplatform"/>
|
|
||||||
<builder buildPath="${workspace_loc:/PeltierControllerV3}/Debug" id="com.st.stm32cube.ide.mcu.gnu.managedbuild.builder.1730883429" keepEnvironmentInBuildfile="false" managedBuildOn="true" name="Gnu Make Builder" parallelBuildOn="true" parallelizationNumber="optimal" superClass="com.st.stm32cube.ide.mcu.gnu.managedbuild.builder"/>
|
|
||||||
<tool id="com.st.stm32cube.ide.mcu.gnu.managedbuild.tool.assembler.607211186" name="MCU GCC Assembler" superClass="com.st.stm32cube.ide.mcu.gnu.managedbuild.tool.assembler">
|
|
||||||
<option id="com.st.stm32cube.ide.mcu.gnu.managedbuild.tool.assembler.option.debuglevel.44842230" name="Debug level" superClass="com.st.stm32cube.ide.mcu.gnu.managedbuild.tool.assembler.option.debuglevel" value="com.st.stm32cube.ide.mcu.gnu.managedbuild.tool.assembler.option.debuglevel.value.g3" valueType="enumerated"/>
|
|
||||||
<option IS_BUILTIN_EMPTY="false" IS_VALUE_EMPTY="false" id="com.st.stm32cube.ide.mcu.gnu.managedbuild.tool.assembler.option.definedsymbols.1761080122" name="Define symbols (-D)" superClass="com.st.stm32cube.ide.mcu.gnu.managedbuild.tool.assembler.option.definedsymbols" valueType="definedSymbols">
|
|
||||||
<listOptionValue builtIn="false" value="DEBUG"/>
|
|
||||||
</option>
|
|
||||||
<inputType id="com.st.stm32cube.ide.mcu.gnu.managedbuild.tool.assembler.input.1559666499" superClass="com.st.stm32cube.ide.mcu.gnu.managedbuild.tool.assembler.input"/>
|
|
||||||
</tool>
|
|
||||||
<tool id="com.st.stm32cube.ide.mcu.gnu.managedbuild.tool.c.compiler.702734708" name="MCU GCC Compiler" superClass="com.st.stm32cube.ide.mcu.gnu.managedbuild.tool.c.compiler">
|
|
||||||
<option id="com.st.stm32cube.ide.mcu.gnu.managedbuild.tool.c.compiler.option.debuglevel.1918265146" name="Debug level" superClass="com.st.stm32cube.ide.mcu.gnu.managedbuild.tool.c.compiler.option.debuglevel" useByScannerDiscovery="false" value="com.st.stm32cube.ide.mcu.gnu.managedbuild.tool.c.compiler.option.debuglevel.value.g3" valueType="enumerated"/>
|
|
||||||
<option id="com.st.stm32cube.ide.mcu.gnu.managedbuild.tool.c.compiler.option.optimization.level.360555616" name="Optimization level" superClass="com.st.stm32cube.ide.mcu.gnu.managedbuild.tool.c.compiler.option.optimization.level" useByScannerDiscovery="false"/>
|
|
||||||
<option IS_BUILTIN_EMPTY="false" IS_VALUE_EMPTY="false" id="com.st.stm32cube.ide.mcu.gnu.managedbuild.tool.c.compiler.option.definedsymbols.1341234284" name="Define symbols (-D)" superClass="com.st.stm32cube.ide.mcu.gnu.managedbuild.tool.c.compiler.option.definedsymbols" useByScannerDiscovery="false" valueType="definedSymbols">
|
|
||||||
<listOptionValue builtIn="false" value="DEBUG"/>
|
|
||||||
<listOptionValue builtIn="false" value="USE_HAL_DRIVER"/>
|
|
||||||
<listOptionValue builtIn="false" value="STM32L432xx"/>
|
|
||||||
</option>
|
|
||||||
<option IS_BUILTIN_EMPTY="false" IS_VALUE_EMPTY="false" id="com.st.stm32cube.ide.mcu.gnu.managedbuild.tool.c.compiler.option.includepaths.1732226655" name="Include paths (-I)" superClass="com.st.stm32cube.ide.mcu.gnu.managedbuild.tool.c.compiler.option.includepaths" useByScannerDiscovery="false" valueType="includePath">
|
|
||||||
<listOptionValue builtIn="false" value="../Core/Inc"/>
|
|
||||||
<listOptionValue builtIn="false" value="../Drivers/STM32L4xx_HAL_Driver/Inc"/>
|
|
||||||
<listOptionValue builtIn="false" value="../Drivers/STM32L4xx_HAL_Driver/Inc/Legacy"/>
|
|
||||||
<listOptionValue builtIn="false" value="../Drivers/CMSIS/Device/ST/STM32L4xx/Include"/>
|
|
||||||
<listOptionValue builtIn="false" value="../Drivers/CMSIS/Include"/>
|
|
||||||
<listOptionValue builtIn="false" value="../Middlewares/Third_Party/FreeRTOS/Source/include"/>
|
|
||||||
<listOptionValue builtIn="false" value="../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS_V2"/>
|
|
||||||
<listOptionValue builtIn="false" value="../Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM4F"/>
|
|
||||||
</option>
|
|
||||||
<option id="com.st.stm32cube.ide.mcu.gnu.managedbuild.tool.c.compiler.option.warnings.all.1624330065" name="Enable all warnings about questionable constructions (-Wall)" superClass="com.st.stm32cube.ide.mcu.gnu.managedbuild.tool.c.compiler.option.warnings.all" useByScannerDiscovery="false" value="false" valueType="boolean"/>
|
|
||||||
<option id="com.st.stm32cube.ide.mcu.gnu.managedbuild.tool.c.compiler.option.warnings.missing_include_dirs.1894082067" name="Warn if a user-supplied include directory does not exist (-Wmissing-include-dirs)" superClass="com.st.stm32cube.ide.mcu.gnu.managedbuild.tool.c.compiler.option.warnings.missing_include_dirs" useByScannerDiscovery="false" value="false" valueType="boolean"/>
|
|
||||||
<option id="com.st.stm32cube.ide.mcu.gnu.managedbuild.tool.c.compiler.option.warnings.w_switch_enum.1450859935" name="Warn if switch is used on an enum type and the switch statement lacks case for some enumerations (-Wswitch-enum)" superClass="com.st.stm32cube.ide.mcu.gnu.managedbuild.tool.c.compiler.option.warnings.w_switch_enum" useByScannerDiscovery="false" value="false" valueType="boolean"/>
|
|
||||||
<option id="com.st.stm32cube.ide.mcu.gnu.managedbuild.tool.c.compiler.option.warnings.conversion.1855701181" name="Warn for implicit conversions (-Wconversion)" superClass="com.st.stm32cube.ide.mcu.gnu.managedbuild.tool.c.compiler.option.warnings.conversion" useByScannerDiscovery="false" value="false" valueType="boolean"/>
|
|
||||||
<inputType id="com.st.stm32cube.ide.mcu.gnu.managedbuild.tool.c.compiler.input.c.161155624" superClass="com.st.stm32cube.ide.mcu.gnu.managedbuild.tool.c.compiler.input.c"/>
|
|
||||||
</tool>
|
|
||||||
<tool id="com.st.stm32cube.ide.mcu.gnu.managedbuild.tool.cpp.compiler.1307621229" name="MCU G++ Compiler" superClass="com.st.stm32cube.ide.mcu.gnu.managedbuild.tool.cpp.compiler">
|
|
||||||
<option id="com.st.stm32cube.ide.mcu.gnu.managedbuild.tool.cpp.compiler.option.debuglevel.1572361378" name="Debug level" superClass="com.st.stm32cube.ide.mcu.gnu.managedbuild.tool.cpp.compiler.option.debuglevel" useByScannerDiscovery="false" value="com.st.stm32cube.ide.mcu.gnu.managedbuild.tool.cpp.compiler.option.debuglevel.value.g3" valueType="enumerated"/>
|
|
||||||
<option id="com.st.stm32cube.ide.mcu.gnu.managedbuild.tool.cpp.compiler.option.optimization.level.1244183603" name="Optimization level" superClass="com.st.stm32cube.ide.mcu.gnu.managedbuild.tool.cpp.compiler.option.optimization.level" useByScannerDiscovery="false"/>
|
|
||||||
</tool>
|
|
||||||
<tool id="com.st.stm32cube.ide.mcu.gnu.managedbuild.tool.c.linker.2014240631" name="MCU GCC Linker" superClass="com.st.stm32cube.ide.mcu.gnu.managedbuild.tool.c.linker">
|
|
||||||
<option id="com.st.stm32cube.ide.mcu.gnu.managedbuild.tool.c.linker.option.script.1255829239" name="Linker Script (-T)" superClass="com.st.stm32cube.ide.mcu.gnu.managedbuild.tool.c.linker.option.script" value="${workspace_loc:/${ProjName}/STM32L432KBUX_FLASH.ld}" valueType="string"/>
|
|
||||||
<inputType id="com.st.stm32cube.ide.mcu.gnu.managedbuild.tool.c.linker.input.548443810" superClass="com.st.stm32cube.ide.mcu.gnu.managedbuild.tool.c.linker.input">
|
|
||||||
<additionalInput kind="additionalinputdependency" paths="$(USER_OBJS)"/>
|
|
||||||
<additionalInput kind="additionalinput" paths="$(LIBS)"/>
|
|
||||||
</inputType>
|
|
||||||
</tool>
|
|
||||||
<tool id="com.st.stm32cube.ide.mcu.gnu.managedbuild.tool.cpp.linker.1471541946" name="MCU G++ Linker" superClass="com.st.stm32cube.ide.mcu.gnu.managedbuild.tool.cpp.linker"/>
|
|
||||||
<tool id="com.st.stm32cube.ide.mcu.gnu.managedbuild.tool.archiver.347655971" name="MCU GCC Archiver" superClass="com.st.stm32cube.ide.mcu.gnu.managedbuild.tool.archiver"/>
|
|
||||||
<tool id="com.st.stm32cube.ide.mcu.gnu.managedbuild.tool.size.757695789" name="MCU Size" superClass="com.st.stm32cube.ide.mcu.gnu.managedbuild.tool.size"/>
|
|
||||||
<tool id="com.st.stm32cube.ide.mcu.gnu.managedbuild.tool.objdump.listfile.203362802" name="MCU Output Converter list file" superClass="com.st.stm32cube.ide.mcu.gnu.managedbuild.tool.objdump.listfile"/>
|
|
||||||
<tool id="com.st.stm32cube.ide.mcu.gnu.managedbuild.tool.objcopy.hex.446248837" name="MCU Output Converter Hex" superClass="com.st.stm32cube.ide.mcu.gnu.managedbuild.tool.objcopy.hex"/>
|
|
||||||
<tool id="com.st.stm32cube.ide.mcu.gnu.managedbuild.tool.objcopy.binary.1349213729" name="MCU Output Converter Binary" superClass="com.st.stm32cube.ide.mcu.gnu.managedbuild.tool.objcopy.binary"/>
|
|
||||||
<tool id="com.st.stm32cube.ide.mcu.gnu.managedbuild.tool.objcopy.verilog.590820934" name="MCU Output Converter Verilog" superClass="com.st.stm32cube.ide.mcu.gnu.managedbuild.tool.objcopy.verilog"/>
|
|
||||||
<tool id="com.st.stm32cube.ide.mcu.gnu.managedbuild.tool.objcopy.srec.315787589" name="MCU Output Converter Motorola S-rec" superClass="com.st.stm32cube.ide.mcu.gnu.managedbuild.tool.objcopy.srec"/>
|
|
||||||
<tool id="com.st.stm32cube.ide.mcu.gnu.managedbuild.tool.objcopy.symbolsrec.1411671294" name="MCU Output Converter Motorola S-rec with symbols" superClass="com.st.stm32cube.ide.mcu.gnu.managedbuild.tool.objcopy.symbolsrec"/>
|
|
||||||
</toolChain>
|
|
||||||
</folderInfo>
|
|
||||||
<sourceEntries>
|
|
||||||
<entry excluding="TMPL_Template.c|Application/RTOS_RealTimeOS.c" flags="VALUE_WORKSPACE_PATH|RESOLVED" kind="sourcePath" name="Core"/>
|
|
||||||
<entry flags="VALUE_WORKSPACE_PATH|RESOLVED" kind="sourcePath" name="Middlewares"/>
|
|
||||||
<entry flags="VALUE_WORKSPACE_PATH|RESOLVED" kind="sourcePath" name="Drivers"/>
|
|
||||||
</sourceEntries>
|
|
||||||
</configuration>
|
|
||||||
</storageModule>
|
|
||||||
<storageModule moduleId="org.eclipse.cdt.core.externalSettings"/>
|
|
||||||
</cconfiguration>
|
|
||||||
<cconfiguration id="com.st.stm32cube.ide.mcu.gnu.managedbuild.config.exe.release.1667936178">
|
|
||||||
<storageModule buildSystemId="org.eclipse.cdt.managedbuilder.core.configurationDataProvider" id="com.st.stm32cube.ide.mcu.gnu.managedbuild.config.exe.release.1667936178" moduleId="org.eclipse.cdt.core.settings" name="Release">
|
|
||||||
<externalSettings/>
|
|
||||||
<extensions>
|
|
||||||
<extension id="org.eclipse.cdt.core.ELF" point="org.eclipse.cdt.core.BinaryParser"/>
|
|
||||||
<extension id="org.eclipse.cdt.core.GASErrorParser" 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.GLDErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
|
|
||||||
<extension id="org.eclipse.cdt.core.CWDLocator" point="org.eclipse.cdt.core.ErrorParser"/>
|
|
||||||
<extension id="org.eclipse.cdt.core.GCCErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
|
|
||||||
</extensions>
|
|
||||||
</storageModule>
|
|
||||||
<storageModule moduleId="cdtBuildSystem" version="4.0.0">
|
|
||||||
<configuration artifactExtension="elf" artifactName="${ProjName}" buildArtefactType="org.eclipse.cdt.build.core.buildArtefactType.exe" buildProperties="org.eclipse.cdt.build.core.buildArtefactType=org.eclipse.cdt.build.core.buildArtefactType.exe,org.eclipse.cdt.build.core.buildType=org.eclipse.cdt.build.core.buildType.release" cleanCommand="rm -rf" description="" id="com.st.stm32cube.ide.mcu.gnu.managedbuild.config.exe.release.1667936178" name="Release" parent="com.st.stm32cube.ide.mcu.gnu.managedbuild.config.exe.release">
|
|
||||||
<folderInfo id="com.st.stm32cube.ide.mcu.gnu.managedbuild.config.exe.release.1667936178." name="/" resourcePath="">
|
|
||||||
<toolChain id="com.st.stm32cube.ide.mcu.gnu.managedbuild.toolchain.exe.release.1159330300" name="MCU ARM GCC" superClass="com.st.stm32cube.ide.mcu.gnu.managedbuild.toolchain.exe.release">
|
|
||||||
<option id="com.st.stm32cube.ide.mcu.gnu.managedbuild.option.target_mcu.92339407" name="MCU" superClass="com.st.stm32cube.ide.mcu.gnu.managedbuild.option.target_mcu" useByScannerDiscovery="true" value="STM32L432KBUx" valueType="string"/>
|
|
||||||
<option id="com.st.stm32cube.ide.mcu.gnu.managedbuild.option.target_cpuid.507242260" name="CPU" superClass="com.st.stm32cube.ide.mcu.gnu.managedbuild.option.target_cpuid" useByScannerDiscovery="false" value="0" valueType="string"/>
|
|
||||||
<option id="com.st.stm32cube.ide.mcu.gnu.managedbuild.option.target_coreid.1043330554" name="Core" superClass="com.st.stm32cube.ide.mcu.gnu.managedbuild.option.target_coreid" useByScannerDiscovery="false" value="0" valueType="string"/>
|
|
||||||
<option id="com.st.stm32cube.ide.mcu.gnu.managedbuild.option.fpu.1642317169" name="Floating-point unit" superClass="com.st.stm32cube.ide.mcu.gnu.managedbuild.option.fpu" useByScannerDiscovery="true" value="com.st.stm32cube.ide.mcu.gnu.managedbuild.option.fpu.value.fpv4-sp-d16" valueType="enumerated"/>
|
|
||||||
<option id="com.st.stm32cube.ide.mcu.gnu.managedbuild.option.floatabi.1541578883" name="Floating-point ABI" superClass="com.st.stm32cube.ide.mcu.gnu.managedbuild.option.floatabi" useByScannerDiscovery="true" value="com.st.stm32cube.ide.mcu.gnu.managedbuild.option.floatabi.value.hard" valueType="enumerated"/>
|
|
||||||
<option id="com.st.stm32cube.ide.mcu.gnu.managedbuild.option.target_board.911683155" name="Board" superClass="com.st.stm32cube.ide.mcu.gnu.managedbuild.option.target_board" useByScannerDiscovery="false" value="genericBoard" valueType="string"/>
|
|
||||||
<option id="com.st.stm32cube.ide.mcu.gnu.managedbuild.option.defaults.2074856630" name="Defaults" superClass="com.st.stm32cube.ide.mcu.gnu.managedbuild.option.defaults" useByScannerDiscovery="false" value="com.st.stm32cube.ide.common.services.build.inputs.revA.1.0.5 || Release || false || Executable || com.st.stm32cube.ide.mcu.gnu.managedbuild.option.toolchain.value.workspace || STM32L432KBUx || 0 || 0 || arm-none-eabi- || ${gnu_tools_for_stm32_compiler_path} || ../Middlewares/Third_Party/FreeRTOS/Source/include | ../Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM4F | ../Drivers/CMSIS/Include | ../Core/Inc | ../Drivers/CMSIS/Device/ST/STM32L4xx/Include | ../Drivers/STM32L4xx_HAL_Driver/Inc | ../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS_V2 | ../Drivers/STM32L4xx_HAL_Driver/Inc/Legacy || || || USE_HAL_DRIVER | STM32L432xx || || Drivers | Core/Startup | Middlewares | Core || || || ${workspace_loc:/${ProjName}/STM32L432KBUX_FLASH.ld} || true || NonSecure || || secure_nsclib.o || || None || " valueType="string"/>
|
|
||||||
<targetPlatform archList="all" binaryParser="org.eclipse.cdt.core.ELF" id="com.st.stm32cube.ide.mcu.gnu.managedbuild.targetplatform.516896504" isAbstract="false" osList="all" superClass="com.st.stm32cube.ide.mcu.gnu.managedbuild.targetplatform"/>
|
|
||||||
<builder buildPath="${workspace_loc:/PeltierControllerV3}/Release" id="com.st.stm32cube.ide.mcu.gnu.managedbuild.builder.1855893823" keepEnvironmentInBuildfile="false" managedBuildOn="true" name="Gnu Make Builder" parallelBuildOn="true" parallelizationNumber="optimal" superClass="com.st.stm32cube.ide.mcu.gnu.managedbuild.builder"/>
|
|
||||||
<tool id="com.st.stm32cube.ide.mcu.gnu.managedbuild.tool.assembler.1650343718" name="MCU GCC Assembler" superClass="com.st.stm32cube.ide.mcu.gnu.managedbuild.tool.assembler">
|
|
||||||
<option id="com.st.stm32cube.ide.mcu.gnu.managedbuild.tool.assembler.option.debuglevel.1957163483" name="Debug level" superClass="com.st.stm32cube.ide.mcu.gnu.managedbuild.tool.assembler.option.debuglevel" value="com.st.stm32cube.ide.mcu.gnu.managedbuild.tool.assembler.option.debuglevel.value.g0" valueType="enumerated"/>
|
|
||||||
<inputType id="com.st.stm32cube.ide.mcu.gnu.managedbuild.tool.assembler.input.535817915" superClass="com.st.stm32cube.ide.mcu.gnu.managedbuild.tool.assembler.input"/>
|
|
||||||
</tool>
|
|
||||||
<tool id="com.st.stm32cube.ide.mcu.gnu.managedbuild.tool.c.compiler.1115791769" name="MCU GCC Compiler" superClass="com.st.stm32cube.ide.mcu.gnu.managedbuild.tool.c.compiler">
|
|
||||||
<option id="com.st.stm32cube.ide.mcu.gnu.managedbuild.tool.c.compiler.option.debuglevel.1449289415" name="Debug level" superClass="com.st.stm32cube.ide.mcu.gnu.managedbuild.tool.c.compiler.option.debuglevel" useByScannerDiscovery="false" value="com.st.stm32cube.ide.mcu.gnu.managedbuild.tool.c.compiler.option.debuglevel.value.g0" valueType="enumerated"/>
|
|
||||||
<option id="com.st.stm32cube.ide.mcu.gnu.managedbuild.tool.c.compiler.option.optimization.level.508607822" name="Optimization level" superClass="com.st.stm32cube.ide.mcu.gnu.managedbuild.tool.c.compiler.option.optimization.level" useByScannerDiscovery="false" value="com.st.stm32cube.ide.mcu.gnu.managedbuild.tool.c.compiler.option.optimization.level.value.os" valueType="enumerated"/>
|
|
||||||
<option IS_BUILTIN_EMPTY="false" IS_VALUE_EMPTY="false" id="com.st.stm32cube.ide.mcu.gnu.managedbuild.tool.c.compiler.option.definedsymbols.1758633550" name="Define symbols (-D)" superClass="com.st.stm32cube.ide.mcu.gnu.managedbuild.tool.c.compiler.option.definedsymbols" useByScannerDiscovery="false" valueType="definedSymbols">
|
|
||||||
<listOptionValue builtIn="false" value="USE_HAL_DRIVER"/>
|
|
||||||
<listOptionValue builtIn="false" value="STM32L432xx"/>
|
|
||||||
</option>
|
|
||||||
<option IS_BUILTIN_EMPTY="false" IS_VALUE_EMPTY="false" id="com.st.stm32cube.ide.mcu.gnu.managedbuild.tool.c.compiler.option.includepaths.1230932925" name="Include paths (-I)" superClass="com.st.stm32cube.ide.mcu.gnu.managedbuild.tool.c.compiler.option.includepaths" useByScannerDiscovery="false" valueType="includePath">
|
|
||||||
<listOptionValue builtIn="false" value="../Core/Inc"/>
|
|
||||||
<listOptionValue builtIn="false" value="../Drivers/STM32L4xx_HAL_Driver/Inc"/>
|
|
||||||
<listOptionValue builtIn="false" value="../Drivers/STM32L4xx_HAL_Driver/Inc/Legacy"/>
|
|
||||||
<listOptionValue builtIn="false" value="../Drivers/CMSIS/Device/ST/STM32L4xx/Include"/>
|
|
||||||
<listOptionValue builtIn="false" value="../Drivers/CMSIS/Include"/>
|
|
||||||
<listOptionValue builtIn="false" value="../Middlewares/Third_Party/FreeRTOS/Source/include"/>
|
|
||||||
<listOptionValue builtIn="false" value="../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS_V2"/>
|
|
||||||
<listOptionValue builtIn="false" value="../Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM4F"/>
|
|
||||||
</option>
|
|
||||||
<inputType id="com.st.stm32cube.ide.mcu.gnu.managedbuild.tool.c.compiler.input.c.2009828223" superClass="com.st.stm32cube.ide.mcu.gnu.managedbuild.tool.c.compiler.input.c"/>
|
|
||||||
</tool>
|
|
||||||
<tool id="com.st.stm32cube.ide.mcu.gnu.managedbuild.tool.cpp.compiler.34256213" name="MCU G++ Compiler" superClass="com.st.stm32cube.ide.mcu.gnu.managedbuild.tool.cpp.compiler">
|
|
||||||
<option id="com.st.stm32cube.ide.mcu.gnu.managedbuild.tool.cpp.compiler.option.debuglevel.674798595" name="Debug level" superClass="com.st.stm32cube.ide.mcu.gnu.managedbuild.tool.cpp.compiler.option.debuglevel" useByScannerDiscovery="false" value="com.st.stm32cube.ide.mcu.gnu.managedbuild.tool.cpp.compiler.option.debuglevel.value.g0" valueType="enumerated"/>
|
|
||||||
<option id="com.st.stm32cube.ide.mcu.gnu.managedbuild.tool.cpp.compiler.option.optimization.level.1839924788" name="Optimization level" superClass="com.st.stm32cube.ide.mcu.gnu.managedbuild.tool.cpp.compiler.option.optimization.level" useByScannerDiscovery="false" value="com.st.stm32cube.ide.mcu.gnu.managedbuild.tool.cpp.compiler.option.optimization.level.value.os" valueType="enumerated"/>
|
|
||||||
</tool>
|
|
||||||
<tool id="com.st.stm32cube.ide.mcu.gnu.managedbuild.tool.c.linker.709160812" name="MCU GCC Linker" superClass="com.st.stm32cube.ide.mcu.gnu.managedbuild.tool.c.linker">
|
|
||||||
<option id="com.st.stm32cube.ide.mcu.gnu.managedbuild.tool.c.linker.option.script.410477451" name="Linker Script (-T)" superClass="com.st.stm32cube.ide.mcu.gnu.managedbuild.tool.c.linker.option.script" value="${workspace_loc:/${ProjName}/STM32L432KBUX_FLASH.ld}" valueType="string"/>
|
|
||||||
<inputType id="com.st.stm32cube.ide.mcu.gnu.managedbuild.tool.c.linker.input.868136657" superClass="com.st.stm32cube.ide.mcu.gnu.managedbuild.tool.c.linker.input">
|
|
||||||
<additionalInput kind="additionalinputdependency" paths="$(USER_OBJS)"/>
|
|
||||||
<additionalInput kind="additionalinput" paths="$(LIBS)"/>
|
|
||||||
</inputType>
|
|
||||||
</tool>
|
|
||||||
<tool id="com.st.stm32cube.ide.mcu.gnu.managedbuild.tool.cpp.linker.1486313324" name="MCU G++ Linker" superClass="com.st.stm32cube.ide.mcu.gnu.managedbuild.tool.cpp.linker"/>
|
|
||||||
<tool id="com.st.stm32cube.ide.mcu.gnu.managedbuild.tool.archiver.1906804106" name="MCU GCC Archiver" superClass="com.st.stm32cube.ide.mcu.gnu.managedbuild.tool.archiver"/>
|
|
||||||
<tool id="com.st.stm32cube.ide.mcu.gnu.managedbuild.tool.size.156012368" name="MCU Size" superClass="com.st.stm32cube.ide.mcu.gnu.managedbuild.tool.size"/>
|
|
||||||
<tool id="com.st.stm32cube.ide.mcu.gnu.managedbuild.tool.objdump.listfile.1699404560" name="MCU Output Converter list file" superClass="com.st.stm32cube.ide.mcu.gnu.managedbuild.tool.objdump.listfile"/>
|
|
||||||
<tool id="com.st.stm32cube.ide.mcu.gnu.managedbuild.tool.objcopy.hex.1649283642" name="MCU Output Converter Hex" superClass="com.st.stm32cube.ide.mcu.gnu.managedbuild.tool.objcopy.hex"/>
|
|
||||||
<tool id="com.st.stm32cube.ide.mcu.gnu.managedbuild.tool.objcopy.binary.1680942954" name="MCU Output Converter Binary" superClass="com.st.stm32cube.ide.mcu.gnu.managedbuild.tool.objcopy.binary"/>
|
|
||||||
<tool id="com.st.stm32cube.ide.mcu.gnu.managedbuild.tool.objcopy.verilog.1110227807" name="MCU Output Converter Verilog" superClass="com.st.stm32cube.ide.mcu.gnu.managedbuild.tool.objcopy.verilog"/>
|
|
||||||
<tool id="com.st.stm32cube.ide.mcu.gnu.managedbuild.tool.objcopy.srec.472940315" name="MCU Output Converter Motorola S-rec" superClass="com.st.stm32cube.ide.mcu.gnu.managedbuild.tool.objcopy.srec"/>
|
|
||||||
<tool id="com.st.stm32cube.ide.mcu.gnu.managedbuild.tool.objcopy.symbolsrec.470148854" name="MCU Output Converter Motorola S-rec with symbols" superClass="com.st.stm32cube.ide.mcu.gnu.managedbuild.tool.objcopy.symbolsrec"/>
|
|
||||||
</toolChain>
|
|
||||||
</folderInfo>
|
|
||||||
<sourceEntries>
|
|
||||||
<entry excluding="TMPL_Template.c" flags="VALUE_WORKSPACE_PATH|RESOLVED" kind="sourcePath" name="Core"/>
|
|
||||||
<entry flags="VALUE_WORKSPACE_PATH|RESOLVED" kind="sourcePath" name="Middlewares"/>
|
|
||||||
<entry flags="VALUE_WORKSPACE_PATH|RESOLVED" kind="sourcePath" name="Drivers"/>
|
|
||||||
</sourceEntries>
|
|
||||||
</configuration>
|
|
||||||
</storageModule>
|
|
||||||
<storageModule moduleId="org.eclipse.cdt.core.externalSettings"/>
|
|
||||||
</cconfiguration>
|
|
||||||
</storageModule>
|
|
||||||
<storageModule moduleId="org.eclipse.cdt.core.pathentry"/>
|
|
||||||
<storageModule moduleId="cdtBuildSystem" version="4.0.0">
|
|
||||||
<project id="PeltierControllerV3.null.1699742517" name="PeltierControllerV3"/>
|
|
||||||
</storageModule>
|
|
||||||
<storageModule moduleId="org.eclipse.cdt.core.LanguageSettingsProviders"/>
|
|
||||||
<storageModule moduleId="org.eclipse.cdt.make.core.buildtargets"/>
|
|
||||||
<storageModule moduleId="scannerConfiguration">
|
|
||||||
<autodiscovery enabled="true" problemReportingEnabled="true" selectedProfileId=""/>
|
|
||||||
<scannerConfigBuildInfo instanceId="com.st.stm32cube.ide.mcu.gnu.managedbuild.config.exe.release.1667936178;com.st.stm32cube.ide.mcu.gnu.managedbuild.config.exe.release.1667936178.;com.st.stm32cube.ide.mcu.gnu.managedbuild.tool.c.compiler.1115791769;com.st.stm32cube.ide.mcu.gnu.managedbuild.tool.c.compiler.input.c.2009828223">
|
|
||||||
<autodiscovery enabled="false" problemReportingEnabled="true" selectedProfileId=""/>
|
|
||||||
</scannerConfigBuildInfo>
|
|
||||||
<scannerConfigBuildInfo instanceId="com.st.stm32cube.ide.mcu.gnu.managedbuild.config.exe.debug.1259310335;com.st.stm32cube.ide.mcu.gnu.managedbuild.config.exe.debug.1259310335.;com.st.stm32cube.ide.mcu.gnu.managedbuild.tool.c.compiler.702734708;com.st.stm32cube.ide.mcu.gnu.managedbuild.tool.c.compiler.input.c.161155624">
|
|
||||||
<autodiscovery enabled="false" problemReportingEnabled="true" selectedProfileId=""/>
|
|
||||||
</scannerConfigBuildInfo>
|
|
||||||
</storageModule>
|
|
||||||
<storageModule moduleId="refreshScope" versionNumber="2">
|
|
||||||
<configuration configurationName="Debug">
|
|
||||||
<resource resourceType="PROJECT" workspacePath="/PeltierControllerV3"/>
|
|
||||||
</configuration>
|
|
||||||
<configuration configurationName="Release">
|
|
||||||
<resource resourceType="PROJECT" workspacePath="/PeltierControllerV3"/>
|
|
||||||
</configuration>
|
|
||||||
</storageModule>
|
|
||||||
</cproject>
|
|
32
.project
32
.project
@ -1,32 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<projectDescription>
|
|
||||||
<name>PeltierControllerV3</name>
|
|
||||||
<comment></comment>
|
|
||||||
<projects>
|
|
||||||
</projects>
|
|
||||||
<buildSpec>
|
|
||||||
<buildCommand>
|
|
||||||
<name>org.eclipse.cdt.managedbuilder.core.genmakebuilder</name>
|
|
||||||
<triggers>clean,full,incremental,</triggers>
|
|
||||||
<arguments>
|
|
||||||
</arguments>
|
|
||||||
</buildCommand>
|
|
||||||
<buildCommand>
|
|
||||||
<name>org.eclipse.cdt.managedbuilder.core.ScannerConfigBuilder</name>
|
|
||||||
<triggers>full,incremental,</triggers>
|
|
||||||
<arguments>
|
|
||||||
</arguments>
|
|
||||||
</buildCommand>
|
|
||||||
</buildSpec>
|
|
||||||
<natures>
|
|
||||||
<nature>com.st.stm32cube.ide.mcu.MCUProjectNature</nature>
|
|
||||||
<nature>com.st.stm32cube.ide.mcu.MCUCubeProjectNature</nature>
|
|
||||||
<nature>org.eclipse.cdt.core.cnature</nature>
|
|
||||||
<nature>com.st.stm32cube.ide.mcu.MCUCubeIdeServicesRevAev2ProjectNature</nature>
|
|
||||||
<nature>com.st.stm32cube.ide.mcu.MCUAdvancedStructureProjectNature</nature>
|
|
||||||
<nature>com.st.stm32cube.ide.mcu.MCUSingleCpuProjectNature</nature>
|
|
||||||
<nature>com.st.stm32cube.ide.mcu.MCURootProjectNature</nature>
|
|
||||||
<nature>org.eclipse.cdt.managedbuilder.core.managedBuildNature</nature>
|
|
||||||
<nature>org.eclipse.cdt.managedbuilder.core.ScannerConfigNature</nature>
|
|
||||||
</natures>
|
|
||||||
</projectDescription>
|
|
14
.vscode/launch.json
vendored
14
.vscode/launch.json
vendored
@ -13,6 +13,20 @@
|
|||||||
"configFiles": [
|
"configFiles": [
|
||||||
"openocd.cfg"
|
"openocd.cfg"
|
||||||
]
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"showDevDebugOutput": "parsed",
|
||||||
|
"cwd": "${workspaceRoot}",
|
||||||
|
"executable": "./build/PeltierControllerV3.elf",
|
||||||
|
"name": "Attach STM32",
|
||||||
|
"request": "attach",
|
||||||
|
"type": "cortex-debug",
|
||||||
|
"servertype": "openocd",
|
||||||
|
"preLaunchTask": "Build STM",
|
||||||
|
"device": "stm32l432",
|
||||||
|
"configFiles": [
|
||||||
|
"openocd.cfg"
|
||||||
|
]
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
6
.vscode/settings.json
vendored
6
.vscode/settings.json
vendored
@ -1,8 +1,10 @@
|
|||||||
{
|
{
|
||||||
"C_Cpp.errorSquiggles": "Disabled",
|
"C_Cpp.errorSquiggles": "Disabled",
|
||||||
"files.associations": {
|
"files.associations": {
|
||||||
"peco_peltiercontroller.h": "c"
|
"peco_peltiercontroller.h": "c",
|
||||||
},
|
"cmsis_os2.h": "c",
|
||||||
|
"varh_variablehandler.h": "c"
|
||||||
|
},
|
||||||
"cortex-debug.armToolchainPath": "c:\\Users\\pique_n\\AppData\\Roaming\\Code\\User\\globalStorage\\bmd.stm32-for-vscode\\@xpack-dev-tools\\arm-none-eabi-gcc\\10.3.1-2.3.1\\.content\\bin",
|
"cortex-debug.armToolchainPath": "c:\\Users\\pique_n\\AppData\\Roaming\\Code\\User\\globalStorage\\bmd.stm32-for-vscode\\@xpack-dev-tools\\arm-none-eabi-gcc\\10.3.1-2.3.1\\.content\\bin",
|
||||||
"cortex-debug.openocdPath": "C:\\USERS\\PIQUE_N\\APPDATA\\ROAMING\\CODE\\USER\\GLOBALSTORAGE\\BMD.STM32-FOR-VSCODE\\@XPACK-DEV-TOOLS\\OPENOCD\\0.11.0-2.1\\.CONTENT\\BIN\\OPENOCD.EXE",
|
"cortex-debug.openocdPath": "C:\\USERS\\PIQUE_N\\APPDATA\\ROAMING\\CODE\\USER\\GLOBALSTORAGE\\BMD.STM32-FOR-VSCODE\\@XPACK-DEV-TOOLS\\OPENOCD\\0.11.0-2.1\\.CONTENT\\BIN\\OPENOCD.EXE",
|
||||||
"cortex-debug.variableUseNaturalFormat": true
|
"cortex-debug.variableUseNaturalFormat": true
|
||||||
|
@ -31,7 +31,6 @@
|
|||||||
//=================================================================================================
|
//=================================================================================================
|
||||||
|
|
||||||
#include "../SDEF_StandardDefinitions.h"
|
#include "../SDEF_StandardDefinitions.h"
|
||||||
#include "../PDEF_ProjectDefinitions.h"
|
|
||||||
#include "INIT_Initialization.h"
|
#include "INIT_Initialization.h"
|
||||||
|
|
||||||
// Application
|
// Application
|
||||||
@ -161,23 +160,20 @@ PRIVATE VOID vTask( PVOID arg )
|
|||||||
//boOK &= USFL_boInitializeModule();
|
//boOK &= USFL_boInitializeModule();
|
||||||
boOK &= VARH_boInitializeModule();
|
boOK &= VARH_boInitializeModule();
|
||||||
|
|
||||||
boOK &= DIPO_boInitializeModule();
|
boOK &= DIPO_boInitializeModule();
|
||||||
|
|
||||||
boOK &= ANPI_boInitializeModule();
|
boOK &= ANPI_boInitializeModule();
|
||||||
boOK &= ANPO_boInitializeModule();
|
boOK &= ANPO_boInitializeModule();
|
||||||
boOK &= SPID_boInitializeModule();
|
boOK &= SPID_boInitializeModule();
|
||||||
|
|
||||||
boOK &= ADCD_boInitializeModule();
|
boOK &= ADCD_boInitializeModule();
|
||||||
boOK &= TEMP_boInitializeModule();
|
boOK &= TEMP_boInitializeModule();
|
||||||
boOK &= PECO_boInitializeModule();
|
|
||||||
boOK &= CAND_boInitializeModule();
|
boOK &= CAND_boInitializeModule();
|
||||||
|
|
||||||
|
|
||||||
|
boOK &= PECO_boInitializeModule();
|
||||||
boOK &= MAIN_boInitializeModule();
|
boOK &= MAIN_boInitializeModule();
|
||||||
|
|
||||||
if( !boOK ){
|
if( !boOK ){
|
||||||
osKernelLock(); // lock kernel to prevent task switch
|
osKernelLock(); // lock kernel to prevent task switch
|
||||||
while( 1 ){
|
while( 1 ){ // Toggle Error LED fast
|
||||||
DIPO_vToggleOutput( DIPO_eLED );
|
DIPO_vToggleOutput( DIPO_eLED );
|
||||||
DELAY_MS( 100 );
|
DELAY_MS( 100 );
|
||||||
}
|
}
|
||||||
|
@ -30,17 +30,16 @@
|
|||||||
// Description: List of required include files.
|
// Description: List of required include files.
|
||||||
//=================================================================================================
|
//=================================================================================================
|
||||||
|
|
||||||
#include "../PDEF_ProjectDefinitions.h"
|
|
||||||
#include "MAIN_MainApplication.h"
|
#include "MAIN_MainApplication.h"
|
||||||
|
|
||||||
// Application
|
// Application
|
||||||
#include "VARH_VariableHandler.h"
|
#include "VARH_VariableHandler.h"
|
||||||
|
#include "PECO_PeltierController.h"
|
||||||
|
|
||||||
// Drivers
|
// Drivers
|
||||||
#include "../Drivers/TEMP_Temperature.h"
|
#include "../Drivers/TEMP_Temperature.h"
|
||||||
#include "../Drivers/DIPO_DigitalPorts.h"
|
#include "../Drivers/DIPO_DigitalPorts.h"
|
||||||
#include "../Drivers/CAND_CanDriver.h"
|
#include "../Drivers/CAND_CanDriver.h"
|
||||||
#include "PECO_PeltierController.h"
|
|
||||||
#include "../Drivers/ANPI_AnalogPortsIn.h"
|
#include "../Drivers/ANPI_AnalogPortsIn.h"
|
||||||
|
|
||||||
// Toolbox
|
// Toolbox
|
||||||
@ -126,12 +125,11 @@ LOCAL CONST osThreadAttr_t stTaskAttribute =
|
|||||||
0, // size of provided memory for control block
|
0, // size of provided memory for control block
|
||||||
NULL, // memory for stack
|
NULL, // memory for stack
|
||||||
1024, // size of stack
|
1024, // size of stack
|
||||||
osPriorityNormal, // initial thread priority (default: osPriorityNormal)
|
osPriorityAboveNormal1, // initial thread priority (default: osPriorityNormal)
|
||||||
0, // TrustZone module identifier
|
0, // TrustZone module identifier
|
||||||
0, // reserved (must be 0)
|
0, // reserved (must be 0)
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
LOCAL CONST osMessageQueueAttr_t stCANRxMsgQueueAttribute =
|
LOCAL CONST osMessageQueueAttr_t stCANRxMsgQueueAttribute =
|
||||||
{
|
{
|
||||||
"MAIN_CAN_Rx_Queue", // name of the message queue
|
"MAIN_CAN_Rx_Queue", // name of the message queue
|
||||||
@ -142,8 +140,6 @@ LOCAL CONST osMessageQueueAttr_t stCANRxMsgQueueAttribute =
|
|||||||
0, // size of provided memory for data storage
|
0, // size of provided memory for data storage
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
LOCAL CONST osEventFlagsAttr_t stEventAttribute =
|
LOCAL CONST osEventFlagsAttr_t stEventAttribute =
|
||||||
{
|
{
|
||||||
"MAIN_Event_Flags", // name of the event flags
|
"MAIN_Event_Flags", // name of the event flags
|
||||||
@ -232,34 +228,35 @@ PRIVATE VOID vTask( PVOID arg )
|
|||||||
while( TRUE )
|
while( TRUE )
|
||||||
{
|
{
|
||||||
|
|
||||||
u32Flags = osEventFlagsWait( m_pstEventID, EVENT_FLAGS_ALL, osFlagsWaitAny, osWaitForever );
|
u32Flags = osEventFlagsWait( m_pstEventID, EVENT_FLAGS_ALL, osFlagsWaitAny, osWaitForever ); // wait until flags getting triggered
|
||||||
|
|
||||||
if( u32Flags & EVENT_NEW_MESSAGE ) {
|
if( u32Flags & EVENT_NEW_MESSAGE ) { // New message from CAN
|
||||||
|
|
||||||
CAND_Message stMessage;
|
CAND_Message stMessage;
|
||||||
osMessageQueueGet( m_pstCANRxMsgQueueID, &stMessage, NULL, 0 );
|
osMessageQueueGet( m_pstCANRxMsgQueueID, &stMessage, NULL, 0 ); // get message from queue
|
||||||
|
|
||||||
U8 u8Register = stMessage.au8Data[0];
|
U8 u8Register = stMessage.au8Data[0];
|
||||||
U8 u8Type = stMessage.u8Type;
|
U8 u8Type = stMessage.u8Type;
|
||||||
|
|
||||||
if( u8Type == MESSAGE_TYPE_READ ){
|
if( u8Type == MESSAGE_TYPE_READ ){ // Message type read
|
||||||
if( u8Register >= VARH_eNumberOfVariables ){
|
if( u8Register >= VARH_eNumberOfVariables ){ // check register
|
||||||
au8Buffer[0] = 0xFF;
|
// send register not found
|
||||||
|
au8Buffer[0] = 0xFF;
|
||||||
CAND_boSendMessage( au8Buffer, 1 );
|
CAND_boSendMessage( au8Buffer, 1 );
|
||||||
} else {
|
} else {
|
||||||
VARH_UVariable uVariable = VARH_uGetVariableData(u8Register);
|
VARH_UVariable uVariable = VARH_uGetVariableData(u8Register); // get data
|
||||||
au8Buffer[0] = u8Register;
|
au8Buffer[0] = u8Register;
|
||||||
UTIL_vMemCopy(&uVariable, &au8Buffer[1], 4);
|
UTIL_vMemCopy(&uVariable, &au8Buffer[1], 4); // copy data in buffer
|
||||||
|
|
||||||
CAND_boSendMessage( au8Buffer, 5 );
|
CAND_boSendMessage( au8Buffer, 5 );
|
||||||
}
|
}
|
||||||
|
|
||||||
} else if( u8Type == MESSAGE_TYPE_WRITE ){
|
} else if( u8Type == MESSAGE_TYPE_WRITE ){ // Message type write
|
||||||
VARH_UVariable uData;
|
VARH_UVariable uData;
|
||||||
UTIL_vMemCopy(&stMessage.au8Data[1], &uData, 4);
|
UTIL_vMemCopy(&stMessage.au8Data[1], &uData, 4);
|
||||||
|
|
||||||
VARH_vSetVariableData(u8Register, uData);
|
VARH_vSetVariableData(u8Register, uData);
|
||||||
} else if( u8Type == MESSAGE_TYPE_COMMAND ){
|
} else if( u8Type == MESSAGE_TYPE_COMMAND ){ // Message type command
|
||||||
|
|
||||||
switch (u8Register)
|
switch (u8Register)
|
||||||
{
|
{
|
||||||
@ -271,7 +268,7 @@ PRIVATE VOID vTask( PVOID arg )
|
|||||||
PECO_Enable( FALSE );
|
PECO_Enable( FALSE );
|
||||||
break;
|
break;
|
||||||
case COMMAND_WATCHDOG:
|
case COMMAND_WATCHDOG:
|
||||||
osTimerStart( m_pstWatchdogTimer, WATCHDOG )
|
osTimerStart( m_pstWatchdogTimer, WATCHDOG );
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
|
@ -30,7 +30,6 @@
|
|||||||
// Description: List of required include files.
|
// Description: List of required include files.
|
||||||
//=================================================================================================
|
//=================================================================================================
|
||||||
|
|
||||||
#include "../PDEF_ProjectDefinitions.h"
|
|
||||||
#include "PECO_PeltierController.h"
|
#include "PECO_PeltierController.h"
|
||||||
|
|
||||||
//Application
|
//Application
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
//-------------------------------------------------------------------------------------------------
|
//-------------------------------------------------------------------------------------------------
|
||||||
//
|
//
|
||||||
// Project: Peltier Controller V2
|
// Project: Peltier Controller V2
|
||||||
// Author: Noah Piqu<EFBFBD> (noah.pique@psi.ch)
|
// Author: Noah Piqué (noah.pique@psi.ch)
|
||||||
//
|
//
|
||||||
//-------------------------------------------------------------------------------------------------
|
//-------------------------------------------------------------------------------------------------
|
||||||
//
|
//
|
||||||
|
@ -28,7 +28,6 @@
|
|||||||
// Description: List of required include files.
|
// Description: List of required include files.
|
||||||
//=================================================================================================
|
//=================================================================================================
|
||||||
|
|
||||||
#include "../PDEF_ProjectDefinitions.h"
|
|
||||||
#include "VARH_VariableHandler.h"
|
#include "VARH_VariableHandler.h"
|
||||||
|
|
||||||
// Toolbox
|
// Toolbox
|
||||||
@ -72,7 +71,7 @@ LOCAL osMutexId_t m_pstMutexID = NULL;
|
|||||||
|
|
||||||
LOCAL CONST VARH_StVarInfo m_astVarInfo[VARH_eNumberOfVariables] =
|
LOCAL CONST VARH_StVarInfo m_astVarInfo[VARH_eNumberOfVariables] =
|
||||||
{
|
{
|
||||||
{ VARH_FLAGINFO_BOOL, (VARH_UVariable)(U32)1, (VARH_UVariable)(U32)0, (VARH_UVariable)(U32)1}, // VARH_eMode
|
{ VARH_FLAGINFO_NONE, (VARH_UVariable)(U32)1, (VARH_UVariable)(U32)0, (VARH_UVariable)(U32)1}, // VARH_eMode
|
||||||
|
|
||||||
{ VARH_FLAGINFO_FLOAT, (VARH_UVariable)0.0f, (VARH_UVariable)-2.0f, (VARH_UVariable)12.0f}, // VARH_eControlVoltage
|
{ VARH_FLAGINFO_FLOAT, (VARH_UVariable)0.0f, (VARH_UVariable)-2.0f, (VARH_UVariable)12.0f}, // VARH_eControlVoltage
|
||||||
|
|
||||||
|
@ -30,7 +30,6 @@
|
|||||||
// Description: List of required include files.
|
// Description: List of required include files.
|
||||||
//=================================================================================================
|
//=================================================================================================
|
||||||
|
|
||||||
#include "../PDEF_ProjectDefinitions.h"
|
|
||||||
#include "ADCD_AdcDriver.h"
|
#include "ADCD_AdcDriver.h"
|
||||||
|
|
||||||
// Drivers
|
// Drivers
|
||||||
|
@ -28,11 +28,8 @@
|
|||||||
// Description: List of required include files.
|
// Description: List of required include files.
|
||||||
//=================================================================================================
|
//=================================================================================================
|
||||||
|
|
||||||
#include "../PDEF_ProjectDefinitions.h"
|
|
||||||
#include "ANPI_AnalogPortsIn.h"
|
#include "ANPI_AnalogPortsIn.h"
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
//Application
|
//Application
|
||||||
#include "../Application/VARH_VariableHandler.h"
|
#include "../Application/VARH_VariableHandler.h"
|
||||||
|
|
||||||
|
@ -30,7 +30,6 @@
|
|||||||
// Description: List of required include files.
|
// Description: List of required include files.
|
||||||
//=================================================================================================
|
//=================================================================================================
|
||||||
|
|
||||||
#include "../PDEF_ProjectDefinitions.h"
|
|
||||||
#include "ANPO_AnalogPortsOut.h"
|
#include "ANPO_AnalogPortsOut.h"
|
||||||
|
|
||||||
// Toolbox
|
// Toolbox
|
||||||
|
@ -30,7 +30,6 @@
|
|||||||
// Description: List of required include files.
|
// Description: List of required include files.
|
||||||
//=================================================================================================
|
//=================================================================================================
|
||||||
|
|
||||||
#include "../PDEF_ProjectDefinitions.h"
|
|
||||||
#include "CAND_CanDriver.h"
|
#include "CAND_CanDriver.h"
|
||||||
|
|
||||||
// Toolbox
|
// Toolbox
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
//-------------------------------------------------------------------------------------------------
|
//-------------------------------------------------------------------------------------------------
|
||||||
//
|
//
|
||||||
// Project: Peltier Controller V2
|
// Project: Peltier Controller V2
|
||||||
// Author: Noah Piqu<EFBFBD> (noah.pique@psi.ch)
|
// Author: Noah Piqué (noah.pique@psi.ch)
|
||||||
//
|
//
|
||||||
//-------------------------------------------------------------------------------------------------
|
//-------------------------------------------------------------------------------------------------
|
||||||
//
|
//
|
||||||
@ -34,7 +34,6 @@
|
|||||||
// Description: List of required include files.
|
// Description: List of required include files.
|
||||||
//=================================================================================================
|
//=================================================================================================
|
||||||
|
|
||||||
#include "../PDEF_ProjectDefinitions.h"
|
|
||||||
#include "DIPO_DigitalPorts.h"
|
#include "DIPO_DigitalPorts.h"
|
||||||
|
|
||||||
//Application
|
//Application
|
||||||
|
@ -30,7 +30,6 @@
|
|||||||
// Description: List of required include files.
|
// Description: List of required include files.
|
||||||
//=================================================================================================
|
//=================================================================================================
|
||||||
|
|
||||||
#include "../PDEF_ProjectDefinitions.h"
|
|
||||||
#include "ERRH_ErrorHandler.h"
|
#include "ERRH_ErrorHandler.h"
|
||||||
|
|
||||||
// Toolbox
|
// Toolbox
|
||||||
|
@ -30,7 +30,6 @@
|
|||||||
// Description: List of required include files.
|
// Description: List of required include files.
|
||||||
//=================================================================================================
|
//=================================================================================================
|
||||||
|
|
||||||
#include "../PDEF_ProjectDefinitions.h"
|
|
||||||
#include "SPID_SpiDriver.h"
|
#include "SPID_SpiDriver.h"
|
||||||
|
|
||||||
// Application
|
// Application
|
||||||
|
@ -28,7 +28,6 @@
|
|||||||
// Description: List of required include files.
|
// Description: List of required include files.
|
||||||
//=================================================================================================
|
//=================================================================================================
|
||||||
|
|
||||||
#include "../PDEF_ProjectDefinitions.h"
|
|
||||||
#include "TEMP_Temperature.h"
|
#include "TEMP_Temperature.h"
|
||||||
|
|
||||||
// Application
|
// Application
|
||||||
@ -38,7 +37,7 @@
|
|||||||
#include "../Toolbox/UTIL_Utility.h"
|
#include "../Toolbox/UTIL_Utility.h"
|
||||||
|
|
||||||
// Drivers
|
// Drivers
|
||||||
#include "ADCD_ADCDriver.h"
|
#include "ADCD_AdcDriver.h"
|
||||||
|
|
||||||
// include STM32 drivers
|
// include STM32 drivers
|
||||||
#include "stm32l4xx_hal.h"
|
#include "stm32l4xx_hal.h"
|
||||||
|
@ -45,11 +45,10 @@
|
|||||||
// Description: List of required include files.
|
// Description: List of required include files.
|
||||||
//=================================================================================================
|
//=================================================================================================
|
||||||
|
|
||||||
#include "../PDEF_ProjectDefinitions.h"
|
|
||||||
#include "USFL_UserFlash.h"
|
#include "USFL_UserFlash.h"
|
||||||
|
|
||||||
// Toolbox
|
// Toolbox
|
||||||
#include "../Toolbox/UTIL_Utility.h"
|
#include "../Application/VARH_VariableHandler.h"
|
||||||
|
|
||||||
// include STM32 drivers
|
// include STM32 drivers
|
||||||
#include "stm32l4xx_hal.h"
|
#include "stm32l4xx_hal.h"
|
||||||
@ -64,9 +63,11 @@
|
|||||||
#define USERFLASHSIZE (2000/4) // Bytes -> 64 Bits
|
#define USERFLASHSIZE (2000/4) // Bytes -> 64 Bits
|
||||||
#define USERFLASHPAGE (63)
|
#define USERFLASHPAGE (63)
|
||||||
|
|
||||||
#define STARTDEF 0xAA01F055
|
#define VARDEF 0xABCDEF
|
||||||
|
|
||||||
|
#define STARTDEF (((U64)0xAA01F055 << 32) + (VARDEF << 2))
|
||||||
|
|
||||||
|
|
||||||
#define VARDEF 0xABCDEF00
|
|
||||||
|
|
||||||
//=================================================================================================
|
//=================================================================================================
|
||||||
// Section: MACROS
|
// Section: MACROS
|
||||||
@ -100,7 +101,7 @@ FLASH_EraseInitTypeDef stEreaseInit = {
|
|||||||
// Description: Definition of local variables (visible by this module only).
|
// Description: Definition of local variables (visible by this module only).
|
||||||
//=================================================================================================
|
//=================================================================================================
|
||||||
|
|
||||||
|
U32 u32VarPointer = 0;
|
||||||
|
|
||||||
//=================================================================================================
|
//=================================================================================================
|
||||||
// Section: LOCAL CONSTANTS
|
// Section: LOCAL CONSTANTS
|
||||||
@ -116,6 +117,8 @@ __attribute__((__section__(".user_data"))) const U64 UserFlash[USERFLASHSIZE];
|
|||||||
|
|
||||||
BOOL vEreaseUserFlash( void );
|
BOOL vEreaseUserFlash( void );
|
||||||
U32 vFindNextFreePointer( void );
|
U32 vFindNextFreePointer( void );
|
||||||
|
U32 u32FindLastPointer( void );
|
||||||
|
U8 u8ConvertWordsToDoubleWords( U8 u8Words );
|
||||||
|
|
||||||
//=================================================================================================
|
//=================================================================================================
|
||||||
// Section: GLOBAL FUNCTIONS
|
// Section: GLOBAL FUNCTIONS
|
||||||
@ -142,6 +145,14 @@ BOOL USFL_boInitializeModule( VOID )
|
|||||||
return( boOK );
|
return( boOK );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
VARH_UVariable USFL_uGetVariable ( void ){
|
||||||
|
|
||||||
|
if( u32VarPointer == 0 ) u32VarPointer = u32FindLastPointer();
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
//=================================================================================================
|
//=================================================================================================
|
||||||
@ -150,27 +161,27 @@ BOOL USFL_boInitializeModule( VOID )
|
|||||||
//=================================================================================================
|
//=================================================================================================
|
||||||
|
|
||||||
//-------------------------------------------------------------------------------------------------
|
//-------------------------------------------------------------------------------------------------
|
||||||
// Function: vFindNextFreePointer
|
// Function: u32FindNextFreePointer
|
||||||
// Description: Ereases the User Flash Sector
|
// Description: Finds the next free sector in the flash for saving variables
|
||||||
// Parameters: None
|
// Parameters: None
|
||||||
// Returns: Boolean TRUE if successful
|
// Returns: U32 next free pointer
|
||||||
//-------------------------------------------------------------------------------------------------
|
//-------------------------------------------------------------------------------------------------
|
||||||
U32 vFindNextFreePointer( void ){
|
U32 u32FindNextFreePointer( void ){
|
||||||
|
|
||||||
BOOL boFound = FALSE;
|
BOOL boFound = FALSE;
|
||||||
U32 u32Pointer = 1; // 0 is StartDef
|
U32 u32Pointer = u32VarPointer;
|
||||||
|
|
||||||
while(!boFound){
|
while(!boFound){
|
||||||
|
|
||||||
if( (UserFlash[u32Pointer] & 0xFFFFFF00) == VARDEF ){
|
if( ( ( UserFlash[u32Pointer] >> 8 ) & 0xFFFFFF ) == VARDEF ){
|
||||||
U8 u8Size = UserFlash[u32Pointer] & 0xFF;
|
U8 u8Size = UserFlash[u32Pointer] & 0xFF;
|
||||||
if( u8Size == 0 ){
|
if( u8Size == 0 ){
|
||||||
boFound = TRUE;
|
boFound = TRUE;
|
||||||
} else {
|
} else {
|
||||||
u32Pointer += u8Size + 1;
|
u32Pointer += u8ConvertWordsToDoubleWords(u8Size);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
return 0;
|
u32Pointer += 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
if( u32Pointer >= USERFLASHSIZE ){
|
if( u32Pointer >= USERFLASHSIZE ){
|
||||||
@ -182,6 +193,58 @@ U32 vFindNextFreePointer( void ){
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
//-------------------------------------------------------------------------------------------------
|
||||||
|
// Function: u32FindLastPointer
|
||||||
|
// Description: Finds the next free sector in the flash for saving variables
|
||||||
|
// Parameters: None
|
||||||
|
// Returns: U32 next free pointer
|
||||||
|
//-------------------------------------------------------------------------------------------------
|
||||||
|
U32 u32FindLastPointer( void ){
|
||||||
|
|
||||||
|
BOOL boFound = FALSE;
|
||||||
|
U32 u32Pointer = 0;
|
||||||
|
U8 u8LastSize = 0;
|
||||||
|
|
||||||
|
while(!boFound){
|
||||||
|
|
||||||
|
if( ( UserFlash[u32Pointer] >> 40) == VARDEF ){
|
||||||
|
U8 u8Size = UserFlash[u32Pointer] & 0xFF;
|
||||||
|
if( u8Size == 0 ){
|
||||||
|
boFound = TRUE;
|
||||||
|
u32Pointer -= u8ConvertWordsToDoubleWords(u8LastSize);
|
||||||
|
} else {
|
||||||
|
u32Pointer += u8ConvertWordsToDoubleWords(u8Size);
|
||||||
|
u8LastSize = u8Size;
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
u32Pointer += 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
if( u32Pointer >= USERFLASHSIZE ){
|
||||||
|
u32Pointer = 1;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return u32Pointer;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
//-------------------------------------------------------------------------------------------------
|
||||||
|
// Function: u8ConvertWordsToDoubleWords
|
||||||
|
// Description: Converts 32Bit Word size to 64 Bit Double Word size for saving Vars
|
||||||
|
// Parameters: U8 u8Words
|
||||||
|
// Returns: U8 Double Words
|
||||||
|
//-------------------------------------------------------------------------------------------------
|
||||||
|
U8 u8ConvertWordsToDoubleWords( U8 u8Words ) {
|
||||||
|
U8 u8DWords;
|
||||||
|
|
||||||
|
u8Words += 1; // + VARDEF
|
||||||
|
u8DWords = u8Words / 2;
|
||||||
|
u8DWords += u8Words % 2;
|
||||||
|
|
||||||
|
return u8DWords;
|
||||||
|
}
|
||||||
|
|
||||||
//-------------------------------------------------------------------------------------------------
|
//-------------------------------------------------------------------------------------------------
|
||||||
// Function: vEreaseUserFlash
|
// Function: vEreaseUserFlash
|
||||||
// Description: Ereases the User Flash Sector
|
// Description: Ereases the User Flash Sector
|
||||||
@ -191,10 +254,19 @@ U32 vFindNextFreePointer( void ){
|
|||||||
BOOL vEreaseUserFlash( void ){
|
BOOL vEreaseUserFlash( void ){
|
||||||
uint32_t u32PageError = 0;
|
uint32_t u32PageError = 0;
|
||||||
|
|
||||||
if( HAL_FLASHEx_Erase(&stEreaseInit, &u32PageError) != HAL_OK ){
|
BOOL boOK = TRUE;
|
||||||
|
|
||||||
|
HAL_FLASH_Unlock();
|
||||||
|
boOK &= HAL_FLASHEx_Erase(&stEreaseInit, &u32PageError) == HAL_OK ? TRUE : FALSE;
|
||||||
|
|
||||||
|
if( !boOK ){
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
HAL_FLASH_Program(FLASH_TYPEPROGRAM_DOUBLEWORD, (U32) &UserFlash[0], STARTDEF);
|
||||||
|
|
||||||
|
HAL_FLASH_Lock();
|
||||||
|
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1,147 +0,0 @@
|
|||||||
//=================================================================================================
|
|
||||||
//
|
|
||||||
// Company: Paul Scherrer Institut
|
|
||||||
// 5232 Villigen PSI
|
|
||||||
// Switzerland
|
|
||||||
//
|
|
||||||
//-------------------------------------------------------------------------------------------------
|
|
||||||
//
|
|
||||||
// Project: High Stability Current Source
|
|
||||||
// Author: Lukas Kuenzi (lukas.kuenzi@psi.ch)
|
|
||||||
//
|
|
||||||
//-------------------------------------------------------------------------------------------------
|
|
||||||
//
|
|
||||||
// Module: Project definitions
|
|
||||||
// Filename: PDEF_ProjectDefinitions.h
|
|
||||||
// Date: Handled by Subversion (version control system)
|
|
||||||
// Revision: Handled by Subversion (version control system)
|
|
||||||
// History: Handled by Subversion (version control system)
|
|
||||||
//
|
|
||||||
//-------------------------------------------------------------------------------------------------
|
|
||||||
//
|
|
||||||
// Description: Project definitions
|
|
||||||
//
|
|
||||||
//=================================================================================================
|
|
||||||
|
|
||||||
#ifndef PDEF_PROJECT_DEFINITIONS_H
|
|
||||||
#define PDEF_PROJECT_DEFINITIONS_H
|
|
||||||
|
|
||||||
#ifdef __cplusplus
|
|
||||||
extern "C" {
|
|
||||||
#endif
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
//=================================================================================================
|
|
||||||
// Section: INCLUDES
|
|
||||||
// Description: List of required include files (visible by all modules).
|
|
||||||
//=================================================================================================
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
//=================================================================================================
|
|
||||||
// Section: DEFINITIONS
|
|
||||||
// Description: Definition of global constants (visible by all modules).
|
|
||||||
//=================================================================================================
|
|
||||||
|
|
||||||
// Firmare version:
|
|
||||||
// example: "1.1.2"
|
|
||||||
// 1. Digit: Major number for big changes = "01" and up
|
|
||||||
// 2. Digit: Minor number for small changes = "1" and up
|
|
||||||
// 3. Digit: Development version number = "1" and up
|
|
||||||
#define PDEF_FW_VERSION_HEX 0x0001 // coding: 0xUVW
|
|
||||||
// U: major number,
|
|
||||||
// V: minor number,
|
|
||||||
// W: development version
|
|
||||||
|
|
||||||
// Compiler switches
|
|
||||||
#define PDEF_FUNCTION_PARAMETER_CHECK_ENABLED FALSE
|
|
||||||
#define PDEF_USE_ASSERTION TRUE
|
|
||||||
#define PDEF_USE_STM32_FULL_ASSERT FALSE
|
|
||||||
|
|
||||||
|
|
||||||
// definie interrupt priorities
|
|
||||||
//-------------------------------------------------------------------------------------------------
|
|
||||||
// preemption priority range: 0-15
|
|
||||||
// sub priority range: no subpriority
|
|
||||||
// 0: highest priority, 15: lowest priority
|
|
||||||
// same priorities are allowed
|
|
||||||
|
|
||||||
#define PDEF_NVIC_PRIORITY_GROUPING NVIC_PRIORITYGROUP_4
|
|
||||||
|
|
||||||
#define PDEF_MSCB_IRQ_PREEMPT_PRIO 0
|
|
||||||
#define PDEF_MSCB_IRQ_SUB_PRIO 0
|
|
||||||
|
|
||||||
#define PDEF_RS485_IRQ_PREMPT_PRIO 0
|
|
||||||
#define PDEF_RS485_IRQ_SUB_PRIO 0
|
|
||||||
|
|
||||||
#define PDEF_EXTI_IRQ_PREEMPT_PRIO 1
|
|
||||||
#define PDEF_EXTI_IRQ_SUB_PRIO 0
|
|
||||||
|
|
||||||
#define PDEF_ADCS_SPI_IRQ_PREEMPT_PRIO 1
|
|
||||||
#define PDEF_ADCS_SPI_IRQ_SUB_PRIO 0
|
|
||||||
|
|
||||||
#define PDEF_DACS_SPI_IRQ_PREEMPT_PRIO 1
|
|
||||||
#define PDEF_DACS_SPI_IRQ_SUB_PRIO 0
|
|
||||||
|
|
||||||
#define PDEF_CHARGE_PUMP_DAC_SPI_IRQ_PREEMPT_PRIO 1
|
|
||||||
#define PDEF_CHARGE_PUMP_DAC_SPI_IRQ_SUB_PRIO 0
|
|
||||||
|
|
||||||
#define PDEF_CRC_DMA_IRQ_PREEMPT_PRIO 1
|
|
||||||
#define PDEF_CRC_DMA_IRQ_SUB_PRIO 0
|
|
||||||
|
|
||||||
#define PDEF_FLASH_IRQ_PREEMPT_PRIO 1
|
|
||||||
#define PDEF_FLASH_IRQ_SUB_PRIO 0
|
|
||||||
|
|
||||||
#define PDEF_SVC_IRQ_PREEMPT_PRIO 14 // must be one preempt prio higher than PendSV
|
|
||||||
#define PDEF_SVC_IRQ_SUB_PRIO 0
|
|
||||||
|
|
||||||
#define PDEF_PENDSV_IRQ_PREEMPT_PRIO 15 // lowest priority = same as systick
|
|
||||||
#define PDEF_PENDSV_IRQ_SUB_PRIO 0
|
|
||||||
|
|
||||||
//=================================================================================================
|
|
||||||
// Section: MACROS
|
|
||||||
// Description: Definition of global macros (visible by all modules).
|
|
||||||
//=================================================================================================
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
//=================================================================================================
|
|
||||||
// Section: ENUMERATIONS
|
|
||||||
// Description: Definition of global enumerations (visible by all modules).
|
|
||||||
//=================================================================================================
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
//=================================================================================================
|
|
||||||
// Section: STRUCTURES
|
|
||||||
// Description: Definition of global Structures (visible by all modules).
|
|
||||||
//=================================================================================================
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
//=================================================================================================
|
|
||||||
// Section: GLOBAL VARIABLES
|
|
||||||
// Description: Definition of global variables (visible by all modules).
|
|
||||||
//=================================================================================================
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
//=================================================================================================
|
|
||||||
// Section: GLOBAL CONSTANTS
|
|
||||||
// Description: Definition of global constants (visible by all modules).
|
|
||||||
//=================================================================================================
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
//=================================================================================================
|
|
||||||
// Section: GLOBAL FUNCTIONS (PROTOTYPES)
|
|
||||||
// Description: Definition of global functions (visible by all modules).
|
|
||||||
//=================================================================================================
|
|
||||||
|
|
||||||
#ifdef __cplusplus
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#endif
|
|
@ -7,7 +7,7 @@
|
|||||||
//-------------------------------------------------------------------------------------------------
|
//-------------------------------------------------------------------------------------------------
|
||||||
//
|
//
|
||||||
// Project: Peltier Controller V2
|
// Project: Peltier Controller V2
|
||||||
// Author: Noah Piqu<EFBFBD> (noah.pique@psi.ch)
|
// Author: Noah Piqué (noah.pique@psi.ch)
|
||||||
//
|
//
|
||||||
//-------------------------------------------------------------------------------------------------
|
//-------------------------------------------------------------------------------------------------
|
||||||
//
|
//
|
||||||
|
@ -1,136 +0,0 @@
|
|||||||
//=================================================================================================
|
|
||||||
//
|
|
||||||
// Company: Paul Scherrer Institut
|
|
||||||
// 5232 Villigen PSI
|
|
||||||
// Switzerland
|
|
||||||
//
|
|
||||||
//-------------------------------------------------------------------------------------------------
|
|
||||||
//
|
|
||||||
// Project: SCS-3000
|
|
||||||
// Author: Lukas Kuenzi (lukas.kuenzi@psi.ch)
|
|
||||||
//
|
|
||||||
//-------------------------------------------------------------------------------------------------
|
|
||||||
//
|
|
||||||
// Module: Template source file
|
|
||||||
// Filename: TMPL_Template.c
|
|
||||||
// Date: Handled by Subversion (version control system)
|
|
||||||
// Revision: Handled by Subversion (version control system)
|
|
||||||
// History: Handled by Subversion (version control system)
|
|
||||||
//
|
|
||||||
//-------------------------------------------------------------------------------------------------
|
|
||||||
//
|
|
||||||
// Description: Source file template
|
|
||||||
//
|
|
||||||
//=================================================================================================
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
//=================================================================================================
|
|
||||||
// Section: INCLUDES
|
|
||||||
// Description: List of required include files.
|
|
||||||
//=================================================================================================
|
|
||||||
|
|
||||||
#include "TMPL_Template.h"
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
//=================================================================================================
|
|
||||||
// Section: DEFINITIONS
|
|
||||||
// Description: Definition of local constants (visible by this module only).
|
|
||||||
//=================================================================================================
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
//=================================================================================================
|
|
||||||
// Section: MACROS
|
|
||||||
// Description: Definition of local macros (visible by this module only).
|
|
||||||
//=================================================================================================
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
//=================================================================================================
|
|
||||||
// Section: ENUMERATIONS
|
|
||||||
// Description: Definition of local enumerations (visible by this module only).
|
|
||||||
//=================================================================================================
|
|
||||||
|
|
||||||
typedef enum
|
|
||||||
{
|
|
||||||
eX = 0,
|
|
||||||
eY
|
|
||||||
} EnExample;
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
//=================================================================================================
|
|
||||||
// Section: STRUCTURES
|
|
||||||
// Description: Definition of local Structures (visible by this module only).
|
|
||||||
//=================================================================================================
|
|
||||||
|
|
||||||
typedef struct
|
|
||||||
{
|
|
||||||
U32 u32X;
|
|
||||||
BOOL boY;
|
|
||||||
} StExample;
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
//=================================================================================================
|
|
||||||
// Section: LOCAL VARIABLES
|
|
||||||
// Description: Definition of local variables (visible by this module only).
|
|
||||||
//=================================================================================================
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
//=================================================================================================
|
|
||||||
// Section: LOCAL CONSTANTS
|
|
||||||
// Description: Definition of local constants (visible by this module only).
|
|
||||||
//=================================================================================================
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
//=================================================================================================
|
|
||||||
// Section: LOCAL FUNCTIONS (PROTOTYPES)
|
|
||||||
// Description: Definition of local functions (visible by this module only).
|
|
||||||
//=================================================================================================
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
//=================================================================================================
|
|
||||||
// Section: EXTERNAL FUNCTIONS
|
|
||||||
// Description: Definition of external (global) functions.
|
|
||||||
//=================================================================================================
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
//=================================================================================================
|
|
||||||
// Section: EXTERNAL VARIABLES
|
|
||||||
// Description: Definition of external (global) variables.
|
|
||||||
//=================================================================================================
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
//=================================================================================================
|
|
||||||
// Section: GLOBAL FUNCTIONS
|
|
||||||
// Description: Definition (implementation) of global functions.
|
|
||||||
//=================================================================================================
|
|
||||||
|
|
||||||
//-------------------------------------------------------------------------------------------------
|
|
||||||
// Function: TMPL_boInitializeModule
|
|
||||||
// Description: Initializes the module. Function must be called once immediately after power-up.
|
|
||||||
// Parameters: None
|
|
||||||
// Returns: Boolean TRUE if successful
|
|
||||||
//-------------------------------------------------------------------------------------------------
|
|
||||||
|
|
||||||
BOOL TMPL_boInitializeModule( VOID )
|
|
||||||
{
|
|
||||||
|
|
||||||
|
|
||||||
return( FALSE );
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
//=================================================================================================
|
|
||||||
// Section: LOCAL FUNCTIONS
|
|
||||||
// Descriptionn: Definition (implementation) of local functions.
|
|
||||||
//=================================================================================================
|
|
@ -1,105 +0,0 @@
|
|||||||
//=================================================================================================
|
|
||||||
//
|
|
||||||
// Company: Paul Scherrer Institut
|
|
||||||
// 5232 Villigen PSI
|
|
||||||
// Switzerland
|
|
||||||
//
|
|
||||||
//-------------------------------------------------------------------------------------------------
|
|
||||||
//
|
|
||||||
// Project: SCS-3000
|
|
||||||
// Author: Lukas Kuenzi (lukas.kuenzi@psi.ch)
|
|
||||||
//
|
|
||||||
//-------------------------------------------------------------------------------------------------
|
|
||||||
//
|
|
||||||
// Module: Header File Template
|
|
||||||
// Filename: TMPL_Template.h
|
|
||||||
// Date: Handled by Subversion (version control system)
|
|
||||||
// Revision: Handled by Subversion (version control system)
|
|
||||||
// History: Handled by Subversion (version control system)
|
|
||||||
//
|
|
||||||
//-------------------------------------------------------------------------------------------------
|
|
||||||
|
|
||||||
#ifndef TMPL_TEMPLATE_H
|
|
||||||
#define TMPL_TEMPLATE_H
|
|
||||||
|
|
||||||
#ifdef __cplusplus
|
|
||||||
extern "C" {
|
|
||||||
#endif
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
//=================================================================================================
|
|
||||||
// Section: INCLUDES
|
|
||||||
// Description: List of required include files (visible by all modules).
|
|
||||||
//=================================================================================================
|
|
||||||
|
|
||||||
#include "SDEF_StandardDefinitions.h"
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
//=================================================================================================
|
|
||||||
// Section: DEFINITIONS
|
|
||||||
// Description: Definition of global constants (visible by all modules).
|
|
||||||
//=================================================================================================
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
//=================================================================================================
|
|
||||||
// Section: MACROS
|
|
||||||
// Description: Definition of global macros (visible by all modules).
|
|
||||||
//=================================================================================================
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
//=================================================================================================
|
|
||||||
// Section: ENUMERATIONS
|
|
||||||
// Description: Definition of global enumerations (visible by all modules).
|
|
||||||
//=================================================================================================
|
|
||||||
|
|
||||||
typedef enum
|
|
||||||
{
|
|
||||||
TMPL_eX = 0,
|
|
||||||
TMPL_eY
|
|
||||||
} TMPL_EnExample;
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
//=================================================================================================
|
|
||||||
// Section: STRUCTURES
|
|
||||||
// Description: Definition of global Structures (visible by all modules).
|
|
||||||
//=================================================================================================
|
|
||||||
|
|
||||||
typedef struct
|
|
||||||
{
|
|
||||||
U32 u32X;
|
|
||||||
BOOL boY;
|
|
||||||
} TMPL_StExample;
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
//=================================================================================================
|
|
||||||
// Section: GLOBAL VARIABLES
|
|
||||||
// Description: Definition of global variables (visible by all modules).
|
|
||||||
//=================================================================================================
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
//=================================================================================================
|
|
||||||
// Section: GLOBAL CONSTANTS
|
|
||||||
// Description: Definition of global constants (visible by all modules).
|
|
||||||
//=================================================================================================
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
//=================================================================================================
|
|
||||||
// Section: GLOBAL FUNCTIONS (PROTOTYPES)
|
|
||||||
// Description: Definition of global functions (visible by all modules).
|
|
||||||
//=================================================================================================
|
|
||||||
|
|
||||||
BOOL TMPL_boInitializeModule( VOID );
|
|
||||||
|
|
||||||
#ifdef __cplusplus
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#endif
|
|
@ -56,7 +56,6 @@ Core/Src/stm32l4xx_it.c \
|
|||||||
Core/Src/syscalls.c \
|
Core/Src/syscalls.c \
|
||||||
Core/Src/sysmem.c \
|
Core/Src/sysmem.c \
|
||||||
Core/Src/system_stm32l4xx.c \
|
Core/Src/system_stm32l4xx.c \
|
||||||
Core/TMPL_Template.c \
|
|
||||||
Core/Toolbox/UTIL_Utility.c \
|
Core/Toolbox/UTIL_Utility.c \
|
||||||
Drivers/STM32L4xx_HAL_Driver/Src/stm32l4xx_hal.c \
|
Drivers/STM32L4xx_HAL_Driver/Src/stm32l4xx_hal.c \
|
||||||
Drivers/STM32L4xx_HAL_Driver/Src/stm32l4xx_hal_adc.c \
|
Drivers/STM32L4xx_HAL_Driver/Src/stm32l4xx_hal_adc.c \
|
||||||
@ -187,7 +186,8 @@ CFLAGS = $(MCU) $(C_DEFS) $(C_INCLUDES) $(OPT) -Wall -fdata-sections -ffunction-
|
|||||||
CXXFLAGS = $(MCU) $(CXX_DEFS) $(C_INCLUDES) $(OPT) -Wall -fdata-sections -ffunction-sections -feliminate-unused-debug-types
|
CXXFLAGS = $(MCU) $(CXX_DEFS) $(C_INCLUDES) $(OPT) -Wall -fdata-sections -ffunction-sections -feliminate-unused-debug-types
|
||||||
|
|
||||||
ifeq ($(DEBUG), 1)
|
ifeq ($(DEBUG), 1)
|
||||||
CFLAGS += -g -gdwarf-2
|
CFLAGS += -g -gdwarf -ggdb
|
||||||
|
CXXFLAGS += -g -gdwarf -ggdb
|
||||||
endif
|
endif
|
||||||
|
|
||||||
# Add additional flags
|
# Add additional flags
|
||||||
@ -275,6 +275,12 @@ erase: $(BUILD_DIR)/$(TARGET).elf
|
|||||||
#######################################
|
#######################################
|
||||||
clean:
|
clean:
|
||||||
cmd /c rd /s /q $(BUILD_DIR)
|
cmd /c rd /s /q $(BUILD_DIR)
|
||||||
|
|
||||||
|
#######################################
|
||||||
|
# custom makefile rules
|
||||||
|
#######################################
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#######################################
|
#######################################
|
||||||
# dependencies
|
# dependencies
|
||||||
|
Reference in New Issue
Block a user