2 ******************************************************************************
4 * @author MCD Application Team
6 * @date 21-January-2013
7 * @brief Main Interrupt Service Routines.
8 * This file provides template for all exceptions handler and peripherals
9 * interrupt service routine.
10 ******************************************************************************
13 * <h2><center>© COPYRIGHT 2013 STMicroelectronics</center></h2>
15 * Licensed under MCD-ST Liberty SW License Agreement V2, (the "License");
16 * You may not use this file except in compliance with the License.
17 * You may obtain a copy of the License at:
19 * http://www.st.com/software_license_agreement_liberty_v2
21 * Unless required by applicable law or agreed to in writing, software
22 * distributed under the License is distributed on an "AS IS" BASIS,
23 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
24 * See the License for the specific language governing permissions and
25 * limitations under the License.
27 ******************************************************************************
30 /* Includes ------------------------------------------------------------------*/
34 #include "hw_config.h"
37 #include "vcp/usb_istr.h"
39 /* Private typedef -----------------------------------------------------------*/
40 /* Private define ------------------------------------------------------------*/
41 /* Private macro -------------------------------------------------------------*/
42 /* Private variables ---------------------------------------------------------*/
43 /* Private function prototypes -----------------------------------------------*/
44 /* Private functions ---------------------------------------------------------*/
45 /******************************************************************************/
46 /* Cortex-M Processor Exceptions Handlers */
47 /******************************************************************************/
49 /*******************************************************************************
50 * Function Name : NMI_Handler
51 * Description : This function handles NMI exception.
55 *******************************************************************************/
56 void NMI_Handler(void)
62 /*******************************************************************************
63 * Function Name : MemManage_Handler
64 * Description : This function handles Memory Manage exception.
68 *******************************************************************************/
69 void MemManage_Handler(void)
71 /* Go to infinite loop when Memory Manage exception occurs */
76 /*******************************************************************************
77 * Function Name : BusFault_Handler
78 * Description : This function handles Bus Fault exception.
82 *******************************************************************************/
83 void BusFault_Handler(void)
85 /* Go to infinite loop when Bus Fault exception occurs */
90 /*******************************************************************************
91 * Function Name : UsageFault_Handler
92 * Description : This function handles Usage Fault exception.
96 *******************************************************************************/
97 void UsageFault_Handler(void)
99 /* Go to infinite loop when Usage Fault exception occurs */
104 /*******************************************************************************
105 * Function Name : SVC_Handler
106 * Description : This function handles SVCall exception.
110 *******************************************************************************/
111 void SVC_Handler(void)
115 /*******************************************************************************
116 * Function Name : DebugMon_Handler
117 * Description : This function handles Debug Monitor exception.
121 *******************************************************************************/
122 void DebugMon_Handler(void)
126 /*******************************************************************************
127 * Function Name : PendSV_Handler
128 * Description : This function handles PendSVC exception.
132 *******************************************************************************/
133 void PendSV_Handler(void)
138 /*******************************************************************************
139 * Function Name : USB_IRQHandler
140 * Description : This function handles USB Low Priority interrupts
145 *******************************************************************************/
146 #if defined(STM32L1XX_MD) || defined(STM32L1XX_HD)|| defined(STM32L1XX_MD_PLUS)|| defined (STM32F37X)
147 void USB_LP_IRQHandler(void)
149 void USB_LP_CAN1_RX0_IRQHandler(void)
155 /*******************************************************************************
156 * Function Name : USB_FS_WKUP_IRQHandler
157 * Description : This function handles USB WakeUp interrupt request.
161 *******************************************************************************/
163 #if defined(STM32L1XX_MD) || defined(STM32L1XX_HD)|| defined(STM32L1XX_MD_PLUS)
164 void USB_FS_WKUP_IRQHandler(void)
166 void USBWakeUp_IRQHandler(void)
169 EXTI_ClearITPendingBit(EXTI_Line18
);