Finished Timer IRQ abstraction

This commit is contained in:
2025-08-28 20:56:51 -07:00
parent 55ca8d5360
commit 1e966f0688
6 changed files with 46 additions and 34 deletions

View File

@@ -11,6 +11,8 @@ Timer::Timer(Timer_Key t) : timer(t), timer_reg(getTimerRegister(t)){
void Timer::start() {
timer_reg->CR1 |= TIM_CR1_CEN;
timer_reg->EGR |= TIM_EGR_UG; //load prescaler reg and ARR
enableInterrupt();
}
void Timer::stop() {