2067 |
kakl |
1 |
/** |
|
|
2 |
****************************************************************************** |
|
|
3 |
* @file GPIO/IOToggle/stm32f10x_it.c |
|
|
4 |
* @author MCD Application Team |
|
|
5 |
* @version V3.4.0 |
|
|
6 |
* @date 10/15/2010 |
|
|
7 |
* @brief Main Interrupt Service Routines. |
|
|
8 |
* This file provides template for all exceptions handler and peripherals |
|
|
9 |
* interrupt service routine. |
|
|
10 |
****************************************************************************** |
|
|
11 |
* @copy |
|
|
12 |
* |
|
|
13 |
* THE PRESENT FIRMWARE WHICH IS FOR GUIDANCE ONLY AIMS AT PROVIDING CUSTOMERS |
|
|
14 |
* WITH CODING INFORMATION REGARDING THEIR PRODUCTS IN ORDER FOR THEM TO SAVE |
|
|
15 |
* TIME. AS A RESULT, STMICROELECTRONICS SHALL NOT BE HELD LIABLE FOR ANY |
|
|
16 |
* DIRECT, INDIRECT OR CONSEQUENTIAL DAMAGES WITH RESPECT TO ANY CLAIMS ARISING |
|
|
17 |
* FROM THE CONTENT OF SUCH FIRMWARE AND/OR THE USE MADE BY CUSTOMERS OF THE |
|
|
18 |
* CODING INFORMATION CONTAINED HEREIN IN CONNECTION WITH THEIR PRODUCTS. |
|
|
19 |
* |
|
|
20 |
* <h2><center>© COPYRIGHT 2010 STMicroelectronics</center></h2> |
|
|
21 |
*/ |
|
|
22 |
|
|
|
23 |
/* Includes ------------------------------------------------------------------*/ |
|
|
24 |
#include "stm32f10x_it.h" |
|
|
25 |
|
|
|
26 |
/** @addtogroup STM32F10x_StdPeriph_Examples |
|
|
27 |
* @{ |
|
|
28 |
*/ |
|
|
29 |
|
|
|
30 |
/** @addtogroup GPIO_IOToggle |
|
|
31 |
* @{ |
|
|
32 |
*/ |
|
|
33 |
|
|
|
34 |
/* Private typedef -----------------------------------------------------------*/ |
|
|
35 |
/* Private define ------------------------------------------------------------*/ |
|
|
36 |
/* Private macro -------------------------------------------------------------*/ |
|
|
37 |
/* Private variables ---------------------------------------------------------*/ |
|
|
38 |
/* Private function prototypes -----------------------------------------------*/ |
|
|
39 |
/* Private functions ---------------------------------------------------------*/ |
|
|
40 |
|
|
|
41 |
/******************************************************************************/ |
|
|
42 |
/* Cortex-M3 Processor Exceptions Handlers */ |
|
|
43 |
/******************************************************************************/ |
|
|
44 |
|
|
|
45 |
/** |
|
|
46 |
* @brief This function handles NMI exception. |
|
|
47 |
* @param None |
|
|
48 |
* @retval None |
|
|
49 |
*/ |
|
|
50 |
void NMI_Handler(void) |
|
|
51 |
{ |
|
|
52 |
} |
|
|
53 |
|
|
|
54 |
/** |
|
|
55 |
* @brief This function handles Hard Fault exception. |
|
|
56 |
* @param None |
|
|
57 |
* @retval None |
|
|
58 |
*/ |
|
|
59 |
void HardFault_Handler(void) |
|
|
60 |
{ |
|
|
61 |
/* Go to infinite loop when Hard Fault exception occurs */ |
|
|
62 |
while (1) |
|
|
63 |
{ |
|
|
64 |
} |
|
|
65 |
} |
|
|
66 |
|
|
|
67 |
/** |
|
|
68 |
* @brief This function handles Memory Manage exception. |
|
|
69 |
* @param None |
|
|
70 |
* @retval None |
|
|
71 |
*/ |
|
|
72 |
void MemManage_Handler(void) |
|
|
73 |
{ |
|
|
74 |
/* Go to infinite loop when Memory Manage exception occurs */ |
|
|
75 |
while (1) |
|
|
76 |
{ |
|
|
77 |
} |
|
|
78 |
} |
|
|
79 |
|
|
|
80 |
/** |
|
|
81 |
* @brief This function handles Bus Fault exception. |
|
|
82 |
* @param None |
|
|
83 |
* @retval None |
|
|
84 |
*/ |
|
|
85 |
void BusFault_Handler(void) |
|
|
86 |
{ |
|
|
87 |
/* Go to infinite loop when Bus Fault exception occurs */ |
|
|
88 |
while (1) |
|
|
89 |
{ |
|
|
90 |
} |
|
|
91 |
} |
|
|
92 |
|
|
|
93 |
/** |
|
|
94 |
* @brief This function handles Usage Fault exception. |
|
|
95 |
* @param None |
|
|
96 |
* @retval None |
|
|
97 |
*/ |
|
|
98 |
void UsageFault_Handler(void) |
|
|
99 |
{ |
|
|
100 |
/* Go to infinite loop when Usage Fault exception occurs */ |
|
|
101 |
while (1) |
|
|
102 |
{ |
|
|
103 |
} |
|
|
104 |
} |
|
|
105 |
|
|
|
106 |
/** |
|
|
107 |
* @brief This function handles SVCall exception. |
|
|
108 |
* @param None |
|
|
109 |
* @retval None |
|
|
110 |
*/ |
|
|
111 |
void SVC_Handler(void) |
|
|
112 |
{ |
|
|
113 |
} |
|
|
114 |
|
|
|
115 |
/** |
|
|
116 |
* @brief This function handles Debug Monitor exception. |
|
|
117 |
* @param None |
|
|
118 |
* @retval None |
|
|
119 |
*/ |
|
|
120 |
void DebugMon_Handler(void) |
|
|
121 |
{ |
|
|
122 |
} |
|
|
123 |
|
|
|
124 |
/** |
|
|
125 |
* @brief This function handles PendSV_Handler exception. |
|
|
126 |
* @param None |
|
|
127 |
* @retval None |
|
|
128 |
*/ |
|
|
129 |
void PendSV_Handler(void) |
|
|
130 |
{ |
|
|
131 |
} |
|
|
132 |
|
|
|
133 |
/** |
|
|
134 |
* @brief This function handles SysTick Handler. |
|
|
135 |
* @param None |
|
|
136 |
* @retval None |
|
|
137 |
*/ |
|
|
138 |
void SysTick_Handler(void) |
|
|
139 |
{ |
|
|
140 |
} |
|
|
141 |
|
|
|
142 |
/******************************************************************************/ |
|
|
143 |
/* STM32F10x Peripherals Interrupt Handlers */ |
|
|
144 |
/* Add here the Interrupt Handler for the used peripheral(s) (PPP), for the */ |
|
|
145 |
/* available peripheral interrupt handler's name please refer to the startup */ |
|
|
146 |
/* file (startup_stm32f10x_xx.s). */ |
|
|
147 |
/******************************************************************************/ |
|
|
148 |
|
|
|
149 |
/** |
|
|
150 |
* @brief This function handles PPP interrupt request. |
|
|
151 |
* @param None |
|
|
152 |
* @retval None |
|
|
153 |
*/ |
|
|
154 |
/*void PPP_IRQHandler(void) |
|
|
155 |
{ |
|
|
156 |
}*/ |
|
|
157 |
|
|
|
158 |
/** |
|
|
159 |
* @} |
|
|
160 |
*/ |
|
|
161 |
|
|
|
162 |
/** |
|
|
163 |
* @} |
|
|
164 |
*/ |
|
|
165 |
|
|
|
166 |
/******************* (C) COPYRIGHT 2010 STMicroelectronics *****END OF FILE****/ |