# A104 encoder target candidate

Build target: `sh firmware/固件/drill_target/build.sh`.

Host tests: compile test_encoder.c with src/drill_encoder.c and include the target src directory. For test_encoder_target.c also compile src/drill_encoder_target.c and include host_include before CMSIS/device headers. Use clang -std=c11 -Wall -Wextra -Werror -fsanitize=address,undefined.

Read included A104 report for pin source, ABI, timing/rotation limitations and remaining implementation. GPIO model/ELF checks do not prove MCU execution. Raw counts are not RPM or detent mapping. The target remains default-off; do not drive a handpiece from these diagnostic values.
