Subversion Repositories NaviCtrl

Rev

Rev 195 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 195 Rev 196
Line 1... Line 1...
1
/******************** (C) COPYRIGHT 2006 STMicroelectronics ********************
1
/******************** (C) COPYRIGHT 2008 STMicroelectronics ********************
2
* File Name          : 91x_it.h
2
* File Name          : 91x_it.h
3
* Author             : MCD Application Team
3
* Author             : MCD Application Team
-
 
4
* Version            : V2.1
4
* Date First Issued  : 05/18/2006 : Version 1.0
5
* Date               : 12/22/2008
5
* Description        : This file contains the headers of the interrupt
6
* Description        : This file contains the headers of the interrupt
6
*                      handlers'routines
7
*                      handlers'routines
7
********************************************************************************
8
********************************************************************************
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
9
* 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
10
* 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
11
* 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
12
* 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
13
* OF SUCH SOFTWARE AND/OR THE USE MADE BY CUSTOMERS OF THE CODING INFORMATION
18
* CONTAINED HEREIN IN CONNECTION WITH THEIR PRODUCTS.
14
* CONTAINED HEREIN IN CONNECTION WITH THEIR PRODUCTS.
19
*******************************************************************************/
15
*******************************************************************************/
Line 20... Line 16...
20
 
16
 
21
/* Define to prevent recursive inclusion ------------------------------------ */
17
/* Define to prevent recursive inclusion ------------------------------------ */
22
#ifndef _91x_IT_H
18
#ifndef __91x_IT_H
Line 23... Line 19...
23
#define _91x_IT_H
19
#define __91x_IT_H
24
 
20
 
Line -... Line 21...
-
 
21
/* Includes ------------------------------------------------------------------*/
-
 
22
#include "91x_lib.h"
-
 
23
 
25
/* Includes ------------------------------------------------------------------*/
24
/* Exported types ------------------------------------------------------------*/
26
#include "91x_lib.h"
25
/* Exported constants --------------------------------------------------------*/
27
 
26
/* Exported macro ------------------------------------------------------------*/
28
#define IENABLE         asm("MRS lr, spsr");       /* Copy SPSR_irq to LR */ \
27
#define IENABLE         asm("MRS lr, spsr");       /* Copy SPSR_irq to LR */ \
Line 29... Line 28...
29
                                        asm("STMFD sp!, {lr} ");   /* Save SPSR_irq */ \
28
                                        asm("STMFD sp!, {lr} ");   /* Save SPSR_irq */ \
30
                                        asm("MSR cpsr_c, #0x1F "); /* Switch to SYS mode with IRQ enabled*/ \
29
                                        asm("MSR cpsr_c, #0x1F "); /* Switch to SYS mode with IRQ enabled*/ \
31
                                        asm("STMFD sp!, {lr} ");   /* Save SYS mode LR */
30
                                        asm("STMFD sp!, {lr} ");   /* Save SYS mode LR */
32
 
31
 
Line 33... Line -...
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
 
-
 
39
/* Exported types ------------------------------------------------------------*/
32
#define IDISABLE        asm("LDMFD sp!, {lr}");  /* Restore SYS mode LR */ \
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);
-
 
49
void FIQ_Handler                (void);
-
 
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);
-
 
59
void USBLP_IRQHandler   (void);
-
 
60
void SCU_IRQHandler             (void);
-
 
61
void ENET_IRQHandler    (void);
-
 
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);
-
 
Line 78... Line -...
78
void EXTIT2_IRQHandler   (void);
-
 
Line -... Line 33...
-
 
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
 
-
 
37
/* Exported functions ------------------------------------------------------- */
-
 
38
 
-
 
39
 
-
 
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);
79
void EXTIT3_IRQHandler   (void);
75
void EXTIT4_IRQHandler(void);