diff --git a/Source/system/interrupts.c b/Source/system/interrupts.c new file mode 100644 --- /dev/null +++ b/Source/system/interrupts.c @@ -0,0 +1,28 @@ +// +// Interrupts: ISRs for all global interrupts +// + +#include +#include +#include "stm32f0xx_hal.h" +#include "stm32f0xx.h" +#include "system/gpio.h" +#include "aprs/afsk.h" + +// Systick +void SysTick_Handler(void) +{ + HAL_IncTick(); + HAL_SYSTICK_IRQHandler(); +} + + +void TIM1_CC_IRQHandler(void) +{ + HAL_TIM_IRQHandler(afsk_timer_gethandle()); +} + +void TIM1_BRK_UP_TRG_COM_IRQHandler(void) +{ + HAL_TIM_IRQHandler(afsk_timer_gethandle()); +}