From 7b584490f3ce37e9559d7e1ffe17bcb1a2fc2fae Mon Sep 17 00:00:00 2001 From: gdisirio Date: Sun, 8 Jun 2014 08:52:27 +0000 Subject: [PATCH] Fixed the fix... git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@6985 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- os/hal/ports/STM32/LLD/can_lld.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/os/hal/ports/STM32/LLD/can_lld.c b/os/hal/ports/STM32/LLD/can_lld.c index 01a05083f..8070cefc8 100644 --- a/os/hal/ports/STM32/LLD/can_lld.c +++ b/os/hal/ports/STM32/LLD/can_lld.c @@ -114,6 +114,9 @@ static void can_lld_set_filters(uint32_t can2sb, #if STM32_HAS_CAN2 CAN1->FS1R = 1 | (1 << can2sb); CAN1->FA1R = 1 | (1 << can2sb); +#else + CAN1->FS1R = 1; + CAN1->FA1R = 1; #endif } CAN1->FMR &= ~CAN_FMR_FINIT; @@ -688,7 +691,7 @@ void can_lld_wakeup(CANDriver *canp) { void canSTM32SetFilters(uint32_t can2sb, uint32_t num, const CANFilter *cfp) { osalDbgCheck((can2sb >= 1) && (can2sb < STM32_CAN_MAX_FILTERS) && - (num