Skip to content

Commit

Permalink
[bsp] change macro so that CAN IRQ do not interfere USB IRQ in stm32f10x
Browse files Browse the repository at this point in the history
  • Loading branch information
gbcwbz committed Aug 13, 2017
1 parent a07c450 commit b60712c
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions bsp/stm32f10x/drivers/stm32f10x_it.c
Original file line number Diff line number Diff line change
Expand Up @@ -145,20 +145,24 @@ void EXTI4_IRQHandler(void)
}
#endif /* RT_USING_LWIP */

#if (defined (RT_USING_CAN)) && !(defined (STM32F10X_CL))
#ifndef STM32F10X_CL
/* CAN and USB IRQ for stm32 none connectivity line devices
* change to USB IRQ, if you want to use USB
*/
void USB_LP_CAN1_RX0_IRQHandler(void)
{
#ifdef RT_USING_CAN
CAN1_RX0_IRQHandler();
#endif
}
void USB_HP_CAN1_TX_IRQHandler(void)
{
#ifdef RT_USING_CAN
CAN1_TX_IRQHandler();
#endif
}
#endif


/**
* @}
*/
Expand Down

0 comments on commit b60712c

Please sign in to comment.