12 changed files with 1550 additions and 788 deletions
@ -1,235 +1,245 @@ |
|||||||
<?xml version="1.0" encoding="UTF-8"?> |
<?xml version="1.0" encoding="UTF-8" standalone="no"?> |
||||||
<?fileVersion 4.0.0?><cproject storage_type_id="org.eclipse.cdt.core.XmlProjectDescriptionStorage"> |
<?fileVersion 4.0.0?><cproject storage_type_id="org.eclipse.cdt.core.XmlProjectDescriptionStorage"> |
||||||
<storageModule moduleId="org.eclipse.cdt.core.settings"> |
<storageModule moduleId="org.eclipse.cdt.core.settings"> |
||||||
<cconfiguration id="fr.ac6.managedbuild.config.gnu.cross.exe.debug.1837977868"> |
<cconfiguration id="fr.ac6.managedbuild.config.gnu.cross.exe.debug.1837977868"> |
||||||
<storageModule buildSystemId="org.eclipse.cdt.managedbuilder.core.configurationDataProvider" id="fr.ac6.managedbuild.config.gnu.cross.exe.debug.1837977868" moduleId="org.eclipse.cdt.core.settings" name="Debug"> |
<storageModule buildSystemId="org.eclipse.cdt.managedbuilder.core.configurationDataProvider" id="fr.ac6.managedbuild.config.gnu.cross.exe.debug.1837977868" moduleId="org.eclipse.cdt.core.settings" name="Debug"> |
||||||
<externalSettings /> |
<externalSettings/> |
||||||
<extensions> |
<extensions> |
||||||
<extension id="org.eclipse.cdt.core.ELF" point="org.eclipse.cdt.core.BinaryParser" /> |
<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.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.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.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.CWDLocator" point="org.eclipse.cdt.core.ErrorParser"/> |
||||||
<extension id="org.eclipse.cdt.core.GCCErrorParser" point="org.eclipse.cdt.core.ErrorParser" /> |
<extension id="org.eclipse.cdt.core.GCCErrorParser" point="org.eclipse.cdt.core.ErrorParser"/> |
||||||
</extensions> |
</extensions> |
||||||
</storageModule> |
</storageModule> |
||||||
<storageModule moduleId="cdtBuildSystem" version="4.0.0"> |
<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="fr.ac6.managedbuild.config.gnu.cross.exe.debug.1837977868" name="Debug" parent="fr.ac6.managedbuild.config.gnu.cross.exe.debug" postannouncebuildStep="Generating hex and Printing size information:" postbuildStep="arm-none-eabi-objcopy -O ihex "${BuildArtifactFileBaseName}.elf" "${BuildArtifactFileBaseName}.hex" && arm-none-eabi-size "${BuildArtifactFileName}""> |
<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="fr.ac6.managedbuild.config.gnu.cross.exe.debug.1837977868" name="Debug" parent="fr.ac6.managedbuild.config.gnu.cross.exe.debug" postannouncebuildStep="Generating hex and Printing size information:" postbuildStep="arm-none-eabi-objcopy -O ihex "${BuildArtifactFileBaseName}.elf" "${BuildArtifactFileBaseName}.hex" && arm-none-eabi-size "${BuildArtifactFileName}""> |
||||||
<folderInfo id="fr.ac6.managedbuild.config.gnu.cross.exe.debug.1837977868." name="/" resourcePath=""> |
<folderInfo id="fr.ac6.managedbuild.config.gnu.cross.exe.debug.1837977868." name="/" resourcePath=""> |
||||||
<toolChain id="fr.ac6.managedbuild.toolchain.gnu.cross.exe.debug.1804281657" name="Ac6 STM32 MCU GCC" superClass="fr.ac6.managedbuild.toolchain.gnu.cross.exe.debug"> |
<toolChain id="fr.ac6.managedbuild.toolchain.gnu.cross.exe.debug.1804281657" name="Ac6 STM32 MCU GCC" superClass="fr.ac6.managedbuild.toolchain.gnu.cross.exe.debug"> |
||||||
<option id="fr.ac6.managedbuild.option.gnu.cross.prefix.670043782" name="Prefix" superClass="fr.ac6.managedbuild.option.gnu.cross.prefix" value="arm-none-eabi-" valueType="string" /> |
<option id="fr.ac6.managedbuild.option.gnu.cross.prefix.670043782" name="Prefix" superClass="fr.ac6.managedbuild.option.gnu.cross.prefix" useByScannerDiscovery="false" value="arm-none-eabi-" valueType="string"/> |
||||||
<option id="fr.ac6.managedbuild.option.gnu.cross.mcu.246290918" name="Mcu" superClass="fr.ac6.managedbuild.option.gnu.cross.mcu" value="STM32F103C6Tx" valueType="string" /> |
<option id="fr.ac6.managedbuild.option.gnu.cross.mcu.246290918" name="Mcu" superClass="fr.ac6.managedbuild.option.gnu.cross.mcu" useByScannerDiscovery="false" value="STM32F103C8Tx" valueType="string"/> |
||||||
<option id="fr.ac6.managedbuild.option.gnu.cross.board.351273785" name="Board" superClass="fr.ac6.managedbuild.option.gnu.cross.board" value="WS2812B" valueType="string" /> |
<option id="fr.ac6.managedbuild.option.gnu.cross.board.351273785" name="Board" superClass="fr.ac6.managedbuild.option.gnu.cross.board" useByScannerDiscovery="false" value="genericBoard" valueType="string"/> |
||||||
<option id="fr.ac6.managedbuild.option.gnu.cross.instructionSet.2096351029" name="Instruction Set" superClass="fr.ac6.managedbuild.option.gnu.cross.instructionSet" value="fr.ac6.managedbuild.option.gnu.cross.instructionSet.thumbII" valueType="enumerated" /> |
<option id="fr.ac6.managedbuild.option.gnu.cross.instructionSet.2096351029" name="Instruction Set" superClass="fr.ac6.managedbuild.option.gnu.cross.instructionSet" useByScannerDiscovery="false" value="fr.ac6.managedbuild.option.gnu.cross.instructionSet.thumbII" valueType="enumerated"/> |
||||||
<option id="fr.ac6.managedbuild.option.gnu.cross.fpu.1085009536" name="Floating point hardware" superClass="fr.ac6.managedbuild.option.gnu.cross.fpu" value="fr.ac6.managedbuild.option.gnu.cross.fpu.no" valueType="enumerated" /> |
<option id="fr.ac6.managedbuild.option.gnu.cross.fpu.1085009536" name="Floating point hardware" superClass="fr.ac6.managedbuild.option.gnu.cross.fpu" useByScannerDiscovery="false" value="fr.ac6.managedbuild.option.gnu.cross.fpu.no" valueType="enumerated"/> |
||||||
<option id="fr.ac6.managedbuild.option.gnu.cross.floatabi.1977247305" name="Floating-point ABI" superClass="fr.ac6.managedbuild.option.gnu.cross.floatabi" value="fr.ac6.managedbuild.option.gnu.cross.floatabi.soft" valueType="enumerated" /> |
<option id="fr.ac6.managedbuild.option.gnu.cross.floatabi.1977247305" name="Floating-point ABI" superClass="fr.ac6.managedbuild.option.gnu.cross.floatabi" useByScannerDiscovery="false" value="fr.ac6.managedbuild.option.gnu.cross.floatabi.soft" valueType="enumerated"/> |
||||||
<targetPlatform archList="all" binaryParser="org.eclipse.cdt.core.ELF" id="fr.ac6.managedbuild.targetPlatform.gnu.cross.1564318056" isAbstract="false" osList="all" superClass="fr.ac6.managedbuild.targetPlatform.gnu.cross" /> |
<targetPlatform archList="all" binaryParser="org.eclipse.cdt.core.ELF" id="fr.ac6.managedbuild.targetPlatform.gnu.cross.1564318056" isAbstract="false" osList="all" superClass="fr.ac6.managedbuild.targetPlatform.gnu.cross"/> |
||||||
<builder buildPath="${workspace_loc:/WS2812B}/Debug" id="fr.ac6.managedbuild.builder.gnu.cross.2081164898" keepEnvironmentInBuildfile="false" managedBuildOn="true" name="Gnu Make Builder" parallelBuildOn="true" parallelizationNumber="optimal" superClass="fr.ac6.managedbuild.builder.gnu.cross"> |
<builder buildPath="${workspace_loc:/WS2812B}/Debug" id="fr.ac6.managedbuild.builder.gnu.cross.2081164898" keepEnvironmentInBuildfile="false" managedBuildOn="true" name="Gnu Make Builder" parallelBuildOn="true" parallelizationNumber="optimal" superClass="fr.ac6.managedbuild.builder.gnu.cross"> |
||||||
<outputEntries> |
<outputEntries> |
||||||
<entry flags="VALUE_WORKSPACE_PATH|RESOLVED" kind="outputPath" name="Debug" /> |
<entry flags="VALUE_WORKSPACE_PATH|RESOLVED" kind="outputPath" name="Debug"/> |
||||||
</outputEntries> |
</outputEntries> |
||||||
</builder> |
</builder> |
||||||
<tool id="fr.ac6.managedbuild.tool.gnu.cross.c.compiler.47172157" name="MCU GCC Compiler" superClass="fr.ac6.managedbuild.tool.gnu.cross.c.compiler"> |
<tool id="fr.ac6.managedbuild.tool.gnu.cross.c.compiler.47172157" name="MCU GCC Compiler" superClass="fr.ac6.managedbuild.tool.gnu.cross.c.compiler"> |
||||||
<option defaultValue="gnu.c.optimization.level.none" id="fr.ac6.managedbuild.gnu.c.compiler.option.optimization.level.1123938333" name="Optimization Level" superClass="fr.ac6.managedbuild.gnu.c.compiler.option.optimization.level" useByScannerDiscovery="false" value="fr.ac6.managedbuild.gnu.c.optimization.level.debug" valueType="enumerated" /> |
<option defaultValue="gnu.c.optimization.level.none" id="fr.ac6.managedbuild.gnu.c.compiler.option.optimization.level.1123938333" name="Optimization Level" superClass="fr.ac6.managedbuild.gnu.c.compiler.option.optimization.level" useByScannerDiscovery="false" value="fr.ac6.managedbuild.gnu.c.optimization.level.debug" valueType="enumerated"/> |
||||||
<option id="gnu.c.compiler.option.debugging.level.2095774341" name="Debug Level" superClass="gnu.c.compiler.option.debugging.level" useByScannerDiscovery="false" value="gnu.c.debugging.level.max" valueType="enumerated" /> |
<option id="gnu.c.compiler.option.debugging.level.2095774341" name="Debug Level" superClass="gnu.c.compiler.option.debugging.level" useByScannerDiscovery="false" value="gnu.c.debugging.level.max" valueType="enumerated"/> |
||||||
<option id="gnu.c.compiler.option.include.paths.921716932" name="Include paths (-I)" superClass="gnu.c.compiler.option.include.paths" useByScannerDiscovery="false" valueType="includePath"> |
<option id="gnu.c.compiler.option.include.paths.921716932" name="Include paths (-I)" superClass="gnu.c.compiler.option.include.paths" useByScannerDiscovery="false" valueType="includePath"> |
||||||
<listOptionValue builtIn="false" value="../Inc" /> |
<listOptionValue builtIn="false" value="../Inc"/> |
||||||
<listOptionValue builtIn="false" value="../Drivers/STM32F1xx_HAL_Driver/Inc" /> |
<listOptionValue builtIn="false" value="../Drivers/STM32F1xx_HAL_Driver/Inc"/> |
||||||
<listOptionValue builtIn="false" value="../Drivers/STM32F1xx_HAL_Driver/Inc/Legacy" /> |
<listOptionValue builtIn="false" value="../Drivers/STM32F1xx_HAL_Driver/Inc/Legacy"/> |
||||||
<listOptionValue builtIn="false" value="../Drivers/CMSIS/Device/ST/STM32F1xx/Include" /> |
<listOptionValue builtIn="false" value="../Drivers/CMSIS/Device/ST/STM32F1xx/Include"/> |
||||||
<listOptionValue builtIn="false" value="../Drivers/CMSIS/Include" /> |
<listOptionValue builtIn="false" value="../Drivers/CMSIS/Include"/> |
||||||
<listOptionValue builtIn="false" value="../Middlewares/ST/STM32_USB_Device_Library/Core/Inc" /><listOptionValue builtIn="false" value="../Middlewares/ST/STM32_USB_Device_Library/Class/CDC/Inc" /></option> |
<listOptionValue builtIn="false" value="../Middlewares/ST/STM32_USB_Device_Library/Core/Inc"/> |
||||||
|
<listOptionValue builtIn="false" value="../Middlewares/ST/STM32_USB_Device_Library/Class/CDC/Inc"/> |
||||||
|
</option> |
||||||
<option id="gnu.c.compiler.option.preprocessor.def.symbols.1717974601" name="Defined symbols (-D)" superClass="gnu.c.compiler.option.preprocessor.def.symbols" useByScannerDiscovery="false" valueType="definedSymbols"> |
<option id="gnu.c.compiler.option.preprocessor.def.symbols.1717974601" name="Defined symbols (-D)" superClass="gnu.c.compiler.option.preprocessor.def.symbols" useByScannerDiscovery="false" valueType="definedSymbols"> |
||||||
<listOptionValue builtIn="false" value="__weak=__attribute__((weak))" /> |
<listOptionValue builtIn="false" value="__weak=__attribute__((weak))"/> |
||||||
<listOptionValue builtIn="false" value="__packed=__attribute__((__packed__))" /> |
<listOptionValue builtIn="false" value="__packed=__attribute__((__packed__))"/> |
||||||
<listOptionValue builtIn="false" value="USE_HAL_DRIVER" /> |
<listOptionValue builtIn="false" value="USE_HAL_DRIVER"/> |
||||||
<listOptionValue builtIn="false" value="STM32F103x6" /> |
<listOptionValue builtIn="false" value="STM32F103xB"/> |
||||||
</option> |
</option> |
||||||
<option id="fr.ac6.managedbuild.gnu.c.compiler.option.misc.other.1743948240" superClass="fr.ac6.managedbuild.gnu.c.compiler.option.misc.other" useByScannerDiscovery="false" value="-fmessage-length=0" valueType="string" /> |
<option id="fr.ac6.managedbuild.gnu.c.compiler.option.misc.other.1743948240" superClass="fr.ac6.managedbuild.gnu.c.compiler.option.misc.other" useByScannerDiscovery="false" value="-fmessage-length=0" valueType="string"/> |
||||||
<option id="gnu.c.compiler.option.dialect.std.1022564193" superClass="gnu.c.compiler.option.dialect.std" useByScannerDiscovery="true" value="gnu.c.compiler.dialect.c99" valueType="enumerated" /> |
<option id="gnu.c.compiler.option.dialect.std.1022564193" name="Language standard" superClass="gnu.c.compiler.option.dialect.std" useByScannerDiscovery="true" value="gnu.c.compiler.dialect.c99" valueType="enumerated"/> |
||||||
<inputType id="fr.ac6.managedbuild.tool.gnu.cross.c.compiler.input.c.888179832" superClass="fr.ac6.managedbuild.tool.gnu.cross.c.compiler.input.c" /> |
<inputType id="fr.ac6.managedbuild.tool.gnu.cross.c.compiler.input.c.888179832" superClass="fr.ac6.managedbuild.tool.gnu.cross.c.compiler.input.c"/> |
||||||
<inputType id="fr.ac6.managedbuild.tool.gnu.cross.c.compiler.input.s.1757015330" superClass="fr.ac6.managedbuild.tool.gnu.cross.c.compiler.input.s" /> |
<inputType id="fr.ac6.managedbuild.tool.gnu.cross.c.compiler.input.s.1757015330" superClass="fr.ac6.managedbuild.tool.gnu.cross.c.compiler.input.s"/> |
||||||
</tool> |
</tool> |
||||||
<tool id="fr.ac6.managedbuild.tool.gnu.cross.cpp.compiler.164378511" name="MCU G++ Compiler" superClass="fr.ac6.managedbuild.tool.gnu.cross.cpp.compiler"> |
<tool id="fr.ac6.managedbuild.tool.gnu.cross.cpp.compiler.164378511" name="MCU G++ Compiler" superClass="fr.ac6.managedbuild.tool.gnu.cross.cpp.compiler"> |
||||||
<option defaultValue="gnu.cpp.optimization.level.none" id="fr.ac6.managedbuild.gnu.cpp.compiler.option.optimization.level.2141249460" name="Optimization Level" superClass="fr.ac6.managedbuild.gnu.cpp.compiler.option.optimization.level" useByScannerDiscovery="false" value="fr.ac6.managedbuild.gnu.cpp.optimization.level.debug" valueType="enumerated" /> |
<option defaultValue="gnu.cpp.optimization.level.none" id="fr.ac6.managedbuild.gnu.cpp.compiler.option.optimization.level.2141249460" name="Optimization Level" superClass="fr.ac6.managedbuild.gnu.cpp.compiler.option.optimization.level" useByScannerDiscovery="false" value="fr.ac6.managedbuild.gnu.cpp.optimization.level.debug" valueType="enumerated"/> |
||||||
<option id="gnu.cpp.compiler.option.debugging.level.254141418" name="Debug Level" superClass="gnu.cpp.compiler.option.debugging.level" useByScannerDiscovery="false" value="gnu.cpp.compiler.debugging.level.max" valueType="enumerated" /> |
<option id="gnu.cpp.compiler.option.debugging.level.254141418" name="Debug Level" superClass="gnu.cpp.compiler.option.debugging.level" useByScannerDiscovery="false" value="gnu.cpp.compiler.debugging.level.max" valueType="enumerated"/> |
||||||
<option id="gnu.cpp.compiler.option.include.paths.173295699" name="Include paths (-I)" superClass="gnu.cpp.compiler.option.include.paths" useByScannerDiscovery="false" valueType="includePath"> |
<option id="gnu.cpp.compiler.option.include.paths.173295699" name="Include paths (-I)" superClass="gnu.cpp.compiler.option.include.paths" useByScannerDiscovery="false" valueType="includePath"> |
||||||
<listOptionValue builtIn="false" value="../Inc" /> |
<listOptionValue builtIn="false" value="../Inc"/> |
||||||
<listOptionValue builtIn="false" value="../Drivers/STM32F1xx_HAL_Driver/Inc" /> |
<listOptionValue builtIn="false" value="../Drivers/STM32F1xx_HAL_Driver/Inc"/> |
||||||
<listOptionValue builtIn="false" value="../Drivers/STM32F1xx_HAL_Driver/Inc/Legacy" /> |
<listOptionValue builtIn="false" value="../Drivers/STM32F1xx_HAL_Driver/Inc/Legacy"/> |
||||||
<listOptionValue builtIn="false" value="../Drivers/CMSIS/Device/ST/STM32F1xx/Include" /> |
<listOptionValue builtIn="false" value="../Drivers/CMSIS/Device/ST/STM32F1xx/Include"/> |
||||||
<listOptionValue builtIn="false" value="../Drivers/CMSIS/Include" /> |
<listOptionValue builtIn="false" value="../Drivers/CMSIS/Include"/> |
||||||
<listOptionValue builtIn="false" value="../Middlewares/ST/STM32_USB_Device_Library/Core/Inc" /><listOptionValue builtIn="false" value="../Middlewares/ST/STM32_USB_Device_Library/Class/CDC/Inc" /></option> |
<listOptionValue builtIn="false" value="../Middlewares/ST/STM32_USB_Device_Library/Core/Inc"/> |
||||||
|
<listOptionValue builtIn="false" value="../Middlewares/ST/STM32_USB_Device_Library/Class/CDC/Inc"/> |
||||||
|
</option> |
||||||
<option id="gnu.cpp.compiler.option.preprocessor.def.774396895" name="Defined symbols (-D)" superClass="gnu.cpp.compiler.option.preprocessor.def" useByScannerDiscovery="false" valueType="definedSymbols"> |
<option id="gnu.cpp.compiler.option.preprocessor.def.774396895" name="Defined symbols (-D)" superClass="gnu.cpp.compiler.option.preprocessor.def" useByScannerDiscovery="false" valueType="definedSymbols"> |
||||||
<listOptionValue builtIn="false" value="__weak=__attribute__((weak))" /> |
<listOptionValue builtIn="false" value="__weak=__attribute__((weak))"/> |
||||||
<listOptionValue builtIn="false" value="__packed=__attribute__((__packed__))" /> |
<listOptionValue builtIn="false" value="__packed=__attribute__((__packed__))"/> |
||||||
<listOptionValue builtIn="false" value="USE_HAL_DRIVER" /> |
<listOptionValue builtIn="false" value="USE_HAL_DRIVER"/> |
||||||
<listOptionValue builtIn="false" value="STM32F103x6" /> |
<listOptionValue builtIn="false" value="STM32F103x6"/> |
||||||
</option> |
</option> |
||||||
<option id="fr.ac6.managedbuild.gnu.cpp.compiler.option.misc.other.784648708" name="Other flags" superClass="fr.ac6.managedbuild.gnu.cpp.compiler.option.misc.other" useByScannerDiscovery="false" value="-fmessage-length=0" valueType="string" /> |
<option id="fr.ac6.managedbuild.gnu.cpp.compiler.option.misc.other.784648708" name="Other flags" superClass="fr.ac6.managedbuild.gnu.cpp.compiler.option.misc.other" useByScannerDiscovery="false" value="-fmessage-length=0" valueType="string"/> |
||||||
<inputType id="fr.ac6.managedbuild.tool.gnu.cross.cpp.compiler.input.cpp.1955907036" superClass="fr.ac6.managedbuild.tool.gnu.cross.cpp.compiler.input.cpp" /> |
<inputType id="fr.ac6.managedbuild.tool.gnu.cross.cpp.compiler.input.cpp.1955907036" superClass="fr.ac6.managedbuild.tool.gnu.cross.cpp.compiler.input.cpp"/> |
||||||
<inputType id="fr.ac6.managedbuild.tool.gnu.cross.cpp.compiler.input.s.405723316" superClass="fr.ac6.managedbuild.tool.gnu.cross.cpp.compiler.input.s" /> |
<inputType id="fr.ac6.managedbuild.tool.gnu.cross.cpp.compiler.input.s.405723316" superClass="fr.ac6.managedbuild.tool.gnu.cross.cpp.compiler.input.s"/> |
||||||
</tool> |
</tool> |
||||||
<tool id="fr.ac6.managedbuild.tool.gnu.cross.c.linker.1253216400" name="MCU GCC Linker" superClass="fr.ac6.managedbuild.tool.gnu.cross.c.linker"> |
<tool id="fr.ac6.managedbuild.tool.gnu.cross.c.linker.1253216400" name="MCU GCC Linker" superClass="fr.ac6.managedbuild.tool.gnu.cross.c.linker"> |
||||||
<option id="fr.ac6.managedbuild.tool.gnu.cross.c.linker.script.1612069672" name="Linker Script (-T)" superClass="fr.ac6.managedbuild.tool.gnu.cross.c.linker.script" value="../STM32F103C6Tx_FLASH.ld" valueType="string" /> |
<option id="fr.ac6.managedbuild.tool.gnu.cross.c.linker.script.1612069672" name="Linker Script (-T)" superClass="fr.ac6.managedbuild.tool.gnu.cross.c.linker.script" useByScannerDiscovery="false" value="../STM32F103C8Tx_FLASH.ld" valueType="string"/> |
||||||
<option id="gnu.c.link.option.libs.494592533" name="Libraries (-l)" superClass="gnu.c.link.option.libs" /> |
<option id="gnu.c.link.option.libs.494592533" name="Libraries (-l)" superClass="gnu.c.link.option.libs" useByScannerDiscovery="false"/> |
||||||
<option id="gnu.c.link.option.paths.163418952" name="Library search path (-L)" superClass="gnu.c.link.option.paths" /> |
<option id="gnu.c.link.option.paths.163418952" name="Library search path (-L)" superClass="gnu.c.link.option.paths" useByScannerDiscovery="false"/> |
||||||
<option id="gnu.c.link.option.ldflags.2115865943" name="Linker flags" superClass="gnu.c.link.option.ldflags" value="-specs=nosys.specs -specs=nano.specs" valueType="string" /> |
<option id="gnu.c.link.option.ldflags.2115865943" name="Linker flags" superClass="gnu.c.link.option.ldflags" useByScannerDiscovery="false" value="-specs=nosys.specs -specs=nano.specs" valueType="string"/> |
||||||
<inputType id="cdt.managedbuild.tool.gnu.c.linker.input.52186680" superClass="cdt.managedbuild.tool.gnu.c.linker.input"> |
<inputType id="cdt.managedbuild.tool.gnu.c.linker.input.52186680" superClass="cdt.managedbuild.tool.gnu.c.linker.input"> |
||||||
<additionalInput kind="additionalinputdependency" paths="$(USER_OBJS)" /> |
<additionalInput kind="additionalinputdependency" paths="$(USER_OBJS)"/> |
||||||
<additionalInput kind="additionalinput" paths="$(LIBS)" /> |
<additionalInput kind="additionalinput" paths="$(LIBS)"/> |
||||||
</inputType> |
</inputType> |
||||||
</tool> |
</tool> |
||||||
<tool id="fr.ac6.managedbuild.tool.gnu.cross.cpp.linker.1951498786" name="MCU G++ Linker" superClass="fr.ac6.managedbuild.tool.gnu.cross.cpp.linker"> |
<tool id="fr.ac6.managedbuild.tool.gnu.cross.cpp.linker.1951498786" name="MCU G++ Linker" superClass="fr.ac6.managedbuild.tool.gnu.cross.cpp.linker"> |
||||||
<option id="fr.ac6.managedbuild.tool.gnu.cross.cpp.linker.script.1776615460" name="Linker Script (-T)" superClass="fr.ac6.managedbuild.tool.gnu.cross.cpp.linker.script" value="../STM32F103C6Tx_FLASH.ld" valueType="string" /> |
<option id="fr.ac6.managedbuild.tool.gnu.cross.cpp.linker.script.1776615460" name="Linker Script (-T)" superClass="fr.ac6.managedbuild.tool.gnu.cross.cpp.linker.script" value="../STM32F103C6Tx_FLASH.ld" valueType="string"/> |
||||||
<option id="gnu.cpp.link.option.libs.524027459" name="Libraries (-l)" superClass="gnu.cpp.link.option.libs" /> |
<option id="gnu.cpp.link.option.libs.524027459" name="Libraries (-l)" superClass="gnu.cpp.link.option.libs"/> |
||||||
<option id="gnu.cpp.link.option.paths.448513602" name="Library search path (-L)" superClass="gnu.cpp.link.option.paths" /> |
<option id="gnu.cpp.link.option.paths.448513602" name="Library search path (-L)" superClass="gnu.cpp.link.option.paths"/> |
||||||
<option id="gnu.cpp.link.option.flags.1466130767" name="Linker flags" superClass="gnu.cpp.link.option.flags" value="-specs=nosys.specs -specs=nano.specs" valueType="string" /> |
<option id="gnu.cpp.link.option.flags.1466130767" name="Linker flags" superClass="gnu.cpp.link.option.flags" value="-specs=nosys.specs -specs=nano.specs" valueType="string"/> |
||||||
<inputType id="cdt.managedbuild.tool.gnu.cpp.linker.input.2104324971" superClass="cdt.managedbuild.tool.gnu.cpp.linker.input"> |
<inputType id="cdt.managedbuild.tool.gnu.cpp.linker.input.2104324971" superClass="cdt.managedbuild.tool.gnu.cpp.linker.input"> |
||||||
<additionalInput kind="additionalinputdependency" paths="$(USER_OBJS)" /> |
<additionalInput kind="additionalinputdependency" paths="$(USER_OBJS)"/> |
||||||
<additionalInput kind="additionalinput" paths="$(LIBS)" /> |
<additionalInput kind="additionalinput" paths="$(LIBS)"/> |
||||||
</inputType> |
</inputType> |
||||||
</tool> |
</tool> |
||||||
<tool id="fr.ac6.managedbuild.tool.gnu.archiver.634197271" name="MCU GCC Archiver" superClass="fr.ac6.managedbuild.tool.gnu.archiver" /> |
<tool id="fr.ac6.managedbuild.tool.gnu.archiver.634197271" name="MCU GCC Archiver" superClass="fr.ac6.managedbuild.tool.gnu.archiver"/> |
||||||
<tool id="fr.ac6.managedbuild.tool.gnu.cross.assembler.1982737087" name="MCU GCC Assembler" superClass="fr.ac6.managedbuild.tool.gnu.cross.assembler"> |
<tool id="fr.ac6.managedbuild.tool.gnu.cross.assembler.1982737087" name="MCU GCC Assembler" superClass="fr.ac6.managedbuild.tool.gnu.cross.assembler"> |
||||||
<option id="gnu.both.asm.option.include.paths.999014772" name="Include paths (-I)" superClass="gnu.both.asm.option.include.paths" /> |
<option id="gnu.both.asm.option.include.paths.999014772" name="Include paths (-I)" superClass="gnu.both.asm.option.include.paths" useByScannerDiscovery="false"/> |
||||||
<inputType id="cdt.managedbuild.tool.gnu.assembler.input.25490237" superClass="cdt.managedbuild.tool.gnu.assembler.input" /> |
<inputType id="cdt.managedbuild.tool.gnu.assembler.input.25490237" superClass="cdt.managedbuild.tool.gnu.assembler.input"/> |
||||||
<inputType id="fr.ac6.managedbuild.tool.gnu.cross.assembler.input.967035064" superClass="fr.ac6.managedbuild.tool.gnu.cross.assembler.input" /> |
<inputType id="fr.ac6.managedbuild.tool.gnu.cross.assembler.input.967035064" superClass="fr.ac6.managedbuild.tool.gnu.cross.assembler.input"/> |
||||||
</tool> |
</tool> |
||||||
</toolChain> |
</toolChain> |
||||||
</folderInfo> |
</folderInfo> |
||||||
<sourceEntries><entry flags="VALUE_WORKSPACE_PATH|RESOLVED" kind="sourcePath" name="Middlewares" /> |
<sourceEntries> |
||||||
<entry flags="VALUE_WORKSPACE_PATH|RESOLVED" kind="sourcePath" name="startup" /> |
<entry flags="VALUE_WORKSPACE_PATH|RESOLVED" kind="sourcePath" name="Middlewares"/> |
||||||
<entry flags="VALUE_WORKSPACE_PATH|RESOLVED" kind="sourcePath" name="Drivers" /> |
<entry flags="VALUE_WORKSPACE_PATH|RESOLVED" kind="sourcePath" name="startup"/> |
||||||
<entry flags="VALUE_WORKSPACE_PATH|RESOLVED" kind="sourcePath" name="Src" /> |
<entry flags="VALUE_WORKSPACE_PATH|RESOLVED" kind="sourcePath" name="Drivers"/> |
||||||
<entry flags="VALUE_WORKSPACE_PATH|RESOLVED" kind="sourcePath" name="Inc" /> |
<entry flags="VALUE_WORKSPACE_PATH|RESOLVED" kind="sourcePath" name="Src"/> |
||||||
|
<entry flags="VALUE_WORKSPACE_PATH|RESOLVED" kind="sourcePath" name="Inc"/> |
||||||
</sourceEntries> |
</sourceEntries> |
||||||
</configuration> |
</configuration> |
||||||
</storageModule> |
</storageModule> |
||||||
<storageModule moduleId="org.eclipse.cdt.core.externalSettings" /> |
<storageModule moduleId="org.eclipse.cdt.core.externalSettings"/> |
||||||
</cconfiguration> |
</cconfiguration> |
||||||
<cconfiguration id="fr.ac6.managedbuild.config.gnu.cross.exe.release.692171780"> |
<cconfiguration id="fr.ac6.managedbuild.config.gnu.cross.exe.release.692171780"> |
||||||
<storageModule buildSystemId="org.eclipse.cdt.managedbuilder.core.configurationDataProvider" id="fr.ac6.managedbuild.config.gnu.cross.exe.release.692171780" moduleId="org.eclipse.cdt.core.settings" name="Release"> |
<storageModule buildSystemId="org.eclipse.cdt.managedbuilder.core.configurationDataProvider" id="fr.ac6.managedbuild.config.gnu.cross.exe.release.692171780" moduleId="org.eclipse.cdt.core.settings" name="Release"> |
||||||
<externalSettings /> |
<externalSettings/> |
||||||
<extensions> |
<extensions> |
||||||
<extension id="org.eclipse.cdt.core.ELF" point="org.eclipse.cdt.core.BinaryParser" /> |
<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.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.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.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.CWDLocator" point="org.eclipse.cdt.core.ErrorParser"/> |
||||||
<extension id="org.eclipse.cdt.core.GCCErrorParser" point="org.eclipse.cdt.core.ErrorParser" /> |
<extension id="org.eclipse.cdt.core.GCCErrorParser" point="org.eclipse.cdt.core.ErrorParser"/> |
||||||
</extensions> |
</extensions> |
||||||
</storageModule> |
</storageModule> |
||||||
<storageModule moduleId="cdtBuildSystem" version="4.0.0"> |
<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="fr.ac6.managedbuild.config.gnu.cross.exe.release.692171780" name="Release" parent="fr.ac6.managedbuild.config.gnu.cross.exe.release" postannouncebuildStep="Generating hex and Printing size information:" postbuildStep="arm-none-eabi-objcopy -O ihex "${BuildArtifactFileBaseName}.elf" "${BuildArtifactFileBaseName}.hex" && arm-none-eabi-size "${BuildArtifactFileName}""> |
<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="fr.ac6.managedbuild.config.gnu.cross.exe.release.692171780" name="Release" parent="fr.ac6.managedbuild.config.gnu.cross.exe.release" postannouncebuildStep="Generating hex and Printing size information:" postbuildStep="arm-none-eabi-objcopy -O ihex "${BuildArtifactFileBaseName}.elf" "${BuildArtifactFileBaseName}.hex" && arm-none-eabi-size "${BuildArtifactFileName}""> |
||||||
<folderInfo id="fr.ac6.managedbuild.config.gnu.cross.exe.release.692171780." name="/" resourcePath=""> |
<folderInfo id="fr.ac6.managedbuild.config.gnu.cross.exe.release.692171780." name="/" resourcePath=""> |
||||||
<toolChain id="fr.ac6.managedbuild.toolchain.gnu.cross.exe.release.1252439690" name="Ac6 STM32 MCU GCC" superClass="fr.ac6.managedbuild.toolchain.gnu.cross.exe.release"> |
<toolChain id="fr.ac6.managedbuild.toolchain.gnu.cross.exe.release.1252439690" name="Ac6 STM32 MCU GCC" superClass="fr.ac6.managedbuild.toolchain.gnu.cross.exe.release"> |
||||||
<option id="fr.ac6.managedbuild.option.gnu.cross.prefix.670043782" name="Prefix" superClass="fr.ac6.managedbuild.option.gnu.cross.prefix" value="arm-none-eabi-" valueType="string" /> |
<option id="fr.ac6.managedbuild.option.gnu.cross.prefix.670043782" name="Prefix" superClass="fr.ac6.managedbuild.option.gnu.cross.prefix" value="arm-none-eabi-" valueType="string"/> |
||||||
<option id="fr.ac6.managedbuild.option.gnu.cross.mcu.246290918" name="Mcu" superClass="fr.ac6.managedbuild.option.gnu.cross.mcu" value="STM32F103C6Tx" valueType="string" /> |
<option id="fr.ac6.managedbuild.option.gnu.cross.mcu.246290918" name="Mcu" superClass="fr.ac6.managedbuild.option.gnu.cross.mcu" value="STM32F103C6Tx" valueType="string"/> |
||||||
<option id="fr.ac6.managedbuild.option.gnu.cross.board.351273785" name="Board" superClass="fr.ac6.managedbuild.option.gnu.cross.board" value="WS2812B" valueType="string" /> |
<option id="fr.ac6.managedbuild.option.gnu.cross.board.351273785" name="Board" superClass="fr.ac6.managedbuild.option.gnu.cross.board" value="WS2812B" valueType="string"/> |
||||||
<option id="fr.ac6.managedbuild.option.gnu.cross.instructionSet.2096351029" name="Instruction Set" superClass="fr.ac6.managedbuild.option.gnu.cross.instructionSet" value="fr.ac6.managedbuild.option.gnu.cross.instructionSet.thumbII" valueType="enumerated" /> |
<option id="fr.ac6.managedbuild.option.gnu.cross.instructionSet.2096351029" name="Instruction Set" superClass="fr.ac6.managedbuild.option.gnu.cross.instructionSet" value="fr.ac6.managedbuild.option.gnu.cross.instructionSet.thumbII" valueType="enumerated"/> |
||||||
<option id="fr.ac6.managedbuild.option.gnu.cross.fpu.1085009536" name="Floating point hardware" superClass="fr.ac6.managedbuild.option.gnu.cross.fpu" value="fr.ac6.managedbuild.option.gnu.cross.fpu.no" valueType="enumerated" /> |
<option id="fr.ac6.managedbuild.option.gnu.cross.fpu.1085009536" name="Floating point hardware" superClass="fr.ac6.managedbuild.option.gnu.cross.fpu" value="fr.ac6.managedbuild.option.gnu.cross.fpu.no" valueType="enumerated"/> |
||||||
<option id="fr.ac6.managedbuild.option.gnu.cross.floatabi.1977247305" name="Floating-point ABI" superClass="fr.ac6.managedbuild.option.gnu.cross.floatabi" value="fr.ac6.managedbuild.option.gnu.cross.floatabi.soft" valueType="enumerated" /> |
<option id="fr.ac6.managedbuild.option.gnu.cross.floatabi.1977247305" name="Floating-point ABI" superClass="fr.ac6.managedbuild.option.gnu.cross.floatabi" value="fr.ac6.managedbuild.option.gnu.cross.floatabi.soft" valueType="enumerated"/> |
||||||
<targetPlatform archList="all" binaryParser="org.eclipse.cdt.core.ELF" id="fr.ac6.managedbuild.targetPlatform.gnu.cross.1564318056" isAbstract="false" osList="all" superClass="fr.ac6.managedbuild.targetPlatform.gnu.cross" /> |
<targetPlatform archList="all" binaryParser="org.eclipse.cdt.core.ELF" id="fr.ac6.managedbuild.targetPlatform.gnu.cross.1564318056" isAbstract="false" osList="all" superClass="fr.ac6.managedbuild.targetPlatform.gnu.cross"/> |
||||||
<builder buildPath="${workspace_loc:/WS2812B}/Release" id="fr.ac6.managedbuild.builder.gnu.cross.2081164898" keepEnvironmentInBuildfile="false" managedBuildOn="true" name="Gnu Make Builder" superClass="fr.ac6.managedbuild.builder.gnu.cross"> |
<builder buildPath="${workspace_loc:/WS2812B}/Release" id="fr.ac6.managedbuild.builder.gnu.cross.2081164898" keepEnvironmentInBuildfile="false" managedBuildOn="true" name="Gnu Make Builder" superClass="fr.ac6.managedbuild.builder.gnu.cross"> |
||||||
<outputEntries> |
<outputEntries> |
||||||
<entry flags="VALUE_WORKSPACE_PATH|RESOLVED" kind="outputPath" name="Release" /> |
<entry flags="VALUE_WORKSPACE_PATH|RESOLVED" kind="outputPath" name="Release"/> |
||||||
</outputEntries> |
</outputEntries> |
||||||
</builder> |
</builder> |
||||||
<tool id="fr.ac6.managedbuild.tool.gnu.cross.c.compiler.47172157" name="MCU GCC Compiler" superClass="fr.ac6.managedbuild.tool.gnu.cross.c.compiler"> |
<tool id="fr.ac6.managedbuild.tool.gnu.cross.c.compiler.47172157" name="MCU GCC Compiler" superClass="fr.ac6.managedbuild.tool.gnu.cross.c.compiler"> |
||||||
<option defaultValue="gnu.c.optimization.level.none" id="fr.ac6.managedbuild.gnu.c.compiler.option.optimization.level.1123938333" name="Optimization Level" superClass="fr.ac6.managedbuild.gnu.c.compiler.option.optimization.level" useByScannerDiscovery="false" value="fr.ac6.managedbuild.gnu.c.optimization.level.debug" valueType="enumerated" /> |
<option defaultValue="gnu.c.optimization.level.none" id="fr.ac6.managedbuild.gnu.c.compiler.option.optimization.level.1123938333" name="Optimization Level" superClass="fr.ac6.managedbuild.gnu.c.compiler.option.optimization.level" useByScannerDiscovery="false" value="fr.ac6.managedbuild.gnu.c.optimization.level.debug" valueType="enumerated"/> |
||||||
<option id="gnu.c.compiler.option.debugging.level.2095774341" name="Debug Level" superClass="gnu.c.compiler.option.debugging.level" useByScannerDiscovery="false" value="gnu.c.debugging.level.max" valueType="enumerated" /> |
<option id="gnu.c.compiler.option.debugging.level.2095774341" name="Debug Level" superClass="gnu.c.compiler.option.debugging.level" useByScannerDiscovery="false" value="gnu.c.debugging.level.max" valueType="enumerated"/> |
||||||
<option id="gnu.c.compiler.option.include.paths.921716932" name="Include paths (-I)" superClass="gnu.c.compiler.option.include.paths" useByScannerDiscovery="false" valueType="includePath"> |
<option id="gnu.c.compiler.option.include.paths.921716932" name="Include paths (-I)" superClass="gnu.c.compiler.option.include.paths" useByScannerDiscovery="false" valueType="includePath"> |
||||||
<listOptionValue builtIn="false" value="../Inc" /> |
<listOptionValue builtIn="false" value="../Inc"/> |
||||||
<listOptionValue builtIn="false" value="../Drivers/STM32F1xx_HAL_Driver/Inc" /> |
<listOptionValue builtIn="false" value="../Drivers/STM32F1xx_HAL_Driver/Inc"/> |
||||||
<listOptionValue builtIn="false" value="../Drivers/STM32F1xx_HAL_Driver/Inc/Legacy" /> |
<listOptionValue builtIn="false" value="../Drivers/STM32F1xx_HAL_Driver/Inc/Legacy"/> |
||||||
<listOptionValue builtIn="false" value="../Drivers/CMSIS/Device/ST/STM32F1xx/Include" /> |
<listOptionValue builtIn="false" value="../Drivers/CMSIS/Device/ST/STM32F1xx/Include"/> |
||||||
<listOptionValue builtIn="false" value="../Drivers/CMSIS/Include" /> |
<listOptionValue builtIn="false" value="../Drivers/CMSIS/Include"/> |
||||||
<listOptionValue builtIn="false" value="../Middlewares/ST/STM32_USB_Device_Library/Core/Inc" /><listOptionValue builtIn="false" value="../Middlewares/ST/STM32_USB_Device_Library/Class/CDC/Inc" /></option> |
<listOptionValue builtIn="false" value="../Middlewares/ST/STM32_USB_Device_Library/Core/Inc"/> |
||||||
|
<listOptionValue builtIn="false" value="../Middlewares/ST/STM32_USB_Device_Library/Class/CDC/Inc"/> |
||||||
|
</option> |
||||||
<option id="gnu.c.compiler.option.preprocessor.def.symbols.1717974601" name="Defined symbols (-D)" superClass="gnu.c.compiler.option.preprocessor.def.symbols" useByScannerDiscovery="false" valueType="definedSymbols"> |
<option id="gnu.c.compiler.option.preprocessor.def.symbols.1717974601" name="Defined symbols (-D)" superClass="gnu.c.compiler.option.preprocessor.def.symbols" useByScannerDiscovery="false" valueType="definedSymbols"> |
||||||
<listOptionValue builtIn="false" value="__weak=__attribute__((weak))" /> |
<listOptionValue builtIn="false" value="__weak=__attribute__((weak))"/> |
||||||
<listOptionValue builtIn="false" value="__packed=__attribute__((__packed__))" /> |
<listOptionValue builtIn="false" value="__packed=__attribute__((__packed__))"/> |
||||||
<listOptionValue builtIn="false" value="USE_HAL_DRIVER" /> |
<listOptionValue builtIn="false" value="USE_HAL_DRIVER"/> |
||||||
<listOptionValue builtIn="false" value="STM32F103x6" /> |
<listOptionValue builtIn="false" value="STM32F103x6"/> |
||||||
</option> |
</option> |
||||||
<option id="fr.ac6.managedbuild.gnu.c.compiler.option.misc.other.1743948240" superClass="fr.ac6.managedbuild.gnu.c.compiler.option.misc.other" useByScannerDiscovery="false" value="-fmessage-length=0" valueType="string" /> |
<option id="fr.ac6.managedbuild.gnu.c.compiler.option.misc.other.1743948240" superClass="fr.ac6.managedbuild.gnu.c.compiler.option.misc.other" useByScannerDiscovery="false" value="-fmessage-length=0" valueType="string"/> |
||||||
<inputType id="fr.ac6.managedbuild.tool.gnu.cross.c.compiler.input.c.888179832" superClass="fr.ac6.managedbuild.tool.gnu.cross.c.compiler.input.c" /> |
<inputType id="fr.ac6.managedbuild.tool.gnu.cross.c.compiler.input.c.888179832" superClass="fr.ac6.managedbuild.tool.gnu.cross.c.compiler.input.c"/> |
||||||
<inputType id="fr.ac6.managedbuild.tool.gnu.cross.c.compiler.input.s.1757015330" superClass="fr.ac6.managedbuild.tool.gnu.cross.c.compiler.input.s" /> |
<inputType id="fr.ac6.managedbuild.tool.gnu.cross.c.compiler.input.s.1757015330" superClass="fr.ac6.managedbuild.tool.gnu.cross.c.compiler.input.s"/> |
||||||
</tool> |
</tool> |
||||||
<tool id="fr.ac6.managedbuild.tool.gnu.cross.cpp.compiler.164378511" name="MCU G++ Compiler" superClass="fr.ac6.managedbuild.tool.gnu.cross.cpp.compiler"> |
<tool id="fr.ac6.managedbuild.tool.gnu.cross.cpp.compiler.164378511" name="MCU G++ Compiler" superClass="fr.ac6.managedbuild.tool.gnu.cross.cpp.compiler"> |
||||||
<option defaultValue="gnu.cpp.optimization.level.none" id="fr.ac6.managedbuild.gnu.cpp.compiler.option.optimization.level.2141249460" name="Optimization Level" superClass="fr.ac6.managedbuild.gnu.cpp.compiler.option.optimization.level" useByScannerDiscovery="false" value="fr.ac6.managedbuild.gnu.cpp.optimization.level.debug" valueType="enumerated" /> |
<option defaultValue="gnu.cpp.optimization.level.none" id="fr.ac6.managedbuild.gnu.cpp.compiler.option.optimization.level.2141249460" name="Optimization Level" superClass="fr.ac6.managedbuild.gnu.cpp.compiler.option.optimization.level" useByScannerDiscovery="false" value="fr.ac6.managedbuild.gnu.cpp.optimization.level.debug" valueType="enumerated"/> |
||||||
<option id="gnu.cpp.compiler.option.debugging.level.254141418" name="Debug Level" superClass="gnu.cpp.compiler.option.debugging.level" useByScannerDiscovery="false" value="gnu.cpp.debugging.level.max" valueType="enumerated" /> |
<option id="gnu.cpp.compiler.option.debugging.level.254141418" name="Debug Level" superClass="gnu.cpp.compiler.option.debugging.level" useByScannerDiscovery="false" value="gnu.cpp.debugging.level.max" valueType="enumerated"/> |
||||||
<option id="gnu.cpp.compiler.option.include.paths.173295699" name="Include paths (-I)" superClass="gnu.cpp.compiler.option.include.paths" useByScannerDiscovery="false" valueType="includePath"> |
<option id="gnu.cpp.compiler.option.include.paths.173295699" name="Include paths (-I)" superClass="gnu.cpp.compiler.option.include.paths" useByScannerDiscovery="false" valueType="includePath"> |
||||||
<listOptionValue builtIn="false" value="../Inc" /> |
<listOptionValue builtIn="false" value="../Inc"/> |
||||||
<listOptionValue builtIn="false" value="../Drivers/STM32F1xx_HAL_Driver/Inc" /> |
<listOptionValue builtIn="false" value="../Drivers/STM32F1xx_HAL_Driver/Inc"/> |
||||||
<listOptionValue builtIn="false" value="../Drivers/STM32F1xx_HAL_Driver/Inc/Legacy" /> |
<listOptionValue builtIn="false" value="../Drivers/STM32F1xx_HAL_Driver/Inc/Legacy"/> |
||||||
<listOptionValue builtIn="false" value="../Drivers/CMSIS/Device/ST/STM32F1xx/Include" /> |
<listOptionValue builtIn="false" value="../Drivers/CMSIS/Device/ST/STM32F1xx/Include"/> |
||||||
<listOptionValue builtIn="false" value="../Drivers/CMSIS/Include" /> |
<listOptionValue builtIn="false" value="../Drivers/CMSIS/Include"/> |
||||||
<listOptionValue builtIn="false" value="../Middlewares/ST/STM32_USB_Device_Library/Core/Inc" /><listOptionValue builtIn="false" value="../Middlewares/ST/STM32_USB_Device_Library/Class/CDC/Inc" /></option> |
<listOptionValue builtIn="false" value="../Middlewares/ST/STM32_USB_Device_Library/Core/Inc"/> |
||||||
|
<listOptionValue builtIn="false" value="../Middlewares/ST/STM32_USB_Device_Library/Class/CDC/Inc"/> |
||||||
|
</option> |
||||||
<option id="gnu.cpp.compiler.option.preprocessor.def.symbols.946755431" name="Defined symbols (-D)" superClass="gnu.cpp.compiler.option.preprocessor.def.symbols" useByScannerDiscovery="false" valueType="definedSymbols"> |
<option id="gnu.cpp.compiler.option.preprocessor.def.symbols.946755431" name="Defined symbols (-D)" superClass="gnu.cpp.compiler.option.preprocessor.def.symbols" useByScannerDiscovery="false" valueType="definedSymbols"> |
||||||
<listOptionValue builtIn="false" value="__weak=__attribute__((weak))" /> |
<listOptionValue builtIn="false" value="__weak=__attribute__((weak))"/> |
||||||
<listOptionValue builtIn="false" value="__packed=__attribute__((__packed__))" /> |
<listOptionValue builtIn="false" value="__packed=__attribute__((__packed__))"/> |
||||||
<listOptionValue builtIn="false" value="USE_HAL_DRIVER" /> |
<listOptionValue builtIn="false" value="USE_HAL_DRIVER"/> |
||||||
<listOptionValue builtIn="false" value="STM32F103x6" /> |
<listOptionValue builtIn="false" value="STM32F103x6"/> |
||||||
</option> |
</option> |
||||||
<option id="fr.ac6.managedbuild.gnu.cpp.compiler.option.misc.other.784648708" name="Other flags" superClass="fr.ac6.managedbuild.gnu.cpp.compiler.option.misc.other" useByScannerDiscovery="false" value="-fmessage-length=0" valueType="string" /> |
<option id="fr.ac6.managedbuild.gnu.cpp.compiler.option.misc.other.784648708" name="Other flags" superClass="fr.ac6.managedbuild.gnu.cpp.compiler.option.misc.other" useByScannerDiscovery="false" value="-fmessage-length=0" valueType="string"/> |
||||||
<inputType id="fr.ac6.managedbuild.tool.gnu.cross.cpp.compiler.input.cpp.1955907036" superClass="fr.ac6.managedbuild.tool.gnu.cross.cpp.compiler.input.cpp" /> |
<inputType id="fr.ac6.managedbuild.tool.gnu.cross.cpp.compiler.input.cpp.1955907036" superClass="fr.ac6.managedbuild.tool.gnu.cross.cpp.compiler.input.cpp"/> |
||||||
<inputType id="fr.ac6.managedbuild.tool.gnu.cross.cpp.compiler.input.s.405723316" superClass="fr.ac6.managedbuild.tool.gnu.cross.cpp.compiler.input.s" /> |
<inputType id="fr.ac6.managedbuild.tool.gnu.cross.cpp.compiler.input.s.405723316" superClass="fr.ac6.managedbuild.tool.gnu.cross.cpp.compiler.input.s"/> |
||||||
</tool> |
</tool> |
||||||
<tool id="fr.ac6.managedbuild.tool.gnu.cross.c.linker.1253216400" name="MCU GCC Linker" superClass="fr.ac6.managedbuild.tool.gnu.cross.c.linker"> |
<tool id="fr.ac6.managedbuild.tool.gnu.cross.c.linker.1253216400" name="MCU GCC Linker" superClass="fr.ac6.managedbuild.tool.gnu.cross.c.linker"> |
||||||
<option id="fr.ac6.managedbuild.tool.gnu.cross.c.linker.script.1612069672" name="Linker Script (-T)" superClass="fr.ac6.managedbuild.tool.gnu.cross.c.linker.script" value="../STM32F103C6Tx_FLASH.ld" valueType="string" /> |
<option id="fr.ac6.managedbuild.tool.gnu.cross.c.linker.script.1612069672" name="Linker Script (-T)" superClass="fr.ac6.managedbuild.tool.gnu.cross.c.linker.script" value="../STM32F103C6Tx_FLASH.ld" valueType="string"/> |
||||||
<option id="gnu.c.link.option.libs.494592533" name="Libraries (-l)" superClass="gnu.c.link.option.libs" /> |
<option id="gnu.c.link.option.libs.494592533" name="Libraries (-l)" superClass="gnu.c.link.option.libs"/> |
||||||
<option id="gnu.c.link.option.paths.163418952" name="Library search path (-L)" superClass="gnu.c.link.option.paths" /> |
<option id="gnu.c.link.option.paths.163418952" name="Library search path (-L)" superClass="gnu.c.link.option.paths"/> |
||||||
<option id="gnu.c.link.option.ldflags.2115865943" name="Linker flags" superClass="gnu.c.link.option.ldflags" value="-specs=nosys.specs -specs=nano.specs" valueType="string" /> |
<option id="gnu.c.link.option.ldflags.2115865943" name="Linker flags" superClass="gnu.c.link.option.ldflags" value="-specs=nosys.specs -specs=nano.specs" valueType="string"/> |
||||||
<inputType id="cdt.managedbuild.tool.gnu.c.linker.input.52186680" superClass="cdt.managedbuild.tool.gnu.c.linker.input"> |
<inputType id="cdt.managedbuild.tool.gnu.c.linker.input.52186680" superClass="cdt.managedbuild.tool.gnu.c.linker.input"> |
||||||
<additionalInput kind="additionalinputdependency" paths="$(USER_OBJS)" /> |
<additionalInput kind="additionalinputdependency" paths="$(USER_OBJS)"/> |
||||||
<additionalInput kind="additionalinput" paths="$(LIBS)" /> |
<additionalInput kind="additionalinput" paths="$(LIBS)"/> |
||||||
</inputType> |
</inputType> |
||||||
</tool> |
</tool> |
||||||
<tool id="fr.ac6.managedbuild.tool.gnu.cross.cpp.linker.1951498786" name="MCU G++ Linker" superClass="fr.ac6.managedbuild.tool.gnu.cross.cpp.linker"> |
<tool id="fr.ac6.managedbuild.tool.gnu.cross.cpp.linker.1951498786" name="MCU G++ Linker" superClass="fr.ac6.managedbuild.tool.gnu.cross.cpp.linker"> |
||||||
<option id="fr.ac6.managedbuild.tool.gnu.cross.cpp.linker.script.1776615460" name="Linker Script (-T)" superClass="fr.ac6.managedbuild.tool.gnu.cross.cpp.linker.script" value="../STM32F103C6Tx_FLASH.ld" valueType="string" /> |
<option id="fr.ac6.managedbuild.tool.gnu.cross.cpp.linker.script.1776615460" name="Linker Script (-T)" superClass="fr.ac6.managedbuild.tool.gnu.cross.cpp.linker.script" value="../STM32F103C6Tx_FLASH.ld" valueType="string"/> |
||||||
<option id="gnu.cpp.link.option.libs.524027459" name="Libraries (-l)" superClass="gnu.cpp.link.option.libs" /> |
<option id="gnu.cpp.link.option.libs.524027459" name="Libraries (-l)" superClass="gnu.cpp.link.option.libs"/> |
||||||
<option id="gnu.cpp.link.option.paths.448513602" name="Library search path (-L)" superClass="gnu.cpp.link.option.paths" /> |
<option id="gnu.cpp.link.option.paths.448513602" name="Library search path (-L)" superClass="gnu.cpp.link.option.paths"/> |
||||||
<option id="gnu.cpp.link.option.ldflags.1250178855" superClass="gnu.cpp.link.option.ldflags" value="-specs=nosys.specs -specs=nano.specs" valueType="string" /> |
<option id="gnu.cpp.link.option.ldflags.1250178855" superClass="gnu.cpp.link.option.ldflags" value="-specs=nosys.specs -specs=nano.specs" valueType="string"/> |
||||||
<inputType id="cdt.managedbuild.tool.gnu.cpp.linker.input.2104324971" superClass="cdt.managedbuild.tool.gnu.cpp.linker.input"> |
<inputType id="cdt.managedbuild.tool.gnu.cpp.linker.input.2104324971" superClass="cdt.managedbuild.tool.gnu.cpp.linker.input"> |
||||||
<additionalInput kind="additionalinputdependency" paths="$(USER_OBJS)" /> |
<additionalInput kind="additionalinputdependency" paths="$(USER_OBJS)"/> |
||||||
<additionalInput kind="additionalinput" paths="$(LIBS)" /> |
<additionalInput kind="additionalinput" paths="$(LIBS)"/> |
||||||
</inputType> |
</inputType> |
||||||
</tool> |
</tool> |
||||||
<tool id="fr.ac6.managedbuild.tool.gnu.archiver.634197271" name="MCU GCC Archiver" superClass="fr.ac6.managedbuild.tool.gnu.archiver" /> |
<tool id="fr.ac6.managedbuild.tool.gnu.archiver.634197271" name="MCU GCC Archiver" superClass="fr.ac6.managedbuild.tool.gnu.archiver"/> |
||||||
<tool id="fr.ac6.managedbuild.tool.gnu.cross.assembler.exe.release.111181173" name="MCU GCC Assembler" superClass="fr.ac6.managedbuild.tool.gnu.cross.assembler.exe.release"> |
<tool id="fr.ac6.managedbuild.tool.gnu.cross.assembler.exe.release.111181173" name="MCU GCC Assembler" superClass="fr.ac6.managedbuild.tool.gnu.cross.assembler.exe.release"> |
||||||
<option id="gnu.both.asm.option.include.paths.999014772" name="Include paths (-I)" superClass="gnu.both.asm.option.include.paths" /> |
<option id="gnu.both.asm.option.include.paths.999014772" name="Include paths (-I)" superClass="gnu.both.asm.option.include.paths"/> |
||||||
<inputType id="cdt.managedbuild.tool.gnu.assembler.input.25490237" superClass="cdt.managedbuild.tool.gnu.assembler.input" /> |
<inputType id="cdt.managedbuild.tool.gnu.assembler.input.25490237" superClass="cdt.managedbuild.tool.gnu.assembler.input"/> |
||||||
<inputType id="fr.ac6.managedbuild.tool.gnu.cross.assembler.input.967035064" superClass="fr.ac6.managedbuild.tool.gnu.cross.assembler.input" /> |
<inputType id="fr.ac6.managedbuild.tool.gnu.cross.assembler.input.967035064" superClass="fr.ac6.managedbuild.tool.gnu.cross.assembler.input"/> |
||||||
</tool> |
</tool> |
||||||
</toolChain> |
</toolChain> |
||||||
</folderInfo> |
</folderInfo> |
||||||
<sourceEntries><entry flags="VALUE_WORKSPACE_PATH|RESOLVED" kind="sourcePath" name="Middlewares" /> |
<sourceEntries> |
||||||
<entry flags="VALUE_WORKSPACE_PATH|RESOLVED" kind="sourcePath" name="startup" /> |
<entry flags="VALUE_WORKSPACE_PATH|RESOLVED" kind="sourcePath" name="Middlewares"/> |
||||||
<entry flags="VALUE_WORKSPACE_PATH|RESOLVED" kind="sourcePath" name="Drivers" /> |
<entry flags="VALUE_WORKSPACE_PATH|RESOLVED" kind="sourcePath" name="startup"/> |
||||||
<entry flags="VALUE_WORKSPACE_PATH|RESOLVED" kind="sourcePath" name="Src" /> |
<entry flags="VALUE_WORKSPACE_PATH|RESOLVED" kind="sourcePath" name="Drivers"/> |
||||||
<entry flags="VALUE_WORKSPACE_PATH|RESOLVED" kind="sourcePath" name="Inc" /> |
<entry flags="VALUE_WORKSPACE_PATH|RESOLVED" kind="sourcePath" name="Src"/> |
||||||
|
<entry flags="VALUE_WORKSPACE_PATH|RESOLVED" kind="sourcePath" name="Inc"/> |
||||||
</sourceEntries> |
</sourceEntries> |
||||||
</configuration> |
</configuration> |
||||||
</storageModule> |
</storageModule> |
||||||
<storageModule moduleId="org.eclipse.cdt.core.externalSettings" /> |
<storageModule moduleId="org.eclipse.cdt.core.externalSettings"/> |
||||||
</cconfiguration> |
</cconfiguration> |
||||||
</storageModule> |
</storageModule> |
||||||
<storageModule moduleId="cdtBuildSystem" version="4.0.0"> |
<storageModule moduleId="cdtBuildSystem" version="4.0.0"> |
||||||
<project id="WS2812B.fr.ac6.managedbuild.target.gnu.cross.exe.1201975271" name="Executable" projectType="fr.ac6.managedbuild.target.gnu.cross.exe" /> |
<project id="WS2812B.fr.ac6.managedbuild.target.gnu.cross.exe.1201975271" name="Executable" projectType="fr.ac6.managedbuild.target.gnu.cross.exe"/> |
||||||
</storageModule> |
</storageModule> |
||||||
<storageModule moduleId="scannerConfiguration"> |
<storageModule moduleId="scannerConfiguration"> |
||||||
<autodiscovery enabled="true" problemReportingEnabled="true" selectedProfileId="" /> |
<autodiscovery enabled="true" problemReportingEnabled="true" selectedProfileId=""/> |
||||||
<scannerConfigBuildInfo instanceId="fr.ac6.managedbuild.config.gnu.cross.exe.debug.1837977868;fr.ac6.managedbuild.config.gnu.cross.exe.debug.1837977868.;fr.ac6.managedbuild.tool.gnu.cross.c.compiler.47172157;fr.ac6.managedbuild.tool.gnu.cross.c.compiler.input.c.888179832"> |
<scannerConfigBuildInfo instanceId="fr.ac6.managedbuild.config.gnu.cross.exe.debug.1837977868;fr.ac6.managedbuild.config.gnu.cross.exe.debug.1837977868.;fr.ac6.managedbuild.tool.gnu.cross.c.compiler.47172157;fr.ac6.managedbuild.tool.gnu.cross.c.compiler.input.c.888179832"> |
||||||
<autodiscovery enabled="false" problemReportingEnabled="true" selectedProfileId="" /> |
<autodiscovery enabled="false" problemReportingEnabled="true" selectedProfileId=""/> |
||||||
</scannerConfigBuildInfo> |
</scannerConfigBuildInfo> |
||||||
</storageModule> |
</storageModule> |
||||||
<storageModule moduleId="org.eclipse.cdt.core.LanguageSettingsProviders" /> |
<storageModule moduleId="org.eclipse.cdt.core.LanguageSettingsProviders"/> |
||||||
<storageModule moduleId="refreshScope" versionNumber="2"> |
<storageModule moduleId="refreshScope" versionNumber="2"> |
||||||
<configuration configurationName="Debug"> |
<configuration configurationName="Debug"> |
||||||
<resource resourceType="PROJECT" workspacePath="WS2812B" /> |
<resource resourceType="PROJECT" workspacePath="WS2812B"/> |
||||||
</configuration> |
</configuration> |
||||||
<configuration configurationName="Release" /> |
<configuration configurationName="Release"/> |
||||||
</storageModule> |
</storageModule> |
||||||
<storageModule moduleId="org.eclipse.cdt.make.core.buildtargets" /> |
<storageModule moduleId="org.eclipse.cdt.make.core.buildtargets"/> |
||||||
</cproject> |
</cproject> |
||||||
|
@ -0,0 +1,16 @@ |
|||||||
|
/*
|
||||||
|
* usb_parsing.h |
||||||
|
* |
||||||
|
* The MIT License. |
||||||
|
* Created on: 15.11.2018 |
||||||
|
* Author: Mateusz Salamon |
||||||
|
* www.msalamon.pl |
||||||
|
* mateusz@msalamon.pl |
||||||
|
*/ |
||||||
|
|
||||||
|
#ifndef USB_PARSING_H_ |
||||||
|
#define USB_PARSING_H_ |
||||||
|
|
||||||
|
void USB_Parsing(void); |
||||||
|
|
||||||
|
#endif /* USB_PARSING_H_ */ |
@ -0,0 +1,313 @@ |
|||||||
|
/*
|
||||||
|
* usb_parsing.c |
||||||
|
* |
||||||
|
* The MIT License. |
||||||
|
* Created on: 15.11.2018 |
||||||
|
* Author: Mateusz Salamon |
||||||
|
* www.msalamon.pl |
||||||
|
* mateusz@msalamon.pl |
||||||
|
*/ |
||||||
|
|
||||||
|
#include "stm32f1xx_hal.h" |
||||||
|
#include "usbd_cdc_if.h" |
||||||
|
#include <stdlib.h> |
||||||
|
#include <string.h> |
||||||
|
|
||||||
|
#include "ws2812b.h" |
||||||
|
#include "ws2812b_fx.h" |
||||||
|
#include "usb_parsing.h" |
||||||
|
|
||||||
|
uint8_t USBDataRX[40]; // Array for receive USB messages
|
||||||
|
uint8_t USBReceivedDataFlag; // Received USB data flag
|
||||||
|
uint8_t USBDataTX[40]; // Array for transmission USB messages
|
||||||
|
uint8_t USBDataLength; // USB message length
|
||||||
|
|
||||||
|
void UnknownCommand(void) |
||||||
|
{ |
||||||
|
USBDataLength = sprintf((char*)USBDataTX, "Unknown command\n\r"); |
||||||
|
} |
||||||
|
|
||||||
|
void ColorControl(void) |
||||||
|
{ |
||||||
|
char *buf; |
||||||
|
int16_t Seg; |
||||||
|
uint8_t Color[3]; |
||||||
|
|
||||||
|
if((buf = strtok((char*)USBDataRX+1, ","))) // Segment number
|
||||||
|
{ |
||||||
|
Seg = atoi(buf); |
||||||
|
|
||||||
|
for(uint8_t i = 0; i < 3; i++) |
||||||
|
{ |
||||||
|
if((buf = strtok(NULL, ","))) // Speed
|
||||||
|
{ |
||||||
|
Color[i] = atoi(buf); |
||||||
|
} |
||||||
|
else |
||||||
|
{ |
||||||
|
USBDataLength = sprintf((char*)USBDataTX, "Color command error\n\r"); |
||||||
|
return; |
||||||
|
} |
||||||
|
} |
||||||
|
|
||||||
|
WS2812BFX_SetColorRGB(Seg, Color[0], Color[1], Color[2]); |
||||||
|
USBDataLength = sprintf((char*)USBDataTX, "ColorID:%d Value:%dR, %dG, %dB\n\r", Seg, Color[0], Color[1], Color[2]); |
||||||
|
return; |
||||||
|
} |
||||||
|
USBDataLength = sprintf((char*)USBDataTX, "Color command error\n\r"); |
||||||
|
} |
||||||
|
|
||||||
|
void SpeedControl(void) |
||||||
|
{ |
||||||
|
char *buf; |
||||||
|
int16_t Seg; |
||||||
|
uint16_t Speed; |
||||||
|
|
||||||
|
if((buf = strtok((char*)USBDataRX+1, ","))) // Segment number
|
||||||
|
{ |
||||||
|
Seg = atoi(buf); |
||||||
|
|
||||||
|
if((buf = strtok(NULL, ","))) // Speed
|
||||||
|
{ |
||||||
|
if((Speed = atoi(buf)) > 0) |
||||||
|
{ |
||||||
|
WS2812BFX_SetSpeed(Seg, Speed); |
||||||
|
USBDataLength = sprintf((char*)USBDataTX, "Segment:%d Speed:%d\n\r", Seg, Speed); |
||||||
|
return; |
||||||
|
} |
||||||
|
} |
||||||
|
} |
||||||
|
USBDataLength = sprintf((char*)USBDataTX, "Speed command error\n\r"); |
||||||
|
} |
||||||
|
|
||||||
|
void ModeControl(void) |
||||||
|
{ |
||||||
|
char *buf; |
||||||
|
int16_t Seg; |
||||||
|
int16_t Mode; |
||||||
|
|
||||||
|
buf = strtok((char*)USBDataRX+1, ","); // Segment number
|
||||||
|
Seg = atoi(buf); |
||||||
|
|
||||||
|
if((buf = strtok(NULL, ","))) |
||||||
|
{ |
||||||
|
if(buf[0] == 'S') |
||||||
|
{ |
||||||
|
WS2812BFX_Start(Seg); |
||||||
|
USBDataLength = sprintf((char*)USBDataTX, "Segment:%d Start\n\r", Seg); |
||||||
|
return; |
||||||
|
} |
||||||
|
else if(buf[0] == 'T') |
||||||
|
{ |
||||||
|
WS2812BFX_Stop(Seg); |
||||||
|
USBDataLength = sprintf((char*)USBDataTX, "Segment:%d Stop\n\r", Seg); |
||||||
|
return; |
||||||
|
} |
||||||
|
else // Mode
|
||||||
|
{ |
||||||
|
if((Mode = atoi(buf)) > 0) |
||||||
|
{ |
||||||
|
WS2812BFX_SetMode(Seg, Mode); |
||||||
|
|
||||||
|
USBDataLength = sprintf((char*)USBDataTX, "Segment:%d Mode:%d\n\r", Seg, Mode); |
||||||
|
return; |
||||||
|
} |
||||||
|
} |
||||||
|
} |
||||||
|
USBDataLength = sprintf((char*)USBDataTX, "mode command error\n\r"); |
||||||
|
} |
||||||
|
|
||||||
|
void SegmentsControl(void) |
||||||
|
{ |
||||||
|
int16_t Seg; |
||||||
|
uint8_t mode_tmp; |
||||||
|
if(USBDataRX[1] == '-') |
||||||
|
{ |
||||||
|
WS2812BFX_SegmentDecrease(); |
||||||
|
} |
||||||
|
else if(USBDataRX[1] == '+') |
||||||
|
{ |
||||||
|
WS2812BFX_SegmentIncrease(); |
||||||
|
WS2812BFX_SetMode(WS2812BFX_GetSegmentsQuantity() - 1, rand()%MODE_COUNT); |
||||||
|
WS2812BFX_Start(WS2812BFX_GetSegmentsQuantity() - 1); |
||||||
|
} |
||||||
|
else if((Seg = atoi((char*)(USBDataRX+1))) > 0) |
||||||
|
{ |
||||||
|
WS2812BFX_Init(Seg); |
||||||
|
} |
||||||
|
else |
||||||
|
{ |
||||||
|
USBDataLength = sprintf((char*)USBDataTX, "Segment command error\n\r"); |
||||||
|
return; |
||||||
|
} |
||||||
|
WS2812BFX_GetMode(WS2812BFX_GetSegmentsQuantity()-1, &mode_tmp); |
||||||
|
USBDataLength = sprintf((char*)USBDataTX, "Segments:%d Last mode:%d\n\r", WS2812BFX_GetSegmentsQuantity(), mode_tmp); |
||||||
|
} |
||||||
|
|
||||||
|
void SegmentRangeControl(void) |
||||||
|
{ |
||||||
|
char *buf; |
||||||
|
int16_t Seg; |
||||||
|
int16_t Start; |
||||||
|
int16_t End; |
||||||
|
|
||||||
|
buf = strtok((char*)USBDataRX+1, ","); // Segment number
|
||||||
|
Seg = atoi(buf); |
||||||
|
|
||||||
|
if((buf = strtok(NULL, ","))) |
||||||
|
{ |
||||||
|
if(buf[0] == 'R') // Range (Stanrt and Stop)
|
||||||
|
{ |
||||||
|
if((buf = strtok(NULL, ","))) // Speed
|
||||||
|
{ |
||||||
|
if((Start = atoi(buf)) > 0) |
||||||
|
{ |
||||||
|
if((buf = strtok(NULL, ","))) // Speed
|
||||||
|
{ |
||||||
|
if((End = atoi(buf)) > 0) |
||||||
|
{ |
||||||
|
WS2812BFX_SetSegmentSize(Seg, Start, End); |
||||||
|
USBDataLength = sprintf((char*)USBDataTX, "Segment:%d Range:%d - %d\n\r", Seg, Start, End); |
||||||
|
return; |
||||||
|
} |
||||||
|
else |
||||||
|
USBDataLength = sprintf((char*)USBDataTX, "Segment range End error\n\r"); |
||||||
|
return; |
||||||
|
} |
||||||
|
} |
||||||
|
else |
||||||
|
USBDataLength = sprintf((char*)USBDataTX, "Segment range Start error\n\r"); |
||||||
|
return; |
||||||
|
} |
||||||
|
} |
||||||
|
else if(buf[0] == 'S') //Start
|
||||||
|
{ |
||||||
|
if(buf[1] == '+') |
||||||
|
{ |
||||||
|
WS2812BFX_SegmentIncreaseStart(Seg); |
||||||
|
USBDataLength = sprintf((char*)USBDataTX, "Segment:%d Start increase\n\r", Seg); |
||||||
|
return; |
||||||
|
} |
||||||
|
if(buf[1] == '-') |
||||||
|
{ |
||||||
|
WS2812BFX_SegmentDecreaseStart(Seg); |
||||||
|
USBDataLength = sprintf((char*)USBDataTX, "Segment:%d Start decrease\n\r", Seg); |
||||||
|
return; |
||||||
|
} |
||||||
|
|
||||||
|
} |
||||||
|
else if(buf[0] == 'E') //END
|
||||||
|
{ |
||||||
|
if(buf[1] == '+') |
||||||
|
{ |
||||||
|
WS2812BFX_SegmentIncreaseEnd(Seg); |
||||||
|
USBDataLength = sprintf((char*)USBDataTX, "Segment:%d End increase\n\r", Seg); |
||||||
|
return; |
||||||
|
} |
||||||
|
if(buf[1] == '-') |
||||||
|
{ |
||||||
|
WS2812BFX_SegmentDecreaseEnd(Seg); |
||||||
|
USBDataLength = sprintf((char*)USBDataTX, "Segment:%d End decrease\n\r", Seg); |
||||||
|
return; |
||||||
|
} |
||||||
|
} |
||||||
|
} |
||||||
|
USBDataLength = sprintf((char*)USBDataTX, "Segment range command error\n\r"); |
||||||
|
} |
||||||
|
|
||||||
|
void PrintHelp(void) |
||||||
|
{ |
||||||
|
|
||||||
|
USBDataLength = sprintf((char*)USBDataTX, "\033[2J\033[0;0H"); |
||||||
|
while(USBD_BUSY == CDC_Transmit_FS(USBDataTX, USBDataLength)); |
||||||
|
USBDataLength = sprintf((char*)USBDataTX, "==============HELP=============\n\r"); |
||||||
|
while(USBD_BUSY == CDC_Transmit_FS(USBDataTX, USBDataLength)); |
||||||
|
USBDataLength = sprintf((char*)USBDataTX, "Change Segments quantity:\n\r"); |
||||||
|
while(USBD_BUSY == CDC_Transmit_FS(USBDataTX, USBDataLength)); |
||||||
|
USBDataLength = sprintf((char*)USBDataTX, " 'Sx' Set x segments(1 - LEDs/2)\n\r"); |
||||||
|
while(USBD_BUSY == CDC_Transmit_FS(USBDataTX, USBDataLength)); |
||||||
|
USBDataLength = sprintf((char*)USBDataTX, " 'S+' add one segment\n\r"); |
||||||
|
while(USBD_BUSY == CDC_Transmit_FS(USBDataTX, USBDataLength)); |
||||||
|
USBDataLength = sprintf((char*)USBDataTX, " 'S-' remove one segment\n\r"); |
||||||
|
while(USBD_BUSY == CDC_Transmit_FS(USBDataTX, USBDataLength)); |
||||||
|
USBDataLength = sprintf((char*)USBDataTX, "Change Segments length:\n\r"); |
||||||
|
while(USBD_BUSY == CDC_Transmit_FS(USBDataTX, USBDataLength)); |
||||||
|
USBDataLength = sprintf((char*)USBDataTX, " 'Rx,S+' Increase start point x "); |
||||||
|
while(USBD_BUSY == CDC_Transmit_FS(USBDataTX, USBDataLength)); |
||||||
|
USBDataLength = sprintf((char*)USBDataTX, "segment\n\r"); |
||||||
|
while(USBD_BUSY == CDC_Transmit_FS(USBDataTX, USBDataLength)); |
||||||
|
USBDataLength = sprintf((char*)USBDataTX, " 'Rx,S-' Decrease start point x "); |
||||||
|
while(USBD_BUSY == CDC_Transmit_FS(USBDataTX, USBDataLength)); |
||||||
|
USBDataLength = sprintf((char*)USBDataTX, "segment\n\r"); |
||||||
|
while(USBD_BUSY == CDC_Transmit_FS(USBDataTX, USBDataLength)); |
||||||
|
USBDataLength = sprintf((char*)USBDataTX, " 'Rx,E+' Increase end point x "); |
||||||
|
while(USBD_BUSY == CDC_Transmit_FS(USBDataTX, USBDataLength)); |
||||||
|
USBDataLength = sprintf((char*)USBDataTX, "segment\n\r"); |
||||||
|
while(USBD_BUSY == CDC_Transmit_FS(USBDataTX, USBDataLength)); |
||||||
|
USBDataLength = sprintf((char*)USBDataTX, " 'Rx,E-' Decrease end point x "); |
||||||
|
while(USBD_BUSY == CDC_Transmit_FS(USBDataTX, USBDataLength)); |
||||||
|
USBDataLength = sprintf((char*)USBDataTX, "segment\n\r"); |
||||||
|
while(USBD_BUSY == CDC_Transmit_FS(USBDataTX, USBDataLength)); |
||||||
|
USBDataLength = sprintf((char*)USBDataTX, " 'Rx,R,y,z' Set start(y) and stop(z) po"); |
||||||
|
while(USBD_BUSY == CDC_Transmit_FS(USBDataTX, USBDataLength)); |
||||||
|
USBDataLength = sprintf((char*)USBDataTX, "int x segment\n\r"); |
||||||
|
while(USBD_BUSY == CDC_Transmit_FS(USBDataTX, USBDataLength)); |
||||||
|
USBDataLength = sprintf((char*)USBDataTX, "Change segment's mode:\n\r"); |
||||||
|
while(USBD_BUSY == CDC_Transmit_FS(USBDataTX, USBDataLength)); |
||||||
|
USBDataLength = sprintf((char*)USBDataTX, " 'Mx,S' Start segment x\n\r"); |
||||||
|
while(USBD_BUSY == CDC_Transmit_FS(USBDataTX, USBDataLength)); |
||||||
|
USBDataLength = sprintf((char*)USBDataTX, " 'Mx,T' Stop segment x\n\r"); |
||||||
|
while(USBD_BUSY == CDC_Transmit_FS(USBDataTX, USBDataLength)); |
||||||
|
USBDataLength = sprintf((char*)USBDataTX, " 'Mx,y' Set y mode for x segment\n\r"); |
||||||
|
while(USBD_BUSY == CDC_Transmit_FS(USBDataTX, USBDataLength)); |
||||||
|
USBDataLength = sprintf((char*)USBDataTX, "Change segment's speed:\n\r"); |
||||||
|
while(USBD_BUSY == CDC_Transmit_FS(USBDataTX, USBDataLength)); |
||||||
|
USBDataLength = sprintf((char*)USBDataTX, " 'Vx,y' Set y speed for x segment\n\r"); |
||||||
|
while(USBD_BUSY == CDC_Transmit_FS(USBDataTX, USBDataLength)); |
||||||
|
USBDataLength = sprintf((char*)USBDataTX, "Set color:\n\r"); |
||||||
|
while(USBD_BUSY == CDC_Transmit_FS(USBDataTX, USBDataLength)); |
||||||
|
USBDataLength = sprintf((char*)USBDataTX, " 'Cx,r,g,b' x - ColorID, rgb values\n\r"); |
||||||
|
while(USBD_BUSY == CDC_Transmit_FS(USBDataTX, USBDataLength)); |
||||||
|
USBDataLength = sprintf((char*)USBDataTX, "===============================\n\r"); |
||||||
|
while(USBD_BUSY == CDC_Transmit_FS(USBDataTX, USBDataLength)); |
||||||
|
} |
||||||
|
|
||||||
|
void USB_Parsing(void) |
||||||
|
{ |
||||||
|
if(USBReceivedDataFlag == 1) |
||||||
|
{ |
||||||
|
USBReceivedDataFlag = 0; |
||||||
|
|
||||||
|
switch (USBDataRX[0]) |
||||||
|
{ |
||||||
|
case 'C': |
||||||
|
ColorControl(); |
||||||
|
break; |
||||||
|
|
||||||
|
case 'V': |
||||||
|
SpeedControl(); |
||||||
|
break; |
||||||
|
|
||||||
|
case 'M': |
||||||
|
ModeControl(); |
||||||
|
break; |
||||||
|
|
||||||
|
case 'S': |
||||||
|
SegmentsControl(); |
||||||
|
break; |
||||||
|
|
||||||
|
case 'R': |
||||||
|
SegmentRangeControl(); |
||||||
|
break; |
||||||
|
|
||||||
|
case 'H': |
||||||
|
PrintHelp(); |
||||||
|
break; |
||||||
|
default: |
||||||
|
UnknownCommand(); |
||||||
|
break; |
||||||
|
} |
||||||
|
|
||||||
|
CDC_Transmit_FS(USBDataTX, USBDataLength); // Send confirmation message
|
||||||
|
} |
||||||
|
} |
Loading…
Reference in new issue