diff options
author | Giovanni Di Sirio <gdisirio@gmail.com> | 2016-08-26 08:54:49 +0000 |
---|---|---|
committer | Giovanni Di Sirio <gdisirio@gmail.com> | 2016-08-26 08:54:49 +0000 |
commit | 81fe590a94dd1ce6e2bf61cf079668c1f73e2108 (patch) | |
tree | 581139000c32fc09f560a4ea2aae02d0ddbe938d /os | |
parent | 3262155f7d3afa5f69ae98b4744018dec03484eb (diff) | |
download | ChibiOS-81fe590a94dd1ce6e2bf61cf079668c1f73e2108.tar.gz ChibiOS-81fe590a94dd1ce6e2bf61cf079668c1f73e2108.tar.bz2 ChibiOS-81fe590a94dd1ce6e2bf61cf079668c1f73e2108.zip |
Fixed bug #770.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@9743 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os')
-rw-r--r-- | os/hal/ports/STM32/LLD/CANv1/hal_can_lld.c | 3 |
1 files changed, 2 insertions, 1 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 0bef8b2ae..bc9190984 100644 --- a/os/hal/ports/STM32/LLD/CANv1/hal_can_lld.c +++ b/os/hal/ports/STM32/LLD/CANv1/hal_can_lld.c @@ -80,7 +80,8 @@ static void can_lld_set_filters(uint32_t can2sb, rccEnableCAN1(FALSE);
/* Filters initialization.*/
- CAN1->FMR = (CAN1->FMR & 0xFFFF0000) | (can2sb << 8) | CAN_FMR_FINIT;
+ CAN1->FMR = (CAN1->FMR & 0xFFFF0000) | CAN_FMR_FINIT;
+ CAN1->FMR |= (can2sb << 8);
if (num > 0) {
uint32_t i, fmask;
|