feat: v3 Cortex-M0 port — status sync and migration plan #4
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Background
A v3 prototype running on a Cortex-M0 @ 24MHz exists (developed by Loredan/Vsevolod Merenkov). The current codebase targets AVR ATmega328P/PB at 8MHz (internal oscillator). The M0 port has not been merged or formally tracked.
A related migration intent was filed as pyr0ball/pyr0piezo#21 (2019, ATSAMD21E Cortex-M0+) but never progressed beyond the issue. The v3 hardware prototype is newer and separate from that.
Why it matters
Current unknowns
Proposed next steps
v3-m0branch and commit whatever firmware exists, even if partialreadVcc()/readVin()— AVR bandgap trick; M0 has a real ADC with selectable referenceOCR2B/OC1APWM references — replace with DAC output if availableINT0interrupt — remap to equivalent EXTI/EIC on SAMDEEPROM.h— replace with SAMD NVM/flash emulationF_CPUso AVR and M0 can share the same autotune logic (#3)Related