Subversion Repositories NaviCtrl

Rev

Rev 1 | Rev 196 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

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