From: asterix Date: Wed, 23 Jun 2010 16:51:20 +0000 (+0000) Subject: Add interrupt table defines. X-Git-Tag: 2.6.0~374 X-Git-Url: https://codewiz.org/gitweb?a=commitdiff_plain;h=5a62f236eef18c49a6791b51e3179e26ee4587a6;p=bertos.git Add interrupt table defines. git-svn-id: https://src.develer.com/svnoss/bertos/trunk@3933 38d2e660-2303-0410-9eaa-f027e97ec537 --- diff --git a/bertos/cpu/cortex-m3/io/stm32_ints.h b/bertos/cpu/cortex-m3/io/stm32_ints.h new file mode 100644 index 00000000..7fde933b --- /dev/null +++ b/bertos/cpu/cortex-m3/io/stm32_ints.h @@ -0,0 +1,90 @@ +/** + * \file + * + * + * \brief STM32F10xx interrupts definition. + */ + +#ifndef STM32_INTS_H +#define STM32_INTS_H + +/** + * The following are defines for the interrupt assignments. + */ +/*\{*/ +#define WWDG_IRQHANDLER 16 /* Window WatchDog Interrupt */ +#define PVD_IRQHANDLER 17 /* PVD through EXTI Line detection Interrupt */ +#define TAMPER_IRQHANDLER 18 /* Tamper Interrupt */ +#define RTC_IRQHANDLER 19 /* RTC global Interrupt */ +#define FLASH_IRQHANDLER 20 /* FLASH global Interrupt */ +#define RCC_IRQHANDLER 21 /* RCC global Interrupt */ +#define EXTI0_IRQHANDLER 22 /* EXTI Line0 Interrupt */ +#define EXTI1_IRQHANDLER 23 /* EXTI Line1 Interrupt */ +#define EXTI2_IRQHANDLER 24 /* EXTI Line2 Interrupt */ +#define EXTI3_IRQHANDLER 25 /* EXTI Line3 Interrupt */ +#define EXTI4_IRQHANDLER 26 /* EXTI Line4 Interrupt */ +#define DMACHANNEL1_IRQHANDLER 27 /* DMA Channel 1 global Interrupt */ +#define DMACHANNEL2_IRQHANDLER 28 /* DMA Channel 2 global Interrupt */ +#define DMACHANNEL3_IRQHANDLER 29 /* DMA Channel 3 global Interrupt */ +#define DMACHANNEL4_IRQHANDLER 30 /* DMA Channel 4 global Interrupt */ +#define DMACHANNEL5_IRQHANDLER 31 /* DMA Channel 5 global Interrupt */ +#define DMACHANNEL6_IRQHANDLER 32 /* DMA Channel 6 global Interrupt */ +#define DMACHANNEL7_IRQHANDLER 33 /* DMA Channel 7 global Interrupt */ +#define ADC_IRQHANDLER 34 /* ADC global Interrupt */ +#define USB_HP_CAN_TX_IRQHANDLER 35 /* USB High Priority or CAN TX Interrupts */ +#define USB_LP_CAN_RX0_IRQHANDLER 36 /* USB Low Priority or CAN RX0 Interrupts */ +#define CAN_RX1_IRQHANDLER 37 /* CAN RX1 Interrupt */ +#define CAN_SCE_IRQHANDLER 38 /* CAN SCE Interrupt */ +#define EXTI9_5_IRQHANDLER 39 /* External Line[9:5] Interrupts */ +#define TIM1_BRK_IRQHANDLER 40 /* TIM1 Break Interrupt */ +#define TIM1_UP_IRQHANDLER 41 /* TIM1 Update Interrupt */ +#define TIM1_TRG_COM_IRQHANDLER 42 /* TIM1 Trigger and Commutation Interrupt */ +#define TIM1_CC_IRQHANDLER 43 /* TIM1 Capture Compare Interrupt */ +#define TIM2_IRQHANDLER 44 /* TIM2 global Interrupt */ +#define TIM3_IRQHANDLER 45 /* TIM3 global Interrupt */ +#define TIM4_IRQHANDLER 46 /* TIM4 global Interrupt */ +#define I2C1_EV_IRQHANDLER 47 /* I2C1 Event Interrupt */ +#define I2C1_ER_IRQHANDLER 48 /* I2C1 Error Interrupt */ +#define I2C2_EV_IRQHANDLER 49 /* I2C2 Event Interrupt */ +#define I2C2_ER_IRQHANDLER 50 /* I2C2 Error Interrupt */ +#define SPI1_IRQHANDLER 51 /* SPI1 global Interrupt */ +#define SPI2_IRQHANDLER 52 /* SPI2 global Interrupt */ +#define USART1_IRQHANDLER 53 /* USART1 global Interrupt */ +#define USART2_IRQHANDLER 54 /* USART2 global Interrupt */ +#define USART3_IRQHANDLER 55 /* USART3 global Interrupt */ +#define EXTI15_10_IRQHANDLER 56 /* External Line[15:10] Interrupts */ +#define RTCALARM_IRQHANDLER 57 /* RTC Alarm through EXTI Line Interrupt */ +#define USBWAKEUP_IRQHANDLER 58 /* USB WakeUp from suspend through EXTI Line Interrupt */ +/*\}*/ + +#define NUM_INTERRUPTS 66 + +#endif /* STM32_INTS_H */