diff --git a/Core/Include/Timer/Reg/SHAL_TIM_CALLBACK.h b/Core/Include/Timer/Reg/SHAL_TIM_CALLBACK.h index 28b1a58..1938d99 100644 --- a/Core/Include/Timer/Reg/SHAL_TIM_CALLBACK.h +++ b/Core/Include/Timer/Reg/SHAL_TIM_CALLBACK.h @@ -14,7 +14,7 @@ extern "C" void irq_handler(void) { \ tim_reg->SR &= ~TIM_SR_UIF; /* clear flag */ \ auto cb = timer_callbacks[static_cast(key)]; \ if (cb) cb(); \ - }; \ + }; \ }; typedef void (*TimerCallback)(); //Typedef for callback function diff --git a/Core/Src/main.cpp b/Core/Src/main.cpp index 035e611..e0ccf4a 100644 --- a/Core/Src/main.cpp +++ b/Core/Src/main.cpp @@ -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));