Files
Fr-ssspindel_HNP/stepper_h7/CM7/Core/Inc
Niklas SchoeningandClaude Opus 5.5 46398252ad Implement spindle PWM and H-bridge control
Fill in the LibSpindle platform callbacks so the spindle commands
(spindle start/stop/status) drive the BTS7960 H-bridge.

- spindleLogic.c: SPINDLE_SetDutyCycle sets the TIM2 compare values,
  CH4 (SPINDLE_PWM_R) for forward and CH3 (SPINDLE_PWM_L) for backward,
  the inactive channel is set to 0 first. SPINDLE_EnaPWM switches both
  half bridges via SPINDLE_ENA_L/R. Both PWM channels are started in
  init_spindle_custom before the spindle instance is created.
- main.h: export htim2 so the spindle module can access the timer.
- consoleLogic.c: report CAP_HAS_SPINDLE and CAP_HAS_SPINDLE_STATUS in
  the capability command.
- main.c: fix typo in the playground task output.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-16 21:13:37 +02:00
..
2026-10-16 18:25:42 +02:00
2026-10-16 18:25:42 +02:00
2026-10-16 18:25:42 +02:00
2026-10-16 18:25:42 +02:00
2026-10-16 18:25:42 +02:00