Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PWM #5

Closed
wants to merge 33 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
33 commits
Select commit Hold shift + click to select a range
fc9aad7
Project start:
Apr 12, 2018
beeebab
Removed hover.hex in build folder from repo.
Apr 12, 2018
bd01241
Initial work on DMA based UART support. Sending works, receiving work…
Apr 12, 2018
e6a15f6
not using modbus, srry
Apr 15, 2018
c69e509
added ignore items
Apr 19, 2018
fd0b146
Redo "added ignore items"
Apr 19, 2018
920f5b1
ignore several project files
Apr 19, 2018
ab31e49
Updated UART to include running RX DMA buffer
Apr 19, 2018
0d7bb06
CFGBus naming update
Apr 22, 2018
c2cab9f
CFGbus test
Apr 22, 2018
1fdddb3
Switch to modbus
Apr 22, 2018
e94c679
Switch to other tiny modbus library
Apr 22, 2018
c05e904
first working modbus commit. Changing holding register representation
Apr 22, 2018
93215cd
format source file
Apr 22, 2018
ae12048
refactor variable names
Apr 22, 2018
62292d2
refactor variable namees
Apr 22, 2018
9271618
refactor defines
Apr 22, 2018
8707d9e
working check after refactor
Apr 23, 2018
2941d01
start rewrite modbus to allow struct instead of uint16_t array
Apr 23, 2018
2f39954
working modbus.c after reimplementation. Now move towards TX DMA
Apr 23, 2018
d934a27
updated UART to used interrupt/DMA based TX
Apr 23, 2018
0f68082
Create README.md
TomTinkering Apr 23, 2018
ed93fa4
Fixed a type in UART3 implementation
Apr 26, 2018
bd4d590
modbus now using function pointers to allow easy connection to other …
Apr 26, 2018
dc12df6
*updated cfgbus.c for easier definition of entries
Apr 26, 2018
28c6e55
connected modbus to cfgbus and implemented write potection
Apr 26, 2018
d1d7f5b
Merge branch 'master' of https://github.com/TomTinkering/hoverboard-f…
Apr 26, 2018
729a6ce
Modifications for compatibility with GUI
Apr 28, 2018
57b3954
oops
Apr 28, 2018
2fb4d46
no more need to increment err_cnt for test
Apr 28, 2018
83f245a
Switched to UARTCh3 to test
Apr 30, 2018
86a1903
Added eeprom lib (unused for now, but compiles). Added speed/tacho en…
May 7, 2018
67b4a5d
Storing settings now works by writing MagicValue with MagicValue, usi…
May 8, 2018
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
120 changes: 120 additions & 0 deletions .cproject
Original file line number Diff line number Diff line change
@@ -0,0 +1,120 @@
<?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="fr.ac6.managedbuild.toolchain.gnu.cross.base.207938653">
<storageModule buildSystemId="org.eclipse.cdt.managedbuilder.core.configurationDataProvider" id="fr.ac6.managedbuild.toolchain.gnu.cross.base.207938653" moduleId="org.eclipse.cdt.core.settings" name="Default">
<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 artifactName="${ProjName}" buildProperties="" description="" id="fr.ac6.managedbuild.toolchain.gnu.cross.base.207938653" name="Default" parent="org.eclipse.cdt.build.core.emptycfg">
<folderInfo id="fr.ac6.managedbuild.toolchain.gnu.cross.base.207938653.264046499" name="/" resourcePath="">
<toolChain id="fr.ac6.managedbuild.toolchain.gnu.cross.base.384155394" name="Ac6 STM32 MCU GCC" superClass="fr.ac6.managedbuild.toolchain.gnu.cross.base">
<option id="fr.ac6.managedbuild.option.gnu.cross.prefix.2132901014" name="Prefix" superClass="fr.ac6.managedbuild.option.gnu.cross.prefix"/>
<option id="fr.ac6.managedbuild.option.gnu.cross.path.1412418389" name="Path" superClass="fr.ac6.managedbuild.option.gnu.cross.path"/>
<option id="fr.ac6.managedbuild.option.gnu.cross.mcu.1445475532" name="Mcu" superClass="fr.ac6.managedbuild.option.gnu.cross.mcu" value="STM32F103RCTx" valueType="string"/>
<option id="fr.ac6.managedbuild.option.gnu.cross.board.399393995" name="Board" superClass="fr.ac6.managedbuild.option.gnu.cross.board" value="hoverboard" valueType="string"/>
<option id="fr.ac6.managedbuild.option.gnu.cross.fpu.1551112780" name="Floating point hardware" superClass="fr.ac6.managedbuild.option.gnu.cross.fpu"/>
<option id="fr.ac6.managedbuild.option.gnu.cross.floatabi.1317030289" name="Floating-point ABI" superClass="fr.ac6.managedbuild.option.gnu.cross.floatabi"/>
<option id="fr.ac6.managedbuild.option.gnu.cross.instructionSet.530325211" name="Instruction Set" superClass="fr.ac6.managedbuild.option.gnu.cross.instructionSet"/>
<targetPlatform archList="all" binaryParser="org.eclipse.cdt.core.ELF" id="fr.ac6.managedbuild.targetPlatform.gnu.cross.1972241966" isAbstract="false" osList="all" superClass="fr.ac6.managedbuild.targetPlatform.gnu.cross"/>
<builder id="fr.ac6.managedbuild.builder.gnu.cross.1346541290" keepEnvironmentInBuildfile="false" managedBuildOn="false" name="Gnu Make Builder" superClass="fr.ac6.managedbuild.builder.gnu.cross"/>
<tool id="fr.ac6.managedbuild.tool.gnu.cross.c.compiler.564731091" name="MCU GCC Compiler" superClass="fr.ac6.managedbuild.tool.gnu.cross.c.compiler">
<option id="gnu.c.compiler.option.include.paths.621730503" name="Include paths (-I)" superClass="gnu.c.compiler.option.include.paths" useByScannerDiscovery="false" valueType="includePath">
<listOptionValue builtIn="false" value="&quot;${workspace_loc:/hoverboard_sw/Inc}&quot;"/>
<listOptionValue builtIn="false" value="&quot;${workspace_loc:/hoverboard_sw/Drivers/CMSIS/Include}&quot;"/>
<listOptionValue builtIn="false" value="&quot;${workspace_loc:/hoverboard_sw/Drivers/STM32F1xx_HAL_Driver/Inc}&quot;"/>
<listOptionValue builtIn="false" value="&quot;${workspace_loc:/hoverboard_sw/Drivers/CMSIS/Device/ST/STM32F1xx/Include}&quot;"/>
<listOptionValue builtIn="false" value="&quot;${workspace_loc:/hoverboard_sw/Drivers/STM32F1xx_HAL_Driver/Inc/Legacy}&quot;"/>
<listOptionValue builtIn="false" value="&quot;${workspace_loc:/hoverboard_sw/Drivers/eeprom}&quot;"/>
</option>
<option id="gnu.c.compiler.option.preprocessor.def.symbols.1361309922" name="Defined symbols (-D)" superClass="gnu.c.compiler.option.preprocessor.def.symbols" useByScannerDiscovery="false" valueType="definedSymbols">
<listOptionValue builtIn="false" value="USE_HAL_DRIVER=(1)"/>
<listOptionValue builtIn="false" value="STM32F103xE=(1)"/>
</option>
<inputType id="fr.ac6.managedbuild.tool.gnu.cross.c.compiler.input.c.722743552" superClass="fr.ac6.managedbuild.tool.gnu.cross.c.compiler.input.c"/>
<inputType id="fr.ac6.managedbuild.tool.gnu.cross.c.compiler.input.s.1334986734" superClass="fr.ac6.managedbuild.tool.gnu.cross.c.compiler.input.s"/>
</tool>
<tool id="fr.ac6.managedbuild.tool.gnu.cross.cpp.compiler.1891369501" name="MCU G++ Compiler" superClass="fr.ac6.managedbuild.tool.gnu.cross.cpp.compiler">
<option id="gnu.cpp.compiler.option.include.paths.285616166" name="Include paths (-I)" superClass="gnu.cpp.compiler.option.include.paths" useByScannerDiscovery="false" valueType="includePath">
<listOptionValue builtIn="false" value="&quot;${workspace_loc:/hoverboard_sw/Inc}&quot;"/>
<listOptionValue builtIn="false" value="&quot;${workspace_loc:/hoverboard_sw/Drivers/CMSIS/Include}&quot;"/>
<listOptionValue builtIn="false" value="&quot;${workspace_loc:/hoverboard_sw/Drivers/STM32F1xx_HAL_Driver/Inc}&quot;"/>
<listOptionValue builtIn="false" value="&quot;${workspace_loc:/hoverboard_sw/Drivers/CMSIS/Device/ST/STM32F1xx/Include}&quot;"/>
<listOptionValue builtIn="false" value="&quot;${workspace_loc:/hoverboard_sw/Drivers/STM32F1xx_HAL_Driver/Inc/Legacy}&quot;"/>
<listOptionValue builtIn="false" value="&quot;${workspace_loc:/hoverboard_sw/Drivers/eeprom}&quot;"/>
</option>
<option id="gnu.cpp.compiler.option.preprocessor.def.1455668804" name="Defined symbols (-D)" superClass="gnu.cpp.compiler.option.preprocessor.def" useByScannerDiscovery="false" valueType="definedSymbols">
<listOptionValue builtIn="false" value="USE_HAL_DRIVER=(1)"/>
<listOptionValue builtIn="false" value="STM32F103xE=(1)"/>
</option>
<inputType id="fr.ac6.managedbuild.tool.gnu.cross.cpp.compiler.input.cpp.271751914" superClass="fr.ac6.managedbuild.tool.gnu.cross.cpp.compiler.input.cpp"/>
<inputType id="fr.ac6.managedbuild.tool.gnu.cross.cpp.compiler.input.s.288925766" superClass="fr.ac6.managedbuild.tool.gnu.cross.cpp.compiler.input.s"/>
</tool>
<tool id="fr.ac6.managedbuild.tool.gnu.cross.c.linker.999243494" name="MCU GCC Linker" superClass="fr.ac6.managedbuild.tool.gnu.cross.c.linker"/>
<tool id="fr.ac6.managedbuild.tool.gnu.cross.cpp.linker.794347115" name="MCU G++ Linker" superClass="fr.ac6.managedbuild.tool.gnu.cross.cpp.linker">
<option id="gnu.cpp.link.option.libs.859871809" name="Libraries (-l)" superClass="gnu.cpp.link.option.libs" valueType="libs">
<listOptionValue builtIn="false" srcPrefixMapping="" srcRootPath="" value="&quot;${workspace_loc:/hoverboard_sw/Drivers/CMSIS/Lib/GCC/libarm_cortexM3l_math.a}&quot;"/>
</option>
<option id="gnu.cpp.link.option.paths.303443668" name="Library search path (-L)" superClass="gnu.cpp.link.option.paths" valueType="libPaths">
<listOptionValue builtIn="false" value="&quot;${workspace_loc:/hoverboard_sw/Drivers/CMSIS/Lib}&quot;"/>
</option>
<inputType id="cdt.managedbuild.tool.gnu.cpp.linker.input.928339999" superClass="cdt.managedbuild.tool.gnu.cpp.linker.input">
<additionalInput kind="additionalinputdependency" paths="$(USER_OBJS)"/>
<additionalInput kind="additionalinput" paths="$(LIBS)"/>
</inputType>
</tool>
<tool id="fr.ac6.managedbuild.tool.gnu.archiver.2131040042" name="MCU GCC Archiver" superClass="fr.ac6.managedbuild.tool.gnu.archiver"/>
<tool id="fr.ac6.managedbuild.tool.gnu.cross.assembler.274341249" name="MCU GCC Assembler" superClass="fr.ac6.managedbuild.tool.gnu.cross.assembler">
<option id="gnu.both.asm.option.include.paths.1338379292" name="Include paths (-I)" superClass="gnu.both.asm.option.include.paths" valueType="includePath">
<listOptionValue builtIn="false" value="&quot;${workspace_loc:/hoverboard_sw/Inc}&quot;"/>
<listOptionValue builtIn="false" value="&quot;${workspace_loc:/hoverboard_sw/Drivers/CMSIS/Include}&quot;"/>
<listOptionValue builtIn="false" value="&quot;${workspace_loc:/hoverboard_sw/Drivers/STM32F1xx_HAL_Driver/Inc}&quot;"/>
<listOptionValue builtIn="false" value="&quot;${workspace_loc:/hoverboard_sw/Drivers/CMSIS/Device/ST/STM32F1xx/Include}&quot;"/>
<listOptionValue builtIn="false" value="&quot;${workspace_loc:/hoverboard_sw/Drivers/STM32F1xx_HAL_Driver/Inc/Legacy}&quot;"/>
<listOptionValue builtIn="false" value="&quot;${workspace_loc:/hoverboard_sw/Drivers/eeprom}&quot;"/>
</option>
<inputType id="cdt.managedbuild.tool.gnu.assembler.input.730223601" superClass="cdt.managedbuild.tool.gnu.assembler.input"/>
<inputType id="fr.ac6.managedbuild.tool.gnu.cross.assembler.input.673418123" superClass="fr.ac6.managedbuild.tool.gnu.cross.assembler.input"/>
</tool>
</toolChain>
</folderInfo>
<sourceEntries>
<entry excluding="Drivers/eeprom|Drivers/STM32F1xx_HAL_Driver/Src|Src" flags="VALUE_WORKSPACE_PATH" kind="sourcePath" name=""/>
<entry flags="VALUE_WORKSPACE_PATH" kind="sourcePath" name="Drivers/STM32F1xx_HAL_Driver/Src"/>
<entry flags="VALUE_WORKSPACE_PATH" kind="sourcePath" name="Drivers/eeprom"/>
<entry flags="VALUE_WORKSPACE_PATH" kind="sourcePath" name="Src"/>
</sourceEntries>
</configuration>
</storageModule>
<storageModule moduleId="org.eclipse.cdt.core.externalSettings"/>
</cconfiguration>
</storageModule>
<storageModule moduleId="cdtBuildSystem" version="4.0.0">
<project id="hoverboard_sw.null.1533911277" name="hoverboard_sw"/>
</storageModule>
<storageModule moduleId="org.eclipse.cdt.core.LanguageSettingsProviders"/>
<storageModule moduleId="refreshScope" versionNumber="2">
<configuration configurationName="Default">
<resource resourceType="PROJECT" workspacePath="/hoverboard_sw"/>
</configuration>
</storageModule>
<storageModule moduleId="org.eclipse.cdt.make.core.buildtargets"/>
<storageModule moduleId="scannerConfiguration">
<autodiscovery enabled="true" problemReportingEnabled="true" selectedProfileId=""/>
<scannerConfigBuildInfo instanceId="fr.ac6.managedbuild.toolchain.gnu.cross.base.207938653;fr.ac6.managedbuild.toolchain.gnu.cross.base.207938653.264046499;fr.ac6.managedbuild.tool.gnu.cross.c.compiler.564731091;fr.ac6.managedbuild.tool.gnu.cross.c.compiler.input.c.722743552">
<autodiscovery enabled="true" problemReportingEnabled="true" selectedProfileId=""/>
</scannerConfigBuildInfo>
<scannerConfigBuildInfo instanceId="fr.ac6.managedbuild.toolchain.gnu.cross.base.207938653;fr.ac6.managedbuild.toolchain.gnu.cross.base.207938653.264046499;fr.ac6.managedbuild.tool.gnu.cross.cpp.compiler.1891369501;fr.ac6.managedbuild.tool.gnu.cross.cpp.compiler.input.cpp.271751914">
<autodiscovery enabled="true" problemReportingEnabled="true" selectedProfileId=""/>
</scannerConfigBuildInfo>
</storageModule>
<storageModule moduleId="org.eclipse.cdt.internal.ui.text.commentOwnerProjectMappings"/>
</cproject>
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,6 @@
build/*
!build/hover.hex
/.settings/language.settings.xml
/.settings/org.eclipse.cdt.codan.core.prefs
/build/hover.hex
/openocd.txt
29 changes: 29 additions & 0 deletions .project
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>hoverboard_sw</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>org.eclipse.cdt.core.cnature</nature>
<nature>org.eclipse.cdt.core.ccnature</nature>
<nature>org.eclipse.cdt.managedbuilder.core.managedBuildNature</nature>
<nature>org.eclipse.cdt.managedbuilder.core.ScannerConfigNature</nature>
<nature>fr.ac6.mcu.ide.core.MCUProjectNature</nature>
<nature>fr.ac6.mcu.ide.core.MCUSingleCoreProjectNature</nature>
</natures>
</projectDescription>
Loading