1.5 KiB
1.5 KiB
AGENTS
Map
- Root has workspace files.
examples/has one crate per demo.docs/hardware/has board and wiring notes.memory.xis shared.justfileis source of truth for commands.
Rules
- Read before edit.
- Keep fixes small.
- No broad refactor.
- No dependency upgrade unless asked.
- Keep examples independent.
- Keep demo reliability first.
- Use simple code.
- No hidden IDE steps.
- No fake hardware claims.
Preserve
nix developjust fmtjust checkjust build
Hardware
- Blue Pill first.
thumbv7m-none-eabifirst.- Do not mix STM32F0 with STM32F103.
- If hardware detail is unclear:
- write the assumption
- add a TODO
- keep build green
Style
- Caveman style.
- Short names.
- Short comments.
- Explain embedded idea.
- Do not explain obvious Rust syntax.
- No heap.
- No dynamic dispatch unless teaching needs it.
- No async before Embassy examples.
unsafeonly if required and justified.
Commands
just buildjust build-blinkyjust build-timerjust build-buttonjust build-embassy-blinkyjust build-embassy-buttonjust flash-blinkyjust flash-timerjust flash-buttonjust flash-embassy-blinkyjust flash-embassy-buttonjust run-blinkyjust run-embassy-blinkyjust fmtjust clippyjust checkjust clean
Do Not
- Do not invent board output.
- Do not claim flash or debug worked on hardware unless tested.
- Do not hide chip mismatches.
- Do not add abstractions for one use.