Final changes

This commit is contained in:
2025-08-29 16:37:11 -07:00
parent 20fdce6d82
commit 83572b108a
2 changed files with 2 additions and 2 deletions

View File

@@ -14,7 +14,7 @@ extern "C" void irq_handler(void) { \
tim_reg->SR &= ~TIM_SR_UIF; /* clear flag */ \
auto cb = timer_callbacks[static_cast<int>(key)]; \
if (cb) cb(); \
}; \
}; \
};
typedef void (*TimerCallback)(); //Typedef for callback function

View File

@@ -24,7 +24,7 @@ int main() {
timer2.start();
RCC->APB2ENR |= RCC_APB2ENR_SYSCFGEN; // Enable SYSCFG clock (needed for EXTI)
RCC->APB2ENR |= RCC_APB2ENR_SYSCFGEN; //Enable SYSCFG clock (needed for EXTI)
GPIOA->MODER &= ~(0b11 << (4 * 2));
GPIOA->MODER |= (0b1 << (4 * 2));