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 ------------------------------------------------------------------*/
31 #include "hw_config.h"
34 #include "vcp/usb_istr.h"
36 /* Private typedef -----------------------------------------------------------*/
37 /* Private define ------------------------------------------------------------*/
38 /* Private macro -------------------------------------------------------------*/
39 /* Private variables ---------------------------------------------------------*/
40 /* Private function prototypes -----------------------------------------------*/
41 /* Private functions ---------------------------------------------------------*/
42 /******************************************************************************/
43 /* Cortex-M Processor Exceptions Handlers */
44 /******************************************************************************/
46 /*******************************************************************************
47 * Function Name : NMI_Handler
48 * Description : This function handles NMI exception.
52 *******************************************************************************/
53 void NMI_Handler(void)
59 /*******************************************************************************
60 * Function Name : MemManage_Handler
61 * Description : This function handles Memory Manage exception.
65 *******************************************************************************/
66 void MemManage_Handler(void)
68 /* Go to infinite loop when Memory Manage exception occurs */
73 /*******************************************************************************
74 * Function Name : BusFault_Handler
75 * Description : This function handles Bus Fault exception.
79 *******************************************************************************/
80 void BusFault_Handler(void)
82 /* Go to infinite loop when Bus Fault exception occurs */
87 /*******************************************************************************
88 * Function Name : UsageFault_Handler
89 * Description : This function handles Usage Fault exception.
93 *******************************************************************************/
94 void UsageFault_Handler(void)
96 /* Go to infinite loop when Usage Fault exception occurs */
101 /*******************************************************************************
102 * Function Name : SVC_Handler
103 * Description : This function handles SVCall exception.
107 *******************************************************************************/
108 void SVC_Handler(void)
112 /*******************************************************************************
113 * Function Name : DebugMon_Handler
114 * Description : This function handles Debug Monitor exception.
118 *******************************************************************************/
119 void DebugMon_Handler(void)
123 /*******************************************************************************
124 * Function Name : PendSV_Handler
125 * Description : This function handles PendSVC exception.
129 *******************************************************************************/
130 void PendSV_Handler(void)
135 /*******************************************************************************
136 * Function Name : USB_IRQHandler
137 * Description : This function handles USB Low Priority interrupts
142 *******************************************************************************/
143 #if defined(STM32L1XX_MD) || defined(STM32L1XX_HD)|| defined(STM32L1XX_MD_PLUS)
144 void USB_LP_IRQHandler(void)
146 void USB_LP_CAN1_RX0_IRQHandler(void)
152 /*******************************************************************************
153 * Function Name : USB_FS_WKUP_IRQHandler
154 * Description : This function handles USB WakeUp interrupt request.
158 *******************************************************************************/
160 #if defined(STM32L1XX_MD) || defined(STM32L1XX_HD)|| defined(STM32L1XX_MD_PLUS)
161 void USB_FS_WKUP_IRQHandler(void)
163 void USBWakeUp_IRQHandler(void)
166 EXTI_ClearITPendingBit(EXTI_Line18
);