Browse Source

JIECANG JC35W8 推杆小板代码

master
DESKTOP-1PDT1EL\10564 1 month ago
commit
41b99f482a
  1. 171
      .cproject
  2. 35
      .mxproject
  3. 32
      .project
  4. 25
      .settings/language.settings.xml
  5. 3
      .settings/stm32cubeide.project.prefs
  6. 52
      Core/Inc/adc.h
  7. 17
      Core/Inc/app.h
  8. 52
      Core/Inc/dma.h
  9. 49
      Core/Inc/gpio.h
  10. 76
      Core/Inc/main.h
  11. 43
      Core/Inc/modbus.h
  12. 351
      Core/Inc/stm32g0xx_hal_conf.h
  13. 65
      Core/Inc/stm32g0xx_it.h
  14. 57
      Core/Inc/tim.h
  15. 52
      Core/Inc/usart.h
  16. 150
      Core/Src/adc.c
  17. 224
      Core/Src/app.c
  18. 55
      Core/Src/dma.c
  19. 75
      Core/Src/gpio.c
  20. 188
      Core/Src/main.c
  21. 351
      Core/Src/modbus.c
  22. 81
      Core/Src/stm32g0xx_hal_msp.c
  23. 189
      Core/Src/stm32g0xx_it.c
  24. 155
      Core/Src/syscalls.c
  25. 79
      Core/Src/sysmem.c
  26. 302
      Core/Src/system_stm32g0xx.c
  27. 233
      Core/Src/tim.c
  28. 144
      Core/Src/usart.c
  29. 286
      Core/Startup/startup_stm32g031g8ux.s
  30. 73
      Debug/Core/Src/adc.d
  31. BIN
      Debug/Core/Src/adc.o
  32. 3
      Debug/Core/Src/adc.su
  33. 79
      Debug/Core/Src/app.d
  34. BIN
      Debug/Core/Src/app.o
  35. 8
      Debug/Core/Src/app.su
  36. 73
      Debug/Core/Src/dma.d
  37. BIN
      Debug/Core/Src/dma.o
  38. 1
      Debug/Core/Src/dma.su
  39. 73
      Debug/Core/Src/gpio.d
  40. BIN
      Debug/Core/Src/gpio.o
  41. 1
      Debug/Core/Src/gpio.su
  42. 83
      Debug/Core/Src/main.d
  43. BIN
      Debug/Core/Src/main.o
  44. 3
      Debug/Core/Src/main.su
  45. 77
      Debug/Core/Src/modbus.d
  46. BIN
      Debug/Core/Src/modbus.o
  47. 11
      Debug/Core/Src/modbus.su
  48. 72
      Debug/Core/Src/stm32g0xx_hal_msp.d
  49. BIN
      Debug/Core/Src/stm32g0xx_hal_msp.o
  50. 1
      Debug/Core/Src/stm32g0xx_hal_msp.su
  51. 74
      Debug/Core/Src/stm32g0xx_it.d
  52. BIN
      Debug/Core/Src/stm32g0xx_it.o
  53. 8
      Debug/Core/Src/stm32g0xx_it.su
  54. 63
      Debug/Core/Src/subdir.mk
  55. 1
      Debug/Core/Src/syscalls.d
  56. BIN
      Debug/Core/Src/syscalls.o
  57. 18
      Debug/Core/Src/syscalls.su
  58. 1
      Debug/Core/Src/sysmem.d
  59. BIN
      Debug/Core/Src/sysmem.o
  60. 1
      Debug/Core/Src/sysmem.su
  61. 71
      Debug/Core/Src/system_stm32g0xx.d
  62. BIN
      Debug/Core/Src/system_stm32g0xx.o
  63. 2
      Debug/Core/Src/system_stm32g0xx.su
  64. 73
      Debug/Core/Src/tim.d
  65. BIN
      Debug/Core/Src/tim.o
  66. 7
      Debug/Core/Src/tim.su
  67. 73
      Debug/Core/Src/usart.d
  68. BIN
      Debug/Core/Src/usart.o
  69. 3
      Debug/Core/Src/usart.su
  70. 2
      Debug/Core/Startup/startup_stm32g031g8ux.d
  71. BIN
      Debug/Core/Startup/startup_stm32g031g8ux.o
  72. 27
      Debug/Core/Startup/subdir.mk
  73. 72
      Debug/Drivers/STM32G0xx_HAL_Driver/Src/stm32g0xx_hal.d
  74. BIN
      Debug/Drivers/STM32G0xx_HAL_Driver/Src/stm32g0xx_hal.o
  75. 34
      Debug/Drivers/STM32G0xx_HAL_Driver/Src/stm32g0xx_hal.su
  76. 72
      Debug/Drivers/STM32G0xx_HAL_Driver/Src/stm32g0xx_hal_adc.d
  77. BIN
      Debug/Drivers/STM32G0xx_HAL_Driver/Src/stm32g0xx_hal_adc.o
  78. 59
      Debug/Drivers/STM32G0xx_HAL_Driver/Src/stm32g0xx_hal_adc.su
  79. 72
      Debug/Drivers/STM32G0xx_HAL_Driver/Src/stm32g0xx_hal_adc_ex.d
  80. BIN
      Debug/Drivers/STM32G0xx_HAL_Driver/Src/stm32g0xx_hal_adc_ex.o
  81. 17
      Debug/Drivers/STM32G0xx_HAL_Driver/Src/stm32g0xx_hal_adc_ex.su
  82. 72
      Debug/Drivers/STM32G0xx_HAL_Driver/Src/stm32g0xx_hal_cortex.d
  83. BIN
      Debug/Drivers/STM32G0xx_HAL_Driver/Src/stm32g0xx_hal_cortex.o
  84. 24
      Debug/Drivers/STM32G0xx_HAL_Driver/Src/stm32g0xx_hal_cortex.su
  85. 72
      Debug/Drivers/STM32G0xx_HAL_Driver/Src/stm32g0xx_hal_dma.d
  86. BIN
      Debug/Drivers/STM32G0xx_HAL_Driver/Src/stm32g0xx_hal_dma.o
  87. 15
      Debug/Drivers/STM32G0xx_HAL_Driver/Src/stm32g0xx_hal_dma.su
  88. 72
      Debug/Drivers/STM32G0xx_HAL_Driver/Src/stm32g0xx_hal_dma_ex.d
  89. BIN
      Debug/Drivers/STM32G0xx_HAL_Driver/Src/stm32g0xx_hal_dma_ex.o
  90. 5
      Debug/Drivers/STM32G0xx_HAL_Driver/Src/stm32g0xx_hal_dma_ex.su
  91. 72
      Debug/Drivers/STM32G0xx_HAL_Driver/Src/stm32g0xx_hal_exti.d
  92. BIN
      Debug/Drivers/STM32G0xx_HAL_Driver/Src/stm32g0xx_hal_exti.o
  93. 9
      Debug/Drivers/STM32G0xx_HAL_Driver/Src/stm32g0xx_hal_exti.su
  94. 72
      Debug/Drivers/STM32G0xx_HAL_Driver/Src/stm32g0xx_hal_flash.d
  95. BIN
      Debug/Drivers/STM32G0xx_HAL_Driver/Src/stm32g0xx_hal_flash.o
  96. 14
      Debug/Drivers/STM32G0xx_HAL_Driver/Src/stm32g0xx_hal_flash.su
  97. 72
      Debug/Drivers/STM32G0xx_HAL_Driver/Src/stm32g0xx_hal_flash_ex.d
  98. BIN
      Debug/Drivers/STM32G0xx_HAL_Driver/Src/stm32g0xx_hal_flash_ex.o
  99. 23
      Debug/Drivers/STM32G0xx_HAL_Driver/Src/stm32g0xx_hal_flash_ex.su
  100. 72
      Debug/Drivers/STM32G0xx_HAL_Driver/Src/stm32g0xx_hal_gpio.d

171
.cproject

@ -0,0 +1,171 @@
<?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.1940295628">
<storageModule buildSystemId="org.eclipse.cdt.managedbuilder.core.configurationDataProvider" id="com.st.stm32cube.ide.mcu.gnu.managedbuild.config.exe.debug.1940295628" 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.1940295628" 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.1940295628." name="/" resourcePath="">
<toolChain id="com.st.stm32cube.ide.mcu.gnu.managedbuild.toolchain.exe.debug.794670595" 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.507655738" name="MCU" superClass="com.st.stm32cube.ide.mcu.gnu.managedbuild.option.target_mcu" useByScannerDiscovery="true" value="STM32G031G8Ux" valueType="string"/>
<option id="com.st.stm32cube.ide.mcu.gnu.managedbuild.option.target_cpuid.851641771" 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.50945518" 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.target_board.1748895506" 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.1952062107" 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 || STM32G031G8Ux || 0 || 0 || arm-none-eabi- || ${gnu_tools_for_stm32_compiler_path} || ../Drivers/CMSIS/Include | ../Core/Inc | ../Drivers/STM32G0xx_HAL_Driver/Inc | ../Drivers/CMSIS/Device/ST/STM32G0xx/Include | ../Drivers/STM32G0xx_HAL_Driver/Inc/Legacy || || || USE_HAL_DRIVER | STM32G031xx || || Drivers | Core/Startup | Core || || || ${workspace_loc:/${ProjName}/STM32G031G8UX_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.1283563930" isAbstract="false" osList="all" superClass="com.st.stm32cube.ide.mcu.gnu.managedbuild.targetplatform"/>
<builder buildPath="${workspace_loc:/g031test}/Debug" id="com.st.stm32cube.ide.mcu.gnu.managedbuild.builder.1941579567" 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.398778314" 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.1598880994" 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.269368206" 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.847571386" superClass="com.st.stm32cube.ide.mcu.gnu.managedbuild.tool.assembler.input"/>
</tool>
<tool id="com.st.stm32cube.ide.mcu.gnu.managedbuild.tool.c.compiler.404157923" 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.823818041" 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.1583379115" 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.34944062" 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="STM32G031xx"/>
</option>
<option IS_BUILTIN_EMPTY="false" IS_VALUE_EMPTY="false" id="com.st.stm32cube.ide.mcu.gnu.managedbuild.tool.c.compiler.option.includepaths.1923100011" 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/STM32G0xx_HAL_Driver/Inc"/>
<listOptionValue builtIn="false" value="../Drivers/STM32G0xx_HAL_Driver/Inc/Legacy"/>
<listOptionValue builtIn="false" value="../Drivers/CMSIS/Device/ST/STM32G0xx/Include"/>
<listOptionValue builtIn="false" value="../Drivers/CMSIS/Include"/>
</option>
<inputType id="com.st.stm32cube.ide.mcu.gnu.managedbuild.tool.c.compiler.input.c.907199356" 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.1006218815" 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.514194294" 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.2090132509" 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.12611516" 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.1297836248" name="Linker Script (-T)" superClass="com.st.stm32cube.ide.mcu.gnu.managedbuild.tool.c.linker.option.script" value="${workspace_loc:/${ProjName}/STM32G031G8UX_FLASH.ld}" valueType="string"/>
<inputType id="com.st.stm32cube.ide.mcu.gnu.managedbuild.tool.c.linker.input.641431053" 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.1284326437" 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.345719094" 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.1466305444" 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.897698179" 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.1838806955" 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.704907007" 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.1188223840" 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.85871169" 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.1069598532" 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="Drivers"/>
</sourceEntries>
</configuration>
</storageModule>
<storageModule moduleId="org.eclipse.cdt.core.externalSettings"/>
</cconfiguration>
<cconfiguration id="com.st.stm32cube.ide.mcu.gnu.managedbuild.config.exe.release.2022941213">
<storageModule buildSystemId="org.eclipse.cdt.managedbuilder.core.configurationDataProvider" id="com.st.stm32cube.ide.mcu.gnu.managedbuild.config.exe.release.2022941213" 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.2022941213" 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.2022941213." name="/" resourcePath="">
<toolChain id="com.st.stm32cube.ide.mcu.gnu.managedbuild.toolchain.exe.release.1520020059" 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.1941518849" name="MCU" superClass="com.st.stm32cube.ide.mcu.gnu.managedbuild.option.target_mcu" useByScannerDiscovery="true" value="STM32G031G8Ux" valueType="string"/>
<option id="com.st.stm32cube.ide.mcu.gnu.managedbuild.option.target_cpuid.1889498675" 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.1410972139" 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.target_board.556557654" 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.346840318" 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 || STM32G031G8Ux || 0 || 0 || arm-none-eabi- || ${gnu_tools_for_stm32_compiler_path} || ../Drivers/CMSIS/Include | ../Core/Inc | ../Drivers/STM32G0xx_HAL_Driver/Inc | ../Drivers/CMSIS/Device/ST/STM32G0xx/Include | ../Drivers/STM32G0xx_HAL_Driver/Inc/Legacy || || || USE_HAL_DRIVER | STM32G031xx || || Drivers | Core/Startup | Core || || || ${workspace_loc:/${ProjName}/STM32G031G8UX_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.996241923" isAbstract="false" osList="all" superClass="com.st.stm32cube.ide.mcu.gnu.managedbuild.targetplatform"/>
<builder buildPath="${workspace_loc:/g031test}/Release" id="com.st.stm32cube.ide.mcu.gnu.managedbuild.builder.337425403" 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.1405289799" 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.710234926" 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.576121896" superClass="com.st.stm32cube.ide.mcu.gnu.managedbuild.tool.assembler.input"/>
</tool>
<tool id="com.st.stm32cube.ide.mcu.gnu.managedbuild.tool.c.compiler.30605102" 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.940935384" 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.1520711451" 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.599159979" 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="STM32G031xx"/>
</option>
<option IS_BUILTIN_EMPTY="false" IS_VALUE_EMPTY="false" id="com.st.stm32cube.ide.mcu.gnu.managedbuild.tool.c.compiler.option.includepaths.843768105" 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/STM32G0xx_HAL_Driver/Inc"/>
<listOptionValue builtIn="false" value="../Drivers/STM32G0xx_HAL_Driver/Inc/Legacy"/>
<listOptionValue builtIn="false" value="../Drivers/CMSIS/Device/ST/STM32G0xx/Include"/>
<listOptionValue builtIn="false" value="../Drivers/CMSIS/Include"/>
</option>
<inputType id="com.st.stm32cube.ide.mcu.gnu.managedbuild.tool.c.compiler.input.c.1009417458" 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.424737439" 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.76293572" 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.1837139365" 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.1776992133" 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.1053173042" name="Linker Script (-T)" superClass="com.st.stm32cube.ide.mcu.gnu.managedbuild.tool.c.linker.option.script" value="${workspace_loc:/${ProjName}/STM32G031G8UX_FLASH.ld}" valueType="string"/>
<inputType id="com.st.stm32cube.ide.mcu.gnu.managedbuild.tool.c.linker.input.556353790" 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.982386052" 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.170117837" 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.722977825" 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.121386269" 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.1252370026" 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.548323451" 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.1781296837" 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.2079653552" 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.1897155438" 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="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="g031test.null.75388537" name="g031test"/>
</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.2022941213;com.st.stm32cube.ide.mcu.gnu.managedbuild.config.exe.release.2022941213.;com.st.stm32cube.ide.mcu.gnu.managedbuild.tool.c.compiler.30605102;com.st.stm32cube.ide.mcu.gnu.managedbuild.tool.c.compiler.input.c.1009417458">
<autodiscovery enabled="false" problemReportingEnabled="true" selectedProfileId=""/>
</scannerConfigBuildInfo>
<scannerConfigBuildInfo instanceId="com.st.stm32cube.ide.mcu.gnu.managedbuild.config.exe.debug.1940295628;com.st.stm32cube.ide.mcu.gnu.managedbuild.config.exe.debug.1940295628.;com.st.stm32cube.ide.mcu.gnu.managedbuild.tool.c.compiler.404157923;com.st.stm32cube.ide.mcu.gnu.managedbuild.tool.c.compiler.input.c.907199356">
<autodiscovery enabled="false" problemReportingEnabled="true" selectedProfileId=""/>
</scannerConfigBuildInfo>
</storageModule>
<storageModule moduleId="refreshScope"/>
</cproject>

35
.mxproject

@ -0,0 +1,35 @@
[PreviousLibFiles]
LibFiles=Drivers\STM32G0xx_HAL_Driver\Inc\stm32g0xx_hal_adc.h;Drivers\STM32G0xx_HAL_Driver\Inc\stm32g0xx_hal_adc_ex.h;Drivers\STM32G0xx_HAL_Driver\Inc\stm32g0xx_ll_adc.h;Drivers\STM32G0xx_HAL_Driver\Inc\stm32g0xx_hal_rcc.h;Drivers\STM32G0xx_HAL_Driver\Inc\stm32g0xx_hal_rcc_ex.h;Drivers\STM32G0xx_HAL_Driver\Inc\stm32g0xx_ll_rcc.h;Drivers\STM32G0xx_HAL_Driver\Inc\stm32g0xx_hal_flash.h;Drivers\STM32G0xx_HAL_Driver\Inc\stm32g0xx_hal_flash_ex.h;Drivers\STM32G0xx_HAL_Driver\Inc\stm32g0xx_hal_flash_ramfunc.h;Drivers\STM32G0xx_HAL_Driver\Inc\stm32g0xx_hal_gpio.h;Drivers\STM32G0xx_HAL_Driver\Inc\stm32g0xx_hal_gpio_ex.h;Drivers\STM32G0xx_HAL_Driver\Inc\stm32g0xx_hal_dma.h;Drivers\STM32G0xx_HAL_Driver\Inc\stm32g0xx_hal_dma_ex.h;Drivers\STM32G0xx_HAL_Driver\Inc\stm32g0xx_hal_pwr.h;Drivers\STM32G0xx_HAL_Driver\Inc\stm32g0xx_hal_pwr_ex.h;Drivers\STM32G0xx_HAL_Driver\Inc\stm32g0xx_hal_cortex.h;Drivers\STM32G0xx_HAL_Driver\Inc\stm32g0xx_hal.h;Drivers\STM32G0xx_HAL_Driver\Inc\stm32g0xx_hal_def.h;Drivers\STM32G0xx_HAL_Driver\Inc\Legacy\stm32_hal_legacy.h;Drivers\STM32G0xx_HAL_Driver\Inc\stm32g0xx_hal_exti.h;Drivers\STM32G0xx_HAL_Driver\Inc\stm32g0xx_hal_tim.h;Drivers\STM32G0xx_HAL_Driver\Inc\stm32g0xx_hal_tim_ex.h;Drivers\STM32G0xx_HAL_Driver\Inc\stm32g0xx_hal_uart.h;Drivers\STM32G0xx_HAL_Driver\Inc\stm32g0xx_hal_uart_ex.h;Drivers\STM32G0xx_HAL_Driver\Src\stm32g0xx_hal_adc.c;Drivers\STM32G0xx_HAL_Driver\Src\stm32g0xx_hal_adc_ex.c;Drivers\STM32G0xx_HAL_Driver\Src\stm32g0xx_ll_adc.c;Drivers\STM32G0xx_HAL_Driver\Src\stm32g0xx_hal_rcc.c;Drivers\STM32G0xx_HAL_Driver\Src\stm32g0xx_hal_rcc_ex.c;Drivers\STM32G0xx_HAL_Driver\Src\stm32g0xx_ll_rcc.c;Drivers\STM32G0xx_HAL_Driver\Src\stm32g0xx_hal_flash.c;Drivers\STM32G0xx_HAL_Driver\Src\stm32g0xx_hal_flash_ex.c;Drivers\STM32G0xx_HAL_Driver\Src\stm32g0xx_hal_gpio.c;Drivers\STM32G0xx_HAL_Driver\Src\stm32g0xx_hal_dma.c;Drivers\STM32G0xx_HAL_Driver\Src\stm32g0xx_hal_dma_ex.c;Drivers\STM32G0xx_HAL_Driver\Inc\stm32g0xx_ll_dma.h;Drivers\STM32G0xx_HAL_Driver\Src\stm32g0xx_ll_dma.c;Drivers\STM32G0xx_HAL_Driver\Inc\stm32g0xx_ll_dmamux.h;Drivers\STM32G0xx_HAL_Driver\Src\stm32g0xx_hal_pwr.c;Drivers\STM32G0xx_HAL_Driver\Src\stm32g0xx_hal_pwr_ex.c;Drivers\STM32G0xx_HAL_Driver\Src\stm32g0xx_hal_cortex.c;Drivers\STM32G0xx_HAL_Driver\Src\stm32g0xx_hal.c;Drivers\STM32G0xx_HAL_Driver\Src\stm32g0xx_hal_exti.c;Drivers\STM32G0xx_HAL_Driver\Src\stm32g0xx_hal_tim.c;Drivers\STM32G0xx_HAL_Driver\Src\stm32g0xx_hal_tim_ex.c;Drivers\STM32G0xx_HAL_Driver\Src\stm32g0xx_hal_uart.c;Drivers\STM32G0xx_HAL_Driver\Src\stm32g0xx_hal_uart_ex.c;Drivers\STM32G0xx_HAL_Driver\Inc\stm32g0xx_hal_adc.h;Drivers\STM32G0xx_HAL_Driver\Inc\stm32g0xx_hal_adc_ex.h;Drivers\STM32G0xx_HAL_Driver\Inc\stm32g0xx_ll_adc.h;Drivers\STM32G0xx_HAL_Driver\Inc\stm32g0xx_hal_rcc.h;Drivers\STM32G0xx_HAL_Driver\Inc\stm32g0xx_hal_rcc_ex.h;Drivers\STM32G0xx_HAL_Driver\Inc\stm32g0xx_ll_rcc.h;Drivers\STM32G0xx_HAL_Driver\Inc\stm32g0xx_hal_flash.h;Drivers\STM32G0xx_HAL_Driver\Inc\stm32g0xx_hal_flash_ex.h;Drivers\STM32G0xx_HAL_Driver\Inc\stm32g0xx_hal_flash_ramfunc.h;Drivers\STM32G0xx_HAL_Driver\Inc\stm32g0xx_hal_gpio.h;Drivers\STM32G0xx_HAL_Driver\Inc\stm32g0xx_hal_gpio_ex.h;Drivers\STM32G0xx_HAL_Driver\Inc\stm32g0xx_hal_dma.h;Drivers\STM32G0xx_HAL_Driver\Inc\stm32g0xx_hal_dma_ex.h;Drivers\STM32G0xx_HAL_Driver\Inc\stm32g0xx_hal_pwr.h;Drivers\STM32G0xx_HAL_Driver\Inc\stm32g0xx_hal_pwr_ex.h;Drivers\STM32G0xx_HAL_Driver\Inc\stm32g0xx_hal_cortex.h;Drivers\STM32G0xx_HAL_Driver\Inc\stm32g0xx_hal.h;Drivers\STM32G0xx_HAL_Driver\Inc\stm32g0xx_hal_def.h;Drivers\STM32G0xx_HAL_Driver\Inc\Legacy\stm32_hal_legacy.h;Drivers\STM32G0xx_HAL_Driver\Inc\stm32g0xx_hal_exti.h;Drivers\STM32G0xx_HAL_Driver\Inc\stm32g0xx_hal_tim.h;Drivers\STM32G0xx_HAL_Driver\Inc\stm32g0xx_hal_tim_ex.h;Drivers\STM32G0xx_HAL_Driver\Inc\stm32g0xx_hal_uart.h;Drivers\STM32G0xx_HAL_Driver\Inc\stm32g0xx_hal_uart_ex.h;Drivers\CMSIS\Device\ST\STM32G0xx\Include\stm32g031xx.h;Drivers\CMSIS\Device\ST\STM32G0xx\Include\stm32g0xx.h;Drivers\CMSIS\Device\ST\STM32G0xx\Include\system_stm32g0xx.h;Drivers\CMSIS\Device\ST\STM32G0xx\Source\Templates\system_stm32g0xx.c;Drivers\CMSIS\Include\cmsis_armcc.h;Drivers\CMSIS\Include\cmsis_armclang.h;Drivers\CMSIS\Include\cmsis_armclang_ltm.h;Drivers\CMSIS\Include\cmsis_compiler.h;Drivers\CMSIS\Include\cmsis_gcc.h;Drivers\CMSIS\Include\cmsis_iccarm.h;Drivers\CMSIS\Include\cmsis_version.h;Drivers\CMSIS\Include\core_armv81mml.h;Drivers\CMSIS\Include\core_armv8mbl.h;Drivers\CMSIS\Include\core_armv8mml.h;Drivers\CMSIS\Include\core_cm0.h;Drivers\CMSIS\Include\core_cm0plus.h;Drivers\CMSIS\Include\core_cm1.h;Drivers\CMSIS\Include\core_cm23.h;Drivers\CMSIS\Include\core_cm3.h;Drivers\CMSIS\Include\core_cm33.h;Drivers\CMSIS\Include\core_cm35p.h;Drivers\CMSIS\Include\core_cm4.h;Drivers\CMSIS\Include\core_cm7.h;Drivers\CMSIS\Include\core_sc000.h;Drivers\CMSIS\Include\core_sc300.h;Drivers\CMSIS\Include\mpu_armv7.h;Drivers\CMSIS\Include\mpu_armv8.h;Drivers\CMSIS\Include\tz_context.h;
[PreviousUsedCubeIDEFiles]
SourceFiles=Core\Src\main.c;Core\Src\gpio.c;Core\Src\adc.c;Core\Src\dma.c;Core\Src\tim.c;Core\Src\usart.c;Core\Src\stm32g0xx_it.c;Core\Src\stm32g0xx_hal_msp.c;Drivers\STM32G0xx_HAL_Driver\Src\stm32g0xx_hal_adc.c;Drivers\STM32G0xx_HAL_Driver\Src\stm32g0xx_hal_adc_ex.c;Drivers\STM32G0xx_HAL_Driver\Src\stm32g0xx_ll_adc.c;Drivers\STM32G0xx_HAL_Driver\Src\stm32g0xx_hal_rcc.c;Drivers\STM32G0xx_HAL_Driver\Src\stm32g0xx_hal_rcc_ex.c;Drivers\STM32G0xx_HAL_Driver\Src\stm32g0xx_ll_rcc.c;Drivers\STM32G0xx_HAL_Driver\Src\stm32g0xx_hal_flash.c;Drivers\STM32G0xx_HAL_Driver\Src\stm32g0xx_hal_flash_ex.c;Drivers\STM32G0xx_HAL_Driver\Src\stm32g0xx_hal_gpio.c;Drivers\STM32G0xx_HAL_Driver\Src\stm32g0xx_hal_dma.c;Drivers\STM32G0xx_HAL_Driver\Src\stm32g0xx_hal_dma_ex.c;Drivers\STM32G0xx_HAL_Driver\Src\stm32g0xx_ll_dma.c;Drivers\STM32G0xx_HAL_Driver\Src\stm32g0xx_hal_pwr.c;Drivers\STM32G0xx_HAL_Driver\Src\stm32g0xx_hal_pwr_ex.c;Drivers\STM32G0xx_HAL_Driver\Src\stm32g0xx_hal_cortex.c;Drivers\STM32G0xx_HAL_Driver\Src\stm32g0xx_hal.c;Drivers\STM32G0xx_HAL_Driver\Src\stm32g0xx_hal_exti.c;Drivers\STM32G0xx_HAL_Driver\Src\stm32g0xx_hal_tim.c;Drivers\STM32G0xx_HAL_Driver\Src\stm32g0xx_hal_tim_ex.c;Drivers\STM32G0xx_HAL_Driver\Src\stm32g0xx_hal_uart.c;Drivers\STM32G0xx_HAL_Driver\Src\stm32g0xx_hal_uart_ex.c;Drivers\CMSIS\Device\ST\STM32G0xx\Source\Templates\system_stm32g0xx.c;Core\Src\system_stm32g0xx.c;Drivers\STM32G0xx_HAL_Driver\Src\stm32g0xx_hal_adc.c;Drivers\STM32G0xx_HAL_Driver\Src\stm32g0xx_hal_adc_ex.c;Drivers\STM32G0xx_HAL_Driver\Src\stm32g0xx_ll_adc.c;Drivers\STM32G0xx_HAL_Driver\Src\stm32g0xx_hal_rcc.c;Drivers\STM32G0xx_HAL_Driver\Src\stm32g0xx_hal_rcc_ex.c;Drivers\STM32G0xx_HAL_Driver\Src\stm32g0xx_ll_rcc.c;Drivers\STM32G0xx_HAL_Driver\Src\stm32g0xx_hal_flash.c;Drivers\STM32G0xx_HAL_Driver\Src\stm32g0xx_hal_flash_ex.c;Drivers\STM32G0xx_HAL_Driver\Src\stm32g0xx_hal_gpio.c;Drivers\STM32G0xx_HAL_Driver\Src\stm32g0xx_hal_dma.c;Drivers\STM32G0xx_HAL_Driver\Src\stm32g0xx_hal_dma_ex.c;Drivers\STM32G0xx_HAL_Driver\Src\stm32g0xx_ll_dma.c;Drivers\STM32G0xx_HAL_Driver\Src\stm32g0xx_hal_pwr.c;Drivers\STM32G0xx_HAL_Driver\Src\stm32g0xx_hal_pwr_ex.c;Drivers\STM32G0xx_HAL_Driver\Src\stm32g0xx_hal_cortex.c;Drivers\STM32G0xx_HAL_Driver\Src\stm32g0xx_hal.c;Drivers\STM32G0xx_HAL_Driver\Src\stm32g0xx_hal_exti.c;Drivers\STM32G0xx_HAL_Driver\Src\stm32g0xx_hal_tim.c;Drivers\STM32G0xx_HAL_Driver\Src\stm32g0xx_hal_tim_ex.c;Drivers\STM32G0xx_HAL_Driver\Src\stm32g0xx_hal_uart.c;Drivers\STM32G0xx_HAL_Driver\Src\stm32g0xx_hal_uart_ex.c;Drivers\CMSIS\Device\ST\STM32G0xx\Source\Templates\system_stm32g0xx.c;Core\Src\system_stm32g0xx.c;;;
HeaderPath=Drivers\STM32G0xx_HAL_Driver\Inc;Drivers\STM32G0xx_HAL_Driver\Inc\Legacy;Drivers\CMSIS\Device\ST\STM32G0xx\Include;Drivers\CMSIS\Include;Core\Inc;
CDefines=USE_HAL_DRIVER;STM32G031xx;USE_HAL_DRIVER;USE_HAL_DRIVER;
[PreviousGenFiles]
AdvancedFolderStructure=true
HeaderFileListSize=8
HeaderFiles#0=..\Core\Inc\gpio.h
HeaderFiles#1=..\Core\Inc\adc.h
HeaderFiles#2=..\Core\Inc\dma.h
HeaderFiles#3=..\Core\Inc\tim.h
HeaderFiles#4=..\Core\Inc\usart.h
HeaderFiles#5=..\Core\Inc\stm32g0xx_it.h
HeaderFiles#6=..\Core\Inc\stm32g0xx_hal_conf.h
HeaderFiles#7=..\Core\Inc\main.h
HeaderFolderListSize=1
HeaderPath#0=..\Core\Inc
HeaderFiles=;
SourceFileListSize=8
SourceFiles#0=..\Core\Src\gpio.c
SourceFiles#1=..\Core\Src\adc.c
SourceFiles#2=..\Core\Src\dma.c
SourceFiles#3=..\Core\Src\tim.c
SourceFiles#4=..\Core\Src\usart.c
SourceFiles#5=..\Core\Src\stm32g0xx_it.c
SourceFiles#6=..\Core\Src\stm32g0xx_hal_msp.c
SourceFiles#7=..\Core\Src\main.c
SourceFolderListSize=1
SourcePath#0=..\Core\Src
SourceFiles=;

32
.project

@ -0,0 +1,32 @@
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>g031_JIECANG_JC35W8</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>

25
.settings/language.settings.xml

@ -0,0 +1,25 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<project>
<configuration id="com.st.stm32cube.ide.mcu.gnu.managedbuild.config.exe.debug.1940295628" name="Debug">
<extension point="org.eclipse.cdt.core.LanguageSettingsProvider">
<provider copy-of="extension" id="org.eclipse.cdt.ui.UserLanguageSettingsProvider"/>
<provider-reference id="org.eclipse.cdt.core.ReferencedProjectsLanguageSettingsProvider" ref="shared-provider"/>
<provider-reference id="org.eclipse.cdt.managedbuilder.core.MBSLanguageSettingsProvider" ref="shared-provider"/>
<provider class="com.st.stm32cube.ide.mcu.toolchain.armnone.setup.CrossBuiltinSpecsDetector" console="false" env-hash="-1354486801678893174" id="com.st.stm32cube.ide.mcu.toolchain.armnone.setup.CrossBuiltinSpecsDetector" keep-relative-paths="false" name="MCU ARM GCC Built-in Compiler Settings" parameter="${COMMAND} ${FLAGS} -E -P -v -dD &quot;${INPUTS}&quot;" prefer-non-shared="true">
<language-scope id="org.eclipse.cdt.core.gcc"/>
<language-scope id="org.eclipse.cdt.core.g++"/>
</provider>
</extension>
</configuration>
<configuration id="com.st.stm32cube.ide.mcu.gnu.managedbuild.config.exe.release.2022941213" name="Release">
<extension point="org.eclipse.cdt.core.LanguageSettingsProvider">
<provider copy-of="extension" id="org.eclipse.cdt.ui.UserLanguageSettingsProvider"/>
<provider-reference id="org.eclipse.cdt.core.ReferencedProjectsLanguageSettingsProvider" ref="shared-provider"/>
<provider-reference id="org.eclipse.cdt.managedbuilder.core.MBSLanguageSettingsProvider" ref="shared-provider"/>
<provider class="com.st.stm32cube.ide.mcu.toolchain.armnone.setup.CrossBuiltinSpecsDetector" console="false" env-hash="-1354486801678893174" id="com.st.stm32cube.ide.mcu.toolchain.armnone.setup.CrossBuiltinSpecsDetector" keep-relative-paths="false" name="MCU ARM GCC Built-in Compiler Settings" parameter="${COMMAND} ${FLAGS} -E -P -v -dD &quot;${INPUTS}&quot;" prefer-non-shared="true">
<language-scope id="org.eclipse.cdt.core.gcc"/>
<language-scope id="org.eclipse.cdt.core.g++"/>
</provider>
</extension>
</configuration>
</project>

3
.settings/stm32cubeide.project.prefs

@ -0,0 +1,3 @@
8DF89ED150041C4CBC7CB9A9CAA90856=2E17BC3CBE789703B16AB4509FBC093D
DC22A860405A8BF2F2C095E5B6529F12=2E17BC3CBE789703B16AB4509FBC093D
eclipse.preferences.version=1

52
Core/Inc/adc.h

@ -0,0 +1,52 @@
/* USER CODE BEGIN Header */
/**
******************************************************************************
* @file adc.h
* @brief This file contains all the function prototypes for
* the adc.c file
******************************************************************************
* @attention
*
* Copyright (c) 2026 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.
* If no LICENSE file comes with this software, it is provided AS-IS.
*
******************************************************************************
*/
/* USER CODE END Header */
/* Define to prevent recursive inclusion -------------------------------------*/
#ifndef __ADC_H__
#define __ADC_H__
#ifdef __cplusplus
extern "C" {
#endif
/* Includes ------------------------------------------------------------------*/
#include "main.h"
/* USER CODE BEGIN Includes */
/* USER CODE END Includes */
extern ADC_HandleTypeDef hadc1;
/* USER CODE BEGIN Private defines */
/* USER CODE END Private defines */
void MX_ADC1_Init(void);
/* USER CODE BEGIN Prototypes */
/* USER CODE END Prototypes */
#ifdef __cplusplus
}
#endif
#endif /* __ADC_H__ */

17
Core/Inc/app.h

@ -0,0 +1,17 @@
#ifndef __APP_H
#define __APP_H
#ifdef __cplusplus
extern "C" {
#endif
#include "main.h"
void App_Init(void);
void App_Process(void);
#ifdef __cplusplus
}
#endif
#endif /* __APP_H */

52
Core/Inc/dma.h

@ -0,0 +1,52 @@
/* USER CODE BEGIN Header */
/**
******************************************************************************
* @file dma.h
* @brief This file contains all the function prototypes for
* the dma.c file
******************************************************************************
* @attention
*
* Copyright (c) 2026 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.
* If no LICENSE file comes with this software, it is provided AS-IS.
*
******************************************************************************
*/
/* USER CODE END Header */
/* Define to prevent recursive inclusion -------------------------------------*/
#ifndef __DMA_H__
#define __DMA_H__
#ifdef __cplusplus
extern "C" {
#endif
/* Includes ------------------------------------------------------------------*/
#include "main.h"
/* DMA memory to memory transfer handles -------------------------------------*/
/* USER CODE BEGIN Includes */
/* USER CODE END Includes */
/* USER CODE BEGIN Private defines */
/* USER CODE END Private defines */
void MX_DMA_Init(void);
/* USER CODE BEGIN Prototypes */
/* USER CODE END Prototypes */
#ifdef __cplusplus
}
#endif
#endif /* __DMA_H__ */

49
Core/Inc/gpio.h

@ -0,0 +1,49 @@
/* USER CODE BEGIN Header */
/**
******************************************************************************
* @file gpio.h
* @brief This file contains all the function prototypes for
* the gpio.c file
******************************************************************************
* @attention
*
* Copyright (c) 2026 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.
* If no LICENSE file comes with this software, it is provided AS-IS.
*
******************************************************************************
*/
/* USER CODE END Header */
/* Define to prevent recursive inclusion -------------------------------------*/
#ifndef __GPIO_H__
#define __GPIO_H__
#ifdef __cplusplus
extern "C" {
#endif
/* Includes ------------------------------------------------------------------*/
#include "main.h"
/* USER CODE BEGIN Includes */
/* USER CODE END Includes */
/* USER CODE BEGIN Private defines */
/* USER CODE END Private defines */
void MX_GPIO_Init(void);
/* USER CODE BEGIN Prototypes */
/* USER CODE END Prototypes */
#ifdef __cplusplus
}
#endif
#endif /*__ GPIO_H__ */

76
Core/Inc/main.h

@ -0,0 +1,76 @@
/* USER CODE BEGIN Header */
/**
******************************************************************************
* @file : main.h
* @brief : Header for main.c file.
* This file contains the common defines of the application.
******************************************************************************
* @attention
*
* Copyright (c) 2026 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.
* If no LICENSE file comes with this software, it is provided AS-IS.
*
******************************************************************************
*/
/* USER CODE END Header */
/* Define to prevent recursive inclusion -------------------------------------*/
#ifndef __MAIN_H
#define __MAIN_H
#ifdef __cplusplus
extern "C" {
#endif
/* Includes ------------------------------------------------------------------*/
#include "stm32g0xx_hal.h"
/* Private includes ----------------------------------------------------------*/
/* USER CODE BEGIN Includes */
/* USER CODE END Includes */
/* Exported types ------------------------------------------------------------*/
/* USER CODE BEGIN ET */
/* USER CODE END ET */
/* Exported constants --------------------------------------------------------*/
/* USER CODE BEGIN EC */
/* USER CODE END EC */
/* Exported macro ------------------------------------------------------------*/
/* USER CODE BEGIN EM */
/* USER CODE END EM */
/* Exported functions prototypes ---------------------------------------------*/
void Error_Handler(void);
/* USER CODE BEGIN EFP */
/* USER CODE END EFP */
/* Private defines -----------------------------------------------------------*/
#define DIR_Pin GPIO_PIN_4
#define DIR_GPIO_Port GPIOA
#define IO_2_Pin GPIO_PIN_7
#define IO_2_GPIO_Port GPIOA
#define IO_1_Pin GPIO_PIN_0
#define IO_1_GPIO_Port GPIOB
#define LED_Pin GPIO_PIN_8
#define LED_GPIO_Port GPIOB
/* USER CODE BEGIN Private defines */
/* USER CODE END Private defines */
#ifdef __cplusplus
}
#endif
#endif /* __MAIN_H */

43
Core/Inc/modbus.h

@ -0,0 +1,43 @@
/*
* modbus.h
*
* Created on: Jul 3, 2025
* Author: shiyanlei
*/
#ifndef __MODBUS_SLAVE_H
#define __MODBUS_SLAVE_H
#include "stm32g0xx_hal.h"
/* 定义Modbus相关参数 */
#define MODBUS_SLAVE_ADDRESS 0x42
#define MODBUS_FUNCTION_CODE_03 0x03
#define MODBUS_FUNCTION_CODE_06 0x06
#define MODBUS_FUNCTION_CODE_10 0x10 // 写多个寄存器功能码
#define MODBUS_BUFFER_SIZE 256
#define MODBUS_TIMEOUT_MS 5
#define MODBUS_CRC_OFF 0 //==1关闭CRC校验
/* 定义寄存器相关参数 */
#define REGISTER_START_ADDRESS 0x0000
#define REGISTER_COUNT 10
extern uint8_t modbusBuffer[MODBUS_BUFFER_SIZE];
//extern uint16_t holdingRegisters[REGISTER_COUNT];
extern int16_t holdingRegisters[REGISTER_COUNT];
#define registerWritable_0 1 //IO_1
#define registerWritable_1 1 //IO_2
#define registerWritable_2 0 //Encoder
#define registerWritable_3 1 //PWM 1-99
#define registerWritable_4 0 //Current mA
#define registerWritable_5 1 //Zero Encoder
#define registerWritable_6 1 //Auto Position Enable
#define registerWritable_7 1 //Auto Position Target
#define registerWritable_8 0
#define registerWritable_9 1 //Auto Position Tolerance
/* 初始化Modbus从机 */
void Modbus_Init(void);
/* 处理Modbus消息 */
void Modbus_Process(void);
#endif /* __MODBUS_SLAVE_H */

351
Core/Inc/stm32g0xx_hal_conf.h

@ -0,0 +1,351 @@
/* USER CODE BEGIN Header */
/**
******************************************************************************
* @file stm32g0xx_hal_conf.h
* @author MCD Application Team
* @brief HAL configuration file.
******************************************************************************
* @attention
*
* Copyright (c) 2018 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.
* If no LICENSE file comes with this software, it is provided AS-IS.
*
******************************************************************************
*/
/* USER CODE END Header */
/* Define to prevent recursive inclusion -------------------------------------*/
#ifndef STM32G0xx_HAL_CONF_H
#define STM32G0xx_HAL_CONF_H
#ifdef __cplusplus
extern "C" {
#endif
/* Exported types ------------------------------------------------------------*/
/* Exported constants --------------------------------------------------------*/
/* ########################## Module Selection ############################## */
/**
* @brief This is the list of modules to be used in the HAL driver
*/
#define HAL_MODULE_ENABLED
#define HAL_ADC_MODULE_ENABLED
/* #define HAL_CEC_MODULE_ENABLED */
/* #define HAL_COMP_MODULE_ENABLED */
/* #define HAL_CRC_MODULE_ENABLED */
/* #define HAL_CRYP_MODULE_ENABLED */
/* #define HAL_DAC_MODULE_ENABLED */
/* #define HAL_EXTI_MODULE_ENABLED */
/* #define HAL_FDCAN_MODULE_ENABLED */
/* #define HAL_HCD_MODULE_ENABLED */
/* #define HAL_I2C_MODULE_ENABLED */
/* #define HAL_I2S_MODULE_ENABLED */
/* #define HAL_IWDG_MODULE_ENABLED */
/* #define HAL_IRDA_MODULE_ENABLED */
/* #define HAL_LPTIM_MODULE_ENABLED */
/* #define HAL_PCD_MODULE_ENABLED */
/* #define HAL_RNG_MODULE_ENABLED */
/* #define HAL_RTC_MODULE_ENABLED */
/* #define HAL_SMARTCARD_MODULE_ENABLED */
/* #define HAL_SMBUS_MODULE_ENABLED */
/* #define HAL_SPI_MODULE_ENABLED */
#define HAL_TIM_MODULE_ENABLED
#define HAL_UART_MODULE_ENABLED
/* #define HAL_USART_MODULE_ENABLED */
/* #define HAL_WWDG_MODULE_ENABLED */
#define HAL_GPIO_MODULE_ENABLED
#define HAL_EXTI_MODULE_ENABLED
#define HAL_DMA_MODULE_ENABLED
#define HAL_RCC_MODULE_ENABLED
#define HAL_FLASH_MODULE_ENABLED
#define HAL_PWR_MODULE_ENABLED
#define HAL_CORTEX_MODULE_ENABLED
/* ########################## Register Callbacks selection ############################## */
/**
* @brief This is the list of modules where register callback can be used
*/
#define USE_HAL_ADC_REGISTER_CALLBACKS 0u
#define USE_HAL_CEC_REGISTER_CALLBACKS 0u
#define USE_HAL_COMP_REGISTER_CALLBACKS 0u
#define USE_HAL_CRYP_REGISTER_CALLBACKS 0u
#define USE_HAL_DAC_REGISTER_CALLBACKS 0u
#define USE_HAL_FDCAN_REGISTER_CALLBACKS 0u
#define USE_HAL_HCD_REGISTER_CALLBACKS 0u
#define USE_HAL_I2C_REGISTER_CALLBACKS 0u
#define USE_HAL_I2S_REGISTER_CALLBACKS 0u
#define USE_HAL_IRDA_REGISTER_CALLBACKS 0u
#define USE_HAL_LPTIM_REGISTER_CALLBACKS 0u
#define USE_HAL_PCD_REGISTER_CALLBACKS 0u
#define USE_HAL_RNG_REGISTER_CALLBACKS 0u
#define USE_HAL_RTC_REGISTER_CALLBACKS 0u
#define USE_HAL_SMBUS_REGISTER_CALLBACKS 0u
#define USE_HAL_SPI_REGISTER_CALLBACKS 0u
#define USE_HAL_TIM_REGISTER_CALLBACKS 0u
#define USE_HAL_UART_REGISTER_CALLBACKS 0u
#define USE_HAL_USART_REGISTER_CALLBACKS 0u
#define USE_HAL_WWDG_REGISTER_CALLBACKS 0u
/* ########################## Oscillator Values adaptation ####################*/
/**
* @brief Adjust the value of External High Speed oscillator (HSE) used in your application.
* This value is used by the RCC HAL module to compute the system frequency
* (when HSE is used as system clock source, directly or through the PLL).
*/
#if !defined (HSE_VALUE)
#define HSE_VALUE (8000000UL) /*!< Value of the External oscillator in Hz */
#endif /* HSE_VALUE */
#if !defined (HSE_STARTUP_TIMEOUT)
#define HSE_STARTUP_TIMEOUT (100UL) /*!< Time out for HSE start up, in ms */
#endif /* HSE_STARTUP_TIMEOUT */
/**
* @brief Internal High Speed oscillator (HSI) value.
* This value is used by the RCC HAL module to compute the system frequency
* (when HSI is used as system clock source, directly or through the PLL).
*/
#if !defined (HSI_VALUE)
#define HSI_VALUE (16000000UL) /*!< Value of the Internal oscillator in Hz*/
#endif /* HSI_VALUE */
#if defined(STM32G0C1xx) || defined(STM32G0B1xx) || defined(STM32G0B0xx)
/**
* @brief Internal High Speed oscillator (HSI48) value for USB FS, SDMMC and RNG.
* This internal oscillator is mainly dedicated to provide a high precision clock to
* the USB peripheral by means of a special Clock Recovery System (CRS) circuitry.
* When the CRS is not used, the HSI48 RC oscillator runs on it default frequency
* which is subject to manufacturing process variations.
*/
#if !defined (HSI48_VALUE)
#define HSI48_VALUE 48000000U /*!< Value of the Internal High Speed oscillator for USB FS/SDMMC/RNG in Hz.
The real value my vary depending on manufacturing process variations.*/
#endif /* HSI48_VALUE */
#endif
/**
* @brief Internal Low Speed oscillator (LSI) value.
*/
#if !defined (LSI_VALUE)
#define LSI_VALUE (32000UL) /*!< LSI Typical Value in Hz*/
#endif /* LSI_VALUE */ /*!< Value of the Internal Low Speed oscillator in Hz
The real value may vary depending on the variations
in voltage and temperature.*/
/**
* @brief External Low Speed oscillator (LSE) value.
* This value is used by the UART, RTC HAL module to compute the system frequency
*/
#if !defined (LSE_VALUE)
#define LSE_VALUE (32768UL) /*!< Value of the External oscillator in Hz*/
#endif /* LSE_VALUE */
#if !defined (LSE_STARTUP_TIMEOUT)
#define LSE_STARTUP_TIMEOUT (5000UL) /*!< Time out for LSE start up, in ms */
#endif /* LSE_STARTUP_TIMEOUT */
/**
* @brief External clock source for I2S1 peripheral
* This value is used by the RCC HAL module to compute the I2S1 clock source
* frequency.
*/
#if !defined (EXTERNAL_I2S1_CLOCK_VALUE)
#define EXTERNAL_I2S1_CLOCK_VALUE (12288000UL) /*!< Value of the I2S1 External clock source in Hz*/
#endif /* EXTERNAL_I2S1_CLOCK_VALUE */
#if defined(STM32G0C1xx) || defined(STM32G0B1xx) || defined(STM32G0B0xx)
/**
* @brief External clock source for I2S2 peripheral
* This value is used by the RCC HAL module to compute the I2S2 clock source
* frequency.
*/
#if !defined (EXTERNAL_I2S2_CLOCK_VALUE)
#define EXTERNAL_I2S2_CLOCK_VALUE 48000U /*!< Value of the I2S2 External clock source in Hz*/
#endif /* EXTERNAL_I2S2_CLOCK_VALUE */
#endif
/* Tip: To avoid modifying this file each time you need to use different HSE,
=== you can define the HSE value in your toolchain compiler preprocessor. */
/* ########################### System Configuration ######################### */
/**
* @brief This is the HAL system configuration section
*/
#define VDD_VALUE (3300UL) /*!< Value of VDD in mv */
#define TICK_INT_PRIORITY 3U /*!< tick interrupt priority */
#define USE_RTOS 0U
#define PREFETCH_ENABLE 1U
#define INSTRUCTION_CACHE_ENABLE 1U
/* ################## SPI peripheral configuration ########################## */
/* CRC FEATURE: Use to activate CRC feature inside HAL SPI Driver
* Activated: CRC code is present inside driver
* Deactivated: CRC code cleaned from driver
*/
#define USE_SPI_CRC 0U
/* ################## CRYP peripheral configuration ########################## */
#define USE_HAL_CRYP_SUSPEND_RESUME 1U
/* ########################## Assert Selection ############################## */
/**
* @brief Uncomment the line below to expanse the "assert_param" macro in the
* HAL drivers code
*/
/* #define USE_FULL_ASSERT 1U */
/* Includes ------------------------------------------------------------------*/
/**
* @brief Include modules header file
*/
#ifdef HAL_RCC_MODULE_ENABLED
#include "stm32g0xx_hal_rcc.h"
#endif /* HAL_RCC_MODULE_ENABLED */
#ifdef HAL_GPIO_MODULE_ENABLED
#include "stm32g0xx_hal_gpio.h"
#endif /* HAL_GPIO_MODULE_ENABLED */
#ifdef HAL_DMA_MODULE_ENABLED
#include "stm32g0xx_hal_dma.h"
#endif /* HAL_DMA_MODULE_ENABLED */
#ifdef HAL_CORTEX_MODULE_ENABLED
#include "stm32g0xx_hal_cortex.h"
#endif /* HAL_CORTEX_MODULE_ENABLED */
#ifdef HAL_ADC_MODULE_ENABLED
#include "stm32g0xx_hal_adc.h"
#include "stm32g0xx_hal_adc_ex.h"
#endif /* HAL_ADC_MODULE_ENABLED */
#ifdef HAL_CEC_MODULE_ENABLED
#include "stm32g0xx_hal_cec.h"
#endif /* HAL_CEC_MODULE_ENABLED */
#ifdef HAL_COMP_MODULE_ENABLED
#include "stm32g0xx_hal_comp.h"
#endif /* HAL_COMP_MODULE_ENABLED */
#ifdef HAL_CRC_MODULE_ENABLED
#include "stm32g0xx_hal_crc.h"
#endif /* HAL_CRC_MODULE_ENABLED */
#ifdef HAL_CRYP_MODULE_ENABLED
#include "stm32g0xx_hal_cryp.h"
#endif /* HAL_CRYP_MODULE_ENABLED */
#ifdef HAL_DAC_MODULE_ENABLED
#include "stm32g0xx_hal_dac.h"
#endif /* HAL_DAC_MODULE_ENABLED */
#ifdef HAL_EXTI_MODULE_ENABLED
#include "stm32g0xx_hal_exti.h"
#endif /* HAL_EXTI_MODULE_ENABLED */
#ifdef HAL_FLASH_MODULE_ENABLED
#include "stm32g0xx_hal_flash.h"
#endif /* HAL_FLASH_MODULE_ENABLED */
#ifdef HAL_FDCAN_MODULE_ENABLED
#include "stm32g0xx_hal_fdcan.h"
#endif /* HAL_FDCAN_MODULE_ENABLED */
#ifdef HAL_HCD_MODULE_ENABLED
#include "stm32g0xx_hal_hcd.h"
#endif /* HAL_HCD_MODULE_ENABLED */
#ifdef HAL_I2C_MODULE_ENABLED
#include "stm32g0xx_hal_i2c.h"
#endif /* HAL_I2C_MODULE_ENABLED */
#ifdef HAL_I2S_MODULE_ENABLED
#include "stm32g0xx_hal_i2s.h"
#endif /* HAL_I2S_MODULE_ENABLED */
#ifdef HAL_IRDA_MODULE_ENABLED
#include "stm32g0xx_hal_irda.h"
#endif /* HAL_IRDA_MODULE_ENABLED */
#ifdef HAL_IWDG_MODULE_ENABLED
#include "stm32g0xx_hal_iwdg.h"
#endif /* HAL_IWDG_MODULE_ENABLED */
#ifdef HAL_LPTIM_MODULE_ENABLED
#include "stm32g0xx_hal_lptim.h"
#endif /* HAL_LPTIM_MODULE_ENABLED */
#ifdef HAL_PCD_MODULE_ENABLED
#include "stm32g0xx_hal_pcd.h"
#endif /* HAL_PCD_MODULE_ENABLED */
#ifdef HAL_PWR_MODULE_ENABLED
#include "stm32g0xx_hal_pwr.h"
#endif /* HAL_PWR_MODULE_ENABLED */
#ifdef HAL_RNG_MODULE_ENABLED
#include "stm32g0xx_hal_rng.h"
#endif /* HAL_RNG_MODULE_ENABLED */
#ifdef HAL_RTC_MODULE_ENABLED
#include "stm32g0xx_hal_rtc.h"
#endif /* HAL_RTC_MODULE_ENABLED */
#ifdef HAL_SMARTCARD_MODULE_ENABLED
#include "stm32g0xx_hal_smartcard.h"
#endif /* HAL_SMARTCARD_MODULE_ENABLED */
#ifdef HAL_SMBUS_MODULE_ENABLED
#include "stm32g0xx_hal_smbus.h"
#endif /* HAL_SMBUS_MODULE_ENABLED */
#ifdef HAL_SPI_MODULE_ENABLED
#include "stm32g0xx_hal_spi.h"
#endif /* HAL_SPI_MODULE_ENABLED */
#ifdef HAL_TIM_MODULE_ENABLED
#include "stm32g0xx_hal_tim.h"
#endif /* HAL_TIM_MODULE_ENABLED */
#ifdef HAL_UART_MODULE_ENABLED
#include "stm32g0xx_hal_uart.h"
#endif /* HAL_UART_MODULE_ENABLED */
#ifdef HAL_USART_MODULE_ENABLED
#include "stm32g0xx_hal_usart.h"
#endif /* HAL_USART_MODULE_ENABLED */
#ifdef HAL_WWDG_MODULE_ENABLED
#include "stm32g0xx_hal_wwdg.h"
#endif /* HAL_WWDG_MODULE_ENABLED */
/* Exported macro ------------------------------------------------------------*/
#ifdef USE_FULL_ASSERT
/**
* @brief The assert_param macro is used for functions parameters check.
* @param expr If expr is false, it calls assert_failed function
* which reports the name of the source file and the source
* line number of the call that failed.
* If expr is true, it returns no value.
* @retval None
*/
#define assert_param(expr) ((expr) ? (void)0U : assert_failed((uint8_t *)__FILE__, __LINE__))
/* Exported functions ------------------------------------------------------- */
void assert_failed(uint8_t *file, uint32_t line);
#else
#define assert_param(expr) ((void)0U)
#endif /* USE_FULL_ASSERT */
#ifdef __cplusplus
}
#endif
#endif /* STM32G0xx_HAL_CONF_H */

65
Core/Inc/stm32g0xx_it.h

@ -0,0 +1,65 @@
/* USER CODE BEGIN Header */
/**
******************************************************************************
* @file stm32g0xx_it.h
* @brief This file contains the headers of the interrupt handlers.
******************************************************************************
* @attention
*
* Copyright (c) 2026 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.
* If no LICENSE file comes with this software, it is provided AS-IS.
*
******************************************************************************
*/
/* USER CODE END Header */
/* Define to prevent recursive inclusion -------------------------------------*/
#ifndef __STM32G0xx_IT_H
#define __STM32G0xx_IT_H
#ifdef __cplusplus
extern "C" {
#endif
/* Private includes ----------------------------------------------------------*/
/* USER CODE BEGIN Includes */
/* USER CODE END Includes */
/* Exported types ------------------------------------------------------------*/
/* USER CODE BEGIN ET */
/* USER CODE END ET */
/* Exported constants --------------------------------------------------------*/
/* USER CODE BEGIN EC */
/* USER CODE END EC */
/* Exported macro ------------------------------------------------------------*/
/* USER CODE BEGIN EM */
/* USER CODE END EM */
/* Exported functions prototypes ---------------------------------------------*/
void NMI_Handler(void);
void HardFault_Handler(void);
void SVC_Handler(void);
void PendSV_Handler(void);
void SysTick_Handler(void);
void DMA1_Channel1_IRQHandler(void);
void ADC1_IRQHandler(void);
void USART2_IRQHandler(void);
/* USER CODE BEGIN EFP */
/* USER CODE END EFP */
#ifdef __cplusplus
}
#endif
#endif /* __STM32G0xx_IT_H */

57
Core/Inc/tim.h

@ -0,0 +1,57 @@
/* USER CODE BEGIN Header */
/**
******************************************************************************
* @file tim.h
* @brief This file contains all the function prototypes for
* the tim.c file
******************************************************************************
* @attention
*
* Copyright (c) 2026 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.
* If no LICENSE file comes with this software, it is provided AS-IS.
*
******************************************************************************
*/
/* USER CODE END Header */
/* Define to prevent recursive inclusion -------------------------------------*/
#ifndef __TIM_H__
#define __TIM_H__
#ifdef __cplusplus
extern "C" {
#endif
/* Includes ------------------------------------------------------------------*/
#include "main.h"
/* USER CODE BEGIN Includes */
/* USER CODE END Includes */
extern TIM_HandleTypeDef htim2;
extern TIM_HandleTypeDef htim3;
/* USER CODE BEGIN Private defines */
/* USER CODE END Private defines */
void MX_TIM2_Init(void);
void MX_TIM3_Init(void);
void HAL_TIM_MspPostInit(TIM_HandleTypeDef *htim);
/* USER CODE BEGIN Prototypes */
/* USER CODE END Prototypes */
#ifdef __cplusplus
}
#endif
#endif /* __TIM_H__ */

52
Core/Inc/usart.h

@ -0,0 +1,52 @@
/* USER CODE BEGIN Header */
/**
******************************************************************************
* @file usart.h
* @brief This file contains all the function prototypes for
* the usart.c file
******************************************************************************
* @attention
*
* Copyright (c) 2026 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.
* If no LICENSE file comes with this software, it is provided AS-IS.
*
******************************************************************************
*/
/* USER CODE END Header */
/* Define to prevent recursive inclusion -------------------------------------*/
#ifndef __USART_H__
#define __USART_H__
#ifdef __cplusplus
extern "C" {
#endif
/* Includes ------------------------------------------------------------------*/
#include "main.h"
/* USER CODE BEGIN Includes */
/* USER CODE END Includes */
extern UART_HandleTypeDef huart2;
/* USER CODE BEGIN Private defines */
/* USER CODE END Private defines */
void MX_USART2_UART_Init(void);
/* USER CODE BEGIN Prototypes */
/* USER CODE END Prototypes */
#ifdef __cplusplus
}
#endif
#endif /* __USART_H__ */

150
Core/Src/adc.c

@ -0,0 +1,150 @@
/* USER CODE BEGIN Header */
/**
******************************************************************************
* @file adc.c
* @brief This file provides code for the configuration
* of the ADC instances.
******************************************************************************
* @attention
*
* Copyright (c) 2026 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.
* If no LICENSE file comes with this software, it is provided AS-IS.
*
******************************************************************************
*/
/* USER CODE END Header */
/* Includes ------------------------------------------------------------------*/
#include "adc.h"
/* USER CODE BEGIN 0 */
/* USER CODE END 0 */
ADC_HandleTypeDef hadc1;
/* ADC1 init function */
void MX_ADC1_Init(void)
{
/* USER CODE BEGIN ADC1_Init 0 */
/* USER CODE END ADC1_Init 0 */
ADC_ChannelConfTypeDef sConfig = {0};
/* USER CODE BEGIN ADC1_Init 1 */
/* USER CODE END ADC1_Init 1 */
/** Configure the global features of the ADC (Clock, Resolution, Data Alignment and number of conversion)
*/
hadc1.Instance = ADC1;
hadc1.Init.ClockPrescaler = ADC_CLOCK_SYNC_PCLK_DIV4;
hadc1.Init.Resolution = ADC_RESOLUTION_12B;
hadc1.Init.DataAlign = ADC_DATAALIGN_RIGHT;
hadc1.Init.ScanConvMode = ADC_SCAN_DISABLE;
hadc1.Init.EOCSelection = ADC_EOC_SINGLE_CONV;
hadc1.Init.LowPowerAutoWait = DISABLE;
hadc1.Init.LowPowerAutoPowerOff = DISABLE;
hadc1.Init.ContinuousConvMode = DISABLE;
hadc1.Init.NbrOfConversion = 1;
hadc1.Init.ExternalTrigConv = ADC_SOFTWARE_START;
hadc1.Init.ExternalTrigConvEdge = ADC_EXTERNALTRIGCONVEDGE_NONE;
hadc1.Init.DMAContinuousRequests = DISABLE;
hadc1.Init.Overrun = ADC_OVR_DATA_PRESERVED;
hadc1.Init.SamplingTimeCommon1 = ADC_SAMPLETIME_19CYCLES_5;
hadc1.Init.SamplingTimeCommon2 = ADC_SAMPLETIME_19CYCLES_5;
hadc1.Init.OversamplingMode = DISABLE;
hadc1.Init.TriggerFrequencyMode = ADC_TRIGGER_FREQ_HIGH;
if (HAL_ADC_Init(&hadc1) != HAL_OK)
{
Error_Handler();
}
/** Configure Regular Channel
*/
sConfig.Channel = ADC_CHANNEL_5;
sConfig.Rank = ADC_REGULAR_RANK_1;
sConfig.SamplingTime = ADC_SAMPLINGTIME_COMMON_1;
if (HAL_ADC_ConfigChannel(&hadc1, &sConfig) != HAL_OK)
{
Error_Handler();
}
/* USER CODE BEGIN ADC1_Init 2 */
/* USER CODE END ADC1_Init 2 */
}
void HAL_ADC_MspInit(ADC_HandleTypeDef* adcHandle)
{
GPIO_InitTypeDef GPIO_InitStruct = {0};
RCC_PeriphCLKInitTypeDef PeriphClkInit = {0};
if(adcHandle->Instance==ADC1)
{
/* USER CODE BEGIN ADC1_MspInit 0 */
/* USER CODE END ADC1_MspInit 0 */
/** Initializes the peripherals clocks
*/
PeriphClkInit.PeriphClockSelection = RCC_PERIPHCLK_ADC;
PeriphClkInit.AdcClockSelection = RCC_ADCCLKSOURCE_SYSCLK;
if (HAL_RCCEx_PeriphCLKConfig(&PeriphClkInit) != HAL_OK)
{
Error_Handler();
}
/* ADC1 clock enable */
__HAL_RCC_ADC_CLK_ENABLE();
__HAL_RCC_GPIOA_CLK_ENABLE();
/**ADC1 GPIO Configuration
PA5 ------> ADC1_IN5
*/
GPIO_InitStruct.Pin = GPIO_PIN_5;
GPIO_InitStruct.Mode = GPIO_MODE_ANALOG;
GPIO_InitStruct.Pull = GPIO_NOPULL;
HAL_GPIO_Init(GPIOA, &GPIO_InitStruct);
/* ADC1 interrupt Init */
HAL_NVIC_SetPriority(ADC1_IRQn, 0, 0);
HAL_NVIC_EnableIRQ(ADC1_IRQn);
/* USER CODE BEGIN ADC1_MspInit 1 */
/* USER CODE END ADC1_MspInit 1 */
}
}
void HAL_ADC_MspDeInit(ADC_HandleTypeDef* adcHandle)
{
if(adcHandle->Instance==ADC1)
{
/* USER CODE BEGIN ADC1_MspDeInit 0 */
/* USER CODE END ADC1_MspDeInit 0 */
/* Peripheral clock disable */
__HAL_RCC_ADC_CLK_DISABLE();
/**ADC1 GPIO Configuration
PA5 ------> ADC1_IN5
*/
HAL_GPIO_DeInit(GPIOA, GPIO_PIN_5);
/* ADC1 interrupt Deinit */
HAL_NVIC_DisableIRQ(ADC1_IRQn);
/* USER CODE BEGIN ADC1_MspDeInit 1 */
/* USER CODE END ADC1_MspDeInit 1 */
}
}
/* USER CODE BEGIN 1 */
/* USER CODE END 1 */

224
Core/Src/app.c

@ -0,0 +1,224 @@
#include "app.h"
#include "adc.h"
#include "tim.h"
#include "gpio.h"
#include "modbus.h"
/* ADC1_IN5:电流采样
* 采样电阻 0.1 欧姆,放大器增益 10 倍,因此 1V 对应 1A。
* 12 位 ADC,参考电压按 3.3V 计算。 */
#define ADC_REFERENCE_MV 3300U
#define ADC_MAX_CODE 4095U
#define CURRENT_MAX_MA 2000U
/* PWM 电流限幅占空比,范围 1~99,超范围按 99% 处理 */
#define PWM_DUTY_MIN 1U
#define PWM_DUTY_MAX 99U
#define PWM_DUTY_DEFAULT 99U
/* LED 状态灯闪烁时间(单位 ms) */
#define LED_ON_FORWARD_MS 800U
#define LED_OFF_FORWARD_MS 200U
#define LED_ON_REVERSE_MS 200U
#define LED_OFF_REVERSE_MS 800U
#define LED_ON_STOP_MS 500U
#define LED_OFF_STOP_MS 500U
/* 自动定位容许阈值寄存器 */
#define AUTO_POSITION_TOLERANCE_REG 9U
#define Encoder_Max 4200
static volatile uint8_t adcConversionDone = 0;
static uint16_t lastRegister5 = 0;
static void App_UpdateMotor(void);
static void App_SetCurrentLimit(uint16_t duty);
static void App_UpdateEncoderRegister(void);
static void App_ProcessZeroCommand(void);
static void App_UpdateLed(void);
void App_Init(void)
{
/* 上电默认:电机停止 */
HAL_GPIO_WritePin(IO_1_GPIO_Port, IO_1_Pin, GPIO_PIN_RESET);
HAL_GPIO_WritePin(IO_2_GPIO_Port, IO_2_Pin, GPIO_PIN_RESET);
/* 状态灯初始熄灭 */
HAL_GPIO_WritePin(LED_GPIO_Port, LED_Pin, GPIO_PIN_RESET);
/* 启动编码器读取 */
HAL_TIM_Encoder_Start(&htim2, TIM_CHANNEL_ALL);
/* 启动 PWM 输出,并按当前寄存器值设置电流限幅占空比 */
HAL_TIM_PWM_Start(&htim3, TIM_CHANNEL_1);
App_SetCurrentLimit(holdingRegisters[3]);
/* ADC校准 */
if (HAL_ADCEx_Calibration_Start(&hadc1) != HAL_OK)
{
Error_Handler();
}
/* 启动 ADC 中断采集 */
adcConversionDone = 0;
if (HAL_ADC_Start_IT(&hadc1) != HAL_OK)
{
Error_Handler();
}
}
void App_Process(void)
{
/* 先处理 Modbus 请求,可能更新寄存器 */
Modbus_Process();
App_UpdateMotor(); /*控制推杆上升下降包含自动和手动*/
App_SetCurrentLimit(holdingRegisters[3]); /*限制推杆电机电流*/
App_UpdateEncoderRegister(); /*获取定时器2计数值为编码器数值存到寄存器2*/
App_ProcessZeroCommand();/*设置当前位置为0*/
App_UpdateLed(); /*指示灯灯光切换*/
/* ADC 单次转换完成后重新启动下一轮转换 */
if (adcConversionDone != 0)
{
adcConversionDone = 0;
HAL_ADC_Start_IT(&hadc1);
}
}
static void App_UpdateMotor(void)
{
uint8_t io1 = (holdingRegisters[0] != 0) ? 1U : 0U;
uint8_t io2 = (holdingRegisters[1] != 0) ? 1U : 0U;
uint8_t up = 0U;
uint8_t down = 0U;
/*自动运行至指定位置,最下面值最大,最上面为0*/
if (holdingRegisters[6] != 0 && holdingRegisters[7] < Encoder_Max)
{
/* 自动定位模式:根据当前编码器值和目标位置决定运行方向 */
int32_t currentPosition = (int16_t)(uint16_t)__HAL_TIM_GET_COUNTER(&htim2);
int32_t targetPosition = (int16_t)holdingRegisters[7];
int32_t positionError = targetPosition - currentPosition;
int32_t tolerance = (int32_t)holdingRegisters[AUTO_POSITION_TOLERANCE_REG]; /*寄存器9*/
if (positionError > tolerance)
{
down = 1U;
}
else if (positionError < -tolerance)
{
up = 1U;
}
}
else
{
/* 手动模式:保持原有 holdingRegisters[0]、[1] 控制逻辑 */
up = (io1 != 0 && io2 == 0) ? 1U : 0U;
down = (io1 == 0 && io2 != 0) ? 1U : 0U;
}
if (up != 0)
{
/* 正转:IO_1 高,IO_2 低 */
HAL_GPIO_WritePin(IO_1_GPIO_Port, IO_1_Pin, GPIO_PIN_SET);
HAL_GPIO_WritePin(IO_2_GPIO_Port, IO_2_Pin, GPIO_PIN_RESET);
}
else if (down != 0)
{
/* 反转:IO_1 低,IO_2 高 */
HAL_GPIO_WritePin(IO_1_GPIO_Port, IO_1_Pin, GPIO_PIN_RESET);
HAL_GPIO_WritePin(IO_2_GPIO_Port, IO_2_Pin, GPIO_PIN_SET);
}
else
{
/* 停止:两路都低 */
HAL_GPIO_WritePin(IO_1_GPIO_Port, IO_1_Pin, GPIO_PIN_RESET);
HAL_GPIO_WritePin(IO_2_GPIO_Port, IO_2_Pin, GPIO_PIN_RESET);
}
}
static void App_SetCurrentLimit(uint16_t duty)
{
if (duty < PWM_DUTY_MIN || duty > PWM_DUTY_MAX)
{
duty = PWM_DUTY_DEFAULT;
}
__HAL_TIM_SET_COMPARE(&htim3, TIM_CHANNEL_1, duty);
}
static void App_UpdateEncoderRegister(void)
{
int32_t enc = (int32_t)__HAL_TIM_GET_COUNTER(&htim2);
//holdingRegisters[2] = (uint16_t)(int16_t)enc;
holdingRegisters[2] = (int16_t)enc;
}
static void App_ProcessZeroCommand(void)
{
if (holdingRegisters[5] != lastRegister5)
{
lastRegister5 = holdingRegisters[5];
__HAL_TIM_SET_COUNTER(&htim2, 0);
}
}
static void App_UpdateLed(void)
{
static uint32_t lastToggle = 0;
static GPIO_PinState ledState = GPIO_PIN_RESET;
uint8_t io1 = (holdingRegisters[0] != 0) ? 1U : 0U;
uint8_t io2 = (holdingRegisters[1] != 0) ? 1U : 0U;
uint32_t onTime;
uint32_t offTime;
uint32_t period;
uint32_t elapsed;
if (io1 != 0 && io2 == 0)
{
onTime = LED_ON_FORWARD_MS;
offTime = LED_OFF_FORWARD_MS;
}
else if (io1 == 0 && io2 != 0)
{
onTime = LED_ON_REVERSE_MS;
offTime = LED_OFF_REVERSE_MS;
}
else
{
onTime = LED_ON_STOP_MS;
offTime = LED_OFF_STOP_MS;
}
period = (ledState == GPIO_PIN_SET) ? onTime : offTime;
elapsed = HAL_GetTick() - lastToggle;
if (elapsed >= period)
{
ledState = (ledState == GPIO_PIN_SET) ? GPIO_PIN_RESET : GPIO_PIN_SET;
HAL_GPIO_WritePin(LED_GPIO_Port, LED_Pin, ledState);
lastToggle = HAL_GetTick();
}
}
/* ADC 转换完成中断回调:把采样电压换算为电流(mA) */
void HAL_ADC_ConvCpltCallback(ADC_HandleTypeDef *hadc)
{
if (hadc->Instance != ADC1)
{
return;
}
uint32_t raw = HAL_ADC_GetValue(&hadc1);
uint32_t voltage_mv = (raw * ADC_REFERENCE_MV) / ADC_MAX_CODE;
uint16_t current_ma = (uint16_t)voltage_mv;
if (current_ma > CURRENT_MAX_MA)
{
current_ma = CURRENT_MAX_MA;
}
holdingRegisters[4] = current_ma;
adcConversionDone = 1;
}

55
Core/Src/dma.c

@ -0,0 +1,55 @@
/* USER CODE BEGIN Header */
/**
******************************************************************************
* @file dma.c
* @brief This file provides code for the configuration
* of all the requested memory to memory DMA transfers.
******************************************************************************
* @attention
*
* Copyright (c) 2026 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.
* If no LICENSE file comes with this software, it is provided AS-IS.
*
******************************************************************************
*/
/* USER CODE END Header */
/* Includes ------------------------------------------------------------------*/
#include "dma.h"
/* USER CODE BEGIN 0 */
/* USER CODE END 0 */
/*----------------------------------------------------------------------------*/
/* Configure DMA */
/*----------------------------------------------------------------------------*/
/* USER CODE BEGIN 1 */
/* USER CODE END 1 */
/**
* Enable DMA controller clock
*/
void MX_DMA_Init(void)
{
/* DMA controller clock enable */
__HAL_RCC_DMA1_CLK_ENABLE();
/* DMA interrupt init */
/* DMA1_Channel1_IRQn interrupt configuration */
HAL_NVIC_SetPriority(DMA1_Channel1_IRQn, 0, 0);
HAL_NVIC_EnableIRQ(DMA1_Channel1_IRQn);
}
/* USER CODE BEGIN 2 */
/* USER CODE END 2 */

75
Core/Src/gpio.c

@ -0,0 +1,75 @@
/* USER CODE BEGIN Header */
/**
******************************************************************************
* @file gpio.c
* @brief This file provides code for the configuration
* of all used GPIO pins.
******************************************************************************
* @attention
*
* Copyright (c) 2026 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.
* If no LICENSE file comes with this software, it is provided AS-IS.
*
******************************************************************************
*/
/* USER CODE END Header */
/* Includes ------------------------------------------------------------------*/
#include "gpio.h"
/* USER CODE BEGIN 0 */
/* USER CODE END 0 */
/*----------------------------------------------------------------------------*/
/* Configure GPIO */
/*----------------------------------------------------------------------------*/
/* USER CODE BEGIN 1 */
/* USER CODE END 1 */
/** Configure pins as
* Analog
* Input
* Output
* EVENT_OUT
* EXTI
*/
void MX_GPIO_Init(void)
{
GPIO_InitTypeDef GPIO_InitStruct = {0};
/* GPIO Ports Clock Enable */
__HAL_RCC_GPIOA_CLK_ENABLE();
__HAL_RCC_GPIOB_CLK_ENABLE();
/*Configure GPIO pin Output Level */
HAL_GPIO_WritePin(GPIOA, DIR_Pin|IO_2_Pin, GPIO_PIN_RESET);
/*Configure GPIO pin Output Level */
HAL_GPIO_WritePin(GPIOB, IO_1_Pin|LED_Pin, GPIO_PIN_RESET);
/*Configure GPIO pins : PAPin PAPin */
GPIO_InitStruct.Pin = DIR_Pin|IO_2_Pin;
GPIO_InitStruct.Mode = GPIO_MODE_OUTPUT_PP;
GPIO_InitStruct.Pull = GPIO_NOPULL;
GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_LOW;
HAL_GPIO_Init(GPIOA, &GPIO_InitStruct);
/*Configure GPIO pins : PBPin PBPin */
GPIO_InitStruct.Pin = IO_1_Pin|LED_Pin;
GPIO_InitStruct.Mode = GPIO_MODE_OUTPUT_PP;
GPIO_InitStruct.Pull = GPIO_NOPULL;
GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_LOW;
HAL_GPIO_Init(GPIOB, &GPIO_InitStruct);
}
/* USER CODE BEGIN 2 */
/* USER CODE END 2 */

188
Core/Src/main.c

@ -0,0 +1,188 @@
/* USER CODE BEGIN Header */
/**
******************************************************************************
* @file : main.c
* @brief : Main program body
******************************************************************************
* @attention
*
* Copyright (c) 2026 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.
* If no LICENSE file comes with this software, it is provided AS-IS.
*
******************************************************************************
*/
/* USER CODE END Header */
/* Includes ------------------------------------------------------------------*/
#include "main.h"
#include "adc.h"
#include "dma.h"
#include "tim.h"
#include "usart.h"
#include "gpio.h"
/* Private includes ----------------------------------------------------------*/
/* USER CODE BEGIN Includes */
#include "app.h"
#include "modbus.h"
/* USER CODE END Includes */
/* Private typedef -----------------------------------------------------------*/
/* USER CODE BEGIN PTD */
/* USER CODE END PTD */
/* Private define ------------------------------------------------------------*/
/* USER CODE BEGIN PD */
/* USER CODE END PD */
/* Private macro -------------------------------------------------------------*/
/* USER CODE BEGIN PM */
/* USER CODE END PM */
/* Private variables ---------------------------------------------------------*/
/* USER CODE BEGIN PV */
/* USER CODE END PV */
/* Private function prototypes -----------------------------------------------*/
void SystemClock_Config(void);
/* USER CODE BEGIN PFP */
/* USER CODE END PFP */
/* Private user code ---------------------------------------------------------*/
/* USER CODE BEGIN 0 */
/* USER CODE END 0 */
/**
* @brief The application entry point.
* @retval int
*/
int main(void)
{
/* USER CODE BEGIN 1 */
/* USER CODE END 1 */
/* MCU Configuration--------------------------------------------------------*/
/* Reset of all peripherals, Initializes the Flash interface and the Systick. */
HAL_Init();
/* USER CODE BEGIN Init */
/* USER CODE END Init */
/* Configure the system clock */
SystemClock_Config();
/* USER CODE BEGIN SysInit */
/* USER CODE END SysInit */
/* Initialize all configured peripherals */
MX_GPIO_Init();
MX_TIM3_Init();
MX_DMA_Init();
MX_TIM2_Init();
MX_ADC1_Init();
MX_USART2_UART_Init();
/* USER CODE BEGIN 2 */
App_Init();
Modbus_Init();
/* USER CODE END 2 */
/* Infinite loop */
/* USER CODE BEGIN WHILE */
while (1)
{
/* USER CODE END WHILE */
/* USER CODE BEGIN 3 */
App_Process();
}
/* USER CODE END 3 */
}
/**
* @brief System Clock Configuration
* @retval None
*/
void SystemClock_Config(void)
{
RCC_OscInitTypeDef RCC_OscInitStruct = {0};
RCC_ClkInitTypeDef RCC_ClkInitStruct = {0};
/** Configure the main internal regulator output voltage
*/
HAL_PWREx_ControlVoltageScaling(PWR_REGULATOR_VOLTAGE_SCALE1);
/** Initializes the RCC Oscillators according to the specified parameters
* in the RCC_OscInitTypeDef structure.
*/
RCC_OscInitStruct.OscillatorType = RCC_OSCILLATORTYPE_HSI;
RCC_OscInitStruct.HSIState = RCC_HSI_ON;
RCC_OscInitStruct.HSIDiv = RCC_HSI_DIV1;
RCC_OscInitStruct.HSICalibrationValue = RCC_HSICALIBRATION_DEFAULT;
RCC_OscInitStruct.PLL.PLLState = RCC_PLL_NONE;
if (HAL_RCC_OscConfig(&RCC_OscInitStruct) != HAL_OK)
{
Error_Handler();
}
/** Initializes the CPU, AHB and APB buses clocks
*/
RCC_ClkInitStruct.ClockType = RCC_CLOCKTYPE_HCLK|RCC_CLOCKTYPE_SYSCLK
|RCC_CLOCKTYPE_PCLK1;
RCC_ClkInitStruct.SYSCLKSource = RCC_SYSCLKSOURCE_HSI;
RCC_ClkInitStruct.AHBCLKDivider = RCC_SYSCLK_DIV1;
RCC_ClkInitStruct.APB1CLKDivider = RCC_HCLK_DIV1;
if (HAL_RCC_ClockConfig(&RCC_ClkInitStruct, FLASH_LATENCY_0) != HAL_OK)
{
Error_Handler();
}
}
/* USER CODE BEGIN 4 */
/* USER CODE END 4 */
/**
* @brief This function is executed in case of error occurrence.
* @retval None
*/
void Error_Handler(void)
{
/* USER CODE BEGIN Error_Handler_Debug */
/* User can add his own implementation to report the HAL error return state */
__disable_irq();
while (1)
{
}
/* USER CODE END Error_Handler_Debug */
}
#ifdef USE_FULL_ASSERT
/**
* @brief Reports the name of the source file and the source line number
* where the assert_param error has occurred.
* @param file: pointer to the source file name
* @param line: assert_param error line source number
* @retval None
*/
void assert_failed(uint8_t *file, uint32_t line)
{
/* USER CODE BEGIN 6 */
/* User can add his own implementation to report the file name and line number,
ex: printf("Wrong parameters value: file %s on line %d\r\n", file, line) */
/* USER CODE END 6 */
}
#endif /* USE_FULL_ASSERT */

351
Core/Src/modbus.c

@ -0,0 +1,351 @@
/*
* modbus.c
*
* Created on: Jul 3, 2025
* Author: shiyanlei
*/
#include "stm32g0xx_hal.h"
#include <stdint.h>
#include <stdbool.h>
#include "main.h"
#include "modbus.h"
#include "usart.h"
//uint16_t holdingRegisters[REGISTER_COUNT] = {0}; /*长度为10*/
int16_t holdingRegisters[REGISTER_COUNT] = {0}; /*长度为10*/
/* 寄存器可写标志位(1:可写,0:只读) */
uint8_t registerWritable[REGISTER_COUNT] = {
registerWritable_0, registerWritable_1, registerWritable_2, registerWritable_3,
registerWritable_4, registerWritable_5, registerWritable_6, registerWritable_7,
registerWritable_8, registerWritable_9
};
/* 全局变量 */
uint8_t modbusBuffer[MODBUS_BUFFER_SIZE];
//int8_t modbusBuffer[MODBUS_BUFFER_SIZE];
uint16_t modbusBufferIndex = 0;
uint32_t lastByteTime = 0;
bool messageComplete = false;
uint8_t response[256];
/* 函数声明 */
void Modbus_Init(void);
void Modbus_Process(void);
void Modbus_SendResponse(uint8_t *data, uint8_t length);
void Modbus_HandleFunction03(uint16_t startAddress, uint16_t registerCount);
void Modbus_HandleFunction06(uint16_t registerAddress, uint16_t value);
void Modbus_HandleFunction10(uint16_t startAddress, uint16_t registerCount, uint8_t *data);
void Modbus_SendExceptionResponse(uint8_t exceptionCode);
uint16_t CalculateCRC(uint8_t *data, uint8_t length);
/* 初始化函数 */
void Modbus_Init(void)
{
/* RS485 方向控制引脚置为接收状态 */
HAL_GPIO_WritePin(DIR_GPIO_Port, DIR_Pin, GPIO_PIN_RESET);
/* 启动串口中断接收 */
modbusBufferIndex = 0;
HAL_UART_Receive_IT(&huart2, (uint8_t *)&modbusBuffer[modbusBufferIndex], 1);
}
/* Modbus处理函数 - 应在主循环中调用 */
void Modbus_Process(void)
{
uint16_t startAddress = 0;
uint16_t registerCount = 0;
uint16_t value = 0;
uint8_t byteCount = 0;
uint16_t crcReceived;
uint16_t crcCalculated;
if (modbusBufferIndex > 0 && (HAL_GetTick() - lastByteTime) > MODBUS_TIMEOUT_MS)
{
/* 超时,标记消息完成 */
messageComplete = true;
}
if (!messageComplete)
{
return;
}
/* 一个有效的 RTU 帧至少包含:地址 + 功能码 + 2 字节 CRC */
if (modbusBufferIndex < 4)
{
modbusBufferIndex = 0;
messageComplete = false;
return;
}
crcReceived = (uint16_t)((modbusBuffer[modbusBufferIndex - 1] << 8) |
modbusBuffer[modbusBufferIndex - 2]);
crcCalculated = CalculateCRC(modbusBuffer, (uint8_t)(modbusBufferIndex - 2));
if (MODBUS_CRC_OFF == 1 || crcReceived == crcCalculated)
{
if (modbusBuffer[0] == MODBUS_SLAVE_ADDRESS) /*ID 0x42*/
{
switch (modbusBuffer[1])
{
case MODBUS_FUNCTION_CODE_03:
if (modbusBufferIndex >= 8)
{
startAddress = (uint16_t)((modbusBuffer[2] << 8) | modbusBuffer[3]);
registerCount = (uint16_t)((modbusBuffer[4] << 8) | modbusBuffer[5]);
Modbus_HandleFunction03(startAddress, registerCount);
}
break;
case MODBUS_FUNCTION_CODE_06:
if (modbusBufferIndex >= 8)
{
startAddress = (uint16_t)((modbusBuffer[2] << 8) | modbusBuffer[3]);
value = (uint16_t)((modbusBuffer[4] << 8) | modbusBuffer[5]);
Modbus_HandleFunction06(startAddress, value);
}
break;
case MODBUS_FUNCTION_CODE_10:
if (modbusBufferIndex >= 9)
{
startAddress = (uint16_t)((modbusBuffer[2] << 8) | modbusBuffer[3]);
registerCount = (uint16_t)((modbusBuffer[4] << 8) | modbusBuffer[5]);
byteCount = modbusBuffer[6];
/* 检查数据长度是否正确 */
if (byteCount == (uint8_t)(registerCount * 2U) &&
(modbusBufferIndex - 2U) >= (uint16_t)(7U + byteCount))
{
Modbus_HandleFunction10(startAddress, registerCount, &modbusBuffer[7]);
}
else
{
Modbus_SendExceptionResponse(0x03);
}
}
break;
default:
Modbus_SendExceptionResponse(0x01);
break;
}
}
}
/* 重置缓冲区 */
modbusBufferIndex = 0;
messageComplete = false;
}
/* 处理功能码03 */
void Modbus_HandleFunction03(uint16_t startAddress, uint16_t registerCount)
{
/* 检查地址和数量是否合法 */
if ((startAddress + registerCount) > (REGISTER_START_ADDRESS + REGISTER_COUNT) ||
registerCount > 0x7D)
{
Modbus_SendExceptionResponse(0x02);
return;
}
uint8_t byteCount = (uint8_t)(registerCount * 2U);
uint8_t index = 0;
response[index++] = MODBUS_SLAVE_ADDRESS;
response[index++] = MODBUS_FUNCTION_CODE_03;
response[index++] = byteCount;
for (uint16_t i = 0; i < registerCount; i++)
{
uint16_t regValue = holdingRegisters[(startAddress - REGISTER_START_ADDRESS) + i];
response[index++] = (uint8_t)((regValue >> 8) & 0xFF);
response[index++] = (uint8_t)(regValue & 0xFF);
}
uint16_t crc = CalculateCRC(response, index);
response[index++] = (uint8_t)(crc & 0xFF);
response[index++] = (uint8_t)((crc >> 8) & 0xFF);
Modbus_SendResponse(response, index);
}
/* 处理功能码06 */
void Modbus_HandleFunction06(uint16_t registerAddress, uint16_t value)
{
/* 检查地址是否合法 */
if (registerAddress >= (REGISTER_START_ADDRESS + REGISTER_COUNT))
{
Modbus_SendExceptionResponse(0x02);
return;
}
uint16_t regIndex = registerAddress - REGISTER_START_ADDRESS;
uint16_t responseValue = holdingRegisters[regIndex];
/* 只有可写寄存器才更新值 */
if (registerWritable[regIndex] == 1)
{
holdingRegisters[regIndex] = value;
responseValue = value;
}
/* 准备响应帧 - 功能码06的响应是原请求帧的原样返回 */
uint8_t index = 0;
response[index++] = MODBUS_SLAVE_ADDRESS;
response[index++] = MODBUS_FUNCTION_CODE_06;
response[index++] = (uint8_t)((registerAddress >> 8) & 0xFF);
response[index++] = (uint8_t)(registerAddress & 0xFF);
response[index++] = (uint8_t)((responseValue >> 8) & 0xFF);
response[index++] = (uint8_t)(responseValue & 0xFF);
/* 计算CRC并添加到响应帧 */
uint16_t crc = CalculateCRC(response, index);
response[index++] = (uint8_t)(crc & 0xFF);
response[index++] = (uint8_t)((crc >> 8) & 0xFF);
/* 发送响应 */
Modbus_SendResponse(response, index);
}
/* 处理功能码0x10 */
void Modbus_HandleFunction10(uint16_t startAddress, uint16_t registerCount, uint8_t *data)
{
/* 检查地址和数量是否合法 */
if ((startAddress + registerCount) > (REGISTER_START_ADDRESS + REGISTER_COUNT) ||
registerCount == 0 || registerCount > 0x7B)
{
Modbus_SendExceptionResponse(0x02);
return;
}
/* 处理每个寄存器 */
for (uint16_t i = 0; i < registerCount; i++)
{
uint16_t regIndex = (startAddress - REGISTER_START_ADDRESS) + i;
uint16_t value = (uint16_t)((data[i * 2] << 8) | data[i * 2 + 1]);
/* 只有可写寄存器才更新值 */
if (registerWritable[regIndex] == 1)
{
holdingRegisters[regIndex] = value;
}
}
/* 准备响应帧 - 功能码0x10的响应包含起始地址和写入数量 */
uint8_t index = 0;
response[index++] = MODBUS_SLAVE_ADDRESS;
response[index++] = MODBUS_FUNCTION_CODE_10;
response[index++] = (uint8_t)((startAddress >> 8) & 0xFF);
response[index++] = (uint8_t)(startAddress & 0xFF);
response[index++] = (uint8_t)((registerCount >> 8) & 0xFF);
response[index++] = (uint8_t)(registerCount & 0xFF);
/* 计算CRC并添加到响应帧 */
uint16_t crc = CalculateCRC(response, index);
response[index++] = (uint8_t)(crc & 0xFF);
response[index++] = (uint8_t)((crc >> 8) & 0xFF);
/* 发送响应 */
Modbus_SendResponse(response, index);
}
/* 发送异常响应 */
void Modbus_SendExceptionResponse(uint8_t exceptionCode)
{
response[0] = MODBUS_SLAVE_ADDRESS;
response[1] = modbusBuffer[1] | 0x80;
response[2] = exceptionCode;
uint16_t crc = CalculateCRC(response, 3);
response[3] = (uint8_t)(crc & 0xFF);
response[4] = (uint8_t)((crc >> 8) & 0xFF);
Modbus_SendResponse(response, 5);
}
/* 发送响应 */
void Modbus_SendResponse(uint8_t *data, uint8_t length)
{
/* 使能RS485发送 */
HAL_GPIO_WritePin(DIR_GPIO_Port, DIR_Pin, GPIO_PIN_SET);
/* DMA 发送数据,发送完成后在 HAL_UART_TxCpltCallback 中切回接收 */
HAL_UART_Transmit_DMA(&huart2, data, length);
}
/* CRC计算 */
uint16_t CalculateCRC(uint8_t *data, uint8_t length)
{
uint16_t crc = 0xFFFF;
for (uint8_t i = 0; i < length; i++)
{
crc ^= (uint16_t)data[i];
for (uint8_t j = 0; j < 8; j++)
{
if ((crc & 0x0001) != 0)
{
crc >>= 1;
crc ^= 0xA001;
}
else
{
crc >>= 1;
}
}
}
return crc;
}
/* UART接收中断回调函数 */
void HAL_UART_RxCpltCallback(UART_HandleTypeDef *huart)
{
if (huart != &huart2)
{
return;
}
lastByteTime = HAL_GetTick();
if (modbusBufferIndex < MODBUS_BUFFER_SIZE)
{
/* HAL 已经将接收到的字节写入 modbusBuffer[modbusBufferIndex],
此处只需向后移动索引。 */
modbusBufferIndex++;
}
if (modbusBufferIndex < MODBUS_BUFFER_SIZE)
{
HAL_UART_Receive_IT(&huart2, (uint8_t *)&modbusBuffer[modbusBufferIndex], 1);
}
else
{
/* 缓冲区满,丢弃并等待下一帧 */
modbusBufferIndex = 0;
HAL_UART_Receive_IT(&huart2, (uint8_t *)&modbusBuffer[modbusBufferIndex], 1);
}
}
/* UART发送完成回调:切回RS485接收方向 */
void HAL_UART_TxCpltCallback(UART_HandleTypeDef *huart)
{
if (huart == &huart2)
{
HAL_GPIO_WritePin(DIR_GPIO_Port, DIR_Pin, GPIO_PIN_RESET);
}
}
/* UART错误回调:重新同步接收 */
void HAL_UART_ErrorCallback(UART_HandleTypeDef *huart)
{
if (huart == &huart2)
{
modbusBufferIndex = 0;
HAL_UART_Receive_IT(&huart2, (uint8_t *)&modbusBuffer[modbusBufferIndex], 1);
}
}

81
Core/Src/stm32g0xx_hal_msp.c

@ -0,0 +1,81 @@
/* USER CODE BEGIN Header */
/**
******************************************************************************
* @file stm32g0xx_hal_msp.c
* @brief This file provides code for the MSP Initialization
* and de-Initialization codes.
******************************************************************************
* @attention
*
* Copyright (c) 2026 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.
* If no LICENSE file comes with this software, it is provided AS-IS.
*
******************************************************************************
*/
/* USER CODE END Header */
/* Includes ------------------------------------------------------------------*/
#include "main.h"
/* USER CODE BEGIN Includes */
/* USER CODE END Includes */
/* Private typedef -----------------------------------------------------------*/
/* USER CODE BEGIN TD */
/* USER CODE END TD */
/* Private define ------------------------------------------------------------*/
/* USER CODE BEGIN Define */
/* USER CODE END Define */
/* Private macro -------------------------------------------------------------*/
/* USER CODE BEGIN Macro */
/* USER CODE END Macro */
/* Private variables ---------------------------------------------------------*/
/* USER CODE BEGIN PV */
/* USER CODE END PV */
/* Private function prototypes -----------------------------------------------*/
/* USER CODE BEGIN PFP */
/* USER CODE END PFP */
/* External functions --------------------------------------------------------*/
/* USER CODE BEGIN ExternalFunctions */
/* USER CODE END ExternalFunctions */
/* USER CODE BEGIN 0 */
/* USER CODE END 0 */
/**
* Initializes the Global MSP.
*/
void HAL_MspInit(void)
{
/* USER CODE BEGIN MspInit 0 */
/* USER CODE END MspInit 0 */
__HAL_RCC_SYSCFG_CLK_ENABLE();
__HAL_RCC_PWR_CLK_ENABLE();
/* System interrupt init*/
/* USER CODE BEGIN MspInit 1 */
/* USER CODE END MspInit 1 */
}
/* USER CODE BEGIN 1 */
/* USER CODE END 1 */

189
Core/Src/stm32g0xx_it.c

@ -0,0 +1,189 @@
/* USER CODE BEGIN Header */
/**
******************************************************************************
* @file stm32g0xx_it.c
* @brief Interrupt Service Routines.
******************************************************************************
* @attention
*
* Copyright (c) 2026 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.
* If no LICENSE file comes with this software, it is provided AS-IS.
*
******************************************************************************
*/
/* USER CODE END Header */
/* Includes ------------------------------------------------------------------*/
#include "main.h"
#include "stm32g0xx_it.h"
/* Private includes ----------------------------------------------------------*/
/* USER CODE BEGIN Includes */
/* USER CODE END Includes */
/* Private typedef -----------------------------------------------------------*/
/* USER CODE BEGIN TD */
/* USER CODE END TD */
/* Private define ------------------------------------------------------------*/
/* USER CODE BEGIN PD */
/* USER CODE END PD */
/* Private macro -------------------------------------------------------------*/
/* USER CODE BEGIN PM */
/* USER CODE END PM */
/* Private variables ---------------------------------------------------------*/
/* USER CODE BEGIN PV */
/* USER CODE END PV */
/* Private function prototypes -----------------------------------------------*/
/* USER CODE BEGIN PFP */
/* USER CODE END PFP */
/* Private user code ---------------------------------------------------------*/
/* USER CODE BEGIN 0 */
/* USER CODE END 0 */
/* External variables --------------------------------------------------------*/
extern ADC_HandleTypeDef hadc1;
extern DMA_HandleTypeDef hdma_usart2_tx;
extern UART_HandleTypeDef huart2;
/* USER CODE BEGIN EV */
/* USER CODE END EV */
/******************************************************************************/
/* Cortex-M0+ Processor Interruption and Exception Handlers */
/******************************************************************************/
/**
* @brief This function handles Non maskable interrupt.
*/
void NMI_Handler(void)
{
/* USER CODE BEGIN NonMaskableInt_IRQn 0 */
/* USER CODE END NonMaskableInt_IRQn 0 */
/* USER CODE BEGIN NonMaskableInt_IRQn 1 */
while (1)
{
}
/* USER CODE END NonMaskableInt_IRQn 1 */
}
/**
* @brief This function handles Hard fault interrupt.
*/
void HardFault_Handler(void)
{
/* USER CODE BEGIN HardFault_IRQn 0 */
/* USER CODE END HardFault_IRQn 0 */
while (1)
{
/* USER CODE BEGIN W1_HardFault_IRQn 0 */
/* USER CODE END W1_HardFault_IRQn 0 */
}
}
/**
* @brief This function handles System service call via SWI instruction.
*/
void SVC_Handler(void)
{
/* USER CODE BEGIN SVC_IRQn 0 */
/* USER CODE END SVC_IRQn 0 */
/* USER CODE BEGIN SVC_IRQn 1 */
/* USER CODE END SVC_IRQn 1 */
}
/**
* @brief This function handles Pendable request for system service.
*/
void PendSV_Handler(void)
{
/* USER CODE BEGIN PendSV_IRQn 0 */
/* USER CODE END PendSV_IRQn 0 */
/* USER CODE BEGIN PendSV_IRQn 1 */
/* USER CODE END PendSV_IRQn 1 */
}
/**
* @brief This function handles System tick timer.
*/
void SysTick_Handler(void)
{
/* USER CODE BEGIN SysTick_IRQn 0 */
/* USER CODE END SysTick_IRQn 0 */
HAL_IncTick();
/* USER CODE BEGIN SysTick_IRQn 1 */
/* USER CODE END SysTick_IRQn 1 */
}
/******************************************************************************/
/* STM32G0xx Peripheral Interrupt Handlers */
/* Add here the Interrupt Handlers for the used peripherals. */
/* For the available peripheral interrupt handler names, */
/* please refer to the startup file (startup_stm32g0xx.s). */
/******************************************************************************/
/**
* @brief This function handles DMA1 channel 1 interrupt.
*/
void DMA1_Channel1_IRQHandler(void)
{
/* USER CODE BEGIN DMA1_Channel1_IRQn 0 */
/* USER CODE END DMA1_Channel1_IRQn 0 */
HAL_DMA_IRQHandler(&hdma_usart2_tx);
/* USER CODE BEGIN DMA1_Channel1_IRQn 1 */
/* USER CODE END DMA1_Channel1_IRQn 1 */
}
/**
* @brief This function handles ADC1 interrupt.
*/
void ADC1_IRQHandler(void)
{
/* USER CODE BEGIN ADC1_IRQn 0 */
/* USER CODE END ADC1_IRQn 0 */
HAL_ADC_IRQHandler(&hadc1);
/* USER CODE BEGIN ADC1_IRQn 1 */
/* USER CODE END ADC1_IRQn 1 */
}
/**
* @brief This function handles USART2 global interrupt / USART2 wake-up interrupt through EXTI line 26.
*/
void USART2_IRQHandler(void)
{
/* USER CODE BEGIN USART2_IRQn 0 */
/* USER CODE END USART2_IRQn 0 */
HAL_UART_IRQHandler(&huart2);
/* USER CODE BEGIN USART2_IRQn 1 */
/* USER CODE END USART2_IRQn 1 */
}
/* USER CODE BEGIN 1 */
/* USER CODE END 1 */

155
Core/Src/syscalls.c

@ -0,0 +1,155 @@
/**
******************************************************************************
* @file syscalls.c
* @author Auto-generated by STM32CubeIDE
* @brief STM32CubeIDE Minimal System calls file
*
* For more information about which c-functions
* need which of these lowlevel functions
* please consult the Newlib libc-manual
******************************************************************************
* @attention
*
* 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.
* If no LICENSE file comes with this software, it is provided AS-IS.
*
******************************************************************************
*/
/* Includes */
#include <sys/stat.h>
#include <stdlib.h>
#include <errno.h>
#include <stdio.h>
#include <signal.h>
#include <time.h>
#include <sys/time.h>
#include <sys/times.h>
/* Variables */
extern int __io_putchar(int ch) __attribute__((weak));
extern int __io_getchar(void) __attribute__((weak));
char *__env[1] = { 0 };
char **environ = __env;
/* Functions */
void initialise_monitor_handles()
{
}
int _getpid(void)
{
return 1;
}
int _kill(int pid, int sig)
{
errno = EINVAL;
return -1;
}
void _exit (int status)
{
_kill(status, -1);
while (1) {} /* Make sure we hang here */
}
__attribute__((weak)) int _read(int file, char *ptr, int len)
{
int DataIdx;
for (DataIdx = 0; DataIdx < len; DataIdx++)
{
*ptr++ = __io_getchar();
}
return len;
}
__attribute__((weak)) int _write(int file, char *ptr, int len)
{
int DataIdx;
for (DataIdx = 0; DataIdx < len; DataIdx++)
{
__io_putchar(*ptr++);
}
return len;
}
int _close(int file)
{
return -1;
}
int _fstat(int file, struct stat *st)
{
st->st_mode = S_IFCHR;
return 0;
}
int _isatty(int file)
{
return 1;
}
int _lseek(int file, int ptr, int dir)
{
return 0;
}
int _open(char *path, int flags, ...)
{
/* Pretend like we always fail */
return -1;
}
int _wait(int *status)
{
errno = ECHILD;
return -1;
}
int _unlink(char *name)
{
errno = ENOENT;
return -1;
}
int _times(struct tms *buf)
{
return -1;
}
int _stat(char *file, struct stat *st)
{
st->st_mode = S_IFCHR;
return 0;
}
int _link(char *old, char *new)
{
errno = EMLINK;
return -1;
}
int _fork(void)
{
errno = EAGAIN;
return -1;
}
int _execve(char *name, char **argv, char **env)
{
errno = ENOMEM;
return -1;
}

79
Core/Src/sysmem.c

@ -0,0 +1,79 @@
/**
******************************************************************************
* @file sysmem.c
* @author Generated by STM32CubeIDE
* @brief STM32CubeIDE System Memory calls file
*
* For more information about which C functions
* need which of these lowlevel functions
* please consult the newlib libc manual
******************************************************************************
* @attention
*
* 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.
* If no LICENSE file comes with this software, it is provided AS-IS.
*
******************************************************************************
*/
/* Includes */
#include <errno.h>
#include <stdint.h>
/**
* Pointer to the current high watermark of the heap usage
*/
static uint8_t *__sbrk_heap_end = NULL;
/**
* @brief _sbrk() allocates memory to the newlib heap and is used by malloc
* and others from the C library
*
* @verbatim
* ############################################################################
* # .data # .bss # newlib heap # MSP stack #
* # # # # Reserved by _Min_Stack_Size #
* ############################################################################
* ^-- RAM start ^-- _end _estack, RAM end --^
* @endverbatim
*
* This implementation starts allocating at the '_end' linker symbol
* The '_Min_Stack_Size' linker symbol reserves a memory for the MSP stack
* The implementation considers '_estack' linker symbol to be RAM end
* NOTE: If the MSP stack, at any point during execution, grows larger than the
* reserved size, please increase the '_Min_Stack_Size'.
*
* @param incr Memory size
* @return Pointer to allocated memory
*/
void *_sbrk(ptrdiff_t incr)
{
extern uint8_t _end; /* Symbol defined in the linker script */
extern uint8_t _estack; /* Symbol defined in the linker script */
extern uint32_t _Min_Stack_Size; /* Symbol defined in the linker script */
const uint32_t stack_limit = (uint32_t)&_estack - (uint32_t)&_Min_Stack_Size;
const uint8_t *max_heap = (uint8_t *)stack_limit;
uint8_t *prev_heap_end;
/* Initialize heap end at first call */
if (NULL == __sbrk_heap_end)
{
__sbrk_heap_end = &_end;
}
/* Protect heap from growing into the reserved MSP stack */
if (__sbrk_heap_end + incr > max_heap)
{
errno = ENOMEM;
return (void *)-1;
}
prev_heap_end = __sbrk_heap_end;
__sbrk_heap_end += incr;
return (void *)prev_heap_end;
}

302
Core/Src/system_stm32g0xx.c

@ -0,0 +1,302 @@
/**
******************************************************************************
* @file system_stm32g0xx.c
* @author MCD Application Team
* @brief CMSIS Cortex-M0+ Device Peripheral Access Layer System Source File
*
* This file provides two functions and one global variable to be called from
* user application:
* - SystemInit(): This function is called at startup just after reset and
* before branch to main program. This call is made inside
* the "startup_stm32g0xx.s" file.
*
* - SystemCoreClock variable: Contains the core clock (HCLK), it can be used
* by the user application to setup the SysTick
* timer or configure other parameters.
*
* - SystemCoreClockUpdate(): Updates the variable SystemCoreClock and must
* be called whenever the core clock is changed
* during program execution.
*
* After each device reset the HSI (8 MHz then 16 MHz) is used as system clock source.
* Then SystemInit() function is called, in "startup_stm32g0xx.s" file, to
* configure the system clock before to branch to main program.
*
* This file configures the system clock as follows:
*=============================================================================
*-----------------------------------------------------------------------------
* System Clock source | HSI
*-----------------------------------------------------------------------------
* SYSCLK(Hz) | 16000000
*-----------------------------------------------------------------------------
* HCLK(Hz) | 16000000
*-----------------------------------------------------------------------------
* AHB Prescaler | 1
*-----------------------------------------------------------------------------
* APB Prescaler | 1
*-----------------------------------------------------------------------------
* HSI Division factor | 1
*-----------------------------------------------------------------------------
* PLL_M | 1
*-----------------------------------------------------------------------------
* PLL_N | 8
*-----------------------------------------------------------------------------
* PLL_P | 7
*-----------------------------------------------------------------------------
* PLL_Q | 2
*-----------------------------------------------------------------------------
* PLL_R | 2
*-----------------------------------------------------------------------------
* Require 48MHz for RNG | Disabled
*-----------------------------------------------------------------------------
*=============================================================================
******************************************************************************
* @attention
*
* Copyright (c) 2018-2021 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.
* If no LICENSE file comes with this software, it is provided AS-IS.
*
******************************************************************************
*/
/** @addtogroup CMSIS
* @{
*/
/** @addtogroup stm32g0xx_system
* @{
*/
/** @addtogroup STM32G0xx_System_Private_Includes
* @{
*/
#include "stm32g0xx.h"
#if !defined (HSE_VALUE)
#define HSE_VALUE (8000000UL) /*!< Value of the External oscillator in Hz */
#endif /* HSE_VALUE */
#if !defined (HSI_VALUE)
#define HSI_VALUE (16000000UL) /*!< Value of the Internal oscillator in Hz*/
#endif /* HSI_VALUE */
#if !defined (LSI_VALUE)
#define LSI_VALUE (32000UL) /*!< Value of LSI in Hz*/
#endif /* LSI_VALUE */
#if !defined (LSE_VALUE)
#define LSE_VALUE (32768UL) /*!< Value of LSE in Hz*/
#endif /* LSE_VALUE */
/**
* @}
*/
/** @addtogroup STM32G0xx_System_Private_TypesDefinitions
* @{
*/
/**
* @}
*/
/** @addtogroup STM32G0xx_System_Private_Defines
* @{
*/
/************************* Miscellaneous Configuration ************************/
/* Note: Following vector table addresses must be defined in line with linker
configuration. */
/*!< Uncomment the following line if you need to relocate the vector table
anywhere in Flash or Sram, else the vector table is kept at the automatic
remap of boot address selected */
/* #define USER_VECT_TAB_ADDRESS */
#if defined(USER_VECT_TAB_ADDRESS)
/*!< Uncomment the following line if you need to relocate your vector Table
in Sram else user remap will be done in Flash. */
/* #define VECT_TAB_SRAM */
#if defined(VECT_TAB_SRAM)
#define VECT_TAB_BASE_ADDRESS SRAM_BASE /*!< Vector Table base address field.
This value must be a multiple of 0x200. */
#define VECT_TAB_OFFSET 0x00000000U /*!< Vector Table base offset field.
This value must be a multiple of 0x200. */
#else
#define VECT_TAB_BASE_ADDRESS FLASH_BASE /*!< Vector Table base address field.
This value must be a multiple of 0x200. */
#define VECT_TAB_OFFSET 0x00000000U /*!< Vector Table base offset field.
This value must be a multiple of 0x200. */
#endif /* VECT_TAB_SRAM */
#endif /* USER_VECT_TAB_ADDRESS */
/******************************************************************************/
/**
* @}
*/
/** @addtogroup STM32G0xx_System_Private_Macros
* @{
*/
/**
* @}
*/
/** @addtogroup STM32G0xx_System_Private_Variables
* @{
*/
/* The SystemCoreClock variable is updated in three ways:
1) by calling CMSIS function SystemCoreClockUpdate()
2) by calling HAL API function HAL_RCC_GetHCLKFreq()
3) each time HAL_RCC_ClockConfig() is called to configure the system clock frequency
Note: If you use this function to configure the system clock; then there
is no need to call the 2 first functions listed above, since SystemCoreClock
variable is updated automatically.
*/
uint32_t SystemCoreClock = 16000000UL;
const uint32_t AHBPrescTable[16UL] = {0UL, 0UL, 0UL, 0UL, 0UL, 0UL, 0UL, 0UL, 1UL, 2UL, 3UL, 4UL, 6UL, 7UL, 8UL, 9UL};
const uint32_t APBPrescTable[8UL] = {0UL, 0UL, 0UL, 0UL, 1UL, 2UL, 3UL, 4UL};
/**
* @}
*/
/** @addtogroup STM32G0xx_System_Private_FunctionPrototypes
* @{
*/
/**
* @}
*/
/** @addtogroup STM32G0xx_System_Private_Functions
* @{
*/
/**
* @brief Setup the microcontroller system.
* @param None
* @retval None
*/
void SystemInit(void)
{
/* Configure the Vector Table location -------------------------------------*/
#if defined(USER_VECT_TAB_ADDRESS)
SCB->VTOR = VECT_TAB_BASE_ADDRESS | VECT_TAB_OFFSET; /* Vector Table Relocation */
#endif /* USER_VECT_TAB_ADDRESS */
}
/**
* @brief Update SystemCoreClock variable according to Clock Register Values.
* The SystemCoreClock variable contains the core clock (HCLK), it can
* be used by the user application to setup the SysTick timer or configure
* other parameters.
*
* @note Each time the core clock (HCLK) changes, this function must be called
* to update SystemCoreClock variable value. Otherwise, any configuration
* based on this variable will be incorrect.
*
* @note - The system frequency computed by this function is not the real
* frequency in the chip. It is calculated based on the predefined
* constant and the selected clock source:
*
* - If SYSCLK source is HSI, SystemCoreClock will contain the HSI_VALUE(**) / HSI division factor
*
* - If SYSCLK source is HSE, SystemCoreClock will contain the HSE_VALUE(***)
*
* - If SYSCLK source is LSI, SystemCoreClock will contain the LSI_VALUE
*
* - If SYSCLK source is LSE, SystemCoreClock will contain the LSE_VALUE
*
* - If SYSCLK source is PLL, SystemCoreClock will contain the HSE_VALUE(***)
* or HSI_VALUE(*) multiplied/divided by the PLL factors.
*
* (**) HSI_VALUE is a constant defined in stm32g0xx_hal_conf.h file (default value
* 16 MHz) but the real value may vary depending on the variations
* in voltage and temperature.
*
* (***) HSE_VALUE is a constant defined in stm32g0xx_hal_conf.h file (default value
* 8 MHz), user has to ensure that HSE_VALUE is same as the real
* frequency of the crystal used. Otherwise, this function may
* have wrong result.
*
* - The result of this function could be not correct when using fractional
* value for HSE crystal.
*
* @param None
* @retval None
*/
void SystemCoreClockUpdate(void)
{
uint32_t tmp;
uint32_t pllvco;
uint32_t pllr;
uint32_t pllsource;
uint32_t pllm;
uint32_t hsidiv;
/* Get SYSCLK source -------------------------------------------------------*/
switch (RCC->CFGR & RCC_CFGR_SWS)
{
case RCC_CFGR_SWS_0: /* HSE used as system clock */
SystemCoreClock = HSE_VALUE;
break;
case (RCC_CFGR_SWS_1 | RCC_CFGR_SWS_0): /* LSI used as system clock */
SystemCoreClock = LSI_VALUE;
break;
case RCC_CFGR_SWS_2: /* LSE used as system clock */
SystemCoreClock = LSE_VALUE;
break;
case RCC_CFGR_SWS_1: /* PLL used as system clock */
/* PLL_VCO = (HSE_VALUE or HSI_VALUE / PLLM) * PLLN
SYSCLK = PLL_VCO / PLLR
*/
pllsource = (RCC->PLLCFGR & RCC_PLLCFGR_PLLSRC);
pllm = ((RCC->PLLCFGR & RCC_PLLCFGR_PLLM) >> RCC_PLLCFGR_PLLM_Pos) + 1UL;
if(pllsource == 0x03UL) /* HSE used as PLL clock source */
{
pllvco = (HSE_VALUE / pllm);
}
else /* HSI used as PLL clock source */
{
pllvco = (HSI_VALUE / pllm);
}
pllvco = pllvco * ((RCC->PLLCFGR & RCC_PLLCFGR_PLLN) >> RCC_PLLCFGR_PLLN_Pos);
pllr = (((RCC->PLLCFGR & RCC_PLLCFGR_PLLR) >> RCC_PLLCFGR_PLLR_Pos) + 1UL);
SystemCoreClock = pllvco/pllr;
break;
case 0x00000000U: /* HSI used as system clock */
default: /* HSI used as system clock */
hsidiv = (1UL << ((READ_BIT(RCC->CR, RCC_CR_HSIDIV))>> RCC_CR_HSIDIV_Pos));
SystemCoreClock = (HSI_VALUE/hsidiv);
break;
}
/* Compute HCLK clock frequency --------------------------------------------*/
/* Get HCLK prescaler */
tmp = AHBPrescTable[((RCC->CFGR & RCC_CFGR_HPRE) >> RCC_CFGR_HPRE_Pos)];
/* HCLK clock frequency */
SystemCoreClock >>= tmp;
}
/**
* @}
*/
/**
* @}
*/
/**
* @}
*/

233
Core/Src/tim.c

@ -0,0 +1,233 @@
/* USER CODE BEGIN Header */
/**
******************************************************************************
* @file tim.c
* @brief This file provides code for the configuration
* of the TIM instances.
******************************************************************************
* @attention
*
* Copyright (c) 2026 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.
* If no LICENSE file comes with this software, it is provided AS-IS.
*
******************************************************************************
*/
/* USER CODE END Header */
/* Includes ------------------------------------------------------------------*/
#include "tim.h"
/* USER CODE BEGIN 0 */
/* USER CODE END 0 */
TIM_HandleTypeDef htim2;
TIM_HandleTypeDef htim3;
/* TIM2 init function */
void MX_TIM2_Init(void)
{
/* USER CODE BEGIN TIM2_Init 0 */
/* USER CODE END TIM2_Init 0 */
TIM_Encoder_InitTypeDef sConfig = {0};
TIM_MasterConfigTypeDef sMasterConfig = {0};
/* USER CODE BEGIN TIM2_Init 1 */
/* USER CODE END TIM2_Init 1 */
htim2.Instance = TIM2;
htim2.Init.Prescaler = 0;
htim2.Init.CounterMode = TIM_COUNTERMODE_UP;
htim2.Init.Period = 4294967295;
htim2.Init.ClockDivision = TIM_CLOCKDIVISION_DIV1;
htim2.Init.AutoReloadPreload = TIM_AUTORELOAD_PRELOAD_DISABLE;
sConfig.EncoderMode = TIM_ENCODERMODE_TI12;
sConfig.IC1Polarity = TIM_ICPOLARITY_RISING;
sConfig.IC1Selection = TIM_ICSELECTION_DIRECTTI;
sConfig.IC1Prescaler = TIM_ICPSC_DIV1;
sConfig.IC1Filter = 5;
sConfig.IC2Polarity = TIM_ICPOLARITY_RISING;
sConfig.IC2Selection = TIM_ICSELECTION_DIRECTTI;
sConfig.IC2Prescaler = TIM_ICPSC_DIV1;
sConfig.IC2Filter = 5;
if (HAL_TIM_Encoder_Init(&htim2, &sConfig) != HAL_OK)
{
Error_Handler();
}
sMasterConfig.MasterOutputTrigger = TIM_TRGO_RESET;
sMasterConfig.MasterSlaveMode = TIM_MASTERSLAVEMODE_DISABLE;
if (HAL_TIMEx_MasterConfigSynchronization(&htim2, &sMasterConfig) != HAL_OK)
{
Error_Handler();
}
/* USER CODE BEGIN TIM2_Init 2 */
/* USER CODE END TIM2_Init 2 */
}
/* TIM3 init function */
void MX_TIM3_Init(void)
{
/* USER CODE BEGIN TIM3_Init 0 */
/* USER CODE END TIM3_Init 0 */
TIM_MasterConfigTypeDef sMasterConfig = {0};
TIM_OC_InitTypeDef sConfigOC = {0};
/* USER CODE BEGIN TIM3_Init 1 */
/* USER CODE END TIM3_Init 1 */
htim3.Instance = TIM3;
htim3.Init.Prescaler = 0;
htim3.Init.CounterMode = TIM_COUNTERMODE_UP;
htim3.Init.Period = 100;
htim3.Init.ClockDivision = TIM_CLOCKDIVISION_DIV1;
htim3.Init.AutoReloadPreload = TIM_AUTORELOAD_PRELOAD_ENABLE;
if (HAL_TIM_PWM_Init(&htim3) != HAL_OK)
{
Error_Handler();
}
sMasterConfig.MasterOutputTrigger = TIM_TRGO_RESET;
sMasterConfig.MasterSlaveMode = TIM_MASTERSLAVEMODE_DISABLE;
if (HAL_TIMEx_MasterConfigSynchronization(&htim3, &sMasterConfig) != HAL_OK)
{
Error_Handler();
}
sConfigOC.OCMode = TIM_OCMODE_PWM1;
sConfigOC.Pulse = 80;
sConfigOC.OCPolarity = TIM_OCPOLARITY_HIGH;
sConfigOC.OCFastMode = TIM_OCFAST_DISABLE;
if (HAL_TIM_PWM_ConfigChannel(&htim3, &sConfigOC, TIM_CHANNEL_1) != HAL_OK)
{
Error_Handler();
}
/* USER CODE BEGIN TIM3_Init 2 */
/* USER CODE END TIM3_Init 2 */
HAL_TIM_MspPostInit(&htim3);
}
void HAL_TIM_Encoder_MspInit(TIM_HandleTypeDef* tim_encoderHandle)
{
GPIO_InitTypeDef GPIO_InitStruct = {0};
if(tim_encoderHandle->Instance==TIM2)
{
/* USER CODE BEGIN TIM2_MspInit 0 */
/* USER CODE END TIM2_MspInit 0 */
/* TIM2 clock enable */
__HAL_RCC_TIM2_CLK_ENABLE();
__HAL_RCC_GPIOA_CLK_ENABLE();
/**TIM2 GPIO Configuration
PA0 ------> TIM2_CH1
PA1 ------> TIM2_CH2
*/
GPIO_InitStruct.Pin = GPIO_PIN_0|GPIO_PIN_1;
GPIO_InitStruct.Mode = GPIO_MODE_AF_PP;
GPIO_InitStruct.Pull = GPIO_NOPULL;
GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_LOW;
GPIO_InitStruct.Alternate = GPIO_AF2_TIM2;
HAL_GPIO_Init(GPIOA, &GPIO_InitStruct);
/* USER CODE BEGIN TIM2_MspInit 1 */
/* USER CODE END TIM2_MspInit 1 */
}
}
void HAL_TIM_PWM_MspInit(TIM_HandleTypeDef* tim_pwmHandle)
{
if(tim_pwmHandle->Instance==TIM3)
{
/* USER CODE BEGIN TIM3_MspInit 0 */
/* USER CODE END TIM3_MspInit 0 */
/* TIM3 clock enable */
__HAL_RCC_TIM3_CLK_ENABLE();
/* USER CODE BEGIN TIM3_MspInit 1 */
/* USER CODE END TIM3_MspInit 1 */
}
}
void HAL_TIM_MspPostInit(TIM_HandleTypeDef* timHandle)
{
GPIO_InitTypeDef GPIO_InitStruct = {0};
if(timHandle->Instance==TIM3)
{
/* USER CODE BEGIN TIM3_MspPostInit 0 */
/* USER CODE END TIM3_MspPostInit 0 */
__HAL_RCC_GPIOA_CLK_ENABLE();
/**TIM3 GPIO Configuration
PA6 ------> TIM3_CH1
*/
GPIO_InitStruct.Pin = GPIO_PIN_6;
GPIO_InitStruct.Mode = GPIO_MODE_AF_PP;
GPIO_InitStruct.Pull = GPIO_NOPULL;
GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_LOW;
GPIO_InitStruct.Alternate = GPIO_AF1_TIM3;
HAL_GPIO_Init(GPIOA, &GPIO_InitStruct);
/* USER CODE BEGIN TIM3_MspPostInit 1 */
/* USER CODE END TIM3_MspPostInit 1 */
}
}
void HAL_TIM_Encoder_MspDeInit(TIM_HandleTypeDef* tim_encoderHandle)
{
if(tim_encoderHandle->Instance==TIM2)
{
/* USER CODE BEGIN TIM2_MspDeInit 0 */
/* USER CODE END TIM2_MspDeInit 0 */
/* Peripheral clock disable */
__HAL_RCC_TIM2_CLK_DISABLE();
/**TIM2 GPIO Configuration
PA0 ------> TIM2_CH1
PA1 ------> TIM2_CH2
*/
HAL_GPIO_DeInit(GPIOA, GPIO_PIN_0|GPIO_PIN_1);
/* USER CODE BEGIN TIM2_MspDeInit 1 */
/* USER CODE END TIM2_MspDeInit 1 */
}
}
void HAL_TIM_PWM_MspDeInit(TIM_HandleTypeDef* tim_pwmHandle)
{
if(tim_pwmHandle->Instance==TIM3)
{
/* USER CODE BEGIN TIM3_MspDeInit 0 */
/* USER CODE END TIM3_MspDeInit 0 */
/* Peripheral clock disable */
__HAL_RCC_TIM3_CLK_DISABLE();
/* USER CODE BEGIN TIM3_MspDeInit 1 */
/* USER CODE END TIM3_MspDeInit 1 */
}
}
/* USER CODE BEGIN 1 */
/* USER CODE END 1 */

144
Core/Src/usart.c

@ -0,0 +1,144 @@
/* USER CODE BEGIN Header */
/**
******************************************************************************
* @file usart.c
* @brief This file provides code for the configuration
* of the USART instances.
******************************************************************************
* @attention
*
* Copyright (c) 2026 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.
* If no LICENSE file comes with this software, it is provided AS-IS.
*
******************************************************************************
*/
/* USER CODE END Header */
/* Includes ------------------------------------------------------------------*/
#include "usart.h"
/* USER CODE BEGIN 0 */
/* USER CODE END 0 */
UART_HandleTypeDef huart2;
DMA_HandleTypeDef hdma_usart2_tx;
/* USART2 init function */
void MX_USART2_UART_Init(void)
{
/* USER CODE BEGIN USART2_Init 0 */
/* USER CODE END USART2_Init 0 */
/* USER CODE BEGIN USART2_Init 1 */
/* USER CODE END USART2_Init 1 */
huart2.Instance = USART2;
huart2.Init.BaudRate = 115200;
huart2.Init.WordLength = UART_WORDLENGTH_8B;
huart2.Init.StopBits = UART_STOPBITS_1;
huart2.Init.Parity = UART_PARITY_NONE;
huart2.Init.Mode = UART_MODE_TX_RX;
huart2.Init.HwFlowCtl = UART_HWCONTROL_NONE;
huart2.Init.OverSampling = UART_OVERSAMPLING_16;
huart2.Init.OneBitSampling = UART_ONE_BIT_SAMPLE_DISABLE;
huart2.Init.ClockPrescaler = UART_PRESCALER_DIV1;
huart2.AdvancedInit.AdvFeatureInit = UART_ADVFEATURE_NO_INIT;
if (HAL_UART_Init(&huart2) != HAL_OK)
{
Error_Handler();
}
/* USER CODE BEGIN USART2_Init 2 */
/* USER CODE END USART2_Init 2 */
}
void HAL_UART_MspInit(UART_HandleTypeDef* uartHandle)
{
GPIO_InitTypeDef GPIO_InitStruct = {0};
if(uartHandle->Instance==USART2)
{
/* USER CODE BEGIN USART2_MspInit 0 */
/* USER CODE END USART2_MspInit 0 */
/* USART2 clock enable */
__HAL_RCC_USART2_CLK_ENABLE();
__HAL_RCC_GPIOA_CLK_ENABLE();
/**USART2 GPIO Configuration
PA2 ------> USART2_TX
PA3 ------> USART2_RX
*/
GPIO_InitStruct.Pin = GPIO_PIN_2|GPIO_PIN_3;
GPIO_InitStruct.Mode = GPIO_MODE_AF_PP;
GPIO_InitStruct.Pull = GPIO_NOPULL;
GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_LOW;
GPIO_InitStruct.Alternate = GPIO_AF1_USART2;
HAL_GPIO_Init(GPIOA, &GPIO_InitStruct);
/* USART2 DMA Init */
/* USART2_TX Init */
hdma_usart2_tx.Instance = DMA1_Channel1;
hdma_usart2_tx.Init.Request = DMA_REQUEST_USART2_TX;
hdma_usart2_tx.Init.Direction = DMA_MEMORY_TO_PERIPH;
hdma_usart2_tx.Init.PeriphInc = DMA_PINC_DISABLE;
hdma_usart2_tx.Init.MemInc = DMA_MINC_ENABLE;
hdma_usart2_tx.Init.PeriphDataAlignment = DMA_PDATAALIGN_BYTE;
hdma_usart2_tx.Init.MemDataAlignment = DMA_MDATAALIGN_BYTE;
hdma_usart2_tx.Init.Mode = DMA_NORMAL;
hdma_usart2_tx.Init.Priority = DMA_PRIORITY_LOW;
if (HAL_DMA_Init(&hdma_usart2_tx) != HAL_OK)
{
Error_Handler();
}
__HAL_LINKDMA(uartHandle,hdmatx,hdma_usart2_tx);
/* USART2 interrupt Init */
HAL_NVIC_SetPriority(USART2_IRQn, 0, 0);
HAL_NVIC_EnableIRQ(USART2_IRQn);
/* USER CODE BEGIN USART2_MspInit 1 */
/* USER CODE END USART2_MspInit 1 */
}
}
void HAL_UART_MspDeInit(UART_HandleTypeDef* uartHandle)
{
if(uartHandle->Instance==USART2)
{
/* USER CODE BEGIN USART2_MspDeInit 0 */
/* USER CODE END USART2_MspDeInit 0 */
/* Peripheral clock disable */
__HAL_RCC_USART2_CLK_DISABLE();
/**USART2 GPIO Configuration
PA2 ------> USART2_TX
PA3 ------> USART2_RX
*/
HAL_GPIO_DeInit(GPIOA, GPIO_PIN_2|GPIO_PIN_3);
/* USART2 DMA DeInit */
HAL_DMA_DeInit(uartHandle->hdmatx);
/* USART2 interrupt Deinit */
HAL_NVIC_DisableIRQ(USART2_IRQn);
/* USER CODE BEGIN USART2_MspDeInit 1 */
/* USER CODE END USART2_MspDeInit 1 */
}
}
/* USER CODE BEGIN 1 */
/* USER CODE END 1 */

286
Core/Startup/startup_stm32g031g8ux.s

@ -0,0 +1,286 @@
/**
******************************************************************************
* @file startup_stm32g031xx.s
* @author MCD Application Team
* @brief STM32G031xx devices vector table GCC toolchain.
* This module performs:
* - Set the initial SP
* - Set the initial PC == Reset_Handler,
* - Set the vector table entries with the exceptions ISR address
* - Branches to main in the C library (which eventually
* calls main()).
* After Reset the Cortex-M0+ processor is in Thread mode,
* priority is Privileged, and the Stack is set to Main.
******************************************************************************
* @attention
*
* Copyright (c) 2018-2021 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.
* If no LICENSE file comes with this software, it is provided AS-IS.
*
******************************************************************************
*/
.syntax unified
.cpu cortex-m0plus
.fpu softvfp
.thumb
.global g_pfnVectors
.global Default_Handler
/* start address for the initialization values of the .data section.
defined in linker script */
.word _sidata
/* start address for the .data section. defined in linker script */
.word _sdata
/* end address for the .data section. defined in linker script */
.word _edata
/* start address for the .bss section. defined in linker script */
.word _sbss
/* end address for the .bss section. defined in linker script */
.word _ebss
/**
* @brief This is the code that gets called when the processor first
* starts execution following a reset event. Only the absolutely
* necessary set is performed, after which the application
* supplied main() routine is called.
* @param None
* @retval None
*/
.section .text.Reset_Handler
.weak Reset_Handler
.type Reset_Handler, %function
Reset_Handler:
ldr r0, =_estack
mov sp, r0 /* set stack pointer */
/* Call the clock system initialization function.*/
bl SystemInit
/* Copy the data segment initializers from flash to SRAM */
ldr r0, =_sdata
ldr r1, =_edata
ldr r2, =_sidata
movs r3, #0
b LoopCopyDataInit
CopyDataInit:
ldr r4, [r2, r3]
str r4, [r0, r3]
adds r3, r3, #4
LoopCopyDataInit:
adds r4, r0, r3
cmp r4, r1
bcc CopyDataInit
/* Zero fill the bss segment. */
ldr r2, =_sbss
ldr r4, =_ebss
movs r3, #0
b LoopFillZerobss
FillZerobss:
str r3, [r2]
adds r2, r2, #4
LoopFillZerobss:
cmp r2, r4
bcc FillZerobss
/* Call static constructors */
bl __libc_init_array
/* Call the application s entry point.*/
bl main
LoopForever:
b LoopForever
.size Reset_Handler, .-Reset_Handler
/**
* @brief This is the code that gets called when the processor receives an
* unexpected interrupt. This simply enters an infinite loop, preserving
* the system state for examination by a debugger.
*
* @param None
* @retval None
*/
.section .text.Default_Handler,"ax",%progbits
Default_Handler:
Infinite_Loop:
b Infinite_Loop
.size Default_Handler, .-Default_Handler
/******************************************************************************
*
* The minimal vector table for a Cortex M0. Note that the proper constructs
* must be placed on this to ensure that it ends up at physical address
* 0x0000.0000.
*
******************************************************************************/
.section .isr_vector,"a",%progbits
.type g_pfnVectors, %object
.size g_pfnVectors, .-g_pfnVectors
g_pfnVectors:
.word _estack
.word Reset_Handler
.word NMI_Handler
.word HardFault_Handler
.word 0
.word 0
.word 0
.word 0
.word 0
.word 0
.word 0
.word SVC_Handler
.word 0
.word 0
.word PendSV_Handler
.word SysTick_Handler
.word WWDG_IRQHandler /* Window WatchDog */
.word PVD_IRQHandler /* PVD through EXTI Line detect */
.word RTC_TAMP_IRQHandler /* RTC through the EXTI line */
.word FLASH_IRQHandler /* FLASH */
.word RCC_IRQHandler /* RCC */
.word EXTI0_1_IRQHandler /* EXTI Line 0 and 1 */
.word EXTI2_3_IRQHandler /* EXTI Line 2 and 3 */
.word EXTI4_15_IRQHandler /* EXTI Line 4 to 15 */
.word 0 /* reserved */
.word DMA1_Channel1_IRQHandler /* DMA1 Channel 1 */
.word DMA1_Channel2_3_IRQHandler /* DMA1 Channel 2 and Channel 3 */
.word DMA1_Ch4_5_DMAMUX1_OVR_IRQHandler /* DMA1 Channel 4 to Channel 5, DMAMUX1 overrun */
.word ADC1_IRQHandler /* ADC1 */
.word TIM1_BRK_UP_TRG_COM_IRQHandler /* TIM1 Break, Update, Trigger and Commutation */
.word TIM1_CC_IRQHandler /* TIM1 Capture Compare */
.word TIM2_IRQHandler /* TIM2 */
.word TIM3_IRQHandler /* TIM3 */
.word LPTIM1_IRQHandler /* LPTIM1 */
.word LPTIM2_IRQHandler /* LPTIM2 */
.word TIM14_IRQHandler /* TIM14 */
.word 0 /* reserved */
.word TIM16_IRQHandler /* TIM16 */
.word TIM17_IRQHandler /* TIM17 */
.word I2C1_IRQHandler /* I2C1 */
.word I2C2_IRQHandler /* I2C2 */
.word SPI1_IRQHandler /* SPI1 */
.word SPI2_IRQHandler /* SPI2 */
.word USART1_IRQHandler /* USART1 */
.word USART2_IRQHandler /* USART2 */
.word LPUART1_IRQHandler /* LPUART1 */
.word 0 /* reserved */
/*******************************************************************************
*
* Provide weak aliases for each Exception handler to the Default_Handler.
* As they are weak aliases, any function with the same name will override
* this definition.
*
*******************************************************************************/
.weak NMI_Handler
.thumb_set NMI_Handler,Default_Handler
.weak HardFault_Handler
.thumb_set HardFault_Handler,Default_Handler
.weak SVC_Handler
.thumb_set SVC_Handler,Default_Handler
.weak PendSV_Handler
.thumb_set PendSV_Handler,Default_Handler
.weak SysTick_Handler
.thumb_set SysTick_Handler,Default_Handler
.weak WWDG_IRQHandler
.thumb_set WWDG_IRQHandler,Default_Handler
.weak PVD_IRQHandler
.thumb_set PVD_IRQHandler,Default_Handler
.weak RTC_TAMP_IRQHandler
.thumb_set RTC_TAMP_IRQHandler,Default_Handler
.weak FLASH_IRQHandler
.thumb_set FLASH_IRQHandler,Default_Handler
.weak RCC_IRQHandler
.thumb_set RCC_IRQHandler,Default_Handler
.weak EXTI0_1_IRQHandler
.thumb_set EXTI0_1_IRQHandler,Default_Handler
.weak EXTI2_3_IRQHandler
.thumb_set EXTI2_3_IRQHandler,Default_Handler
.weak EXTI4_15_IRQHandler
.thumb_set EXTI4_15_IRQHandler,Default_Handler
.weak DMA1_Channel1_IRQHandler
.thumb_set DMA1_Channel1_IRQHandler,Default_Handler
.weak DMA1_Channel2_3_IRQHandler
.thumb_set DMA1_Channel2_3_IRQHandler,Default_Handler
.weak DMA1_Ch4_5_DMAMUX1_OVR_IRQHandler
.thumb_set DMA1_Ch4_5_DMAMUX1_OVR_IRQHandler,Default_Handler
.weak ADC1_IRQHandler
.thumb_set ADC1_IRQHandler,Default_Handler
.weak TIM1_BRK_UP_TRG_COM_IRQHandler
.thumb_set TIM1_BRK_UP_TRG_COM_IRQHandler,Default_Handler
.weak TIM1_CC_IRQHandler
.thumb_set TIM1_CC_IRQHandler,Default_Handler
.weak TIM2_IRQHandler
.thumb_set TIM2_IRQHandler,Default_Handler
.weak TIM3_IRQHandler
.thumb_set TIM3_IRQHandler,Default_Handler
.weak LPTIM1_IRQHandler
.thumb_set LPTIM1_IRQHandler,Default_Handler
.weak LPTIM2_IRQHandler
.thumb_set LPTIM2_IRQHandler,Default_Handler
.weak TIM14_IRQHandler
.thumb_set TIM14_IRQHandler,Default_Handler
.weak TIM16_IRQHandler
.thumb_set TIM16_IRQHandler,Default_Handler
.weak TIM17_IRQHandler
.thumb_set TIM17_IRQHandler,Default_Handler
.weak I2C1_IRQHandler
.thumb_set I2C1_IRQHandler,Default_Handler
.weak I2C2_IRQHandler
.thumb_set I2C2_IRQHandler,Default_Handler
.weak SPI1_IRQHandler
.thumb_set SPI1_IRQHandler,Default_Handler
.weak SPI2_IRQHandler
.thumb_set SPI2_IRQHandler,Default_Handler
.weak USART1_IRQHandler
.thumb_set USART1_IRQHandler,Default_Handler
.weak USART2_IRQHandler
.thumb_set USART2_IRQHandler,Default_Handler
.weak LPUART1_IRQHandler
.thumb_set LPUART1_IRQHandler,Default_Handler

73
Debug/Core/Src/adc.d

@ -0,0 +1,73 @@
Core/Src/adc.o: ../Core/Src/adc.c ../Core/Inc/adc.h ../Core/Inc/main.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal.h \
../Core/Inc/stm32g0xx_hal_conf.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_rcc.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_def.h \
../Drivers/CMSIS/Device/ST/STM32G0xx/Include/stm32g0xx.h \
../Drivers/CMSIS/Device/ST/STM32G0xx/Include/stm32g031xx.h \
../Drivers/CMSIS/Include/core_cm0plus.h \
../Drivers/CMSIS/Include/cmsis_version.h \
../Drivers/CMSIS/Include/cmsis_compiler.h \
../Drivers/CMSIS/Include/cmsis_gcc.h \
../Drivers/CMSIS/Include/mpu_armv7.h \
../Drivers/CMSIS/Device/ST/STM32G0xx/Include/system_stm32g0xx.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_ll_rcc.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_rcc_ex.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_gpio.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_gpio_ex.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_dma.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_ll_dma.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_ll_dmamux.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_dma_ex.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_cortex.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_adc.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_ll_adc.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_adc_ex.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_adc_ex.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_exti.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_flash.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_flash_ex.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_pwr.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_pwr_ex.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_tim.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_tim_ex.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_uart.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_uart_ex.h
../Core/Inc/adc.h:
../Core/Inc/main.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal.h:
../Core/Inc/stm32g0xx_hal_conf.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_rcc.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_def.h:
../Drivers/CMSIS/Device/ST/STM32G0xx/Include/stm32g0xx.h:
../Drivers/CMSIS/Device/ST/STM32G0xx/Include/stm32g031xx.h:
../Drivers/CMSIS/Include/core_cm0plus.h:
../Drivers/CMSIS/Include/cmsis_version.h:
../Drivers/CMSIS/Include/cmsis_compiler.h:
../Drivers/CMSIS/Include/cmsis_gcc.h:
../Drivers/CMSIS/Include/mpu_armv7.h:
../Drivers/CMSIS/Device/ST/STM32G0xx/Include/system_stm32g0xx.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_ll_rcc.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_rcc_ex.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_gpio.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_gpio_ex.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_dma.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_ll_dma.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_ll_dmamux.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_dma_ex.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_cortex.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_adc.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_ll_adc.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_adc_ex.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_adc_ex.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_exti.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_flash.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_flash_ex.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_pwr.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_pwr_ex.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_tim.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_tim_ex.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_uart.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_uart_ex.h:

BIN
Debug/Core/Src/adc.o

Binary file not shown.

3
Debug/Core/Src/adc.su

@ -0,0 +1,3 @@
../Core/Src/adc.c:30:6:MX_ADC1_Init 24 static
../Core/Src/adc.c:83:6:HAL_ADC_MspInit 96 static
../Core/Src/adc.c:124:6:HAL_ADC_MspDeInit 16 static

79
Debug/Core/Src/app.d

@ -0,0 +1,79 @@
Core/Src/app.o: ../Core/Src/app.c ../Core/Inc/app.h ../Core/Inc/main.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal.h \
../Core/Inc/stm32g0xx_hal_conf.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_rcc.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_def.h \
../Drivers/CMSIS/Device/ST/STM32G0xx/Include/stm32g0xx.h \
../Drivers/CMSIS/Device/ST/STM32G0xx/Include/stm32g031xx.h \
../Drivers/CMSIS/Include/core_cm0plus.h \
../Drivers/CMSIS/Include/cmsis_version.h \
../Drivers/CMSIS/Include/cmsis_compiler.h \
../Drivers/CMSIS/Include/cmsis_gcc.h \
../Drivers/CMSIS/Include/mpu_armv7.h \
../Drivers/CMSIS/Device/ST/STM32G0xx/Include/system_stm32g0xx.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_ll_rcc.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_rcc_ex.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_gpio.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_gpio_ex.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_dma.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_ll_dma.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_ll_dmamux.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_dma_ex.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_cortex.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_adc.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_ll_adc.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_adc_ex.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_adc_ex.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_exti.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_flash.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_flash_ex.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_pwr.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_pwr_ex.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_tim.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_tim_ex.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_uart.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_uart_ex.h \
../Core/Inc/adc.h ../Core/Inc/tim.h ../Core/Inc/gpio.h \
../Core/Inc/modbus.h
../Core/Inc/app.h:
../Core/Inc/main.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal.h:
../Core/Inc/stm32g0xx_hal_conf.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_rcc.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_def.h:
../Drivers/CMSIS/Device/ST/STM32G0xx/Include/stm32g0xx.h:
../Drivers/CMSIS/Device/ST/STM32G0xx/Include/stm32g031xx.h:
../Drivers/CMSIS/Include/core_cm0plus.h:
../Drivers/CMSIS/Include/cmsis_version.h:
../Drivers/CMSIS/Include/cmsis_compiler.h:
../Drivers/CMSIS/Include/cmsis_gcc.h:
../Drivers/CMSIS/Include/mpu_armv7.h:
../Drivers/CMSIS/Device/ST/STM32G0xx/Include/system_stm32g0xx.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_ll_rcc.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_rcc_ex.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_gpio.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_gpio_ex.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_dma.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_ll_dma.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_ll_dmamux.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_dma_ex.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_cortex.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_adc.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_ll_adc.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_adc_ex.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_adc_ex.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_exti.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_flash.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_flash_ex.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_pwr.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_pwr_ex.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_tim.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_tim_ex.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_uart.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_uart_ex.h:
../Core/Inc/adc.h:
../Core/Inc/tim.h:
../Core/Inc/gpio.h:
../Core/Inc/modbus.h:

BIN
Debug/Core/Src/app.o

Binary file not shown.

8
Debug/Core/Src/app.su

@ -0,0 +1,8 @@
../Core/Src/app.c:40:6:App_Init 8 static
../Core/Src/app.c:69:6:App_Process 8 static
../Core/Src/app.c:88:13:App_UpdateMotor 32 static
../Core/Src/app.c:140:13:App_SetCurrentLimit 16 static
../Core/Src/app.c:150:13:App_UpdateEncoderRegister 16 static
../Core/Src/app.c:157:13:App_ProcessZeroCommand 8 static
../Core/Src/app.c:166:13:App_UpdateLed 32 static
../Core/Src/app.c:206:6:HAL_ADC_ConvCpltCallback 32 static

73
Debug/Core/Src/dma.d

@ -0,0 +1,73 @@
Core/Src/dma.o: ../Core/Src/dma.c ../Core/Inc/dma.h ../Core/Inc/main.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal.h \
../Core/Inc/stm32g0xx_hal_conf.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_rcc.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_def.h \
../Drivers/CMSIS/Device/ST/STM32G0xx/Include/stm32g0xx.h \
../Drivers/CMSIS/Device/ST/STM32G0xx/Include/stm32g031xx.h \
../Drivers/CMSIS/Include/core_cm0plus.h \
../Drivers/CMSIS/Include/cmsis_version.h \
../Drivers/CMSIS/Include/cmsis_compiler.h \
../Drivers/CMSIS/Include/cmsis_gcc.h \
../Drivers/CMSIS/Include/mpu_armv7.h \
../Drivers/CMSIS/Device/ST/STM32G0xx/Include/system_stm32g0xx.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_ll_rcc.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_rcc_ex.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_gpio.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_gpio_ex.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_dma.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_ll_dma.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_ll_dmamux.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_dma_ex.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_cortex.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_adc.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_ll_adc.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_adc_ex.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_adc_ex.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_exti.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_flash.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_flash_ex.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_pwr.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_pwr_ex.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_tim.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_tim_ex.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_uart.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_uart_ex.h
../Core/Inc/dma.h:
../Core/Inc/main.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal.h:
../Core/Inc/stm32g0xx_hal_conf.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_rcc.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_def.h:
../Drivers/CMSIS/Device/ST/STM32G0xx/Include/stm32g0xx.h:
../Drivers/CMSIS/Device/ST/STM32G0xx/Include/stm32g031xx.h:
../Drivers/CMSIS/Include/core_cm0plus.h:
../Drivers/CMSIS/Include/cmsis_version.h:
../Drivers/CMSIS/Include/cmsis_compiler.h:
../Drivers/CMSIS/Include/cmsis_gcc.h:
../Drivers/CMSIS/Include/mpu_armv7.h:
../Drivers/CMSIS/Device/ST/STM32G0xx/Include/system_stm32g0xx.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_ll_rcc.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_rcc_ex.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_gpio.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_gpio_ex.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_dma.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_ll_dma.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_ll_dmamux.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_dma_ex.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_cortex.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_adc.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_ll_adc.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_adc_ex.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_adc_ex.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_exti.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_flash.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_flash_ex.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_pwr.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_pwr_ex.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_tim.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_tim_ex.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_uart.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_uart_ex.h:

BIN
Debug/Core/Src/dma.o

Binary file not shown.

1
Debug/Core/Src/dma.su

@ -0,0 +1 @@
../Core/Src/dma.c:39:6:MX_DMA_Init 16 static

73
Debug/Core/Src/gpio.d

@ -0,0 +1,73 @@
Core/Src/gpio.o: ../Core/Src/gpio.c ../Core/Inc/gpio.h ../Core/Inc/main.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal.h \
../Core/Inc/stm32g0xx_hal_conf.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_rcc.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_def.h \
../Drivers/CMSIS/Device/ST/STM32G0xx/Include/stm32g0xx.h \
../Drivers/CMSIS/Device/ST/STM32G0xx/Include/stm32g031xx.h \
../Drivers/CMSIS/Include/core_cm0plus.h \
../Drivers/CMSIS/Include/cmsis_version.h \
../Drivers/CMSIS/Include/cmsis_compiler.h \
../Drivers/CMSIS/Include/cmsis_gcc.h \
../Drivers/CMSIS/Include/mpu_armv7.h \
../Drivers/CMSIS/Device/ST/STM32G0xx/Include/system_stm32g0xx.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_ll_rcc.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_rcc_ex.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_gpio.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_gpio_ex.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_dma.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_ll_dma.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_ll_dmamux.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_dma_ex.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_cortex.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_adc.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_ll_adc.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_adc_ex.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_adc_ex.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_exti.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_flash.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_flash_ex.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_pwr.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_pwr_ex.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_tim.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_tim_ex.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_uart.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_uart_ex.h
../Core/Inc/gpio.h:
../Core/Inc/main.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal.h:
../Core/Inc/stm32g0xx_hal_conf.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_rcc.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_def.h:
../Drivers/CMSIS/Device/ST/STM32G0xx/Include/stm32g0xx.h:
../Drivers/CMSIS/Device/ST/STM32G0xx/Include/stm32g031xx.h:
../Drivers/CMSIS/Include/core_cm0plus.h:
../Drivers/CMSIS/Include/cmsis_version.h:
../Drivers/CMSIS/Include/cmsis_compiler.h:
../Drivers/CMSIS/Include/cmsis_gcc.h:
../Drivers/CMSIS/Include/mpu_armv7.h:
../Drivers/CMSIS/Device/ST/STM32G0xx/Include/system_stm32g0xx.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_ll_rcc.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_rcc_ex.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_gpio.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_gpio_ex.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_dma.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_ll_dma.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_ll_dmamux.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_dma_ex.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_cortex.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_adc.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_ll_adc.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_adc_ex.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_adc_ex.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_exti.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_flash.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_flash_ex.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_pwr.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_pwr_ex.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_tim.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_tim_ex.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_uart.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_uart_ex.h:

BIN
Debug/Core/Src/gpio.o

Binary file not shown.

1
Debug/Core/Src/gpio.su

@ -0,0 +1 @@
../Core/Src/gpio.c:42:6:MX_GPIO_Init 48 static

83
Debug/Core/Src/main.d

@ -0,0 +1,83 @@
Core/Src/main.o: ../Core/Src/main.c ../Core/Inc/main.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal.h \
../Core/Inc/stm32g0xx_hal_conf.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_rcc.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_def.h \
../Drivers/CMSIS/Device/ST/STM32G0xx/Include/stm32g0xx.h \
../Drivers/CMSIS/Device/ST/STM32G0xx/Include/stm32g031xx.h \
../Drivers/CMSIS/Include/core_cm0plus.h \
../Drivers/CMSIS/Include/cmsis_version.h \
../Drivers/CMSIS/Include/cmsis_compiler.h \
../Drivers/CMSIS/Include/cmsis_gcc.h \
../Drivers/CMSIS/Include/mpu_armv7.h \
../Drivers/CMSIS/Device/ST/STM32G0xx/Include/system_stm32g0xx.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_ll_rcc.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_rcc_ex.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_gpio.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_gpio_ex.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_dma.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_ll_dma.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_ll_dmamux.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_dma_ex.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_cortex.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_adc.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_ll_adc.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_adc_ex.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_adc_ex.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_exti.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_flash.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_flash_ex.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_pwr.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_pwr_ex.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_tim.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_tim_ex.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_uart.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_uart_ex.h \
../Core/Inc/adc.h ../Core/Inc/main.h ../Core/Inc/dma.h ../Core/Inc/tim.h \
../Core/Inc/usart.h ../Core/Inc/gpio.h ../Core/Inc/app.h \
../Core/Inc/modbus.h
../Core/Inc/main.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal.h:
../Core/Inc/stm32g0xx_hal_conf.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_rcc.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_def.h:
../Drivers/CMSIS/Device/ST/STM32G0xx/Include/stm32g0xx.h:
../Drivers/CMSIS/Device/ST/STM32G0xx/Include/stm32g031xx.h:
../Drivers/CMSIS/Include/core_cm0plus.h:
../Drivers/CMSIS/Include/cmsis_version.h:
../Drivers/CMSIS/Include/cmsis_compiler.h:
../Drivers/CMSIS/Include/cmsis_gcc.h:
../Drivers/CMSIS/Include/mpu_armv7.h:
../Drivers/CMSIS/Device/ST/STM32G0xx/Include/system_stm32g0xx.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_ll_rcc.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_rcc_ex.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_gpio.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_gpio_ex.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_dma.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_ll_dma.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_ll_dmamux.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_dma_ex.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_cortex.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_adc.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_ll_adc.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_adc_ex.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_adc_ex.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_exti.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_flash.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_flash_ex.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_pwr.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_pwr_ex.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_tim.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_tim_ex.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_uart.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_uart_ex.h:
../Core/Inc/adc.h:
../Core/Inc/main.h:
../Core/Inc/dma.h:
../Core/Inc/tim.h:
../Core/Inc/usart.h:
../Core/Inc/gpio.h:
../Core/Inc/app.h:
../Core/Inc/modbus.h:

BIN
Debug/Core/Src/main.o

Binary file not shown.

3
Debug/Core/Src/main.su

@ -0,0 +1,3 @@
../Core/Src/main.c:67:5:main 8 static
../Core/Src/main.c:118:6:SystemClock_Config 88 static
../Core/Src/main.c:162:6:Error_Handler 8 static,ignoring_inline_asm

77
Debug/Core/Src/modbus.d

@ -0,0 +1,77 @@
Core/Src/modbus.o: ../Core/Src/modbus.c \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal.h \
../Core/Inc/stm32g0xx_hal_conf.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_rcc.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_def.h \
../Drivers/CMSIS/Device/ST/STM32G0xx/Include/stm32g0xx.h \
../Drivers/CMSIS/Device/ST/STM32G0xx/Include/stm32g031xx.h \
../Drivers/CMSIS/Include/core_cm0plus.h \
../Drivers/CMSIS/Include/cmsis_version.h \
../Drivers/CMSIS/Include/cmsis_compiler.h \
../Drivers/CMSIS/Include/cmsis_gcc.h \
../Drivers/CMSIS/Include/mpu_armv7.h \
../Drivers/CMSIS/Device/ST/STM32G0xx/Include/system_stm32g0xx.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_ll_rcc.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_rcc_ex.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_gpio.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_gpio_ex.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_dma.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_ll_dma.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_ll_dmamux.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_dma_ex.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_cortex.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_adc.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_ll_adc.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_adc_ex.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_adc_ex.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_exti.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_flash.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_flash_ex.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_pwr.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_pwr_ex.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_tim.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_tim_ex.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_uart.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_uart_ex.h \
../Core/Inc/main.h ../Core/Inc/modbus.h ../Core/Inc/usart.h \
../Core/Inc/main.h
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal.h:
../Core/Inc/stm32g0xx_hal_conf.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_rcc.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_def.h:
../Drivers/CMSIS/Device/ST/STM32G0xx/Include/stm32g0xx.h:
../Drivers/CMSIS/Device/ST/STM32G0xx/Include/stm32g031xx.h:
../Drivers/CMSIS/Include/core_cm0plus.h:
../Drivers/CMSIS/Include/cmsis_version.h:
../Drivers/CMSIS/Include/cmsis_compiler.h:
../Drivers/CMSIS/Include/cmsis_gcc.h:
../Drivers/CMSIS/Include/mpu_armv7.h:
../Drivers/CMSIS/Device/ST/STM32G0xx/Include/system_stm32g0xx.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_ll_rcc.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_rcc_ex.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_gpio.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_gpio_ex.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_dma.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_ll_dma.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_ll_dmamux.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_dma_ex.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_cortex.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_adc.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_ll_adc.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_adc_ex.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_adc_ex.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_exti.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_flash.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_flash_ex.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_pwr.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_pwr_ex.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_tim.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_tim_ex.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_uart.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_uart_ex.h:
../Core/Inc/main.h:
../Core/Inc/modbus.h:
../Core/Inc/usart.h:
../Core/Inc/main.h:

BIN
Debug/Core/Src/modbus.o

Binary file not shown.

11
Debug/Core/Src/modbus.su

@ -0,0 +1,11 @@
../Core/Src/modbus.c:44:6:Modbus_Init 8 static
../Core/Src/modbus.c:55:6:Modbus_Process 32 static
../Core/Src/modbus.c:144:6:Modbus_HandleFunction03 48 static
../Core/Src/modbus.c:176:6:Modbus_HandleFunction06 40 static
../Core/Src/modbus.c:214:6:Modbus_HandleFunction10 48 static
../Core/Src/modbus.c:256:6:Modbus_SendExceptionResponse 32 static
../Core/Src/modbus.c:270:6:Modbus_SendResponse 16 static
../Core/Src/modbus.c:280:10:CalculateCRC 24 static
../Core/Src/modbus.c:306:6:HAL_UART_RxCpltCallback 16 static
../Core/Src/modbus.c:335:6:HAL_UART_TxCpltCallback 16 static
../Core/Src/modbus.c:344:6:HAL_UART_ErrorCallback 16 static

72
Debug/Core/Src/stm32g0xx_hal_msp.d

@ -0,0 +1,72 @@
Core/Src/stm32g0xx_hal_msp.o: ../Core/Src/stm32g0xx_hal_msp.c \
../Core/Inc/main.h ../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal.h \
../Core/Inc/stm32g0xx_hal_conf.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_rcc.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_def.h \
../Drivers/CMSIS/Device/ST/STM32G0xx/Include/stm32g0xx.h \
../Drivers/CMSIS/Device/ST/STM32G0xx/Include/stm32g031xx.h \
../Drivers/CMSIS/Include/core_cm0plus.h \
../Drivers/CMSIS/Include/cmsis_version.h \
../Drivers/CMSIS/Include/cmsis_compiler.h \
../Drivers/CMSIS/Include/cmsis_gcc.h \
../Drivers/CMSIS/Include/mpu_armv7.h \
../Drivers/CMSIS/Device/ST/STM32G0xx/Include/system_stm32g0xx.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_ll_rcc.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_rcc_ex.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_gpio.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_gpio_ex.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_dma.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_ll_dma.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_ll_dmamux.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_dma_ex.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_cortex.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_adc.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_ll_adc.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_adc_ex.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_adc_ex.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_exti.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_flash.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_flash_ex.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_pwr.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_pwr_ex.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_tim.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_tim_ex.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_uart.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_uart_ex.h
../Core/Inc/main.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal.h:
../Core/Inc/stm32g0xx_hal_conf.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_rcc.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_def.h:
../Drivers/CMSIS/Device/ST/STM32G0xx/Include/stm32g0xx.h:
../Drivers/CMSIS/Device/ST/STM32G0xx/Include/stm32g031xx.h:
../Drivers/CMSIS/Include/core_cm0plus.h:
../Drivers/CMSIS/Include/cmsis_version.h:
../Drivers/CMSIS/Include/cmsis_compiler.h:
../Drivers/CMSIS/Include/cmsis_gcc.h:
../Drivers/CMSIS/Include/mpu_armv7.h:
../Drivers/CMSIS/Device/ST/STM32G0xx/Include/system_stm32g0xx.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_ll_rcc.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_rcc_ex.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_gpio.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_gpio_ex.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_dma.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_ll_dma.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_ll_dmamux.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_dma_ex.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_cortex.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_adc.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_ll_adc.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_adc_ex.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_adc_ex.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_exti.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_flash.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_flash_ex.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_pwr.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_pwr_ex.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_tim.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_tim_ex.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_uart.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_uart_ex.h:

BIN
Debug/Core/Src/stm32g0xx_hal_msp.o

Binary file not shown.

1
Debug/Core/Src/stm32g0xx_hal_msp.su

@ -0,0 +1 @@
../Core/Src/stm32g0xx_hal_msp.c:63:6:HAL_MspInit 16 static

74
Debug/Core/Src/stm32g0xx_it.d

@ -0,0 +1,74 @@
Core/Src/stm32g0xx_it.o: ../Core/Src/stm32g0xx_it.c ../Core/Inc/main.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal.h \
../Core/Inc/stm32g0xx_hal_conf.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_rcc.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_def.h \
../Drivers/CMSIS/Device/ST/STM32G0xx/Include/stm32g0xx.h \
../Drivers/CMSIS/Device/ST/STM32G0xx/Include/stm32g031xx.h \
../Drivers/CMSIS/Include/core_cm0plus.h \
../Drivers/CMSIS/Include/cmsis_version.h \
../Drivers/CMSIS/Include/cmsis_compiler.h \
../Drivers/CMSIS/Include/cmsis_gcc.h \
../Drivers/CMSIS/Include/mpu_armv7.h \
../Drivers/CMSIS/Device/ST/STM32G0xx/Include/system_stm32g0xx.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_ll_rcc.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_rcc_ex.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_gpio.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_gpio_ex.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_dma.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_ll_dma.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_ll_dmamux.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_dma_ex.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_cortex.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_adc.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_ll_adc.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_adc_ex.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_adc_ex.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_exti.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_flash.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_flash_ex.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_pwr.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_pwr_ex.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_tim.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_tim_ex.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_uart.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_uart_ex.h \
../Core/Inc/stm32g0xx_it.h
../Core/Inc/main.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal.h:
../Core/Inc/stm32g0xx_hal_conf.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_rcc.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_def.h:
../Drivers/CMSIS/Device/ST/STM32G0xx/Include/stm32g0xx.h:
../Drivers/CMSIS/Device/ST/STM32G0xx/Include/stm32g031xx.h:
../Drivers/CMSIS/Include/core_cm0plus.h:
../Drivers/CMSIS/Include/cmsis_version.h:
../Drivers/CMSIS/Include/cmsis_compiler.h:
../Drivers/CMSIS/Include/cmsis_gcc.h:
../Drivers/CMSIS/Include/mpu_armv7.h:
../Drivers/CMSIS/Device/ST/STM32G0xx/Include/system_stm32g0xx.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_ll_rcc.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_rcc_ex.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_gpio.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_gpio_ex.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_dma.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_ll_dma.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_ll_dmamux.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_dma_ex.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_cortex.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_adc.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_ll_adc.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_adc_ex.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_adc_ex.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_exti.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_flash.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_flash_ex.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_pwr.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_pwr_ex.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_tim.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_tim_ex.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_uart.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_uart_ex.h:
../Core/Inc/stm32g0xx_it.h:

BIN
Debug/Core/Src/stm32g0xx_it.o

Binary file not shown.

8
Debug/Core/Src/stm32g0xx_it.su

@ -0,0 +1,8 @@
../Core/Src/stm32g0xx_it.c:71:6:NMI_Handler 8 static
../Core/Src/stm32g0xx_it.c:86:6:HardFault_Handler 8 static
../Core/Src/stm32g0xx_it.c:101:6:SVC_Handler 8 static
../Core/Src/stm32g0xx_it.c:114:6:PendSV_Handler 8 static
../Core/Src/stm32g0xx_it.c:127:6:SysTick_Handler 8 static
../Core/Src/stm32g0xx_it.c:148:6:DMA1_Channel1_IRQHandler 8 static
../Core/Src/stm32g0xx_it.c:162:6:ADC1_IRQHandler 8 static
../Core/Src/stm32g0xx_it.c:176:6:USART2_IRQHandler 8 static

63
Debug/Core/Src/subdir.mk

@ -0,0 +1,63 @@
################################################################################
# Automatically-generated file. Do not edit!
# Toolchain: GNU Tools for STM32 (10.3-2021.10)
################################################################################
# Add inputs and outputs from these tool invocations to the build variables
C_SRCS += \
../Core/Src/adc.c \
../Core/Src/app.c \
../Core/Src/dma.c \
../Core/Src/gpio.c \
../Core/Src/main.c \
../Core/Src/modbus.c \
../Core/Src/stm32g0xx_hal_msp.c \
../Core/Src/stm32g0xx_it.c \
../Core/Src/syscalls.c \
../Core/Src/sysmem.c \
../Core/Src/system_stm32g0xx.c \
../Core/Src/tim.c \
../Core/Src/usart.c
OBJS += \
./Core/Src/adc.o \
./Core/Src/app.o \
./Core/Src/dma.o \
./Core/Src/gpio.o \
./Core/Src/main.o \
./Core/Src/modbus.o \
./Core/Src/stm32g0xx_hal_msp.o \
./Core/Src/stm32g0xx_it.o \
./Core/Src/syscalls.o \
./Core/Src/sysmem.o \
./Core/Src/system_stm32g0xx.o \
./Core/Src/tim.o \
./Core/Src/usart.o
C_DEPS += \
./Core/Src/adc.d \
./Core/Src/app.d \
./Core/Src/dma.d \
./Core/Src/gpio.d \
./Core/Src/main.d \
./Core/Src/modbus.d \
./Core/Src/stm32g0xx_hal_msp.d \
./Core/Src/stm32g0xx_it.d \
./Core/Src/syscalls.d \
./Core/Src/sysmem.d \
./Core/Src/system_stm32g0xx.d \
./Core/Src/tim.d \
./Core/Src/usart.d
# Each subdirectory must supply rules for building sources it contributes
Core/Src/%.o Core/Src/%.su: ../Core/Src/%.c Core/Src/subdir.mk
arm-none-eabi-gcc "$<" -mcpu=cortex-m0plus -std=gnu11 -g3 -DDEBUG -DUSE_HAL_DRIVER -DSTM32G031xx -c -I../Core/Inc -I../Drivers/STM32G0xx_HAL_Driver/Inc -I../Drivers/STM32G0xx_HAL_Driver/Inc/Legacy -I../Drivers/CMSIS/Device/ST/STM32G0xx/Include -I../Drivers/CMSIS/Include -O0 -ffunction-sections -fdata-sections -Wall -fstack-usage -MMD -MP -MF"$(@:%.o=%.d)" -MT"$@" --specs=nano.specs -mfloat-abi=soft -mthumb -o "$@"
clean: clean-Core-2f-Src
clean-Core-2f-Src:
-$(RM) ./Core/Src/adc.d ./Core/Src/adc.o ./Core/Src/adc.su ./Core/Src/app.d ./Core/Src/app.o ./Core/Src/app.su ./Core/Src/dma.d ./Core/Src/dma.o ./Core/Src/dma.su ./Core/Src/gpio.d ./Core/Src/gpio.o ./Core/Src/gpio.su ./Core/Src/main.d ./Core/Src/main.o ./Core/Src/main.su ./Core/Src/modbus.d ./Core/Src/modbus.o ./Core/Src/modbus.su ./Core/Src/stm32g0xx_hal_msp.d ./Core/Src/stm32g0xx_hal_msp.o ./Core/Src/stm32g0xx_hal_msp.su ./Core/Src/stm32g0xx_it.d ./Core/Src/stm32g0xx_it.o ./Core/Src/stm32g0xx_it.su ./Core/Src/syscalls.d ./Core/Src/syscalls.o ./Core/Src/syscalls.su ./Core/Src/sysmem.d ./Core/Src/sysmem.o ./Core/Src/sysmem.su ./Core/Src/system_stm32g0xx.d ./Core/Src/system_stm32g0xx.o ./Core/Src/system_stm32g0xx.su ./Core/Src/tim.d ./Core/Src/tim.o ./Core/Src/tim.su ./Core/Src/usart.d ./Core/Src/usart.o ./Core/Src/usart.su
.PHONY: clean-Core-2f-Src

1
Debug/Core/Src/syscalls.d

@ -0,0 +1 @@
Core/Src/syscalls.o: ../Core/Src/syscalls.c

BIN
Debug/Core/Src/syscalls.o

Binary file not shown.

18
Debug/Core/Src/syscalls.su

@ -0,0 +1,18 @@
../Core/Src/syscalls.c:44:6:initialise_monitor_handles 8 static
../Core/Src/syscalls.c:48:5:_getpid 8 static
../Core/Src/syscalls.c:53:5:_kill 16 static
../Core/Src/syscalls.c:59:6:_exit 16 static
../Core/Src/syscalls.c:65:27:_read 32 static
../Core/Src/syscalls.c:77:27:_write 32 static
../Core/Src/syscalls.c:88:5:_close 16 static
../Core/Src/syscalls.c:94:5:_fstat 16 static
../Core/Src/syscalls.c:100:5:_isatty 16 static
../Core/Src/syscalls.c:105:5:_lseek 24 static
../Core/Src/syscalls.c:110:5:_open 20 static
../Core/Src/syscalls.c:116:5:_wait 16 static
../Core/Src/syscalls.c:122:5:_unlink 16 static
../Core/Src/syscalls.c:128:5:_times 16 static
../Core/Src/syscalls.c:133:5:_stat 16 static
../Core/Src/syscalls.c:139:5:_link 16 static
../Core/Src/syscalls.c:145:5:_fork 8 static
../Core/Src/syscalls.c:151:5:_execve 24 static

1
Debug/Core/Src/sysmem.d

@ -0,0 +1 @@
Core/Src/sysmem.o: ../Core/Src/sysmem.c

BIN
Debug/Core/Src/sysmem.o

Binary file not shown.

1
Debug/Core/Src/sysmem.su

@ -0,0 +1 @@
../Core/Src/sysmem.c:53:7:_sbrk 32 static

71
Debug/Core/Src/system_stm32g0xx.d

@ -0,0 +1,71 @@
Core/Src/system_stm32g0xx.o: ../Core/Src/system_stm32g0xx.c \
../Drivers/CMSIS/Device/ST/STM32G0xx/Include/stm32g0xx.h \
../Drivers/CMSIS/Device/ST/STM32G0xx/Include/stm32g031xx.h \
../Drivers/CMSIS/Include/core_cm0plus.h \
../Drivers/CMSIS/Include/cmsis_version.h \
../Drivers/CMSIS/Include/cmsis_compiler.h \
../Drivers/CMSIS/Include/cmsis_gcc.h \
../Drivers/CMSIS/Include/mpu_armv7.h \
../Drivers/CMSIS/Device/ST/STM32G0xx/Include/system_stm32g0xx.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal.h \
../Core/Inc/stm32g0xx_hal_conf.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_rcc.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_def.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_ll_rcc.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_rcc_ex.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_gpio.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_gpio_ex.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_dma.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_ll_dma.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_ll_dmamux.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_dma_ex.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_cortex.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_adc.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_ll_adc.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_adc_ex.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_adc_ex.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_exti.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_flash.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_flash_ex.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_pwr.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_pwr_ex.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_tim.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_tim_ex.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_uart.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_uart_ex.h
../Drivers/CMSIS/Device/ST/STM32G0xx/Include/stm32g0xx.h:
../Drivers/CMSIS/Device/ST/STM32G0xx/Include/stm32g031xx.h:
../Drivers/CMSIS/Include/core_cm0plus.h:
../Drivers/CMSIS/Include/cmsis_version.h:
../Drivers/CMSIS/Include/cmsis_compiler.h:
../Drivers/CMSIS/Include/cmsis_gcc.h:
../Drivers/CMSIS/Include/mpu_armv7.h:
../Drivers/CMSIS/Device/ST/STM32G0xx/Include/system_stm32g0xx.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal.h:
../Core/Inc/stm32g0xx_hal_conf.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_rcc.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_def.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_ll_rcc.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_rcc_ex.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_gpio.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_gpio_ex.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_dma.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_ll_dma.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_ll_dmamux.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_dma_ex.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_cortex.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_adc.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_ll_adc.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_adc_ex.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_adc_ex.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_exti.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_flash.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_flash_ex.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_pwr.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_pwr_ex.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_tim.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_tim_ex.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_uart.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_uart_ex.h:

BIN
Debug/Core/Src/system_stm32g0xx.o

Binary file not shown.

2
Debug/Core/Src/system_stm32g0xx.su

@ -0,0 +1,2 @@
../Core/Src/system_stm32g0xx.c:185:6:SystemInit 8 static
../Core/Src/system_stm32g0xx.c:233:6:SystemCoreClockUpdate 32 static

73
Debug/Core/Src/tim.d

@ -0,0 +1,73 @@
Core/Src/tim.o: ../Core/Src/tim.c ../Core/Inc/tim.h ../Core/Inc/main.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal.h \
../Core/Inc/stm32g0xx_hal_conf.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_rcc.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_def.h \
../Drivers/CMSIS/Device/ST/STM32G0xx/Include/stm32g0xx.h \
../Drivers/CMSIS/Device/ST/STM32G0xx/Include/stm32g031xx.h \
../Drivers/CMSIS/Include/core_cm0plus.h \
../Drivers/CMSIS/Include/cmsis_version.h \
../Drivers/CMSIS/Include/cmsis_compiler.h \
../Drivers/CMSIS/Include/cmsis_gcc.h \
../Drivers/CMSIS/Include/mpu_armv7.h \
../Drivers/CMSIS/Device/ST/STM32G0xx/Include/system_stm32g0xx.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_ll_rcc.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_rcc_ex.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_gpio.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_gpio_ex.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_dma.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_ll_dma.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_ll_dmamux.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_dma_ex.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_cortex.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_adc.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_ll_adc.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_adc_ex.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_adc_ex.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_exti.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_flash.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_flash_ex.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_pwr.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_pwr_ex.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_tim.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_tim_ex.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_uart.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_uart_ex.h
../Core/Inc/tim.h:
../Core/Inc/main.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal.h:
../Core/Inc/stm32g0xx_hal_conf.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_rcc.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_def.h:
../Drivers/CMSIS/Device/ST/STM32G0xx/Include/stm32g0xx.h:
../Drivers/CMSIS/Device/ST/STM32G0xx/Include/stm32g031xx.h:
../Drivers/CMSIS/Include/core_cm0plus.h:
../Drivers/CMSIS/Include/cmsis_version.h:
../Drivers/CMSIS/Include/cmsis_compiler.h:
../Drivers/CMSIS/Include/cmsis_gcc.h:
../Drivers/CMSIS/Include/mpu_armv7.h:
../Drivers/CMSIS/Device/ST/STM32G0xx/Include/system_stm32g0xx.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_ll_rcc.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_rcc_ex.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_gpio.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_gpio_ex.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_dma.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_ll_dma.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_ll_dmamux.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_dma_ex.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_cortex.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_adc.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_ll_adc.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_adc_ex.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_adc_ex.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_exti.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_flash.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_flash_ex.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_pwr.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_pwr_ex.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_tim.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_tim_ex.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_uart.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_uart_ex.h:

BIN
Debug/Core/Src/tim.o

Binary file not shown.

7
Debug/Core/Src/tim.su

@ -0,0 +1,7 @@
../Core/Src/tim.c:31:6:MX_TIM2_Init 64 static
../Core/Src/tim.c:75:6:MX_TIM3_Init 48 static
../Core/Src/tim.c:119:6:HAL_TIM_Encoder_MspInit 56 static
../Core/Src/tim.c:149:6:HAL_TIM_PWM_MspInit 24 static
../Core/Src/tim.c:164:6:HAL_TIM_MspPostInit 48 static
../Core/Src/tim.c:192:6:HAL_TIM_Encoder_MspDeInit 16 static
../Core/Src/tim.c:215:6:HAL_TIM_PWM_MspDeInit 16 static

73
Debug/Core/Src/usart.d

@ -0,0 +1,73 @@
Core/Src/usart.o: ../Core/Src/usart.c ../Core/Inc/usart.h \
../Core/Inc/main.h ../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal.h \
../Core/Inc/stm32g0xx_hal_conf.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_rcc.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_def.h \
../Drivers/CMSIS/Device/ST/STM32G0xx/Include/stm32g0xx.h \
../Drivers/CMSIS/Device/ST/STM32G0xx/Include/stm32g031xx.h \
../Drivers/CMSIS/Include/core_cm0plus.h \
../Drivers/CMSIS/Include/cmsis_version.h \
../Drivers/CMSIS/Include/cmsis_compiler.h \
../Drivers/CMSIS/Include/cmsis_gcc.h \
../Drivers/CMSIS/Include/mpu_armv7.h \
../Drivers/CMSIS/Device/ST/STM32G0xx/Include/system_stm32g0xx.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_ll_rcc.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_rcc_ex.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_gpio.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_gpio_ex.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_dma.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_ll_dma.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_ll_dmamux.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_dma_ex.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_cortex.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_adc.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_ll_adc.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_adc_ex.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_adc_ex.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_exti.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_flash.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_flash_ex.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_pwr.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_pwr_ex.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_tim.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_tim_ex.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_uart.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_uart_ex.h
../Core/Inc/usart.h:
../Core/Inc/main.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal.h:
../Core/Inc/stm32g0xx_hal_conf.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_rcc.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_def.h:
../Drivers/CMSIS/Device/ST/STM32G0xx/Include/stm32g0xx.h:
../Drivers/CMSIS/Device/ST/STM32G0xx/Include/stm32g031xx.h:
../Drivers/CMSIS/Include/core_cm0plus.h:
../Drivers/CMSIS/Include/cmsis_version.h:
../Drivers/CMSIS/Include/cmsis_compiler.h:
../Drivers/CMSIS/Include/cmsis_gcc.h:
../Drivers/CMSIS/Include/mpu_armv7.h:
../Drivers/CMSIS/Device/ST/STM32G0xx/Include/system_stm32g0xx.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_ll_rcc.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_rcc_ex.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_gpio.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_gpio_ex.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_dma.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_ll_dma.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_ll_dmamux.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_dma_ex.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_cortex.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_adc.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_ll_adc.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_adc_ex.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_adc_ex.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_exti.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_flash.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_flash_ex.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_pwr.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_pwr_ex.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_tim.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_tim_ex.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_uart.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_uart_ex.h:

BIN
Debug/Core/Src/usart.o

Binary file not shown.

3
Debug/Core/Src/usart.su

@ -0,0 +1,3 @@
../Core/Src/usart.c:32:6:MX_USART2_UART_Init 8 static
../Core/Src/usart.c:63:6:HAL_UART_MspInit 56 static
../Core/Src/usart.c:114:6:HAL_UART_MspDeInit 16 static

2
Debug/Core/Startup/startup_stm32g031g8ux.d

@ -0,0 +1,2 @@
Core/Startup/startup_stm32g031g8ux.o: \
../Core/Startup/startup_stm32g031g8ux.s

BIN
Debug/Core/Startup/startup_stm32g031g8ux.o

Binary file not shown.

27
Debug/Core/Startup/subdir.mk

@ -0,0 +1,27 @@
################################################################################
# Automatically-generated file. Do not edit!
# Toolchain: GNU Tools for STM32 (10.3-2021.10)
################################################################################
# Add inputs and outputs from these tool invocations to the build variables
S_SRCS += \
../Core/Startup/startup_stm32g031g8ux.s
OBJS += \
./Core/Startup/startup_stm32g031g8ux.o
S_DEPS += \
./Core/Startup/startup_stm32g031g8ux.d
# Each subdirectory must supply rules for building sources it contributes
Core/Startup/%.o: ../Core/Startup/%.s Core/Startup/subdir.mk
arm-none-eabi-gcc -mcpu=cortex-m0plus -g3 -DDEBUG -c -x assembler-with-cpp -MMD -MP -MF"$(@:%.o=%.d)" -MT"$@" --specs=nano.specs -mfloat-abi=soft -mthumb -o "$@" "$<"
clean: clean-Core-2f-Startup
clean-Core-2f-Startup:
-$(RM) ./Core/Startup/startup_stm32g031g8ux.d ./Core/Startup/startup_stm32g031g8ux.o
.PHONY: clean-Core-2f-Startup

72
Debug/Drivers/STM32G0xx_HAL_Driver/Src/stm32g0xx_hal.d

@ -0,0 +1,72 @@
Drivers/STM32G0xx_HAL_Driver/Src/stm32g0xx_hal.o: \
../Drivers/STM32G0xx_HAL_Driver/Src/stm32g0xx_hal.c \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal.h \
../Core/Inc/stm32g0xx_hal_conf.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_rcc.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_def.h \
../Drivers/CMSIS/Device/ST/STM32G0xx/Include/stm32g0xx.h \
../Drivers/CMSIS/Device/ST/STM32G0xx/Include/stm32g031xx.h \
../Drivers/CMSIS/Include/core_cm0plus.h \
../Drivers/CMSIS/Include/cmsis_version.h \
../Drivers/CMSIS/Include/cmsis_compiler.h \
../Drivers/CMSIS/Include/cmsis_gcc.h \
../Drivers/CMSIS/Include/mpu_armv7.h \
../Drivers/CMSIS/Device/ST/STM32G0xx/Include/system_stm32g0xx.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_ll_rcc.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_rcc_ex.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_gpio.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_gpio_ex.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_dma.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_ll_dma.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_ll_dmamux.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_dma_ex.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_cortex.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_adc.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_ll_adc.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_adc_ex.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_adc_ex.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_exti.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_flash.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_flash_ex.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_pwr.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_pwr_ex.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_tim.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_tim_ex.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_uart.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_uart_ex.h
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal.h:
../Core/Inc/stm32g0xx_hal_conf.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_rcc.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_def.h:
../Drivers/CMSIS/Device/ST/STM32G0xx/Include/stm32g0xx.h:
../Drivers/CMSIS/Device/ST/STM32G0xx/Include/stm32g031xx.h:
../Drivers/CMSIS/Include/core_cm0plus.h:
../Drivers/CMSIS/Include/cmsis_version.h:
../Drivers/CMSIS/Include/cmsis_compiler.h:
../Drivers/CMSIS/Include/cmsis_gcc.h:
../Drivers/CMSIS/Include/mpu_armv7.h:
../Drivers/CMSIS/Device/ST/STM32G0xx/Include/system_stm32g0xx.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_ll_rcc.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_rcc_ex.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_gpio.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_gpio_ex.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_dma.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_ll_dma.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_ll_dmamux.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_dma_ex.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_cortex.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_adc.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_ll_adc.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_adc_ex.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_adc_ex.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_exti.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_flash.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_flash_ex.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_pwr.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_pwr_ex.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_tim.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_tim_ex.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_uart.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_uart_ex.h:

BIN
Debug/Drivers/STM32G0xx_HAL_Driver/Src/stm32g0xx_hal.o

Binary file not shown.

34
Debug/Drivers/STM32G0xx_HAL_Driver/Src/stm32g0xx_hal.su

@ -0,0 +1,34 @@
../Drivers/STM32G0xx_HAL_Driver/Src/stm32g0xx_hal.c:143:19:HAL_Init 16 static
../Drivers/STM32G0xx_HAL_Driver/Src/stm32g0xx_hal.c:180:19:HAL_DeInit 8 static
../Drivers/STM32G0xx_HAL_Driver/Src/stm32g0xx_hal.c:206:13:HAL_MspInit 8 static
../Drivers/STM32G0xx_HAL_Driver/Src/stm32g0xx_hal.c:217:13:HAL_MspDeInit 8 static
../Drivers/STM32G0xx_HAL_Driver/Src/stm32g0xx_hal.c:240:26:HAL_InitTick 32 static
../Drivers/STM32G0xx_HAL_Driver/Src/stm32g0xx_hal.c:308:13:HAL_IncTick 8 static
../Drivers/STM32G0xx_HAL_Driver/Src/stm32g0xx_hal.c:319:17:HAL_GetTick 8 static
../Drivers/STM32G0xx_HAL_Driver/Src/stm32g0xx_hal.c:328:10:HAL_GetTickPrio 8 static
../Drivers/STM32G0xx_HAL_Driver/Src/stm32g0xx_hal.c:337:19:HAL_SetTickFreq 40 static
../Drivers/STM32G0xx_HAL_Driver/Src/stm32g0xx_hal.c:367:21:HAL_GetTickFreq 8 static
../Drivers/STM32G0xx_HAL_Driver/Src/stm32g0xx_hal.c:383:13:HAL_Delay 24 static
../Drivers/STM32G0xx_HAL_Driver/Src/stm32g0xx_hal.c:409:13:HAL_SuspendTick 8 static
../Drivers/STM32G0xx_HAL_Driver/Src/stm32g0xx_hal.c:425:13:HAL_ResumeTick 8 static
../Drivers/STM32G0xx_HAL_Driver/Src/stm32g0xx_hal.c:435:10:HAL_GetHalVersion 8 static
../Drivers/STM32G0xx_HAL_Driver/Src/stm32g0xx_hal.c:444:10:HAL_GetREVID 8 static
../Drivers/STM32G0xx_HAL_Driver/Src/stm32g0xx_hal.c:453:10:HAL_GetDEVID 8 static
../Drivers/STM32G0xx_HAL_Driver/Src/stm32g0xx_hal.c:462:10:HAL_GetUIDw0 8 static
../Drivers/STM32G0xx_HAL_Driver/Src/stm32g0xx_hal.c:471:10:HAL_GetUIDw1 8 static
../Drivers/STM32G0xx_HAL_Driver/Src/stm32g0xx_hal.c:480:10:HAL_GetUIDw2 8 static
../Drivers/STM32G0xx_HAL_Driver/Src/stm32g0xx_hal.c:508:6:HAL_DBGMCU_EnableDBGStopMode 8 static
../Drivers/STM32G0xx_HAL_Driver/Src/stm32g0xx_hal.c:517:6:HAL_DBGMCU_DisableDBGStopMode 8 static
../Drivers/STM32G0xx_HAL_Driver/Src/stm32g0xx_hal.c:526:6:HAL_DBGMCU_EnableDBGStandbyMode 8 static
../Drivers/STM32G0xx_HAL_Driver/Src/stm32g0xx_hal.c:535:6:HAL_DBGMCU_DisableDBGStandbyMode 8 static
../Drivers/STM32G0xx_HAL_Driver/Src/stm32g0xx_hal.c:571:6:HAL_SYSCFG_VREFBUF_VoltageScalingConfig 16 static
../Drivers/STM32G0xx_HAL_Driver/Src/stm32g0xx_hal.c:586:6:HAL_SYSCFG_VREFBUF_HighImpedanceConfig 16 static
../Drivers/STM32G0xx_HAL_Driver/Src/stm32g0xx_hal.c:603:6:HAL_SYSCFG_VREFBUF_TrimmingConfig 16 static
../Drivers/STM32G0xx_HAL_Driver/Src/stm32g0xx_hal.c:615:19:HAL_SYSCFG_EnableVREFBUF 16 static
../Drivers/STM32G0xx_HAL_Driver/Src/stm32g0xx_hal.c:641:6:HAL_SYSCFG_DisableVREFBUF 8 static
../Drivers/STM32G0xx_HAL_Driver/Src/stm32g0xx_hal.c:651:6:HAL_SYSCFG_EnableIOAnalogSwitchBooster 8 static
../Drivers/STM32G0xx_HAL_Driver/Src/stm32g0xx_hal.c:660:6:HAL_SYSCFG_DisableIOAnalogSwitchBooster 8 static
../Drivers/STM32G0xx_HAL_Driver/Src/stm32g0xx_hal.c:673:6:HAL_SYSCFG_EnableRemap 16 static
../Drivers/STM32G0xx_HAL_Driver/Src/stm32g0xx_hal.c:688:6:HAL_SYSCFG_DisableRemap 16 static
../Drivers/STM32G0xx_HAL_Driver/Src/stm32g0xx_hal.c:703:6:HAL_SYSCFG_EnableClampingDiode 16 static
../Drivers/STM32G0xx_HAL_Driver/Src/stm32g0xx_hal.c:717:6:HAL_SYSCFG_DisableClampingDiode 16 static

72
Debug/Drivers/STM32G0xx_HAL_Driver/Src/stm32g0xx_hal_adc.d

@ -0,0 +1,72 @@
Drivers/STM32G0xx_HAL_Driver/Src/stm32g0xx_hal_adc.o: \
../Drivers/STM32G0xx_HAL_Driver/Src/stm32g0xx_hal_adc.c \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal.h \
../Core/Inc/stm32g0xx_hal_conf.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_rcc.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_def.h \
../Drivers/CMSIS/Device/ST/STM32G0xx/Include/stm32g0xx.h \
../Drivers/CMSIS/Device/ST/STM32G0xx/Include/stm32g031xx.h \
../Drivers/CMSIS/Include/core_cm0plus.h \
../Drivers/CMSIS/Include/cmsis_version.h \
../Drivers/CMSIS/Include/cmsis_compiler.h \
../Drivers/CMSIS/Include/cmsis_gcc.h \
../Drivers/CMSIS/Include/mpu_armv7.h \
../Drivers/CMSIS/Device/ST/STM32G0xx/Include/system_stm32g0xx.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_ll_rcc.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_rcc_ex.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_gpio.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_gpio_ex.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_dma.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_ll_dma.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_ll_dmamux.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_dma_ex.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_cortex.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_adc.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_ll_adc.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_adc_ex.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_adc_ex.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_exti.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_flash.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_flash_ex.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_pwr.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_pwr_ex.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_tim.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_tim_ex.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_uart.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_uart_ex.h
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal.h:
../Core/Inc/stm32g0xx_hal_conf.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_rcc.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_def.h:
../Drivers/CMSIS/Device/ST/STM32G0xx/Include/stm32g0xx.h:
../Drivers/CMSIS/Device/ST/STM32G0xx/Include/stm32g031xx.h:
../Drivers/CMSIS/Include/core_cm0plus.h:
../Drivers/CMSIS/Include/cmsis_version.h:
../Drivers/CMSIS/Include/cmsis_compiler.h:
../Drivers/CMSIS/Include/cmsis_gcc.h:
../Drivers/CMSIS/Include/mpu_armv7.h:
../Drivers/CMSIS/Device/ST/STM32G0xx/Include/system_stm32g0xx.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_ll_rcc.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_rcc_ex.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_gpio.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_gpio_ex.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_dma.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_ll_dma.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_ll_dmamux.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_dma_ex.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_cortex.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_adc.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_ll_adc.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_adc_ex.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_adc_ex.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_exti.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_flash.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_flash_ex.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_pwr.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_pwr_ex.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_tim.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_tim_ex.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_uart.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_uart_ex.h:

BIN
Debug/Drivers/STM32G0xx_HAL_Driver/Src/stm32g0xx_hal_adc.o

Binary file not shown.

59
Debug/Drivers/STM32G0xx_HAL_Driver/Src/stm32g0xx_hal_adc.su

@ -0,0 +1,59 @@
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_ll_adc.h:1785:22:LL_ADC_SetCommonPathInternalCh 16 static
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_ll_adc.h:1879:26:LL_ADC_GetCommonPathInternalCh 16 static
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_ll_adc.h:2249:22:LL_ADC_SetSamplingTimeCommonChannels 24 static
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_ll_adc.h:2282:26:LL_ADC_GetSamplingTimeCommonChannels 16 static
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_ll_adc.h:2390:26:LL_ADC_REG_IsTriggerSourceSWStart 16 static
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_ll_adc.h:2801:22:LL_ADC_REG_SetSequencerRanks 24 static
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_ll_adc.h:3067:22:LL_ADC_REG_SetSequencerChAdd 16 static
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_ll_adc.h:3159:22:LL_ADC_REG_SetSequencerChRem 16 static
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_ll_adc.h:3373:26:LL_ADC_REG_GetDMATransfer 16 static
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_ll_adc.h:3499:22:LL_ADC_SetChannelSamplingTime 24 static
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_ll_adc.h:3660:22:LL_ADC_SetAnalogWDMonitChannels 32 static
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_ll_adc.h:3877:22:LL_ADC_ConfigAnalogWDThresholds 32 static
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_ll_adc.h:4203:22:LL_ADC_EnableInternalRegulator 16 static
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_ll_adc.h:4222:22:LL_ADC_DisableInternalRegulator 16 static
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_ll_adc.h:4233:26:LL_ADC_IsInternalRegulatorEnabled 16 static
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_ll_adc.h:4254:22:LL_ADC_Enable 16 static
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_ll_adc.h:4274:22:LL_ADC_Disable 16 static
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_ll_adc.h:4293:26:LL_ADC_IsEnabled 16 static
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_ll_adc.h:4304:26:LL_ADC_IsDisableOngoing 16 static
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_ll_adc.h:4384:22:LL_ADC_REG_StartConversion 16 static
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_ll_adc.h:4404:22:LL_ADC_REG_StopConversion 16 static
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_ll_adc.h:4420:26:LL_ADC_REG_IsConversionOngoing 16 static
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_ll_adc.h:4722:22:LL_ADC_ClearFlag_AWD1 16 static
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_ll_adc.h:4733:22:LL_ADC_ClearFlag_AWD2 16 static
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_ll_adc.h:4744:22:LL_ADC_ClearFlag_AWD3 16 static
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_ll_adc.h:4840:22:LL_ADC_EnableIT_AWD1 16 static
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_ll_adc.h:4851:22:LL_ADC_EnableIT_AWD2 16 static
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_ll_adc.h:4862:22:LL_ADC_EnableIT_AWD3 16 static
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_ll_adc.h:4950:22:LL_ADC_DisableIT_AWD1 16 static
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_ll_adc.h:4961:22:LL_ADC_DisableIT_AWD2 16 static
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_ll_adc.h:4972:22:LL_ADC_DisableIT_AWD3 16 static
../Drivers/STM32G0xx_HAL_Driver/Src/stm32g0xx_hal_adc.c:378:19:HAL_ADC_Init 40 static
../Drivers/STM32G0xx_HAL_Driver/Src/stm32g0xx_hal_adc.c:726:19:HAL_ADC_DeInit 32 static
../Drivers/STM32G0xx_HAL_Driver/Src/stm32g0xx_hal_adc.c:852:13:HAL_ADC_MspInit 16 static
../Drivers/STM32G0xx_HAL_Driver/Src/stm32g0xx_hal_adc.c:869:13:HAL_ADC_MspDeInit 16 static
../Drivers/STM32G0xx_HAL_Driver/Src/stm32g0xx_hal_adc.c:1136:19:HAL_ADC_Start 32 static
../Drivers/STM32G0xx_HAL_Driver/Src/stm32g0xx_hal_adc.c:1203:19:HAL_ADC_Stop 32 static
../Drivers/STM32G0xx_HAL_Driver/Src/stm32g0xx_hal_adc.c:1254:19:HAL_ADC_PollForConversion 24 static
../Drivers/STM32G0xx_HAL_Driver/Src/stm32g0xx_hal_adc.c:1384:19:HAL_ADC_PollForEvent 32 static
../Drivers/STM32G0xx_HAL_Driver/Src/stm32g0xx_hal_adc.c:1514:19:HAL_ADC_Start_IT 32 static
../Drivers/STM32G0xx_HAL_Driver/Src/stm32g0xx_hal_adc.c:1605:19:HAL_ADC_Stop_IT 32 static
../Drivers/STM32G0xx_HAL_Driver/Src/stm32g0xx_hal_adc.c:1652:19:HAL_ADC_Start_DMA 40 static
../Drivers/STM32G0xx_HAL_Driver/Src/stm32g0xx_hal_adc.c:1748:19:HAL_ADC_Stop_DMA 32 static
../Drivers/STM32G0xx_HAL_Driver/Src/stm32g0xx_hal_adc.c:1829:10:HAL_ADC_GetValue 16 static
../Drivers/STM32G0xx_HAL_Driver/Src/stm32g0xx_hal_adc.c:1846:6:HAL_ADC_IRQHandler 32 static
../Drivers/STM32G0xx_HAL_Driver/Src/stm32g0xx_hal_adc.c:2056:13:HAL_ADC_ConvCpltCallback 16 static
../Drivers/STM32G0xx_HAL_Driver/Src/stm32g0xx_hal_adc.c:2071:13:HAL_ADC_ConvHalfCpltCallback 16 static
../Drivers/STM32G0xx_HAL_Driver/Src/stm32g0xx_hal_adc.c:2086:13:HAL_ADC_LevelOutOfWindowCallback 16 static
../Drivers/STM32G0xx_HAL_Driver/Src/stm32g0xx_hal_adc.c:2108:13:HAL_ADC_ErrorCallback 16 static
../Drivers/STM32G0xx_HAL_Driver/Src/stm32g0xx_hal_adc.c:2154:19:HAL_ADC_ConfigChannel 32 static
../Drivers/STM32G0xx_HAL_Driver/Src/stm32g0xx_hal_adc.c:2361:19:HAL_ADC_AnalogWDGConfig 40 static
../Drivers/STM32G0xx_HAL_Driver/Src/stm32g0xx_hal_adc.c:2594:10:HAL_ADC_GetState 16 static
../Drivers/STM32G0xx_HAL_Driver/Src/stm32g0xx_hal_adc.c:2608:10:HAL_ADC_GetError 16 static
../Drivers/STM32G0xx_HAL_Driver/Src/stm32g0xx_hal_adc.c:2635:19:ADC_ConversionStop 24 static
../Drivers/STM32G0xx_HAL_Driver/Src/stm32g0xx_hal_adc.c:2689:19:ADC_Enable 24 static
../Drivers/STM32G0xx_HAL_Driver/Src/stm32g0xx_hal_adc.c:2780:19:ADC_Disable 24 static
../Drivers/STM32G0xx_HAL_Driver/Src/stm32g0xx_hal_adc.c:2842:13:ADC_DMAConvCplt 24 static
../Drivers/STM32G0xx_HAL_Driver/Src/stm32g0xx_hal_adc.c:2920:13:ADC_DMAHalfConvCplt 24 static
../Drivers/STM32G0xx_HAL_Driver/Src/stm32g0xx_hal_adc.c:2938:13:ADC_DMAError 24 static

72
Debug/Drivers/STM32G0xx_HAL_Driver/Src/stm32g0xx_hal_adc_ex.d

@ -0,0 +1,72 @@
Drivers/STM32G0xx_HAL_Driver/Src/stm32g0xx_hal_adc_ex.o: \
../Drivers/STM32G0xx_HAL_Driver/Src/stm32g0xx_hal_adc_ex.c \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal.h \
../Core/Inc/stm32g0xx_hal_conf.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_rcc.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_def.h \
../Drivers/CMSIS/Device/ST/STM32G0xx/Include/stm32g0xx.h \
../Drivers/CMSIS/Device/ST/STM32G0xx/Include/stm32g031xx.h \
../Drivers/CMSIS/Include/core_cm0plus.h \
../Drivers/CMSIS/Include/cmsis_version.h \
../Drivers/CMSIS/Include/cmsis_compiler.h \
../Drivers/CMSIS/Include/cmsis_gcc.h \
../Drivers/CMSIS/Include/mpu_armv7.h \
../Drivers/CMSIS/Device/ST/STM32G0xx/Include/system_stm32g0xx.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_ll_rcc.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_rcc_ex.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_gpio.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_gpio_ex.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_dma.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_ll_dma.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_ll_dmamux.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_dma_ex.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_cortex.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_adc.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_ll_adc.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_adc_ex.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_adc_ex.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_exti.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_flash.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_flash_ex.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_pwr.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_pwr_ex.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_tim.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_tim_ex.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_uart.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_uart_ex.h
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal.h:
../Core/Inc/stm32g0xx_hal_conf.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_rcc.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_def.h:
../Drivers/CMSIS/Device/ST/STM32G0xx/Include/stm32g0xx.h:
../Drivers/CMSIS/Device/ST/STM32G0xx/Include/stm32g031xx.h:
../Drivers/CMSIS/Include/core_cm0plus.h:
../Drivers/CMSIS/Include/cmsis_version.h:
../Drivers/CMSIS/Include/cmsis_compiler.h:
../Drivers/CMSIS/Include/cmsis_gcc.h:
../Drivers/CMSIS/Include/mpu_armv7.h:
../Drivers/CMSIS/Device/ST/STM32G0xx/Include/system_stm32g0xx.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_ll_rcc.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_rcc_ex.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_gpio.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_gpio_ex.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_dma.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_ll_dma.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_ll_dmamux.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_dma_ex.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_cortex.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_adc.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_ll_adc.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_adc_ex.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_adc_ex.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_exti.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_flash.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_flash_ex.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_pwr.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_pwr_ex.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_tim.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_tim_ex.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_uart.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_uart_ex.h:

BIN
Debug/Drivers/STM32G0xx_HAL_Driver/Src/stm32g0xx_hal_adc_ex.o

Binary file not shown.

17
Debug/Drivers/STM32G0xx_HAL_Driver/Src/stm32g0xx_hal_adc_ex.su

@ -0,0 +1,17 @@
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_ll_adc.h:1959:22:LL_ADC_SetCalibrationFactor 16 static
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_ll_adc.h:1975:26:LL_ADC_GetCalibrationFactor 16 static
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_ll_adc.h:4222:22:LL_ADC_DisableInternalRegulator 16 static
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_ll_adc.h:4254:22:LL_ADC_Enable 16 static
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_ll_adc.h:4274:22:LL_ADC_Disable 16 static
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_ll_adc.h:4293:26:LL_ADC_IsEnabled 16 static
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_ll_adc.h:4337:22:LL_ADC_StartCalibration 16 static
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_ll_adc.h:4353:26:LL_ADC_IsCalibrationOnGoing 16 static
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_ll_adc.h:4420:26:LL_ADC_REG_IsConversionOngoing 16 static
../Drivers/STM32G0xx_HAL_Driver/Src/stm32g0xx_hal_adc_ex.c:101:19:HAL_ADCEx_Calibration_Start 48 static
../Drivers/STM32G0xx_HAL_Driver/Src/stm32g0xx_hal_adc_ex.c:220:10:HAL_ADCEx_Calibration_GetValue 16 static
../Drivers/STM32G0xx_HAL_Driver/Src/stm32g0xx_hal_adc_ex.c:236:19:HAL_ADCEx_Calibration_SetValue 24 static
../Drivers/STM32G0xx_HAL_Driver/Src/stm32g0xx_hal_adc_ex.c:279:13:HAL_ADCEx_LevelOutOfWindow2Callback 16 static
../Drivers/STM32G0xx_HAL_Driver/Src/stm32g0xx_hal_adc_ex.c:294:13:HAL_ADCEx_LevelOutOfWindow3Callback 16 static
../Drivers/STM32G0xx_HAL_Driver/Src/stm32g0xx_hal_adc_ex.c:310:13:HAL_ADCEx_EndOfSamplingCallback 16 static
../Drivers/STM32G0xx_HAL_Driver/Src/stm32g0xx_hal_adc_ex.c:325:13:HAL_ADCEx_ChannelConfigReadyCallback 16 static
../Drivers/STM32G0xx_HAL_Driver/Src/stm32g0xx_hal_adc_ex.c:348:19:HAL_ADCEx_DisableVoltageRegulator 24 static

72
Debug/Drivers/STM32G0xx_HAL_Driver/Src/stm32g0xx_hal_cortex.d

@ -0,0 +1,72 @@
Drivers/STM32G0xx_HAL_Driver/Src/stm32g0xx_hal_cortex.o: \
../Drivers/STM32G0xx_HAL_Driver/Src/stm32g0xx_hal_cortex.c \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal.h \
../Core/Inc/stm32g0xx_hal_conf.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_rcc.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_def.h \
../Drivers/CMSIS/Device/ST/STM32G0xx/Include/stm32g0xx.h \
../Drivers/CMSIS/Device/ST/STM32G0xx/Include/stm32g031xx.h \
../Drivers/CMSIS/Include/core_cm0plus.h \
../Drivers/CMSIS/Include/cmsis_version.h \
../Drivers/CMSIS/Include/cmsis_compiler.h \
../Drivers/CMSIS/Include/cmsis_gcc.h \
../Drivers/CMSIS/Include/mpu_armv7.h \
../Drivers/CMSIS/Device/ST/STM32G0xx/Include/system_stm32g0xx.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_ll_rcc.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_rcc_ex.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_gpio.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_gpio_ex.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_dma.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_ll_dma.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_ll_dmamux.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_dma_ex.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_cortex.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_adc.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_ll_adc.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_adc_ex.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_adc_ex.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_exti.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_flash.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_flash_ex.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_pwr.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_pwr_ex.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_tim.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_tim_ex.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_uart.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_uart_ex.h
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal.h:
../Core/Inc/stm32g0xx_hal_conf.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_rcc.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_def.h:
../Drivers/CMSIS/Device/ST/STM32G0xx/Include/stm32g0xx.h:
../Drivers/CMSIS/Device/ST/STM32G0xx/Include/stm32g031xx.h:
../Drivers/CMSIS/Include/core_cm0plus.h:
../Drivers/CMSIS/Include/cmsis_version.h:
../Drivers/CMSIS/Include/cmsis_compiler.h:
../Drivers/CMSIS/Include/cmsis_gcc.h:
../Drivers/CMSIS/Include/mpu_armv7.h:
../Drivers/CMSIS/Device/ST/STM32G0xx/Include/system_stm32g0xx.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_ll_rcc.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_rcc_ex.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_gpio.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_gpio_ex.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_dma.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_ll_dma.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_ll_dmamux.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_dma_ex.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_cortex.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_adc.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_ll_adc.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_adc_ex.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_adc_ex.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_exti.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_flash.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_flash_ex.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_pwr.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_pwr_ex.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_tim.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_tim_ex.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_uart.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_uart_ex.h:

BIN
Debug/Drivers/STM32G0xx_HAL_Driver/Src/stm32g0xx_hal_cortex.o

Binary file not shown.

24
Debug/Drivers/STM32G0xx_HAL_Driver/Src/stm32g0xx_hal_cortex.su

@ -0,0 +1,24 @@
../Drivers/CMSIS/Include/core_cm0plus.h:741:22:__NVIC_EnableIRQ 16 static,ignoring_inline_asm
../Drivers/CMSIS/Include/core_cm0plus.h:779:22:__NVIC_DisableIRQ 16 static,ignoring_inline_asm
../Drivers/CMSIS/Include/core_cm0plus.h:798:26:__NVIC_GetPendingIRQ 16 static
../Drivers/CMSIS/Include/core_cm0plus.h:817:22:__NVIC_SetPendingIRQ 16 static
../Drivers/CMSIS/Include/core_cm0plus.h:832:22:__NVIC_ClearPendingIRQ 16 static
../Drivers/CMSIS/Include/core_cm0plus.h:850:22:__NVIC_SetPriority 24 static
../Drivers/CMSIS/Include/core_cm0plus.h:874:26:__NVIC_GetPriority 16 static
../Drivers/CMSIS/Include/core_cm0plus.h:985:34:__NVIC_SystemReset 8 static,ignoring_inline_asm
../Drivers/CMSIS/Include/core_cm0plus.h:1056:26:SysTick_Config 16 static
../Drivers/STM32G0xx_HAL_Driver/Src/stm32g0xx_hal_cortex.c:131:6:HAL_NVIC_SetPriority 24 static
../Drivers/STM32G0xx_HAL_Driver/Src/stm32g0xx_hal_cortex.c:148:6:HAL_NVIC_EnableIRQ 16 static
../Drivers/STM32G0xx_HAL_Driver/Src/stm32g0xx_hal_cortex.c:164:6:HAL_NVIC_DisableIRQ 16 static
../Drivers/STM32G0xx_HAL_Driver/Src/stm32g0xx_hal_cortex.c:177:6:HAL_NVIC_SystemReset 8 static
../Drivers/STM32G0xx_HAL_Driver/Src/stm32g0xx_hal_cortex.c:190:10:HAL_SYSTICK_Config 16 static
../Drivers/STM32G0xx_HAL_Driver/Src/stm32g0xx_hal_cortex.c:221:10:HAL_NVIC_GetPriority 16 static
../Drivers/STM32G0xx_HAL_Driver/Src/stm32g0xx_hal_cortex.c:234:6:HAL_NVIC_SetPendingIRQ 16 static
../Drivers/STM32G0xx_HAL_Driver/Src/stm32g0xx_hal_cortex.c:252:10:HAL_NVIC_GetPendingIRQ 16 static
../Drivers/STM32G0xx_HAL_Driver/Src/stm32g0xx_hal_cortex.c:268:6:HAL_NVIC_ClearPendingIRQ 16 static
../Drivers/STM32G0xx_HAL_Driver/Src/stm32g0xx_hal_cortex.c:285:6:HAL_SYSTICK_CLKSourceConfig 16 static
../Drivers/STM32G0xx_HAL_Driver/Src/stm32g0xx_hal_cortex.c:303:6:HAL_SYSTICK_IRQHandler 8 static
../Drivers/STM32G0xx_HAL_Driver/Src/stm32g0xx_hal_cortex.c:312:13:HAL_SYSTICK_Callback 8 static
../Drivers/STM32G0xx_HAL_Driver/Src/stm32g0xx_hal_cortex.c:331:6:HAL_MPU_Enable 16 static,ignoring_inline_asm
../Drivers/STM32G0xx_HAL_Driver/Src/stm32g0xx_hal_cortex.c:346:6:HAL_MPU_Disable 8 static,ignoring_inline_asm
../Drivers/STM32G0xx_HAL_Driver/Src/stm32g0xx_hal_cortex.c:362:6:HAL_MPU_ConfigRegion 16 static

72
Debug/Drivers/STM32G0xx_HAL_Driver/Src/stm32g0xx_hal_dma.d

@ -0,0 +1,72 @@
Drivers/STM32G0xx_HAL_Driver/Src/stm32g0xx_hal_dma.o: \
../Drivers/STM32G0xx_HAL_Driver/Src/stm32g0xx_hal_dma.c \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal.h \
../Core/Inc/stm32g0xx_hal_conf.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_rcc.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_def.h \
../Drivers/CMSIS/Device/ST/STM32G0xx/Include/stm32g0xx.h \
../Drivers/CMSIS/Device/ST/STM32G0xx/Include/stm32g031xx.h \
../Drivers/CMSIS/Include/core_cm0plus.h \
../Drivers/CMSIS/Include/cmsis_version.h \
../Drivers/CMSIS/Include/cmsis_compiler.h \
../Drivers/CMSIS/Include/cmsis_gcc.h \
../Drivers/CMSIS/Include/mpu_armv7.h \
../Drivers/CMSIS/Device/ST/STM32G0xx/Include/system_stm32g0xx.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_ll_rcc.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_rcc_ex.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_gpio.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_gpio_ex.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_dma.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_ll_dma.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_ll_dmamux.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_dma_ex.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_cortex.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_adc.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_ll_adc.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_adc_ex.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_adc_ex.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_exti.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_flash.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_flash_ex.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_pwr.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_pwr_ex.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_tim.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_tim_ex.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_uart.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_uart_ex.h
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal.h:
../Core/Inc/stm32g0xx_hal_conf.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_rcc.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_def.h:
../Drivers/CMSIS/Device/ST/STM32G0xx/Include/stm32g0xx.h:
../Drivers/CMSIS/Device/ST/STM32G0xx/Include/stm32g031xx.h:
../Drivers/CMSIS/Include/core_cm0plus.h:
../Drivers/CMSIS/Include/cmsis_version.h:
../Drivers/CMSIS/Include/cmsis_compiler.h:
../Drivers/CMSIS/Include/cmsis_gcc.h:
../Drivers/CMSIS/Include/mpu_armv7.h:
../Drivers/CMSIS/Device/ST/STM32G0xx/Include/system_stm32g0xx.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_ll_rcc.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_rcc_ex.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_gpio.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_gpio_ex.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_dma.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_ll_dma.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_ll_dmamux.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_dma_ex.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_cortex.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_adc.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_ll_adc.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_adc_ex.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_adc_ex.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_exti.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_flash.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_flash_ex.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_pwr.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_pwr_ex.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_tim.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_tim_ex.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_uart.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_uart_ex.h:

BIN
Debug/Drivers/STM32G0xx_HAL_Driver/Src/stm32g0xx_hal_dma.o

Binary file not shown.

15
Debug/Drivers/STM32G0xx_HAL_Driver/Src/stm32g0xx_hal_dma.su

@ -0,0 +1,15 @@
../Drivers/STM32G0xx_HAL_Driver/Src/stm32g0xx_hal_dma.c:152:19:HAL_DMA_Init 16 static
../Drivers/STM32G0xx_HAL_Driver/Src/stm32g0xx_hal_dma.c:259:19:HAL_DMA_DeInit 16 static
../Drivers/STM32G0xx_HAL_Driver/Src/stm32g0xx_hal_dma.c:382:19:HAL_DMA_Start 32 static
../Drivers/STM32G0xx_HAL_Driver/Src/stm32g0xx_hal_dma.c:433:19:HAL_DMA_Start_IT 32 static
../Drivers/STM32G0xx_HAL_Driver/Src/stm32g0xx_hal_dma.c:507:19:HAL_DMA_Abort 16 static
../Drivers/STM32G0xx_HAL_Driver/Src/stm32g0xx_hal_dma.c:572:19:HAL_DMA_Abort_IT 24 static
../Drivers/STM32G0xx_HAL_Driver/Src/stm32g0xx_hal_dma.c:637:19:HAL_DMA_PollForTransfer 32 static
../Drivers/STM32G0xx_HAL_Driver/Src/stm32g0xx_hal_dma.c:797:6:HAL_DMA_IRQHandler 24 static
../Drivers/STM32G0xx_HAL_Driver/Src/stm32g0xx_hal_dma.c:903:19:HAL_DMA_RegisterCallback 32 static
../Drivers/STM32G0xx_HAL_Driver/Src/stm32g0xx_hal_dma.c:954:19:HAL_DMA_UnRegisterCallback 24 static
../Drivers/STM32G0xx_HAL_Driver/Src/stm32g0xx_hal_dma.c:1032:22:HAL_DMA_GetState 16 static
../Drivers/STM32G0xx_HAL_Driver/Src/stm32g0xx_hal_dma.c:1044:10:HAL_DMA_GetError 16 static
../Drivers/STM32G0xx_HAL_Driver/Src/stm32g0xx_hal_dma.c:1071:13:DMA_SetConfig 24 static
../Drivers/STM32G0xx_HAL_Driver/Src/stm32g0xx_hal_dma.c:1118:13:DMA_CalcDMAMUXChannelBaseAndMask 24 static
../Drivers/STM32G0xx_HAL_Driver/Src/stm32g0xx_hal_dma.c:1164:13:DMA_CalcDMAMUXRequestGenBaseAndMask 24 static

72
Debug/Drivers/STM32G0xx_HAL_Driver/Src/stm32g0xx_hal_dma_ex.d

@ -0,0 +1,72 @@
Drivers/STM32G0xx_HAL_Driver/Src/stm32g0xx_hal_dma_ex.o: \
../Drivers/STM32G0xx_HAL_Driver/Src/stm32g0xx_hal_dma_ex.c \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal.h \
../Core/Inc/stm32g0xx_hal_conf.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_rcc.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_def.h \
../Drivers/CMSIS/Device/ST/STM32G0xx/Include/stm32g0xx.h \
../Drivers/CMSIS/Device/ST/STM32G0xx/Include/stm32g031xx.h \
../Drivers/CMSIS/Include/core_cm0plus.h \
../Drivers/CMSIS/Include/cmsis_version.h \
../Drivers/CMSIS/Include/cmsis_compiler.h \
../Drivers/CMSIS/Include/cmsis_gcc.h \
../Drivers/CMSIS/Include/mpu_armv7.h \
../Drivers/CMSIS/Device/ST/STM32G0xx/Include/system_stm32g0xx.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_ll_rcc.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_rcc_ex.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_gpio.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_gpio_ex.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_dma.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_ll_dma.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_ll_dmamux.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_dma_ex.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_cortex.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_adc.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_ll_adc.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_adc_ex.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_adc_ex.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_exti.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_flash.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_flash_ex.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_pwr.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_pwr_ex.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_tim.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_tim_ex.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_uart.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_uart_ex.h
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal.h:
../Core/Inc/stm32g0xx_hal_conf.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_rcc.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_def.h:
../Drivers/CMSIS/Device/ST/STM32G0xx/Include/stm32g0xx.h:
../Drivers/CMSIS/Device/ST/STM32G0xx/Include/stm32g031xx.h:
../Drivers/CMSIS/Include/core_cm0plus.h:
../Drivers/CMSIS/Include/cmsis_version.h:
../Drivers/CMSIS/Include/cmsis_compiler.h:
../Drivers/CMSIS/Include/cmsis_gcc.h:
../Drivers/CMSIS/Include/mpu_armv7.h:
../Drivers/CMSIS/Device/ST/STM32G0xx/Include/system_stm32g0xx.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_ll_rcc.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_rcc_ex.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_gpio.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_gpio_ex.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_dma.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_ll_dma.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_ll_dmamux.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_dma_ex.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_cortex.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_adc.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_ll_adc.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_adc_ex.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_adc_ex.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_exti.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_flash.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_flash_ex.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_pwr.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_pwr_ex.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_tim.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_tim_ex.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_uart.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_uart_ex.h:

BIN
Debug/Drivers/STM32G0xx_HAL_Driver/Src/stm32g0xx_hal_dma_ex.o

Binary file not shown.

5
Debug/Drivers/STM32G0xx_HAL_Driver/Src/stm32g0xx_hal_dma_ex.su

@ -0,0 +1,5 @@
../Drivers/STM32G0xx_HAL_Driver/Src/stm32g0xx_hal_dma_ex.c:95:19:HAL_DMAEx_ConfigMuxSync 16 static
../Drivers/STM32G0xx_HAL_Driver/Src/stm32g0xx_hal_dma_ex.c:144:19:HAL_DMAEx_ConfigMuxRequestGenerator 24 static
../Drivers/STM32G0xx_HAL_Driver/Src/stm32g0xx_hal_dma_ex.c:203:19:HAL_DMAEx_EnableMuxRequestGenerator 16 static
../Drivers/STM32G0xx_HAL_Driver/Src/stm32g0xx_hal_dma_ex.c:231:19:HAL_DMAEx_DisableMuxRequestGenerator 16 static
../Drivers/STM32G0xx_HAL_Driver/Src/stm32g0xx_hal_dma_ex.c:259:6:HAL_DMAEx_MUX_IRQHandler 16 static

72
Debug/Drivers/STM32G0xx_HAL_Driver/Src/stm32g0xx_hal_exti.d

@ -0,0 +1,72 @@
Drivers/STM32G0xx_HAL_Driver/Src/stm32g0xx_hal_exti.o: \
../Drivers/STM32G0xx_HAL_Driver/Src/stm32g0xx_hal_exti.c \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal.h \
../Core/Inc/stm32g0xx_hal_conf.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_rcc.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_def.h \
../Drivers/CMSIS/Device/ST/STM32G0xx/Include/stm32g0xx.h \
../Drivers/CMSIS/Device/ST/STM32G0xx/Include/stm32g031xx.h \
../Drivers/CMSIS/Include/core_cm0plus.h \
../Drivers/CMSIS/Include/cmsis_version.h \
../Drivers/CMSIS/Include/cmsis_compiler.h \
../Drivers/CMSIS/Include/cmsis_gcc.h \
../Drivers/CMSIS/Include/mpu_armv7.h \
../Drivers/CMSIS/Device/ST/STM32G0xx/Include/system_stm32g0xx.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_ll_rcc.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_rcc_ex.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_gpio.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_gpio_ex.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_dma.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_ll_dma.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_ll_dmamux.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_dma_ex.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_cortex.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_adc.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_ll_adc.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_adc_ex.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_adc_ex.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_exti.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_flash.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_flash_ex.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_pwr.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_pwr_ex.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_tim.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_tim_ex.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_uart.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_uart_ex.h
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal.h:
../Core/Inc/stm32g0xx_hal_conf.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_rcc.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_def.h:
../Drivers/CMSIS/Device/ST/STM32G0xx/Include/stm32g0xx.h:
../Drivers/CMSIS/Device/ST/STM32G0xx/Include/stm32g031xx.h:
../Drivers/CMSIS/Include/core_cm0plus.h:
../Drivers/CMSIS/Include/cmsis_version.h:
../Drivers/CMSIS/Include/cmsis_compiler.h:
../Drivers/CMSIS/Include/cmsis_gcc.h:
../Drivers/CMSIS/Include/mpu_armv7.h:
../Drivers/CMSIS/Device/ST/STM32G0xx/Include/system_stm32g0xx.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_ll_rcc.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_rcc_ex.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_gpio.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_gpio_ex.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_dma.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_ll_dma.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_ll_dmamux.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_dma_ex.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_cortex.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_adc.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_ll_adc.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_adc_ex.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_adc_ex.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_exti.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_flash.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_flash_ex.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_pwr.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_pwr_ex.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_tim.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_tim_ex.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_uart.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_uart_ex.h:

BIN
Debug/Drivers/STM32G0xx_HAL_Driver/Src/stm32g0xx_hal_exti.o

Binary file not shown.

9
Debug/Drivers/STM32G0xx_HAL_Driver/Src/stm32g0xx_hal_exti.su

@ -0,0 +1,9 @@
../Drivers/STM32G0xx_HAL_Driver/Src/stm32g0xx_hal_exti.c:143:19:HAL_EXTI_SetConfigLine 40 static
../Drivers/STM32G0xx_HAL_Driver/Src/stm32g0xx_hal_exti.c:265:19:HAL_EXTI_GetConfigLine 40 static
../Drivers/STM32G0xx_HAL_Driver/Src/stm32g0xx_hal_exti.c:359:19:HAL_EXTI_ClearConfigLine 40 static
../Drivers/STM32G0xx_HAL_Driver/Src/stm32g0xx_hal_exti.c:425:19:HAL_EXTI_RegisterCallback 32 static
../Drivers/STM32G0xx_HAL_Driver/Src/stm32g0xx_hal_exti.c:460:19:HAL_EXTI_GetHandle 16 static
../Drivers/STM32G0xx_HAL_Driver/Src/stm32g0xx_hal_exti.c:501:6:HAL_EXTI_IRQHandler 32 static
../Drivers/STM32G0xx_HAL_Driver/Src/stm32g0xx_hal_exti.c:555:10:HAL_EXTI_GetPending 40 static
../Drivers/STM32G0xx_HAL_Driver/Src/stm32g0xx_hal_exti.c:599:6:HAL_EXTI_ClearPending 32 static
../Drivers/STM32G0xx_HAL_Driver/Src/stm32g0xx_hal_exti.c:635:6:HAL_EXTI_GenerateSWI 32 static

72
Debug/Drivers/STM32G0xx_HAL_Driver/Src/stm32g0xx_hal_flash.d

@ -0,0 +1,72 @@
Drivers/STM32G0xx_HAL_Driver/Src/stm32g0xx_hal_flash.o: \
../Drivers/STM32G0xx_HAL_Driver/Src/stm32g0xx_hal_flash.c \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal.h \
../Core/Inc/stm32g0xx_hal_conf.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_rcc.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_def.h \
../Drivers/CMSIS/Device/ST/STM32G0xx/Include/stm32g0xx.h \
../Drivers/CMSIS/Device/ST/STM32G0xx/Include/stm32g031xx.h \
../Drivers/CMSIS/Include/core_cm0plus.h \
../Drivers/CMSIS/Include/cmsis_version.h \
../Drivers/CMSIS/Include/cmsis_compiler.h \
../Drivers/CMSIS/Include/cmsis_gcc.h \
../Drivers/CMSIS/Include/mpu_armv7.h \
../Drivers/CMSIS/Device/ST/STM32G0xx/Include/system_stm32g0xx.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_ll_rcc.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_rcc_ex.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_gpio.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_gpio_ex.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_dma.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_ll_dma.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_ll_dmamux.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_dma_ex.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_cortex.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_adc.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_ll_adc.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_adc_ex.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_adc_ex.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_exti.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_flash.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_flash_ex.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_pwr.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_pwr_ex.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_tim.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_tim_ex.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_uart.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_uart_ex.h
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal.h:
../Core/Inc/stm32g0xx_hal_conf.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_rcc.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_def.h:
../Drivers/CMSIS/Device/ST/STM32G0xx/Include/stm32g0xx.h:
../Drivers/CMSIS/Device/ST/STM32G0xx/Include/stm32g031xx.h:
../Drivers/CMSIS/Include/core_cm0plus.h:
../Drivers/CMSIS/Include/cmsis_version.h:
../Drivers/CMSIS/Include/cmsis_compiler.h:
../Drivers/CMSIS/Include/cmsis_gcc.h:
../Drivers/CMSIS/Include/mpu_armv7.h:
../Drivers/CMSIS/Device/ST/STM32G0xx/Include/system_stm32g0xx.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_ll_rcc.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_rcc_ex.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_gpio.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_gpio_ex.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_dma.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_ll_dma.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_ll_dmamux.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_dma_ex.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_cortex.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_adc.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_ll_adc.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_adc_ex.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_adc_ex.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_exti.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_flash.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_flash_ex.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_pwr.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_pwr_ex.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_tim.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_tim_ex.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_uart.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_uart_ex.h:

BIN
Debug/Drivers/STM32G0xx_HAL_Driver/Src/stm32g0xx_hal_flash.o

Binary file not shown.

14
Debug/Drivers/STM32G0xx_HAL_Driver/Src/stm32g0xx_hal_flash.su

@ -0,0 +1,14 @@
../Drivers/STM32G0xx_HAL_Driver/Src/stm32g0xx_hal_flash.c:164:19:HAL_FLASH_Program 40 static
../Drivers/STM32G0xx_HAL_Driver/Src/stm32g0xx_hal_flash.c:226:19:HAL_FLASH_Program_IT 40 static
../Drivers/STM32G0xx_HAL_Driver/Src/stm32g0xx_hal_flash.c:282:6:HAL_FLASH_IRQHandler 16 static
../Drivers/STM32G0xx_HAL_Driver/Src/stm32g0xx_hal_flash.c:382:13:HAL_FLASH_EndOfOperationCallback 16 static
../Drivers/STM32G0xx_HAL_Driver/Src/stm32g0xx_hal_flash.c:400:13:HAL_FLASH_OperationErrorCallback 16 static
../Drivers/STM32G0xx_HAL_Driver/Src/stm32g0xx_hal_flash.c:433:19:HAL_FLASH_Unlock 16 static
../Drivers/STM32G0xx_HAL_Driver/Src/stm32g0xx_hal_flash.c:457:19:HAL_FLASH_Lock 16 static
../Drivers/STM32G0xx_HAL_Driver/Src/stm32g0xx_hal_flash.c:477:19:HAL_FLASH_OB_Unlock 16 static
../Drivers/STM32G0xx_HAL_Driver/Src/stm32g0xx_hal_flash.c:501:19:HAL_FLASH_OB_Lock 16 static
../Drivers/STM32G0xx_HAL_Driver/Src/stm32g0xx_hal_flash.c:521:19:HAL_FLASH_OB_Launch 8 static
../Drivers/STM32G0xx_HAL_Driver/Src/stm32g0xx_hal_flash.c:566:10:HAL_FLASH_GetError 8 static
../Drivers/STM32G0xx_HAL_Driver/Src/stm32g0xx_hal_flash.c:590:19:FLASH_WaitForLastOperation 24 static
../Drivers/STM32G0xx_HAL_Driver/Src/stm32g0xx_hal_flash.c:646:13:FLASH_Program_DoubleWord 32 static,ignoring_inline_asm
../Drivers/STM32G0xx_HAL_Driver/Src/stm32g0xx_hal_flash.c:668:24:FLASH_Program_Fast 40 static,ignoring_inline_asm

72
Debug/Drivers/STM32G0xx_HAL_Driver/Src/stm32g0xx_hal_flash_ex.d

@ -0,0 +1,72 @@
Drivers/STM32G0xx_HAL_Driver/Src/stm32g0xx_hal_flash_ex.o: \
../Drivers/STM32G0xx_HAL_Driver/Src/stm32g0xx_hal_flash_ex.c \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal.h \
../Core/Inc/stm32g0xx_hal_conf.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_rcc.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_def.h \
../Drivers/CMSIS/Device/ST/STM32G0xx/Include/stm32g0xx.h \
../Drivers/CMSIS/Device/ST/STM32G0xx/Include/stm32g031xx.h \
../Drivers/CMSIS/Include/core_cm0plus.h \
../Drivers/CMSIS/Include/cmsis_version.h \
../Drivers/CMSIS/Include/cmsis_compiler.h \
../Drivers/CMSIS/Include/cmsis_gcc.h \
../Drivers/CMSIS/Include/mpu_armv7.h \
../Drivers/CMSIS/Device/ST/STM32G0xx/Include/system_stm32g0xx.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_ll_rcc.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_rcc_ex.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_gpio.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_gpio_ex.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_dma.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_ll_dma.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_ll_dmamux.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_dma_ex.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_cortex.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_adc.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_ll_adc.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_adc_ex.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_adc_ex.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_exti.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_flash.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_flash_ex.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_pwr.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_pwr_ex.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_tim.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_tim_ex.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_uart.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_uart_ex.h
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal.h:
../Core/Inc/stm32g0xx_hal_conf.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_rcc.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_def.h:
../Drivers/CMSIS/Device/ST/STM32G0xx/Include/stm32g0xx.h:
../Drivers/CMSIS/Device/ST/STM32G0xx/Include/stm32g031xx.h:
../Drivers/CMSIS/Include/core_cm0plus.h:
../Drivers/CMSIS/Include/cmsis_version.h:
../Drivers/CMSIS/Include/cmsis_compiler.h:
../Drivers/CMSIS/Include/cmsis_gcc.h:
../Drivers/CMSIS/Include/mpu_armv7.h:
../Drivers/CMSIS/Device/ST/STM32G0xx/Include/system_stm32g0xx.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_ll_rcc.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_rcc_ex.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_gpio.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_gpio_ex.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_dma.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_ll_dma.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_ll_dmamux.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_dma_ex.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_cortex.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_adc.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_ll_adc.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_adc_ex.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_adc_ex.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_exti.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_flash.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_flash_ex.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_pwr.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_pwr_ex.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_tim.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_tim_ex.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_uart.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_uart_ex.h:

BIN
Debug/Drivers/STM32G0xx_HAL_Driver/Src/stm32g0xx_hal_flash_ex.o

Binary file not shown.

23
Debug/Drivers/STM32G0xx_HAL_Driver/Src/stm32g0xx_hal_flash_ex.su

@ -0,0 +1,23 @@
../Drivers/STM32G0xx_HAL_Driver/Src/stm32g0xx_hal_flash_ex.c:154:19:HAL_FLASHEx_Erase 32 static
../Drivers/STM32G0xx_HAL_Driver/Src/stm32g0xx_hal_flash_ex.c:226:19:HAL_FLASHEx_Erase_IT 32 static
../Drivers/STM32G0xx_HAL_Driver/Src/stm32g0xx_hal_flash_ex.c:297:19:HAL_FLASHEx_OBProgram 32 static
../Drivers/STM32G0xx_HAL_Driver/Src/stm32g0xx_hal_flash_ex.c:421:6:HAL_FLASHEx_OBGetConfig 16 static
../Drivers/STM32G0xx_HAL_Driver/Src/stm32g0xx_hal_flash_ex.c:464:6:HAL_FLASHEx_EnableDebugger 8 static
../Drivers/STM32G0xx_HAL_Driver/Src/stm32g0xx_hal_flash_ex.c:476:6:HAL_FLASHEx_DisableDebugger 8 static
../Drivers/STM32G0xx_HAL_Driver/Src/stm32g0xx_hal_flash_ex.c:488:10:HAL_FLASHEx_FlashEmptyCheck 8 static
../Drivers/STM32G0xx_HAL_Driver/Src/stm32g0xx_hal_flash_ex.c:502:6:HAL_FLASHEx_ForceFlashEmpty 24 static
../Drivers/STM32G0xx_HAL_Driver/Src/stm32g0xx_hal_flash_ex.c:524:6:HAL_FLASHEx_EnableSecMemProtection 16 static
../Drivers/STM32G0xx_HAL_Driver/Src/stm32g0xx_hal_flash_ex.c:568:13:FLASH_MassErase 16 static
../Drivers/STM32G0xx_HAL_Driver/Src/stm32g0xx_hal_flash_ex.c:588:6:FLASH_PageErase 24 static
../Drivers/STM32G0xx_HAL_Driver/Src/stm32g0xx_hal_flash_ex.c:619:6:FLASH_FlushCaches 8 static
../Drivers/STM32G0xx_HAL_Driver/Src/stm32g0xx_hal_flash_ex.c:656:13:FLASH_OB_WRPConfig 24 static
../Drivers/STM32G0xx_HAL_Driver/Src/stm32g0xx_hal_flash_ex.c:699:13:FLASH_OB_GetWRP 24 static
../Drivers/STM32G0xx_HAL_Driver/Src/stm32g0xx_hal_flash_ex.c:762:13:FLASH_OB_OptrConfig 32 static
../Drivers/STM32G0xx_HAL_Driver/Src/stm32g0xx_hal_flash_ex.c:785:17:FLASH_OB_GetRDP 16 static
../Drivers/STM32G0xx_HAL_Driver/Src/stm32g0xx_hal_flash_ex.c:821:17:FLASH_OB_GetUser 16 static
../Drivers/STM32G0xx_HAL_Driver/Src/stm32g0xx_hal_flash_ex.c:843:13:FLASH_OB_PCROP1AConfig 40 static
../Drivers/STM32G0xx_HAL_Driver/Src/stm32g0xx_hal_flash_ex.c:916:13:FLASH_OB_PCROP1BConfig 32 static
../Drivers/STM32G0xx_HAL_Driver/Src/stm32g0xx_hal_flash_ex.c:963:13:FLASH_OB_GetPCROP1A 32 static
../Drivers/STM32G0xx_HAL_Driver/Src/stm32g0xx_hal_flash_ex.c:1002:13:FLASH_OB_GetPCROP1B 24 static
../Drivers/STM32G0xx_HAL_Driver/Src/stm32g0xx_hal_flash_ex.c:1260:13:FLASH_OB_SecMemConfig 24 static
../Drivers/STM32G0xx_HAL_Driver/Src/stm32g0xx_hal_flash_ex.c:1280:13:FLASH_OB_GetSecMem 24 static

72
Debug/Drivers/STM32G0xx_HAL_Driver/Src/stm32g0xx_hal_gpio.d

@ -0,0 +1,72 @@
Drivers/STM32G0xx_HAL_Driver/Src/stm32g0xx_hal_gpio.o: \
../Drivers/STM32G0xx_HAL_Driver/Src/stm32g0xx_hal_gpio.c \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal.h \
../Core/Inc/stm32g0xx_hal_conf.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_rcc.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_def.h \
../Drivers/CMSIS/Device/ST/STM32G0xx/Include/stm32g0xx.h \
../Drivers/CMSIS/Device/ST/STM32G0xx/Include/stm32g031xx.h \
../Drivers/CMSIS/Include/core_cm0plus.h \
../Drivers/CMSIS/Include/cmsis_version.h \
../Drivers/CMSIS/Include/cmsis_compiler.h \
../Drivers/CMSIS/Include/cmsis_gcc.h \
../Drivers/CMSIS/Include/mpu_armv7.h \
../Drivers/CMSIS/Device/ST/STM32G0xx/Include/system_stm32g0xx.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_ll_rcc.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_rcc_ex.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_gpio.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_gpio_ex.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_dma.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_ll_dma.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_ll_dmamux.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_dma_ex.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_cortex.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_adc.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_ll_adc.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_adc_ex.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_adc_ex.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_exti.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_flash.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_flash_ex.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_pwr.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_pwr_ex.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_tim.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_tim_ex.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_uart.h \
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_uart_ex.h
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal.h:
../Core/Inc/stm32g0xx_hal_conf.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_rcc.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_def.h:
../Drivers/CMSIS/Device/ST/STM32G0xx/Include/stm32g0xx.h:
../Drivers/CMSIS/Device/ST/STM32G0xx/Include/stm32g031xx.h:
../Drivers/CMSIS/Include/core_cm0plus.h:
../Drivers/CMSIS/Include/cmsis_version.h:
../Drivers/CMSIS/Include/cmsis_compiler.h:
../Drivers/CMSIS/Include/cmsis_gcc.h:
../Drivers/CMSIS/Include/mpu_armv7.h:
../Drivers/CMSIS/Device/ST/STM32G0xx/Include/system_stm32g0xx.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_ll_rcc.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_rcc_ex.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_gpio.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_gpio_ex.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_dma.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_ll_dma.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_ll_dmamux.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_dma_ex.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_cortex.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_adc.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_ll_adc.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_adc_ex.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_adc_ex.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_exti.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_flash.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_flash_ex.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_pwr.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_pwr_ex.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_tim.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_tim_ex.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_uart.h:
../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_uart_ex.h:

Some files were not shown because too many files changed in this diff

Loading…
Cancel
Save