Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
stm32f10x_it.c
00001 /******************** (C) COPYRIGHT 2011 STMicroelectronics ******************** 00002 * File Name : stm32f10x_it.c 00003 * Author : MCD Application Team 00004 * Version : V3.3.0 00005 * Date : 21-March-2011 00006 * Description : Main Interrupt Service Routines. 00007 * This file provides template for all exceptions handler 00008 * and peripherals interrupt service routine. 00009 ******************************************************************************** 00010 * THE PRESENT FIRMWARE WHICH IS FOR GUIDANCE ONLY AIMS AT PROVIDING CUSTOMERS 00011 * WITH CODING INFORMATION REGARDING THEIR PRODUCTS IN ORDER FOR THEM TO SAVE TIME. 00012 * AS A RESULT, STMICROELECTRONICS SHALL NOT BE HELD LIABLE FOR ANY DIRECT, 00013 * INDIRECT OR CONSEQUENTIAL DAMAGES WITH RESPECT TO ANY CLAIMS ARISING FROM THE 00014 * CONTENT OF SUCH FIRMWARE AND/OR THE USE MADE BY CUSTOMERS OF THE CODING 00015 * INFORMATION CONTAINED HEREIN IN CONNECTION WITH THEIR PRODUCTS. 00016 *******************************************************************************/ 00017 #ifdef USEUSB 00018 /* Includes ------------------------------------------------------------------*/ 00019 #include "stm32f10x_it.h" 00020 #include "usb_lib.h" 00021 #include "usb_istr.h" 00022 #include "hw_config.h" 00023 00024 /* Private typedef -----------------------------------------------------------*/ 00025 /* Private define ------------------------------------------------------------*/ 00026 /* Private macro -------------------------------------------------------------*/ 00027 /* Private variables ---------------------------------------------------------*/ 00028 /* Private function prototypes -----------------------------------------------*/ 00029 /* Private functions ---------------------------------------------------------*/ 00030 /******************************************************************************/ 00031 /* Cortex-M3 Processor Exceptions Handlers */ 00032 /******************************************************************************/ 00033 00034 /******************************************************************************* 00035 * Function Name : NMI_Handler 00036 * Description : This function handles NMI exception. 00037 * Input : None 00038 * Output : None 00039 * Return : None 00040 *******************************************************************************/ 00041 void NMI_Handler(void) 00042 { 00043 } 00044 00045 /******************************************************************************* 00046 * Function Name : HardFault_Handler 00047 * Description : This function handles Hard Fault exception. 00048 * Input : None 00049 * Output : None 00050 * Return : None 00051 *******************************************************************************/ 00052 void HardFault_Handler(void) 00053 { 00054 /* Go to infinite loop when Hard Fault exception occurs */ 00055 while (1) 00056 { 00057 } 00058 } 00059 00060 /******************************************************************************* 00061 * Function Name : MemManage_Handler 00062 * Description : This function handles Memory Manage exception. 00063 * Input : None 00064 * Output : None 00065 * Return : None 00066 *******************************************************************************/ 00067 void MemManage_Handler(void) 00068 { 00069 /* Go to infinite loop when Memory Manage exception occurs */ 00070 while (1) 00071 { 00072 } 00073 } 00074 00075 /******************************************************************************* 00076 * Function Name : BusFault_Handler 00077 * Description : This function handles Bus Fault exception. 00078 * Input : None 00079 * Output : None 00080 * Return : None 00081 *******************************************************************************/ 00082 void BusFault_Handler(void) 00083 { 00084 /* Go to infinite loop when Bus Fault exception occurs */ 00085 while (1) 00086 { 00087 } 00088 } 00089 00090 /******************************************************************************* 00091 * Function Name : UsageFault_Handler 00092 * Description : This function handles Usage Fault exception. 00093 * Input : None 00094 * Output : None 00095 * Return : None 00096 *******************************************************************************/ 00097 void UsageFault_Handler(void) 00098 { 00099 /* Go to infinite loop when Usage Fault exception occurs */ 00100 while (1) 00101 { 00102 } 00103 } 00104 00105 /******************************************************************************* 00106 * Function Name : SVC_Handler 00107 * Description : This function handles SVCall exception. 00108 * Input : None 00109 * Output : None 00110 * Return : None 00111 *******************************************************************************/ 00112 void SVC_Handler(void) 00113 { 00114 } 00115 00116 /******************************************************************************* 00117 * Function Name : DebugMon_Handler 00118 * Description : This function handles Debug Monitor exception. 00119 * Input : None 00120 * Output : None 00121 * Return : None 00122 *******************************************************************************/ 00123 void DebugMon_Handler(void) 00124 { 00125 } 00126 00127 /******************************************************************************* 00128 * Function Name : PendSV_Handler 00129 * Description : This function handles PendSVC exception. 00130 * Input : None 00131 * Output : None 00132 * Return : None 00133 *******************************************************************************/ 00134 void PendSV_Handler(void) 00135 { 00136 } 00137 00138 /******************************************************************************* 00139 * Function Name : SysTick_Handler 00140 * Description : This function handles SysTick Handler. 00141 * Input : None 00142 * Output : None 00143 * Return : None 00144 *******************************************************************************/ 00145 #if 0 00146 void SysTick_Handler(void) 00147 { 00148 } 00149 #endif 00150 /******************************************************************************/ 00151 /* STM32F10x Peripherals Interrupt Handlers */ 00152 /******************************************************************************/ 00153 00154 #ifndef STM32F10X_CL 00155 /******************************************************************************* 00156 * Function Name : USB_LP_CAN1_RX0_IRQHandler 00157 * Description : This function handles USB Low Priority or CAN RX0 interrupts 00158 * requests. 00159 * Input : None 00160 * Output : None 00161 * Return : None 00162 *******************************************************************************/ 00163 void USB_LP_CAN1_RX0_IRQHandler(void) 00164 { 00165 USB_Istr(); 00166 } 00167 #endif /* STM32F10X_CL */ 00168 00169 /******************************************************************************* 00170 * Function Name : EVAL_COM1_IRQHandler 00171 * Description : This function handles EVAL_COM1 global interrupt request. 00172 * Input : None 00173 * Output : None 00174 * Return : None 00175 *******************************************************************************/ 00176 void EVAL_COM1_IRQHandler(void) 00177 { 00178 #if 0 00179 if (USART_GetITStatus(EVAL_COM1, USART_IT_RXNE) != RESET) 00180 { 00181 /* Send the received data to the PC Host*/ 00182 USART_To_USB_Send_Data(); 00183 } 00184 00185 /* If overrun condition occurs, clear the ORE flag and recover communication */ 00186 if (USART_GetFlagStatus(EVAL_COM1, USART_FLAG_ORE) != RESET) 00187 { 00188 (void)USART_ReceiveData(EVAL_COM1); 00189 } 00190 #endif 00191 } 00192 00193 00194 #ifdef STM32F10X_CL 00195 /******************************************************************************* 00196 * Function Name : OTG_FS_IRQHandler 00197 * Description : This function handles USB-On-The-Go FS global interrupt request. 00198 * Input : None 00199 * Output : None 00200 * Return : None 00201 *******************************************************************************/ 00202 void OTG_FS_IRQHandler(void) 00203 { 00204 STM32_PCD_OTG_ISR_Handler(); 00205 } 00206 #endif /* STM32F10X_CL */ 00207 00208 /******************************************************************************/ 00209 /* STM32F10x Peripherals Interrupt Handlers */ 00210 /* Add here the Interrupt Handler for the used peripheral(s) (PPP), for the */ 00211 /* available peripheral interrupt handler's name please refer to the startup */ 00212 /* file (startup_stm32f10x_xx.s). */ 00213 /******************************************************************************/ 00214 00215 /******************************************************************************* 00216 * Function Name : PPP_IRQHandler 00217 * Description : This function handles PPP interrupt request. 00218 * Input : None 00219 * Output : None 00220 * Return : None 00221 *******************************************************************************/ 00222 /*void PPP_IRQHandler(void) 00223 { 00224 }*/ 00225 00226 /******************* (C) COPYRIGHT 2011 STMicroelectronics *****END OF FILE****/ 00227 00228 #endif
Generated on Tue Jul 12 2022 20:45:31 by
 1.7.2
 1.7.2