Firmware (src/app): - system state machine: IDLE / ROTATING / POWER_OFF - button: 20 ms debounce, short/double/long classification, boot hold-off - LED: idle slow blink, solid, speed/direction feedback patterns - motor: 8-phase half-step drive with trapezoidal acceleration, speed levels 2.5/5/7.5/10 RPM, reversal via standstill - power latch on P33 (push-pull, high = hold, low = cut) with decelerate-to-stop sequence before power-off (FR18) - base timer mode-2 reload semantics (interval = 0x10000 - ARR) Build: Makefile for arm-none-eabi-gcc, selective DDL compile, vendor startup + linker script under src/. Docs: FIRMWARE_REQUIREMENTS.md, STATE_MACHINE.md, README.md. Vendor datasheet/RM/DDL references under docs/ are kept locally and tracked in a separate shared repo.
24 lines
226 B
Plaintext
24 lines
226 B
Plaintext
# build output
|
|
build/
|
|
*.o
|
|
*.d
|
|
*.elf
|
|
*.bin
|
|
*.hex
|
|
*.map
|
|
*.lst
|
|
|
|
# vendor reference docs (kept locally, tracked in a separate shared repo)
|
|
docs/
|
|
|
|
# editor / OS cruft
|
|
.vscode/
|
|
.idea/
|
|
*.swp
|
|
*~
|
|
.DS_Store
|
|
|
|
# python
|
|
__pycache__/
|
|
*.pyc
|