Move console and spindle setup into separate modules
Extract the terminal/console logic and the spindle initialisation out of main.c into dedicated modules so main only wires the components together. - Add consoleLogic.c/.h: init_console_custom() creates the console instance, registers the "capability" command and returns the handle. CapabilityFunc moved here from main.c. - Add spindleLogic.c/.h: init_spindle_custom(console, maxRPM, minRPM, absMinRPM) creates the spindle controller with the given RPM limits. Includes stub platform callbacks (SPINDLE_SetDutyCycle, SPINDLE_EnaPWM) that still need the PWM/H-bridge implementation. - main.c: keep console and spindle handles as static variables, pass the console handle to the spindle module, remove the second playground task. - .cproject: add Core/Inc/Console and Core/Inc/Spindle to the include paths of the CM7 project. - Include IDE-generated settings changes and the root Eclipse .project. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
bdb5db2009
commit
26fe4cc0cf
11 files changed
+167
-70
No files matched your search
@@ -1,5 +1,5 @@
|
||||
\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000=
|
||||
2F62501ED4689FB349E356AB974DBE57=EF232BB7A78569BB4DEEA5A8CE9841A0
|
||||
8DF89ED150041C4CBC7CB9A9CAA90856=EF232BB7A78569BB4DEEA5A8CE9841A0
|
||||
2F62501ED4689FB349E356AB974DBE57=CA438D07DDC379615403CE5F88B0F5D9
|
||||
8DF89ED150041C4CBC7CB9A9CAA90856=CA438D07DDC379615403CE5F88B0F5D9
|
||||
DC22A860405A8BF2F2C095E5B6529F12=6EE9111B96141CC38C9D3E133C3B0FF1
|
||||
eclipse.preferences.version=1
|
||||
Reference in new issue
Block a user