diff options
Diffstat (limited to 'interrupt.h')
-rw-r--r-- | interrupt.h | 80 |
1 files changed, 80 insertions, 0 deletions
diff --git a/interrupt.h b/interrupt.h new file mode 100644 index 0000000..cfc187d --- /dev/null +++ b/interrupt.h @@ -0,0 +1,80 @@ +#ifndef INTERRUPT_H +#define INTERRUPT_H + +namespace Interrupt { + enum Interrupt { + NMI, + HardFault, + MemManage, + BusFault, + UsageFault, + SVCall, + PendSV, + SysTick, + WWDG, + PVD, + TAMPER, + RTC, + FLASH, + RCC, + EXTI0, + EXTI1, + EXTI2, + EXTI3, + EXTI4, + DMA1_Channel1, + DMA1_Channel2, + DMA1_Channel3, + DMA1_Channel4, + DMA1_Channel5, + DMA1_Channel6, + DMA1_Channel7, + ADC1_2, + USB_HP_CAN_TX, + USB_LP_CAN_RX0, + CAN_RX1, + CAN_SCE, + EXTI9_5, + TIM1_BRK, + TIM1_UP, + TIM1_TRG_COM, + TIM1_CC, + TIM2, + TIM3, + TIM4, + I2C1_EV, + I2C1_ER, + I2C2_EV, + I2C2_ER, + SPI1, + SPI2, + USART1, + USART2, + USART3, + EXTI15_10, + RTCAlarm, + USBWakeup, + TIM8_BRK, + TIM8_UP, + TIM8_TRG_COM, + TIM8_CC, + ADC3, + FSMC, + SDIO, + TIM5, + SPI3, + UART4, + UART5, + TIM6, + TIM7, + DMA2_Channel1, + DMA2_Channel2, + DMA2_Channel3, + DMA2_Channel4_5 + }; +}; + +template<Interrupt::Interrupt> +void interrupt(); + +#endif |