Files
AutoFilm-ESP32/docs/megaplans/integration/I03-motor-hal.md
gronod a33b4b0c74
ci / test (push) Successful in 1m4s
ci / firmware (jc4827w543, sdkconfig.s3, esp32s3) (push) Successful in 3m56s
ci / firmware (wroom, sdkconfig.wroom, esp32) (push) Successful in 3m57s
ci / test (pull_request) Successful in 1m22s
ci / firmware (wroom, sdkconfig.wroom, esp32) (pull_request) Successful in 4m42s
ci / firmware (jc4827w543, sdkconfig.s3, esp32s3) (pull_request) Successful in 4m47s
Mark I01 status DONE
2026-09-16 21:05:57 +01:00

22 lines
863 B
Markdown

STATUS: TODO
DEPENDS: I01
**READ:** `docs/megaplans/INTEGRATION-MEGAPLAN.md`, `components/hal_motor/*`
**IN:**
1. `hal_motor`: Generalize `wroom/hal_motor.c` (already pure-IDF RMT) to read pins from `board.h`; compile for both targets via CMake (`IDF_TARGET esp32|esp32s3` → shared source, `PRIV_REQUIRES board_wroom|board_jc4827w543`).
2. Preserve: EN HIGH at init + on stop, `stop_req` sampled inside step loop, immortal task, `hal_motor_request_stop` ISR-safe.
**OUT:** Temp logic, audio logic.
**FORBIDDEN:** Blocking UI on motor operations.
**VERIFY:** `idf.py build` succeeds for both targets. Run host ctests if any apply to motor logic.
**COMMITS:**
1. `Share RMT motor HAL across both boards`
**DoD checkboxes:**
- [ ] `hal_motor` generalized to use board accessors.
- [ ] EN HIGH initialization preserved.
- [ ] Build succeeds on both targets.