提交 a0ec48d6 编写于 作者: B Bernard Xiong 提交者: GitHub

Merge pull request #801 from gbcwbz/stm32_test

[bsp] fix CAN IRQ for stm32 none connectivity line devices
......@@ -47,8 +47,9 @@
#define CAN_TXMAILBOX_1 ((uint8_t)0x01)
#define CAN_TXMAILBOX_2 ((uint8_t)0x02)
#define CAN_MODE_MASK ((uint32_t) 0x00000003)
void CAN1_RX0_IRQHandler(void);
void CAN1_TX_IRQHandler(void);
#endif /*BXCAN_H_*/
......@@ -25,6 +25,7 @@
#include "stm32f10x_it.h"
#include <board.h>
#include <rtthread.h>
#include "bxcan.h"
/** @addtogroup Template_Project
* @{
......@@ -144,6 +145,24 @@ void EXTI4_IRQHandler(void)
}
#endif /* RT_USING_LWIP */
#ifndef STM32F10X_CL
/* CAN and USB IRQ for stm32 none connectivity line devices
*/
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
/**
* @}
*/
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册