diff options
author | Giovanni Di Sirio <gdisirio@gmail.com> | 2017-08-24 11:26:41 +0000 |
---|---|---|
committer | Giovanni Di Sirio <gdisirio@gmail.com> | 2017-08-24 11:26:41 +0000 |
commit | 7426edd2a280249117f4b9e784f427cc9e217e7b (patch) | |
tree | 1b32e5a36c578c3bfe435046ea04c07960d2a998 /os/hal | |
parent | db035833f5f7d1d13c0decb467d69026fab288b9 (diff) | |
download | ChibiOS-7426edd2a280249117f4b9e784f427cc9e217e7b.tar.gz ChibiOS-7426edd2a280249117f4b9e784f427cc9e217e7b.tar.bz2 ChibiOS-7426edd2a280249117f4b9e784f427cc9e217e7b.zip |
Fixed bug #878.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@10471 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/hal')
-rw-r--r-- | os/hal/ports/STM32/LLD/CANv1/hal_can_lld.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/os/hal/ports/STM32/LLD/CANv1/hal_can_lld.c b/os/hal/ports/STM32/LLD/CANv1/hal_can_lld.c index 09dbac7f0..d0a25fb77 100644 --- a/os/hal/ports/STM32/LLD/CANv1/hal_can_lld.c +++ b/os/hal/ports/STM32/LLD/CANv1/hal_can_lld.c @@ -162,14 +162,13 @@ static void can_lld_set_filters(CANDriver* canp, #endif
canp->can->FM1R = 0;
canp->can->FFA1R = 0;
+ canp->can->FS1R = 1;
+ canp->can->FA1R = 1;
#if STM32_CAN_USE_CAN2
if(canp == &CAND1) {
- canp->can->FS1R = 1 | (1 << can2sb);
- canp->can->FA1R = 1 | (1 << can2sb);
+ canp->can->FS1R |= 1 << can2sb;
+ canp->can->FA1R |= 1 << can2sb;
}
-#else
- canp->can->FS1R = 1;
- canp->can->FA1R = 1;
#endif
}
canp->can->FMR &= ~CAN_FMR_FINIT;
|