restructuring

This commit is contained in:
2026-03-07 14:10:13 -06:00
parent 6d36cb4bab
commit 2f8e38f339
28 changed files with 0 additions and 0 deletions

11
embedded/lib/FastPWM.cpp Normal file
View File

@@ -0,0 +1,11 @@
#include "FastPWM.hpp"
void setupFastPWM() {
// Timer 1 (Pins 9 & 10) -> 31.25 kHz
TCCR1A = _BV(COM1A1) | _BV(COM1B1) | _BV(WGM10);
TCCR1B = _BV(CS10);
// Timer 2 (Pins 3 & 11) -> 31.25 kHz
TCCR2A = _BV(COM2A1) | _BV(COM2B1) | _BV(WGM20);
TCCR2B = _BV(CS20);
}