summaryrefslogtreecommitdiff
path: root/bsp
diff options
context:
space:
mode:
authorAubr.Cool <[email protected]>2015-06-12 13:58:50 +0800
committerAubr.Cool <[email protected]>2015-06-16 08:49:26 +0800
commit70aedb7a3436be153e6df25bd082f1edeb5f8e04 (patch)
tree349d0a82e9a1916d12ecddc8156946c842bd7c8c /bsp
parent40123f09734230423e6bb6ec10ec5886d7f5c4b9 (diff)
correct bxcan rcv irq error
Diffstat (limited to 'bsp')
-rw-r--r--bsp/stm32f10x/drivers/bxcan.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/bsp/stm32f10x/drivers/bxcan.c b/bsp/stm32f10x/drivers/bxcan.c
index 765a004aed..83d82d04fa 100644
--- a/bsp/stm32f10x/drivers/bxcan.c
+++ b/bsp/stm32f10x/drivers/bxcan.c
@@ -1127,7 +1127,7 @@ static struct stm_bxcan bxcan1data =
struct rt_can_device bxcan1;
void CAN1_RX0_IRQHandler(void)
{
- if(CAN1->RF0R & 0x11)
+ if(CAN1->RF0R & 0x03)
{
if ((CAN1->RF0R & CAN_RF0R_FOVR0) != 0)
{
@@ -1141,7 +1141,7 @@ void CAN1_RX0_IRQHandler(void)
}
void CAN1_RX1_IRQHandler(void)
{
- if(CAN1->RF1R & 0x11)
+ if(CAN1->RF1R & 0x03)
{
if ((CAN1->RF1R & CAN_RF1R_FOVR1) != 0)
{
@@ -1262,7 +1262,7 @@ static struct stm_bxcan bxcan2data =
struct rt_can_device bxcan2;
void CAN2_RX0_IRQHandler(void)
{
- if(CAN2->RF0R & 0x11)
+ if(CAN2->RF0R & 0x03)
{
if ((CAN2->RF0R & CAN_RF0R_FOVR0) != 0)
{
@@ -1276,7 +1276,7 @@ void CAN2_RX0_IRQHandler(void)
}
void CAN2_RX1_IRQHandler(void)
{
- if(CAN2->RF1R & 0x11)
+ if(CAN2->RF1R & 0x03)
{
if ((CAN2->RF1R & CAN_RF1R_FOVR1) != 0)
{