diff options
Diffstat (limited to 'os/hal')
-rw-r--r-- | os/hal/platforms/STM32/can_lld.c | 5 | ||||
-rw-r--r-- | os/hal/platforms/STM32/can_lld.h | 1 |
2 files changed, 3 insertions, 3 deletions
diff --git a/os/hal/platforms/STM32/can_lld.c b/os/hal/platforms/STM32/can_lld.c index 30e9dd7cf..716b16e84 100644 --- a/os/hal/platforms/STM32/can_lld.c +++ b/os/hal/platforms/STM32/can_lld.c @@ -65,8 +65,8 @@ CANDriver CAND2; * @notapi
*/
static void can_lld_set_filters(uint32_t can2sb,
- uint32_t num,
- const CANFilter *cfp) {
+ uint32_t num,
+ const CANFilter *cfp) {
/* Temporarily enabling CAN1 clock.*/
rccEnableCAN1(FALSE);
@@ -383,7 +383,6 @@ void can_lld_init(void) { #else
can_lld_set_filters(STM32_CAN_MAX_FILTERS, 0, NULL);
#endif
-
}
/**
diff --git a/os/hal/platforms/STM32/can_lld.h b/os/hal/platforms/STM32/can_lld.h index c339c01e7..d4e8188bb 100644 --- a/os/hal/platforms/STM32/can_lld.h +++ b/os/hal/platforms/STM32/can_lld.h @@ -355,6 +355,7 @@ extern "C" { void can_lld_sleep(CANDriver *canp);
void can_lld_wakeup(CANDriver *canp);
#endif /* CAN_USE_SLEEP_MODE */
+ void canSTM32SetFilters(uint32_t can2sb, uint32_t num, const CANFilter *cfp);
#ifdef __cplusplus
}
#endif
|