diff --git a/stm32l1xx_it.c b/stm32l1xx_it.c --- a/stm32l1xx_it.c +++ b/stm32l1xx_it.c @@ -28,8 +28,11 @@ */ /* Includes ------------------------------------------------------------------*/ +#include "hw_config.h" #include "stm32l1xx_it.h" #include "main.h" +#include "usb_lib.h" +#include "usb_istr.h" /** @addtogroup STM32L100C-Discovery_Demo * @{ @@ -144,6 +147,50 @@ void SysTick_Handler(void) TimingDelay_Decrement(); } + + + + + +/******************************************************************************* +* Function Name : USB_IRQHandler +* Description : This function handles USB Low Priority interrupts +* requests. +* Input : None +* Output : None +* Return : None +*******************************************************************************/ +#if defined(STM32L1XX_MD) || defined(STM32L1XX_HD)|| defined(STM32L1XX_MD_PLUS)|| defined (STM32F37X) +void USB_LP_IRQHandler(void) +#else +void USB_LP_CAN1_RX0_IRQHandler(void) +#endif +{ + USB_Istr(); +} + +/******************************************************************************* +* Function Name : USB_FS_WKUP_IRQHandler +* Description : This function handles USB WakeUp interrupt request. +* Input : None +* Output : None +* Return : None +*******************************************************************************/ + +#if defined(STM32L1XX_MD) || defined(STM32L1XX_HD)|| defined(STM32L1XX_MD_PLUS) +void USB_FS_WKUP_IRQHandler(void) +#else +void USBWakeUp_IRQHandler(void) +#endif +{ + EXTI_ClearITPendingBit(EXTI_Line18); +} + + + + + + /******************************************************************************/ /* STM32L1xx Peripherals Interrupt Handlers */ /* Add here the Interrupt Handler for the used peripheral(s) (PPP), for the */ @@ -165,4 +212,7 @@ void SysTick_Handler(void) */ + + + /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/