UPD source files Version 0.4.D with STM32CubeIDE 1.16.1
This commit is contained in:
parent
1084b4eff0
commit
eac6aebb43
2
.gitattributes
vendored
2
.gitattributes
vendored
@ -4,6 +4,8 @@
|
|||||||
# LF on checkout.
|
# LF on checkout.
|
||||||
*.c text eol=lf
|
*.c text eol=lf
|
||||||
*.h text eol=lf
|
*.h text eol=lf
|
||||||
|
*.ioc text eol=lf
|
||||||
|
*.ld text eol=lf
|
||||||
*.s text eol=lf
|
*.s text eol=lf
|
||||||
# Denote all files that are truly binary and should not be modified.
|
# Denote all files that are truly binary and should not be modified.
|
||||||
*.png binary
|
*.png binary
|
||||||
|
184
stm32l4a6zg-f0x.at1/.cproject
Normal file
184
stm32l4a6zg-f0x.at1/.cproject
Normal file
@ -0,0 +1,184 @@
|
|||||||
|
<?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.1938431532">
|
||||||
|
<storageModule buildSystemId="org.eclipse.cdt.managedbuilder.core.configurationDataProvider" id="com.st.stm32cube.ide.mcu.gnu.managedbuild.config.exe.debug.1938431532" 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.1938431532" 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.1938431532." name="/" resourcePath="">
|
||||||
|
<toolChain id="com.st.stm32cube.ide.mcu.gnu.managedbuild.toolchain.exe.debug.1432162465" 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.1161952376" name="MCU" superClass="com.st.stm32cube.ide.mcu.gnu.managedbuild.option.target_mcu" useByScannerDiscovery="true" value="STM32L4A6ZGTx" valueType="string"/>
|
||||||
|
<option id="com.st.stm32cube.ide.mcu.gnu.managedbuild.option.target_cpuid.136411878" 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.1500332517" 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.1192855358" 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.604983539" 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.1175879180" 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.491770366" 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.6 || Debug || true || Executable || com.st.stm32cube.ide.mcu.gnu.managedbuild.option.toolchain.value.workspace || STM32L4A6ZGTx || 0 || 0 || arm-none-eabi- || ${gnu_tools_for_stm32_compiler_path} || ../Core/Inc | ../Drivers/STM32L4xx_HAL_Driver/Inc | ../Drivers/STM32L4xx_HAL_Driver/Inc/Legacy | ../Middlewares/Third_Party/FreeRTOS/Source/include | ../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS_V2 | ../Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM4F | ../Drivers/CMSIS/Device/ST/STM32L4xx/Include | ../Drivers/CMSIS/Include || || || USE_HAL_DRIVER | STM32L4A6xx || || Drivers | Core/Startup | Middlewares | Core || || || ${workspace_loc:/${ProjName}/STM32L4A6ZGTX_FLASH.ld} || true || NonSecure || || secure_nsclib.o || || None || || || " valueType="string"/>
|
||||||
|
<option id="com.st.stm32cube.ide.mcu.debug.option.cpuclock.1211538381" superClass="com.st.stm32cube.ide.mcu.debug.option.cpuclock" useByScannerDiscovery="false" value="5.917" valueType="string"/>
|
||||||
|
<targetPlatform archList="all" binaryParser="org.eclipse.cdt.core.ELF" id="com.st.stm32cube.ide.mcu.gnu.managedbuild.targetplatform.1377931701" isAbstract="false" osList="all" superClass="com.st.stm32cube.ide.mcu.gnu.managedbuild.targetplatform"/>
|
||||||
|
<builder buildPath="${workspace_loc:/stm32l4a6zg-f0x.at1}/Debug" id="com.st.stm32cube.ide.mcu.gnu.managedbuild.builder.737021898" 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.1737121136" name="MCU/MPU 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.237260748" 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.493560861" 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.655171909" superClass="com.st.stm32cube.ide.mcu.gnu.managedbuild.tool.assembler.input"/>
|
||||||
|
</tool>
|
||||||
|
<tool id="com.st.stm32cube.ide.mcu.gnu.managedbuild.tool.c.compiler.278454632" name="MCU/MPU 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.1683620564" 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.204464212" 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.726501617" 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="STM32L4A6xx"/>
|
||||||
|
</option>
|
||||||
|
<option IS_BUILTIN_EMPTY="false" IS_VALUE_EMPTY="false" id="com.st.stm32cube.ide.mcu.gnu.managedbuild.tool.c.compiler.option.includepaths.2061170237" 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="../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"/>
|
||||||
|
<listOptionValue builtIn="false" value="../Drivers/CMSIS/Device/ST/STM32L4xx/Include"/>
|
||||||
|
<listOptionValue builtIn="false" value="../Drivers/CMSIS/Include"/>
|
||||||
|
</option>
|
||||||
|
<inputType id="com.st.stm32cube.ide.mcu.gnu.managedbuild.tool.c.compiler.input.c.1948413059" 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.1301698323" name="MCU/MPU 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.1985762225" 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.977090165" 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.1475148767" name="MCU/MPU 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.277688035" name="Linker Script (-T)" superClass="com.st.stm32cube.ide.mcu.gnu.managedbuild.tool.c.linker.option.script" value="${workspace_loc:/${ProjName}/STM32L4A6ZGTX_FLASH.ld}" valueType="string"/>
|
||||||
|
<inputType id="com.st.stm32cube.ide.mcu.gnu.managedbuild.tool.c.linker.input.167016380" 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.1421258902" name="MCU/MPU G++ Linker" superClass="com.st.stm32cube.ide.mcu.gnu.managedbuild.tool.cpp.linker"/>
|
||||||
|
<tool id="com.st.stm32cube.ide.mcu.gnu.managedbuild.tool.archiver.248176723" name="MCU/MPU GCC Archiver" superClass="com.st.stm32cube.ide.mcu.gnu.managedbuild.tool.archiver"/>
|
||||||
|
<tool id="com.st.stm32cube.ide.mcu.gnu.managedbuild.tool.size.1963255542" 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.1375999736" 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.1857206206" 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.1509934111" 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.968860888" 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.1479450132" 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.1151485785" name="MCU Output Converter Motorola S-rec with symbols" superClass="com.st.stm32cube.ide.mcu.gnu.managedbuild.tool.objcopy.symbolsrec"/>
|
||||||
|
</toolChain>
|
||||||
|
</folderInfo>
|
||||||
|
<sourceEntries>
|
||||||
|
<entry 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.1938234533">
|
||||||
|
<storageModule buildSystemId="org.eclipse.cdt.managedbuilder.core.configurationDataProvider" id="com.st.stm32cube.ide.mcu.gnu.managedbuild.config.exe.release.1938234533" 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.1938234533" 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.1938234533." name="/" resourcePath="">
|
||||||
|
<toolChain id="com.st.stm32cube.ide.mcu.gnu.managedbuild.toolchain.exe.release.657288419" 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.1388601514" superClass="com.st.stm32cube.ide.mcu.gnu.managedbuild.option.target_mcu" useByScannerDiscovery="true" value="STM32L4A6ZGTx" valueType="string"/>
|
||||||
|
<option id="com.st.stm32cube.ide.mcu.gnu.managedbuild.option.target_cpuid.288640313" 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.1888256572" 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.481879649" 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.1231534238" 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.744351442" 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.1143339268" superClass="com.st.stm32cube.ide.mcu.gnu.managedbuild.option.defaults" useByScannerDiscovery="false" value="com.st.stm32cube.ide.common.services.build.inputs.revA.1.0.6 || Release || false || Executable || com.st.stm32cube.ide.mcu.gnu.managedbuild.option.toolchain.value.workspace || STM32L4A6ZGTx || 0 || 0 || arm-none-eabi- || ${gnu_tools_for_stm32_compiler_path} || ../Core/Inc | ../Drivers/STM32L4xx_HAL_Driver/Inc | ../Drivers/STM32L4xx_HAL_Driver/Inc/Legacy | ../Middlewares/Third_Party/FreeRTOS/Source/include | ../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS_V2 | ../Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM4F | ../Drivers/CMSIS/Device/ST/STM32L4xx/Include | ../Drivers/CMSIS/Include || || || USE_HAL_DRIVER | STM32L4A6xx || || Drivers | Core/Startup | Middlewares | Core || || || ${workspace_loc:/${ProjName}/STM32L4A6ZGTX_FLASH.ld} || true || NonSecure || || secure_nsclib.o || || None || || || " valueType="string"/>
|
||||||
|
<option id="com.st.stm32cube.ide.mcu.debug.option.cpuclock.331957753" superClass="com.st.stm32cube.ide.mcu.debug.option.cpuclock" value="5.917" valueType="string"/>
|
||||||
|
<targetPlatform archList="all" binaryParser="org.eclipse.cdt.core.ELF" id="com.st.stm32cube.ide.mcu.gnu.managedbuild.targetplatform.1780156032" isAbstract="false" osList="all" superClass="com.st.stm32cube.ide.mcu.gnu.managedbuild.targetplatform"/>
|
||||||
|
<builder buildPath="${workspace_loc:/stm32l4a6zg-f0x.at1}/Release" id="com.st.stm32cube.ide.mcu.gnu.managedbuild.builder.104869839" managedBuildOn="true" name="Gnu Make Builder.Release" parallelBuildOn="true" parallelizationNumber="optimal" superClass="com.st.stm32cube.ide.mcu.gnu.managedbuild.builder"/>
|
||||||
|
<tool id="com.st.stm32cube.ide.mcu.gnu.managedbuild.tool.assembler.1888024135" name="MCU/MPU 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.1971287087" 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.1323814545" superClass="com.st.stm32cube.ide.mcu.gnu.managedbuild.tool.assembler.input"/>
|
||||||
|
</tool>
|
||||||
|
<tool id="com.st.stm32cube.ide.mcu.gnu.managedbuild.tool.c.compiler.1564257973" name="MCU/MPU 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.2063047529" 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.442879233" 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.1210413829" 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="STM32L4A6xx"/>
|
||||||
|
</option>
|
||||||
|
<option IS_BUILTIN_EMPTY="false" IS_VALUE_EMPTY="false" id="com.st.stm32cube.ide.mcu.gnu.managedbuild.tool.c.compiler.option.includepaths.198942768" 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="../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"/>
|
||||||
|
<listOptionValue builtIn="false" value="../Drivers/CMSIS/Device/ST/STM32L4xx/Include"/>
|
||||||
|
<listOptionValue builtIn="false" value="../Drivers/CMSIS/Include"/>
|
||||||
|
</option>
|
||||||
|
<inputType id="com.st.stm32cube.ide.mcu.gnu.managedbuild.tool.c.compiler.input.c.1929096592" 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.1039082182" name="MCU/MPU 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.990150981" 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.2131988876" 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.1411337991" name="MCU/MPU 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.1480173546" superClass="com.st.stm32cube.ide.mcu.gnu.managedbuild.tool.c.linker.option.script" value="${workspace_loc:/${ProjName}/STM32L4A6ZGTX_FLASH.ld}" valueType="string"/>
|
||||||
|
<inputType id="com.st.stm32cube.ide.mcu.gnu.managedbuild.tool.c.linker.input.2026844090" 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.1280291838" name="MCU/MPU G++ Linker" superClass="com.st.stm32cube.ide.mcu.gnu.managedbuild.tool.cpp.linker"/>
|
||||||
|
<tool id="com.st.stm32cube.ide.mcu.gnu.managedbuild.tool.archiver.1906678140" name="MCU/MPU GCC Archiver" superClass="com.st.stm32cube.ide.mcu.gnu.managedbuild.tool.archiver"/>
|
||||||
|
<tool id="com.st.stm32cube.ide.mcu.gnu.managedbuild.tool.size.1830641260" 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.1022477170" 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.617967297" 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.1598695284" 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.1824540709" 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.167132822" 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.1219511400" name="MCU Output Converter Motorola S-rec with symbols" superClass="com.st.stm32cube.ide.mcu.gnu.managedbuild.tool.objcopy.symbolsrec"/>
|
||||||
|
</toolChain>
|
||||||
|
</folderInfo>
|
||||||
|
<sourceEntries>
|
||||||
|
<entry 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.make.core.buildtargets"/>
|
||||||
|
<storageModule moduleId="org.eclipse.cdt.core.pathentry"/>
|
||||||
|
<storageModule moduleId="cdtBuildSystem" version="4.0.0">
|
||||||
|
<project id="stm32l4a6zg-f0x.at1.null.851778403" name="stm32l4a6zg-f0x.at1"/>
|
||||||
|
</storageModule>
|
||||||
|
<storageModule moduleId="org.eclipse.cdt.core.LanguageSettingsProviders"/>
|
||||||
|
<storageModule moduleId="scannerConfiguration">
|
||||||
|
<autodiscovery enabled="true" problemReportingEnabled="true" selectedProfileId=""/>
|
||||||
|
<scannerConfigBuildInfo instanceId="com.st.stm32cube.ide.mcu.gnu.managedbuild.config.exe.release.1938234533;com.st.stm32cube.ide.mcu.gnu.managedbuild.config.exe.release.1938234533.;com.st.stm32cube.ide.mcu.gnu.managedbuild.tool.c.compiler.1564257973;com.st.stm32cube.ide.mcu.gnu.managedbuild.tool.c.compiler.input.c.1929096592">
|
||||||
|
<autodiscovery enabled="false" problemReportingEnabled="true" selectedProfileId=""/>
|
||||||
|
</scannerConfigBuildInfo>
|
||||||
|
<scannerConfigBuildInfo instanceId="com.st.stm32cube.ide.mcu.gnu.managedbuild.config.exe.debug.1938431532;com.st.stm32cube.ide.mcu.gnu.managedbuild.config.exe.debug.1938431532.;com.st.stm32cube.ide.mcu.gnu.managedbuild.tool.c.compiler.278454632;com.st.stm32cube.ide.mcu.gnu.managedbuild.tool.c.compiler.input.c.1948413059">
|
||||||
|
<autodiscovery enabled="false" problemReportingEnabled="true" selectedProfileId=""/>
|
||||||
|
</scannerConfigBuildInfo>
|
||||||
|
</storageModule>
|
||||||
|
</cproject>
|
@ -88,6 +88,7 @@ void print_system_info(void);
|
|||||||
#define SWO_GPIO_Port GPIOB
|
#define SWO_GPIO_Port GPIOB
|
||||||
#define LD2_Pin GPIO_PIN_7
|
#define LD2_Pin GPIO_PIN_7
|
||||||
#define LD2_GPIO_Port GPIOB
|
#define LD2_GPIO_Port GPIOB
|
||||||
|
|
||||||
/* USER CODE BEGIN Private defines */
|
/* USER CODE BEGIN Private defines */
|
||||||
|
|
||||||
/* USER CODE END Private defines */
|
/* USER CODE END Private defines */
|
||||||
|
@ -40,6 +40,7 @@
|
|||||||
/*#define HAL_CRYP_MODULE_ENABLED */
|
/*#define HAL_CRYP_MODULE_ENABLED */
|
||||||
/*#define HAL_CAN_MODULE_ENABLED */
|
/*#define HAL_CAN_MODULE_ENABLED */
|
||||||
/*#define HAL_COMP_MODULE_ENABLED */
|
/*#define HAL_COMP_MODULE_ENABLED */
|
||||||
|
#define HAL_I2C_MODULE_ENABLED
|
||||||
/*#define HAL_CRC_MODULE_ENABLED */
|
/*#define HAL_CRC_MODULE_ENABLED */
|
||||||
/*#define HAL_CRYP_MODULE_ENABLED */
|
/*#define HAL_CRYP_MODULE_ENABLED */
|
||||||
/*#define HAL_DAC_MODULE_ENABLED */
|
/*#define HAL_DAC_MODULE_ENABLED */
|
||||||
@ -85,7 +86,6 @@
|
|||||||
/*#define HAL_PSSI_MODULE_ENABLED */
|
/*#define HAL_PSSI_MODULE_ENABLED */
|
||||||
#define HAL_GPIO_MODULE_ENABLED
|
#define HAL_GPIO_MODULE_ENABLED
|
||||||
#define HAL_EXTI_MODULE_ENABLED
|
#define HAL_EXTI_MODULE_ENABLED
|
||||||
#define HAL_I2C_MODULE_ENABLED
|
|
||||||
#define HAL_DMA_MODULE_ENABLED
|
#define HAL_DMA_MODULE_ENABLED
|
||||||
#define HAL_RCC_MODULE_ENABLED
|
#define HAL_RCC_MODULE_ENABLED
|
||||||
#define HAL_FLASH_MODULE_ENABLED
|
#define HAL_FLASH_MODULE_ENABLED
|
||||||
|
@ -154,6 +154,7 @@ void ringbuffer_callback(uint16_t delimiterfound, void * cb_data) {
|
|||||||
*/
|
*/
|
||||||
int main(void)
|
int main(void)
|
||||||
{
|
{
|
||||||
|
|
||||||
/* USER CODE BEGIN 1 */
|
/* USER CODE BEGIN 1 */
|
||||||
/* int status = 0; */
|
/* int status = 0; */
|
||||||
|
|
||||||
@ -338,10 +339,10 @@ int main(void)
|
|||||||
|
|
||||||
/* Create the semaphores(s) */
|
/* Create the semaphores(s) */
|
||||||
/* creation of si5351 */
|
/* creation of si5351 */
|
||||||
si5351Handle = osSemaphoreNew(1, 1, &si5351_attributes);
|
si5351Handle = osSemaphoreNew(1, 0, &si5351_attributes);
|
||||||
|
|
||||||
/* creation of command */
|
/* creation of command */
|
||||||
commandHandle = osSemaphoreNew(1, 1, &command_attributes);
|
commandHandle = osSemaphoreNew(1, 0, &command_attributes);
|
||||||
|
|
||||||
/* USER CODE BEGIN RTOS_SEMAPHORES */
|
/* USER CODE BEGIN RTOS_SEMAPHORES */
|
||||||
/* add semaphores, ... */
|
/* add semaphores, ... */
|
||||||
@ -380,6 +381,7 @@ int main(void)
|
|||||||
osKernelStart();
|
osKernelStart();
|
||||||
|
|
||||||
/* We should never get here as control is now taken by the scheduler */
|
/* We should never get here as control is now taken by the scheduler */
|
||||||
|
|
||||||
/* Infinite loop */
|
/* Infinite loop */
|
||||||
/* USER CODE BEGIN WHILE */
|
/* USER CODE BEGIN WHILE */
|
||||||
while (1)
|
while (1)
|
||||||
@ -622,6 +624,8 @@ static void MX_DMA_Init(void)
|
|||||||
static void MX_GPIO_Init(void)
|
static void MX_GPIO_Init(void)
|
||||||
{
|
{
|
||||||
GPIO_InitTypeDef GPIO_InitStruct = {0};
|
GPIO_InitTypeDef GPIO_InitStruct = {0};
|
||||||
|
/* USER CODE BEGIN MX_GPIO_Init_1 */
|
||||||
|
/* USER CODE END MX_GPIO_Init_1 */
|
||||||
|
|
||||||
/* GPIO Ports Clock Enable */
|
/* GPIO Ports Clock Enable */
|
||||||
__HAL_RCC_GPIOE_CLK_ENABLE();
|
__HAL_RCC_GPIOE_CLK_ENABLE();
|
||||||
@ -766,6 +770,8 @@ static void MX_GPIO_Init(void)
|
|||||||
GPIO_InitStruct.Alternate = GPIO_AF10_OTG_FS;
|
GPIO_InitStruct.Alternate = GPIO_AF10_OTG_FS;
|
||||||
HAL_GPIO_Init(GPIOA, &GPIO_InitStruct);
|
HAL_GPIO_Init(GPIOA, &GPIO_InitStruct);
|
||||||
|
|
||||||
|
/* USER CODE BEGIN MX_GPIO_Init_2 */
|
||||||
|
/* USER CODE END MX_GPIO_Init_2 */
|
||||||
}
|
}
|
||||||
|
|
||||||
/* USER CODE BEGIN 4 */
|
/* USER CODE BEGIN 4 */
|
||||||
|
@ -7,6 +7,7 @@
|
|||||||
|
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
#include <stdint.h>
|
||||||
#include "ringbuf.h"
|
#include "ringbuf.h"
|
||||||
#include <malloc.h>
|
#include <malloc.h>
|
||||||
|
|
||||||
|
@ -1,319 +1,324 @@
|
|||||||
/* USER CODE BEGIN Header */
|
|
||||||
/**
|
/* USER CODE BEGIN Header */
|
||||||
******************************************************************************
|
/**
|
||||||
* @file stm32l4xx_hal_msp.c
|
******************************************************************************
|
||||||
* @brief This file provides code for the MSP Initialization
|
* @file stm32l4xx_hal_msp.c
|
||||||
* and de-Initialization codes.
|
* @brief This file provides code for the MSP Initialization
|
||||||
******************************************************************************
|
* and de-Initialization codes.
|
||||||
* @attention
|
******************************************************************************
|
||||||
*
|
* @attention
|
||||||
* Copyright (c) 2022 STMicroelectronics.
|
*
|
||||||
* All rights reserved.
|
* Copyright (c) 2022 STMicroelectronics.
|
||||||
*
|
* All rights reserved.
|
||||||
* This software is licensed under terms that can be found in the LICENSE file
|
*
|
||||||
* in the root directory of this software component.
|
* This software is licensed under terms that can be found in the LICENSE file
|
||||||
* If no LICENSE file comes with this software, it is provided AS-IS.
|
* in the root directory of this software component.
|
||||||
*
|
* If no LICENSE file comes with this software, it is provided AS-IS.
|
||||||
******************************************************************************
|
*
|
||||||
*/
|
******************************************************************************
|
||||||
/* USER CODE END Header */
|
*/
|
||||||
|
/* USER CODE END Header */
|
||||||
/* Includes ------------------------------------------------------------------*/
|
|
||||||
#include "main.h"
|
/* Includes ------------------------------------------------------------------*/
|
||||||
/* USER CODE BEGIN Includes */
|
#include "main.h"
|
||||||
|
/* USER CODE BEGIN Includes */
|
||||||
/* USER CODE END Includes */
|
|
||||||
extern DMA_HandleTypeDef hdma_lpuart_rx;
|
/* USER CODE END Includes */
|
||||||
|
extern DMA_HandleTypeDef hdma_lpuart_rx;
|
||||||
/* Private typedef -----------------------------------------------------------*/
|
|
||||||
/* USER CODE BEGIN TD */
|
/* Private typedef -----------------------------------------------------------*/
|
||||||
|
/* USER CODE BEGIN TD */
|
||||||
/* USER CODE END TD */
|
|
||||||
|
/* USER CODE END TD */
|
||||||
/* Private define ------------------------------------------------------------*/
|
|
||||||
/* USER CODE BEGIN Define */
|
/* Private define ------------------------------------------------------------*/
|
||||||
|
/* USER CODE BEGIN Define */
|
||||||
/* USER CODE END Define */
|
|
||||||
|
/* USER CODE END Define */
|
||||||
/* Private macro -------------------------------------------------------------*/
|
|
||||||
/* USER CODE BEGIN Macro */
|
/* Private macro -------------------------------------------------------------*/
|
||||||
|
/* USER CODE BEGIN Macro */
|
||||||
/* USER CODE END Macro */
|
|
||||||
|
/* USER CODE END Macro */
|
||||||
/* Private variables ---------------------------------------------------------*/
|
|
||||||
/* USER CODE BEGIN PV */
|
/* Private variables ---------------------------------------------------------*/
|
||||||
|
/* USER CODE BEGIN PV */
|
||||||
/* USER CODE END PV */
|
|
||||||
|
/* USER CODE END PV */
|
||||||
/* Private function prototypes -----------------------------------------------*/
|
|
||||||
/* USER CODE BEGIN PFP */
|
/* Private function prototypes -----------------------------------------------*/
|
||||||
|
/* USER CODE BEGIN PFP */
|
||||||
/* USER CODE END PFP */
|
|
||||||
|
/* USER CODE END PFP */
|
||||||
/* External functions --------------------------------------------------------*/
|
|
||||||
/* USER CODE BEGIN ExternalFunctions */
|
/* External functions --------------------------------------------------------*/
|
||||||
|
/* USER CODE BEGIN ExternalFunctions */
|
||||||
/* USER CODE END ExternalFunctions */
|
|
||||||
|
/* USER CODE END ExternalFunctions */
|
||||||
/* USER CODE BEGIN 0 */
|
|
||||||
|
/* USER CODE BEGIN 0 */
|
||||||
/* USER CODE END 0 */
|
|
||||||
/**
|
/* USER CODE END 0 */
|
||||||
* Initializes the Global MSP.
|
/**
|
||||||
*/
|
* Initializes the Global MSP.
|
||||||
void HAL_MspInit(void)
|
*/
|
||||||
{
|
void HAL_MspInit(void)
|
||||||
/* USER CODE BEGIN MspInit 0 */
|
{
|
||||||
|
|
||||||
/* USER CODE END MspInit 0 */
|
/* USER CODE BEGIN MspInit 0 */
|
||||||
|
|
||||||
__HAL_RCC_SYSCFG_CLK_ENABLE();
|
/* USER CODE END MspInit 0 */
|
||||||
__HAL_RCC_PWR_CLK_ENABLE();
|
|
||||||
|
__HAL_RCC_SYSCFG_CLK_ENABLE();
|
||||||
/* System interrupt init*/
|
__HAL_RCC_PWR_CLK_ENABLE();
|
||||||
/* PendSV_IRQn interrupt configuration */
|
|
||||||
HAL_NVIC_SetPriority(PendSV_IRQn, 15, 0);
|
/* System interrupt init*/
|
||||||
|
/* PendSV_IRQn interrupt configuration */
|
||||||
/* USER CODE BEGIN MspInit 1 */
|
HAL_NVIC_SetPriority(PendSV_IRQn, 15, 0);
|
||||||
|
|
||||||
/* USER CODE END MspInit 1 */
|
/* USER CODE BEGIN MspInit 1 */
|
||||||
}
|
|
||||||
|
/* USER CODE END MspInit 1 */
|
||||||
/**
|
}
|
||||||
* @brief I2C MSP Initialization
|
|
||||||
* This function configures the hardware resources used in this example
|
/**
|
||||||
* @param hi2c: I2C handle pointer
|
* @brief I2C MSP Initialization
|
||||||
* @retval None
|
* This function configures the hardware resources used in this example
|
||||||
*/
|
* @param hi2c: I2C handle pointer
|
||||||
void HAL_I2C_MspInit(I2C_HandleTypeDef* hi2c)
|
* @retval None
|
||||||
{
|
*/
|
||||||
GPIO_InitTypeDef GPIO_InitStruct = {0};
|
void HAL_I2C_MspInit(I2C_HandleTypeDef* hi2c)
|
||||||
RCC_PeriphCLKInitTypeDef PeriphClkInit = {0};
|
{
|
||||||
if(hi2c->Instance==I2C1)
|
GPIO_InitTypeDef GPIO_InitStruct = {0};
|
||||||
{
|
RCC_PeriphCLKInitTypeDef PeriphClkInit = {0};
|
||||||
/* USER CODE BEGIN I2C1_MspInit 0 */
|
if(hi2c->Instance==I2C1)
|
||||||
|
{
|
||||||
/* USER CODE END I2C1_MspInit 0 */
|
/* USER CODE BEGIN I2C1_MspInit 0 */
|
||||||
|
|
||||||
/** Initializes the peripherals clock
|
/* USER CODE END I2C1_MspInit 0 */
|
||||||
*/
|
|
||||||
PeriphClkInit.PeriphClockSelection = RCC_PERIPHCLK_I2C1;
|
/** Initializes the peripherals clock
|
||||||
PeriphClkInit.I2c1ClockSelection = RCC_I2C1CLKSOURCE_PCLK1;
|
*/
|
||||||
if (HAL_RCCEx_PeriphCLKConfig(&PeriphClkInit) != HAL_OK)
|
PeriphClkInit.PeriphClockSelection = RCC_PERIPHCLK_I2C1;
|
||||||
{
|
PeriphClkInit.I2c1ClockSelection = RCC_I2C1CLKSOURCE_PCLK1;
|
||||||
Error_Handler();
|
if (HAL_RCCEx_PeriphCLKConfig(&PeriphClkInit) != HAL_OK)
|
||||||
}
|
{
|
||||||
|
Error_Handler();
|
||||||
__HAL_RCC_GPIOB_CLK_ENABLE();
|
}
|
||||||
/**I2C1 GPIO Configuration
|
|
||||||
PB8 ------> I2C1_SCL
|
__HAL_RCC_GPIOB_CLK_ENABLE();
|
||||||
PB9 ------> I2C1_SDA
|
/**I2C1 GPIO Configuration
|
||||||
*/
|
PB8 ------> I2C1_SCL
|
||||||
GPIO_InitStruct.Pin = GPIO_PIN_8|GPIO_PIN_9;
|
PB9 ------> I2C1_SDA
|
||||||
GPIO_InitStruct.Mode = GPIO_MODE_AF_OD;
|
*/
|
||||||
GPIO_InitStruct.Pull = GPIO_PULLUP;
|
GPIO_InitStruct.Pin = GPIO_PIN_8|GPIO_PIN_9;
|
||||||
GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_VERY_HIGH;
|
GPIO_InitStruct.Mode = GPIO_MODE_AF_OD;
|
||||||
GPIO_InitStruct.Alternate = GPIO_AF4_I2C1;
|
GPIO_InitStruct.Pull = GPIO_PULLUP;
|
||||||
HAL_GPIO_Init(GPIOB, &GPIO_InitStruct);
|
GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_VERY_HIGH;
|
||||||
|
GPIO_InitStruct.Alternate = GPIO_AF4_I2C1;
|
||||||
/* Peripheral clock enable */
|
HAL_GPIO_Init(GPIOB, &GPIO_InitStruct);
|
||||||
__HAL_RCC_I2C1_CLK_ENABLE();
|
|
||||||
/* USER CODE BEGIN I2C1_MspInit 1 */
|
/* Peripheral clock enable */
|
||||||
|
__HAL_RCC_I2C1_CLK_ENABLE();
|
||||||
/* USER CODE END I2C1_MspInit 1 */
|
/* USER CODE BEGIN I2C1_MspInit 1 */
|
||||||
}
|
|
||||||
|
/* USER CODE END I2C1_MspInit 1 */
|
||||||
}
|
|
||||||
|
}
|
||||||
/**
|
|
||||||
* @brief I2C MSP De-Initialization
|
}
|
||||||
* This function freeze the hardware resources used in this example
|
|
||||||
* @param hi2c: I2C handle pointer
|
/**
|
||||||
* @retval None
|
* @brief I2C MSP De-Initialization
|
||||||
*/
|
* This function freeze the hardware resources used in this example
|
||||||
void HAL_I2C_MspDeInit(I2C_HandleTypeDef* hi2c)
|
* @param hi2c: I2C handle pointer
|
||||||
{
|
* @retval None
|
||||||
if(hi2c->Instance==I2C1)
|
*/
|
||||||
{
|
void HAL_I2C_MspDeInit(I2C_HandleTypeDef* hi2c)
|
||||||
/* USER CODE BEGIN I2C1_MspDeInit 0 */
|
{
|
||||||
|
if(hi2c->Instance==I2C1)
|
||||||
/* USER CODE END I2C1_MspDeInit 0 */
|
{
|
||||||
/* Peripheral clock disable */
|
/* USER CODE BEGIN I2C1_MspDeInit 0 */
|
||||||
__HAL_RCC_I2C1_CLK_DISABLE();
|
|
||||||
|
/* USER CODE END I2C1_MspDeInit 0 */
|
||||||
/**I2C1 GPIO Configuration
|
/* Peripheral clock disable */
|
||||||
PB8 ------> I2C1_SCL
|
__HAL_RCC_I2C1_CLK_DISABLE();
|
||||||
PB9 ------> I2C1_SDA
|
|
||||||
*/
|
/**I2C1 GPIO Configuration
|
||||||
HAL_GPIO_DeInit(GPIOB, GPIO_PIN_8);
|
PB8 ------> I2C1_SCL
|
||||||
|
PB9 ------> I2C1_SDA
|
||||||
HAL_GPIO_DeInit(GPIOB, GPIO_PIN_9);
|
*/
|
||||||
|
HAL_GPIO_DeInit(GPIOB, GPIO_PIN_8);
|
||||||
/* USER CODE BEGIN I2C1_MspDeInit 1 */
|
|
||||||
|
HAL_GPIO_DeInit(GPIOB, GPIO_PIN_9);
|
||||||
/* USER CODE END I2C1_MspDeInit 1 */
|
|
||||||
}
|
/* USER CODE BEGIN I2C1_MspDeInit 1 */
|
||||||
|
|
||||||
}
|
/* USER CODE END I2C1_MspDeInit 1 */
|
||||||
|
}
|
||||||
/**
|
|
||||||
* @brief UART MSP Initialization
|
}
|
||||||
* This function configures the hardware resources used in this example
|
|
||||||
* @param huart: UART handle pointer
|
/**
|
||||||
* @retval None
|
* @brief UART MSP Initialization
|
||||||
*/
|
* This function configures the hardware resources used in this example
|
||||||
void HAL_UART_MspInit(UART_HandleTypeDef* huart)
|
* @param huart: UART handle pointer
|
||||||
{
|
* @retval None
|
||||||
GPIO_InitTypeDef GPIO_InitStruct = {0};
|
*/
|
||||||
RCC_PeriphCLKInitTypeDef PeriphClkInit = {0};
|
void HAL_UART_MspInit(UART_HandleTypeDef* huart)
|
||||||
if(huart->Instance==LPUART1)
|
{
|
||||||
{
|
GPIO_InitTypeDef GPIO_InitStruct = {0};
|
||||||
/* USER CODE BEGIN LPUART1_MspInit 0 */
|
RCC_PeriphCLKInitTypeDef PeriphClkInit = {0};
|
||||||
|
if(huart->Instance==LPUART1)
|
||||||
/* USER CODE END LPUART1_MspInit 0 */
|
{
|
||||||
|
/* USER CODE BEGIN LPUART1_MspInit 0 */
|
||||||
/** Initializes the peripherals clock
|
|
||||||
*/
|
/* USER CODE END LPUART1_MspInit 0 */
|
||||||
PeriphClkInit.PeriphClockSelection = RCC_PERIPHCLK_LPUART1;
|
|
||||||
PeriphClkInit.Lpuart1ClockSelection = RCC_LPUART1CLKSOURCE_PCLK1;
|
/** Initializes the peripherals clock
|
||||||
if (HAL_RCCEx_PeriphCLKConfig(&PeriphClkInit) != HAL_OK)
|
*/
|
||||||
{
|
PeriphClkInit.PeriphClockSelection = RCC_PERIPHCLK_LPUART1;
|
||||||
Error_Handler();
|
PeriphClkInit.Lpuart1ClockSelection = RCC_LPUART1CLKSOURCE_PCLK1;
|
||||||
}
|
if (HAL_RCCEx_PeriphCLKConfig(&PeriphClkInit) != HAL_OK)
|
||||||
|
{
|
||||||
/* Peripheral clock enable */
|
Error_Handler();
|
||||||
__HAL_RCC_LPUART1_CLK_ENABLE();
|
}
|
||||||
|
|
||||||
__HAL_RCC_GPIOG_CLK_ENABLE();
|
/* Peripheral clock enable */
|
||||||
HAL_PWREx_EnableVddIO2();
|
__HAL_RCC_LPUART1_CLK_ENABLE();
|
||||||
/**LPUART1 GPIO Configuration
|
|
||||||
PG7 ------> LPUART1_TX
|
__HAL_RCC_GPIOG_CLK_ENABLE();
|
||||||
PG8 ------> LPUART1_RX
|
HAL_PWREx_EnableVddIO2();
|
||||||
*/
|
/**LPUART1 GPIO Configuration
|
||||||
GPIO_InitStruct.Pin = STLK_RX_Pin|STLK_TX_Pin;
|
PG7 ------> LPUART1_TX
|
||||||
GPIO_InitStruct.Mode = GPIO_MODE_AF_PP;
|
PG8 ------> LPUART1_RX
|
||||||
GPIO_InitStruct.Pull = GPIO_NOPULL;
|
*/
|
||||||
GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_HIGH;
|
GPIO_InitStruct.Pin = STLK_RX_Pin|STLK_TX_Pin;
|
||||||
GPIO_InitStruct.Alternate = GPIO_AF8_LPUART1;
|
GPIO_InitStruct.Mode = GPIO_MODE_AF_PP;
|
||||||
HAL_GPIO_Init(GPIOG, &GPIO_InitStruct);
|
GPIO_InitStruct.Pull = GPIO_NOPULL;
|
||||||
|
GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_HIGH;
|
||||||
/* LPUART1 DMA Init */
|
GPIO_InitStruct.Alternate = GPIO_AF8_LPUART1;
|
||||||
/* LPUART_RX Init */
|
HAL_GPIO_Init(GPIOG, &GPIO_InitStruct);
|
||||||
hdma_lpuart_rx.Instance = DMA2_Channel7;
|
|
||||||
hdma_lpuart_rx.Init.Request = DMA_REQUEST_4;
|
/* LPUART1 DMA Init */
|
||||||
hdma_lpuart_rx.Init.Direction = DMA_PERIPH_TO_MEMORY;
|
/* LPUART_RX Init */
|
||||||
hdma_lpuart_rx.Init.PeriphInc = DMA_PINC_DISABLE;
|
hdma_lpuart_rx.Instance = DMA2_Channel7;
|
||||||
hdma_lpuart_rx.Init.MemInc = DMA_MINC_ENABLE;
|
hdma_lpuart_rx.Init.Request = DMA_REQUEST_4;
|
||||||
hdma_lpuart_rx.Init.PeriphDataAlignment = DMA_PDATAALIGN_BYTE;
|
hdma_lpuart_rx.Init.Direction = DMA_PERIPH_TO_MEMORY;
|
||||||
hdma_lpuart_rx.Init.MemDataAlignment = DMA_MDATAALIGN_BYTE;
|
hdma_lpuart_rx.Init.PeriphInc = DMA_PINC_DISABLE;
|
||||||
hdma_lpuart_rx.Init.Mode = DMA_NORMAL;
|
hdma_lpuart_rx.Init.MemInc = DMA_MINC_ENABLE;
|
||||||
hdma_lpuart_rx.Init.Priority = DMA_PRIORITY_LOW;
|
hdma_lpuart_rx.Init.PeriphDataAlignment = DMA_PDATAALIGN_BYTE;
|
||||||
if (HAL_DMA_Init(&hdma_lpuart_rx) != HAL_OK)
|
hdma_lpuart_rx.Init.MemDataAlignment = DMA_MDATAALIGN_BYTE;
|
||||||
{
|
hdma_lpuart_rx.Init.Mode = DMA_NORMAL;
|
||||||
Error_Handler();
|
hdma_lpuart_rx.Init.Priority = DMA_PRIORITY_LOW;
|
||||||
}
|
if (HAL_DMA_Init(&hdma_lpuart_rx) != HAL_OK)
|
||||||
|
{
|
||||||
__HAL_LINKDMA(huart,hdmarx,hdma_lpuart_rx);
|
Error_Handler();
|
||||||
|
}
|
||||||
/* LPUART1 interrupt Init */
|
|
||||||
HAL_NVIC_SetPriority(LPUART1_IRQn, 5, 0);
|
__HAL_LINKDMA(huart,hdmarx,hdma_lpuart_rx);
|
||||||
HAL_NVIC_EnableIRQ(LPUART1_IRQn);
|
|
||||||
/* USER CODE BEGIN LPUART1_MspInit 1 */
|
/* LPUART1 interrupt Init */
|
||||||
|
HAL_NVIC_SetPriority(LPUART1_IRQn, 5, 0);
|
||||||
/* USER CODE END LPUART1_MspInit 1 */
|
HAL_NVIC_EnableIRQ(LPUART1_IRQn);
|
||||||
}
|
/* USER CODE BEGIN LPUART1_MspInit 1 */
|
||||||
|
|
||||||
}
|
/* USER CODE END LPUART1_MspInit 1 */
|
||||||
|
|
||||||
/**
|
}
|
||||||
* @brief UART MSP De-Initialization
|
|
||||||
* This function freeze the hardware resources used in this example
|
}
|
||||||
* @param huart: UART handle pointer
|
|
||||||
* @retval None
|
/**
|
||||||
*/
|
* @brief UART MSP De-Initialization
|
||||||
void HAL_UART_MspDeInit(UART_HandleTypeDef* huart)
|
* This function freeze the hardware resources used in this example
|
||||||
{
|
* @param huart: UART handle pointer
|
||||||
if(huart->Instance==LPUART1)
|
* @retval None
|
||||||
{
|
*/
|
||||||
/* USER CODE BEGIN LPUART1_MspDeInit 0 */
|
void HAL_UART_MspDeInit(UART_HandleTypeDef* huart)
|
||||||
|
{
|
||||||
/* USER CODE END LPUART1_MspDeInit 0 */
|
if(huart->Instance==LPUART1)
|
||||||
/* Peripheral clock disable */
|
{
|
||||||
__HAL_RCC_LPUART1_CLK_DISABLE();
|
/* USER CODE BEGIN LPUART1_MspDeInit 0 */
|
||||||
|
|
||||||
/**LPUART1 GPIO Configuration
|
/* USER CODE END LPUART1_MspDeInit 0 */
|
||||||
PG7 ------> LPUART1_TX
|
/* Peripheral clock disable */
|
||||||
PG8 ------> LPUART1_RX
|
__HAL_RCC_LPUART1_CLK_DISABLE();
|
||||||
*/
|
|
||||||
HAL_GPIO_DeInit(GPIOG, STLK_RX_Pin|STLK_TX_Pin);
|
/**LPUART1 GPIO Configuration
|
||||||
|
PG7 ------> LPUART1_TX
|
||||||
/* LPUART1 DMA DeInit */
|
PG8 ------> LPUART1_RX
|
||||||
HAL_DMA_DeInit(huart->hdmarx);
|
*/
|
||||||
|
HAL_GPIO_DeInit(GPIOG, STLK_RX_Pin|STLK_TX_Pin);
|
||||||
/* LPUART1 interrupt DeInit */
|
|
||||||
HAL_NVIC_DisableIRQ(LPUART1_IRQn);
|
/* LPUART1 DMA DeInit */
|
||||||
/* USER CODE BEGIN LPUART1_MspDeInit 1 */
|
HAL_DMA_DeInit(huart->hdmarx);
|
||||||
|
|
||||||
/* USER CODE END LPUART1_MspDeInit 1 */
|
/* LPUART1 interrupt DeInit */
|
||||||
}
|
HAL_NVIC_DisableIRQ(LPUART1_IRQn);
|
||||||
|
/* USER CODE BEGIN LPUART1_MspDeInit 1 */
|
||||||
}
|
|
||||||
|
/* USER CODE END LPUART1_MspDeInit 1 */
|
||||||
/**
|
}
|
||||||
* @brief RTC MSP Initialization
|
|
||||||
* This function configures the hardware resources used in this example
|
}
|
||||||
* @param hrtc: RTC handle pointer
|
|
||||||
* @retval None
|
/**
|
||||||
*/
|
* @brief RTC MSP Initialization
|
||||||
void HAL_RTC_MspInit(RTC_HandleTypeDef* hrtc)
|
* This function configures the hardware resources used in this example
|
||||||
{
|
* @param hrtc: RTC handle pointer
|
||||||
RCC_PeriphCLKInitTypeDef PeriphClkInit = {0};
|
* @retval None
|
||||||
if(hrtc->Instance==RTC)
|
*/
|
||||||
{
|
void HAL_RTC_MspInit(RTC_HandleTypeDef* hrtc)
|
||||||
/* USER CODE BEGIN RTC_MspInit 0 */
|
{
|
||||||
|
RCC_PeriphCLKInitTypeDef PeriphClkInit = {0};
|
||||||
/* USER CODE END RTC_MspInit 0 */
|
if(hrtc->Instance==RTC)
|
||||||
|
{
|
||||||
/** Initializes the peripherals clock
|
/* USER CODE BEGIN RTC_MspInit 0 */
|
||||||
*/
|
|
||||||
PeriphClkInit.PeriphClockSelection = RCC_PERIPHCLK_RTC;
|
/* USER CODE END RTC_MspInit 0 */
|
||||||
PeriphClkInit.RTCClockSelection = RCC_RTCCLKSOURCE_LSE;
|
|
||||||
if (HAL_RCCEx_PeriphCLKConfig(&PeriphClkInit) != HAL_OK)
|
/** Initializes the peripherals clock
|
||||||
{
|
*/
|
||||||
Error_Handler();
|
PeriphClkInit.PeriphClockSelection = RCC_PERIPHCLK_RTC;
|
||||||
}
|
PeriphClkInit.RTCClockSelection = RCC_RTCCLKSOURCE_LSE;
|
||||||
|
if (HAL_RCCEx_PeriphCLKConfig(&PeriphClkInit) != HAL_OK)
|
||||||
/* Peripheral clock enable */
|
{
|
||||||
__HAL_RCC_RTC_ENABLE();
|
Error_Handler();
|
||||||
/* USER CODE BEGIN RTC_MspInit 1 */
|
}
|
||||||
|
|
||||||
/* USER CODE END RTC_MspInit 1 */
|
/* Peripheral clock enable */
|
||||||
}
|
__HAL_RCC_RTC_ENABLE();
|
||||||
|
/* USER CODE BEGIN RTC_MspInit 1 */
|
||||||
}
|
|
||||||
|
/* USER CODE END RTC_MspInit 1 */
|
||||||
/**
|
|
||||||
* @brief RTC MSP De-Initialization
|
}
|
||||||
* This function freeze the hardware resources used in this example
|
|
||||||
* @param hrtc: RTC handle pointer
|
}
|
||||||
* @retval None
|
|
||||||
*/
|
/**
|
||||||
void HAL_RTC_MspDeInit(RTC_HandleTypeDef* hrtc)
|
* @brief RTC MSP De-Initialization
|
||||||
{
|
* This function freeze the hardware resources used in this example
|
||||||
if(hrtc->Instance==RTC)
|
* @param hrtc: RTC handle pointer
|
||||||
{
|
* @retval None
|
||||||
/* USER CODE BEGIN RTC_MspDeInit 0 */
|
*/
|
||||||
|
void HAL_RTC_MspDeInit(RTC_HandleTypeDef* hrtc)
|
||||||
/* USER CODE END RTC_MspDeInit 0 */
|
{
|
||||||
/* Peripheral clock disable */
|
if(hrtc->Instance==RTC)
|
||||||
__HAL_RCC_RTC_DISABLE();
|
{
|
||||||
/* USER CODE BEGIN RTC_MspDeInit 1 */
|
/* USER CODE BEGIN RTC_MspDeInit 0 */
|
||||||
|
|
||||||
/* USER CODE END RTC_MspDeInit 1 */
|
/* USER CODE END RTC_MspDeInit 0 */
|
||||||
}
|
/* Peripheral clock disable */
|
||||||
|
__HAL_RCC_RTC_DISABLE();
|
||||||
}
|
/* USER CODE BEGIN RTC_MspDeInit 1 */
|
||||||
|
|
||||||
/* USER CODE BEGIN 1 */
|
/* USER CODE END RTC_MspDeInit 1 */
|
||||||
|
}
|
||||||
/* USER CODE END 1 */
|
|
||||||
|
}
|
||||||
|
|
||||||
|
/* USER CODE BEGIN 1 */
|
||||||
|
|
||||||
|
/* USER CODE END 1 */
|
||||||
|
@ -1,136 +1,135 @@
|
|||||||
/* USER CODE BEGIN Header */
|
/* USER CODE BEGIN Header */
|
||||||
/**
|
/**
|
||||||
******************************************************************************
|
******************************************************************************
|
||||||
* @file stm32l4xx_hal_timebase_TIM.c
|
* @file stm32l4xx_hal_timebase_TIM.c
|
||||||
* @brief HAL time base based on the hardware TIM.
|
* @brief HAL time base based on the hardware TIM.
|
||||||
******************************************************************************
|
******************************************************************************
|
||||||
* @attention
|
* @attention
|
||||||
*
|
*
|
||||||
* Copyright (c) 2022 STMicroelectronics.
|
* Copyright (c) 2022 STMicroelectronics.
|
||||||
* All rights reserved.
|
* All rights reserved.
|
||||||
*
|
*
|
||||||
* This software is licensed under terms that can be found in the LICENSE file
|
* This software is licensed under terms that can be found in the LICENSE file
|
||||||
* in the root directory of this software component.
|
* in the root directory of this software component.
|
||||||
* If no LICENSE file comes with this software, it is provided AS-IS.
|
* If no LICENSE file comes with this software, it is provided AS-IS.
|
||||||
*
|
*
|
||||||
******************************************************************************
|
******************************************************************************
|
||||||
*/
|
*/
|
||||||
/* USER CODE END Header */
|
/* USER CODE END Header */
|
||||||
|
|
||||||
/* Includes ------------------------------------------------------------------*/
|
/* Includes ------------------------------------------------------------------*/
|
||||||
#include "stm32l4xx_hal.h"
|
#include "stm32l4xx_hal.h"
|
||||||
#include "stm32l4xx_hal_tim.h"
|
#include "stm32l4xx_hal_tim.h"
|
||||||
|
|
||||||
/* Private typedef -----------------------------------------------------------*/
|
/* Private typedef -----------------------------------------------------------*/
|
||||||
/* Private define ------------------------------------------------------------*/
|
/* Private define ------------------------------------------------------------*/
|
||||||
/* Private macro -------------------------------------------------------------*/
|
/* Private macro -------------------------------------------------------------*/
|
||||||
/* Private variables ---------------------------------------------------------*/
|
/* Private variables ---------------------------------------------------------*/
|
||||||
TIM_HandleTypeDef htim6;
|
TIM_HandleTypeDef htim6;
|
||||||
/* Private function prototypes -----------------------------------------------*/
|
/* Private function prototypes -----------------------------------------------*/
|
||||||
/* Private functions ---------------------------------------------------------*/
|
/* Private functions ---------------------------------------------------------*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief This function configures the TIM6 as a time base source.
|
* @brief This function configures the TIM6 as a time base source.
|
||||||
* The time source is configured to have 1ms time base with a dedicated
|
* The time source is configured to have 1ms time base with a dedicated
|
||||||
* Tick interrupt priority.
|
* Tick interrupt priority.
|
||||||
* @note This function is called automatically at the beginning of program after
|
* @note This function is called automatically at the beginning of program after
|
||||||
* reset by HAL_Init() or at any time when clock is configured, by HAL_RCC_ClockConfig().
|
* reset by HAL_Init() or at any time when clock is configured, by HAL_RCC_ClockConfig().
|
||||||
* @param TickPriority: Tick interrupt priority.
|
* @param TickPriority: Tick interrupt priority.
|
||||||
* @retval HAL status
|
* @retval HAL status
|
||||||
*/
|
*/
|
||||||
HAL_StatusTypeDef HAL_InitTick(uint32_t TickPriority)
|
HAL_StatusTypeDef HAL_InitTick(uint32_t TickPriority)
|
||||||
{
|
{
|
||||||
RCC_ClkInitTypeDef clkconfig;
|
RCC_ClkInitTypeDef clkconfig;
|
||||||
uint32_t uwTimclock, uwAPB1Prescaler;
|
uint32_t uwTimclock, uwAPB1Prescaler;
|
||||||
|
|
||||||
uint32_t uwPrescalerValue;
|
uint32_t uwPrescalerValue;
|
||||||
uint32_t pFLatency;
|
uint32_t pFLatency;
|
||||||
HAL_StatusTypeDef status = HAL_OK;
|
HAL_StatusTypeDef status = HAL_OK;
|
||||||
|
|
||||||
/* Enable TIM6 clock */
|
/* Enable TIM6 clock */
|
||||||
__HAL_RCC_TIM6_CLK_ENABLE();
|
__HAL_RCC_TIM6_CLK_ENABLE();
|
||||||
|
/* Get clock configuration */
|
||||||
/* Get clock configuration */
|
HAL_RCC_GetClockConfig(&clkconfig, &pFLatency);
|
||||||
HAL_RCC_GetClockConfig(&clkconfig, &pFLatency);
|
/* Get APB1 prescaler */
|
||||||
|
uwAPB1Prescaler = clkconfig.APB1CLKDivider;
|
||||||
/* Get APB1 prescaler */
|
/* Compute TIM6 clock */
|
||||||
uwAPB1Prescaler = clkconfig.APB1CLKDivider;
|
if (uwAPB1Prescaler == RCC_HCLK_DIV1)
|
||||||
/* Compute TIM6 clock */
|
{
|
||||||
if (uwAPB1Prescaler == RCC_HCLK_DIV1)
|
uwTimclock = HAL_RCC_GetPCLK1Freq();
|
||||||
{
|
}
|
||||||
uwTimclock = HAL_RCC_GetPCLK1Freq();
|
else
|
||||||
}
|
{
|
||||||
else
|
uwTimclock = 2UL * HAL_RCC_GetPCLK1Freq();
|
||||||
{
|
}
|
||||||
uwTimclock = 2UL * HAL_RCC_GetPCLK1Freq();
|
|
||||||
}
|
/* Compute the prescaler value to have TIM6 counter clock equal to 1MHz */
|
||||||
|
uwPrescalerValue = (uint32_t) ((uwTimclock / 1000000U) - 1U);
|
||||||
/* Compute the prescaler value to have TIM6 counter clock equal to 1MHz */
|
|
||||||
uwPrescalerValue = (uint32_t) ((uwTimclock / 1000000U) - 1U);
|
/* Initialize TIM6 */
|
||||||
|
htim6.Instance = TIM6;
|
||||||
/* Initialize TIM6 */
|
|
||||||
htim6.Instance = TIM6;
|
/* Initialize TIMx peripheral as follow:
|
||||||
|
|
||||||
/* Initialize TIMx peripheral as follow:
|
+ Period = [(TIM6CLK/1000) - 1]. to have a (1/1000) s time base.
|
||||||
+ Period = [(TIM6CLK/1000) - 1]. to have a (1/1000) s time base.
|
+ Prescaler = (uwTimclock/1000000 - 1) to have a 1MHz counter clock.
|
||||||
+ Prescaler = (uwTimclock/1000000 - 1) to have a 1MHz counter clock.
|
+ ClockDivision = 0
|
||||||
+ ClockDivision = 0
|
+ Counter direction = Up
|
||||||
+ Counter direction = Up
|
*/
|
||||||
*/
|
htim6.Init.Period = (1000000U / 1000U) - 1U;
|
||||||
htim6.Init.Period = (1000000U / 1000U) - 1U;
|
htim6.Init.Prescaler = uwPrescalerValue;
|
||||||
htim6.Init.Prescaler = uwPrescalerValue;
|
htim6.Init.ClockDivision = 0;
|
||||||
htim6.Init.ClockDivision = 0;
|
htim6.Init.CounterMode = TIM_COUNTERMODE_UP;
|
||||||
htim6.Init.CounterMode = TIM_COUNTERMODE_UP;
|
htim6.Init.AutoReloadPreload = TIM_AUTORELOAD_PRELOAD_DISABLE;
|
||||||
htim6.Init.AutoReloadPreload = TIM_AUTORELOAD_PRELOAD_DISABLE;
|
|
||||||
|
status = HAL_TIM_Base_Init(&htim6);
|
||||||
status = HAL_TIM_Base_Init(&htim6);
|
if (status == HAL_OK)
|
||||||
if (status == HAL_OK)
|
{
|
||||||
{
|
/* Start the TIM time Base generation in interrupt mode */
|
||||||
/* Start the TIM time Base generation in interrupt mode */
|
status = HAL_TIM_Base_Start_IT(&htim6);
|
||||||
status = HAL_TIM_Base_Start_IT(&htim6);
|
if (status == HAL_OK)
|
||||||
if (status == HAL_OK)
|
{
|
||||||
{
|
/* Enable the TIM6 global Interrupt */
|
||||||
/* Enable the TIM6 global Interrupt */
|
HAL_NVIC_EnableIRQ(TIM6_DAC_IRQn);
|
||||||
HAL_NVIC_EnableIRQ(TIM6_DAC_IRQn);
|
/* Configure the SysTick IRQ priority */
|
||||||
/* Configure the SysTick IRQ priority */
|
if (TickPriority < (1UL << __NVIC_PRIO_BITS))
|
||||||
if (TickPriority < (1UL << __NVIC_PRIO_BITS))
|
{
|
||||||
{
|
/* Configure the TIM IRQ priority */
|
||||||
/* Configure the TIM IRQ priority */
|
HAL_NVIC_SetPriority(TIM6_DAC_IRQn, TickPriority, 0U);
|
||||||
HAL_NVIC_SetPriority(TIM6_DAC_IRQn, TickPriority, 0U);
|
uwTickPrio = TickPriority;
|
||||||
uwTickPrio = TickPriority;
|
}
|
||||||
}
|
else
|
||||||
else
|
{
|
||||||
{
|
status = HAL_ERROR;
|
||||||
status = HAL_ERROR;
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
/* Return function status */
|
||||||
/* Return function status */
|
return status;
|
||||||
return status;
|
}
|
||||||
}
|
|
||||||
|
/**
|
||||||
/**
|
* @brief Suspend Tick increment.
|
||||||
* @brief Suspend Tick increment.
|
* @note Disable the tick increment by disabling TIM6 update interrupt.
|
||||||
* @note Disable the tick increment by disabling TIM6 update interrupt.
|
* @param None
|
||||||
* @param None
|
* @retval None
|
||||||
* @retval None
|
*/
|
||||||
*/
|
void HAL_SuspendTick(void)
|
||||||
void HAL_SuspendTick(void)
|
{
|
||||||
{
|
/* Disable TIM6 update Interrupt */
|
||||||
/* Disable TIM6 update Interrupt */
|
__HAL_TIM_DISABLE_IT(&htim6, TIM_IT_UPDATE);
|
||||||
__HAL_TIM_DISABLE_IT(&htim6, TIM_IT_UPDATE);
|
}
|
||||||
}
|
|
||||||
|
/**
|
||||||
/**
|
* @brief Resume Tick increment.
|
||||||
* @brief Resume Tick increment.
|
* @note Enable the tick increment by Enabling TIM6 update interrupt.
|
||||||
* @note Enable the tick increment by Enabling TIM6 update interrupt.
|
* @param None
|
||||||
* @param None
|
* @retval None
|
||||||
* @retval None
|
*/
|
||||||
*/
|
void HAL_ResumeTick(void)
|
||||||
void HAL_ResumeTick(void)
|
{
|
||||||
{
|
/* Enable TIM6 Update interrupt */
|
||||||
/* Enable TIM6 Update interrupt */
|
__HAL_TIM_ENABLE_IT(&htim6, TIM_IT_UPDATE);
|
||||||
__HAL_TIM_ENABLE_IT(&htim6, TIM_IT_UPDATE);
|
}
|
||||||
}
|
|
||||||
|
|
||||||
|
File diff suppressed because it is too large
Load Diff
@ -5,10 +5,10 @@
|
|||||||
**
|
**
|
||||||
** @author : Auto-generated by STM32CubeIDE
|
** @author : Auto-generated by STM32CubeIDE
|
||||||
**
|
**
|
||||||
** Abstract : Linker script for NUCLEO-L4A6ZG Board embedding STM32L4A6ZGTx Device from stm32l4 series
|
** @brief : Linker script for STM32L4A6ZGTx Device from STM32L4 series
|
||||||
** 1024Kbytes FLASH
|
** 1024KBytes FLASH
|
||||||
** 320Kbytes RAM
|
** 320KBytes RAM
|
||||||
** 64Kbytes RAM2
|
** 64KBytes RAM2
|
||||||
**
|
**
|
||||||
** Set heap size, stack size and stack location according
|
** Set heap size, stack size and stack location according
|
||||||
** to application requirements.
|
** to application requirements.
|
||||||
@ -23,7 +23,7 @@
|
|||||||
******************************************************************************
|
******************************************************************************
|
||||||
** @attention
|
** @attention
|
||||||
**
|
**
|
||||||
** Copyright (c) 2022 STMicroelectronics.
|
** Copyright (c) 2024 STMicroelectronics.
|
||||||
** All rights reserved.
|
** All rights reserved.
|
||||||
**
|
**
|
||||||
** This software is licensed under terms that can be found in the LICENSE file
|
** This software is licensed under terms that can be found in the LICENSE file
|
||||||
@ -39,8 +39,8 @@ ENTRY(Reset_Handler)
|
|||||||
/* Highest address of the user mode stack */
|
/* Highest address of the user mode stack */
|
||||||
_estack = ORIGIN(RAM) + LENGTH(RAM); /* end of "RAM" Ram type memory */
|
_estack = ORIGIN(RAM) + LENGTH(RAM); /* end of "RAM" Ram type memory */
|
||||||
|
|
||||||
_Min_Heap_Size = 0x200 ; /* required amount of heap */
|
_Min_Heap_Size = 0x200; /* required amount of heap */
|
||||||
_Min_Stack_Size = 0x400 ; /* required amount of stack */
|
_Min_Stack_Size = 0x400; /* required amount of stack */
|
||||||
|
|
||||||
/* Memories definition */
|
/* Memories definition */
|
||||||
MEMORY
|
MEMORY
|
||||||
@ -87,13 +87,15 @@ SECTIONS
|
|||||||
. = ALIGN(4);
|
. = ALIGN(4);
|
||||||
} >FLASH
|
} >FLASH
|
||||||
|
|
||||||
.ARM.extab : {
|
.ARM.extab (READONLY) : /* The "READONLY" keyword is only supported in GCC11 and later, remove it if using GCC10 or earlier. */
|
||||||
|
{
|
||||||
. = ALIGN(4);
|
. = ALIGN(4);
|
||||||
*(.ARM.extab* .gnu.linkonce.armextab.*)
|
*(.ARM.extab* .gnu.linkonce.armextab.*)
|
||||||
. = ALIGN(4);
|
. = ALIGN(4);
|
||||||
} >FLASH
|
} >FLASH
|
||||||
|
|
||||||
.ARM : {
|
.ARM (READONLY) : /* The "READONLY" keyword is only supported in GCC11 and later, remove it if using GCC10 or earlier. */
|
||||||
|
{
|
||||||
. = ALIGN(4);
|
. = ALIGN(4);
|
||||||
__exidx_start = .;
|
__exidx_start = .;
|
||||||
*(.ARM.exidx*)
|
*(.ARM.exidx*)
|
||||||
@ -101,7 +103,7 @@ SECTIONS
|
|||||||
. = ALIGN(4);
|
. = ALIGN(4);
|
||||||
} >FLASH
|
} >FLASH
|
||||||
|
|
||||||
.preinit_array :
|
.preinit_array (READONLY) : /* The "READONLY" keyword is only supported in GCC11 and later, remove it if using GCC10 or earlier. */
|
||||||
{
|
{
|
||||||
. = ALIGN(4);
|
. = ALIGN(4);
|
||||||
PROVIDE_HIDDEN (__preinit_array_start = .);
|
PROVIDE_HIDDEN (__preinit_array_start = .);
|
||||||
@ -110,7 +112,7 @@ SECTIONS
|
|||||||
. = ALIGN(4);
|
. = ALIGN(4);
|
||||||
} >FLASH
|
} >FLASH
|
||||||
|
|
||||||
.init_array :
|
.init_array (READONLY) : /* The "READONLY" keyword is only supported in GCC11 and later, remove it if using GCC10 or earlier. */
|
||||||
{
|
{
|
||||||
. = ALIGN(4);
|
. = ALIGN(4);
|
||||||
PROVIDE_HIDDEN (__init_array_start = .);
|
PROVIDE_HIDDEN (__init_array_start = .);
|
||||||
@ -120,7 +122,7 @@ SECTIONS
|
|||||||
. = ALIGN(4);
|
. = ALIGN(4);
|
||||||
} >FLASH
|
} >FLASH
|
||||||
|
|
||||||
.fini_array :
|
.fini_array (READONLY) : /* The "READONLY" keyword is only supported in GCC11 and later, remove it if using GCC10 or earlier. */
|
||||||
{
|
{
|
||||||
. = ALIGN(4);
|
. = ALIGN(4);
|
||||||
PROVIDE_HIDDEN (__fini_array_start = .);
|
PROVIDE_HIDDEN (__fini_array_start = .);
|
||||||
|
@ -1,4 +1,7 @@
|
|||||||
#MicroXplorer Configuration settings - do not modify
|
#MicroXplorer Configuration settings - do not modify
|
||||||
|
CAD.formats=
|
||||||
|
CAD.pinconfig=
|
||||||
|
CAD.provider=
|
||||||
Dma.LPUART_RX.0.Direction=DMA_PERIPH_TO_MEMORY
|
Dma.LPUART_RX.0.Direction=DMA_PERIPH_TO_MEMORY
|
||||||
Dma.LPUART_RX.0.Instance=DMA2_Channel7
|
Dma.LPUART_RX.0.Instance=DMA2_Channel7
|
||||||
Dma.LPUART_RX.0.MemDataAlignment=DMA_MDATAALIGN_BYTE
|
Dma.LPUART_RX.0.MemDataAlignment=DMA_MDATAALIGN_BYTE
|
||||||
@ -170,8 +173,8 @@ Mcu.PinsNb=112
|
|||||||
Mcu.ThirdPartyNb=0
|
Mcu.ThirdPartyNb=0
|
||||||
Mcu.UserConstants=
|
Mcu.UserConstants=
|
||||||
Mcu.UserName=STM32L4A6ZGTx
|
Mcu.UserName=STM32L4A6ZGTx
|
||||||
MxCube.Version=6.6.1
|
MxCube.Version=6.12.1
|
||||||
MxDb.Version=DB.6.0.60
|
MxDb.Version=DB.6.0.121
|
||||||
NVIC.BusFault_IRQn=true\:0\:0\:false\:false\:true\:false\:true\:false\:false
|
NVIC.BusFault_IRQn=true\:0\:0\:false\:false\:true\:false\:true\:false\:false
|
||||||
NVIC.DMA2_Channel7_IRQn=true\:5\:0\:false\:false\:true\:true\:false\:true\:true
|
NVIC.DMA2_Channel7_IRQn=true\:5\:0\:false\:false\:true\:true\:false\:true\:true
|
||||||
NVIC.DebugMonitor_IRQn=true\:0\:0\:false\:false\:true\:false\:true\:false\:false
|
NVIC.DebugMonitor_IRQn=true\:0\:0\:false\:false\:true\:false\:true\:false\:false
|
||||||
@ -415,7 +418,7 @@ ProjectManager.CustomerFirmwarePackage=
|
|||||||
ProjectManager.DefaultFWLocation=true
|
ProjectManager.DefaultFWLocation=true
|
||||||
ProjectManager.DeletePrevious=true
|
ProjectManager.DeletePrevious=true
|
||||||
ProjectManager.DeviceId=STM32L4A6ZGTx
|
ProjectManager.DeviceId=STM32L4A6ZGTx
|
||||||
ProjectManager.FirmwarePackage=STM32Cube FW_L4 V1.17.2
|
ProjectManager.FirmwarePackage=STM32Cube FW_L4 V1.18.1
|
||||||
ProjectManager.FreePins=true
|
ProjectManager.FreePins=true
|
||||||
ProjectManager.HalAssertFull=false
|
ProjectManager.HalAssertFull=false
|
||||||
ProjectManager.HeapSize=0x200
|
ProjectManager.HeapSize=0x200
|
||||||
@ -428,10 +431,13 @@ ProjectManager.PreviousToolchain=
|
|||||||
ProjectManager.ProjectBuild=false
|
ProjectManager.ProjectBuild=false
|
||||||
ProjectManager.ProjectFileName=stm32l4a6zg-f0x.at1.ioc
|
ProjectManager.ProjectFileName=stm32l4a6zg-f0x.at1.ioc
|
||||||
ProjectManager.ProjectName=stm32l4a6zg-f0x.at1
|
ProjectManager.ProjectName=stm32l4a6zg-f0x.at1
|
||||||
|
ProjectManager.ProjectStructure=
|
||||||
ProjectManager.RegisterCallBack=
|
ProjectManager.RegisterCallBack=
|
||||||
ProjectManager.StackSize=0x400
|
ProjectManager.StackSize=0x400
|
||||||
ProjectManager.TargetToolchain=STM32CubeIDE
|
ProjectManager.TargetToolchain=STM32CubeIDE
|
||||||
ProjectManager.ToolChainLocation=
|
ProjectManager.ToolChainLocation=
|
||||||
|
ProjectManager.UAScriptAfterPath=
|
||||||
|
ProjectManager.UAScriptBeforePath=
|
||||||
ProjectManager.UnderRoot=true
|
ProjectManager.UnderRoot=true
|
||||||
ProjectManager.functionlistsort=1-SystemClock_Config-RCC-false-HAL-false,2-MX_GPIO_Init-GPIO-false-HAL-true,3-MX_DMA_Init-DMA-false-HAL-true,4-MX_I2C1_Init-I2C1-false-HAL-true,5-MX_LPUART1_UART_Init-LPUART1-false-HAL-true,6-MX_RTC_Init-RTC-false-HAL-true
|
ProjectManager.functionlistsort=1-SystemClock_Config-RCC-false-HAL-false,2-MX_GPIO_Init-GPIO-false-HAL-true,3-MX_DMA_Init-DMA-false-HAL-true,4-MX_I2C1_Init-I2C1-false-HAL-true,5-MX_LPUART1_UART_Init-LPUART1-false-HAL-true,6-MX_RTC_Init-RTC-false-HAL-true
|
||||||
RCC.ADCFreq_Value=48000000
|
RCC.ADCFreq_Value=48000000
|
||||||
@ -511,4 +517,5 @@ VP_RTC_VS_RTC_Calendar.Signal=RTC_VS_RTC_Calendar
|
|||||||
VP_SYS_VS_tim6.Mode=TIM6
|
VP_SYS_VS_tim6.Mode=TIM6
|
||||||
VP_SYS_VS_tim6.Signal=SYS_VS_tim6
|
VP_SYS_VS_tim6.Signal=SYS_VS_tim6
|
||||||
board=NUCLEO-L4A6ZG
|
board=NUCLEO-L4A6ZG
|
||||||
|
rtos.0.ip=FREERTOS
|
||||||
isbadioc=false
|
isbadioc=false
|
||||||
|
Loading…
Reference in New Issue
Block a user