Rev 195 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
196 | killagreg | 1 | /******************** (C) COPYRIGHT 2008 STMicroelectronics ******************** |
1 | ingob | 2 | * File Name : 91x_it.h |
3 | * Author : MCD Application Team |
||
196 | killagreg | 4 | * Version : V2.1 |
5 | * Date : 12/22/2008 |
||
1 | ingob | 6 | * Description : This file contains the headers of the interrupt |
7 | * handlers'routines |
||
8 | ******************************************************************************** |
||
9 | * THE PRESENT SOFTWARE WHICH IS FOR GUIDANCE ONLY AIMS AT PROVIDING CUSTOMERS WITH |
||
10 | * CODING INFORMATION REGARDING THEIR PRODUCTS IN ORDER FOR THEM TO SAVE TIME. AS |
||
11 | * A RESULT, STMICROELECTRONICS SHALL NOT BE HELD LIABLE FOR ANY DIRECT, INDIRECT |
||
12 | * OR CONSEQUENTIAL DAMAGES WITH RESPECT TO ANY CLAIMS ARISING FROM THE CONTENT |
||
13 | * OF SUCH SOFTWARE AND/OR THE USE MADE BY CUSTOMERS OF THE CODING INFORMATION |
||
14 | * CONTAINED HEREIN IN CONNECTION WITH THEIR PRODUCTS. |
||
15 | *******************************************************************************/ |
||
16 | |||
17 | /* Define to prevent recursive inclusion ------------------------------------ */ |
||
196 | killagreg | 18 | #ifndef __91x_IT_H |
19 | #define __91x_IT_H |
||
1 | ingob | 20 | |
21 | /* Includes ------------------------------------------------------------------*/ |
||
22 | #include "91x_lib.h" |
||
23 | |||
196 | killagreg | 24 | /* Exported types ------------------------------------------------------------*/ |
25 | /* Exported constants --------------------------------------------------------*/ |
||
26 | /* Exported macro ------------------------------------------------------------*/ |
||
195 | killagreg | 27 | #define IENABLE asm("MRS lr, spsr"); /* Copy SPSR_irq to LR */ \ |
28 | asm("STMFD sp!, {lr} "); /* Save SPSR_irq */ \ |
||
29 | asm("MSR cpsr_c, #0x1F "); /* Switch to SYS mode with IRQ enabled*/ \ |
||
30 | asm("STMFD sp!, {lr} "); /* Save SYS mode LR */ |
||
31 | |||
32 | #define IDISABLE asm("LDMFD sp!, {lr}"); /* Restore SYS mode LR */ \ |
||
33 | asm("MSR cpsr_c, #0x92"); /* Switch to IRQ mode with IRQ disabled*/ \ |
||
34 | asm("LDMFD sp!, {r0}"); /* Restore SPSR_irq to R0 */ \ |
||
35 | asm("MSR spsr_cxsf, r0"); /* Copy R0 to SPSR_irq */ |
||
36 | |||
1 | ingob | 37 | /* Exported functions ------------------------------------------------------- */ |
38 | |||
39 | |||
196 | killagreg | 40 | void Undefined_Handler(void); |
41 | void SWI_Handler(void); |
||
42 | void Prefetch_Handler(void); |
||
43 | void Abort_Handler(void); |
||
44 | void FIQ_Handler(void); |
||
45 | void WDG_IRQHandler(void); |
||
46 | void SW_IRQHandler(void); |
||
47 | void ARMRX_IRQHandler(void); |
||
48 | void ARMTX_IRQHandler(void); |
||
49 | void TIM0_IRQHandler(void); |
||
50 | void TIM1_IRQHandler(void); |
||
51 | void TIM2_IRQHandler(void); |
||
52 | void TIM3_IRQHandler(void); |
||
53 | void USBHP_IRQHandler(void); |
||
54 | void USBLP_IRQHandler(void); |
||
55 | void SCU_IRQHandler(void); |
||
56 | void ENET_IRQHandler(void); |
||
57 | void DMA_IRQHandler(void); |
||
58 | void CAN_IRQHandler(void); |
||
59 | void MC_IRQHandler(void); |
||
60 | void ADC_IRQHandler(void); |
||
61 | void UART0_IRQHandler(void); |
||
62 | void UART1_IRQHandler(void); |
||
63 | void UART2_IRQHandler(void); |
||
64 | void I2C0_IRQHandler(void); |
||
65 | void I2C1_IRQHandler(void); |
||
66 | void SSP0_IRQHandler(void); |
||
67 | void SSP1_IRQHandler(void); |
||
68 | void LVD_IRQHandler(void); |
||
69 | void RTC_IRQHandler(void); |
||
70 | void WIU_IRQHandler(void); |
||
71 | void EXTIT0_IRQHandler(void); |
||
72 | void EXTIT1_IRQHandler(void); |
||
73 | void EXTIT2_IRQHandler(void); |
||
74 | void EXTIT3_IRQHandler(void); |
||
75 | void EXTIT4_IRQHandler(void); |
||
76 | void USBWU_IRQHandler(void); |
||
77 | void PFQBC_IRQHandler(void); |
||
78 | void DefaultVector_Handler(void); |
||
79 | |||
80 | #endif /* __91x_IT_H */ |
||
81 | |||
82 | /******************* (C) COPYRIGHT 2008 STMicroelectronics *****END OF FILE****/ |