diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2022-06-11 18:19:53 -0400 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2022-06-27 10:50:23 -0400 |
commit | f5d5f53914d46dfccdd21399e44f8af71a8f345a (patch) | |
tree | 4ec476dccec577efd9fcca32d488401bb664d17e /src/stm32/fdcan.c | |
parent | 84b2bfe3135990983d55fd4d530139cf8ddb1f33 (diff) | |
download | kutter-f5d5f53914d46dfccdd21399e44f8af71a8f345a.tar.gz kutter-f5d5f53914d46dfccdd21399e44f8af71a8f345a.tar.xz kutter-f5d5f53914d46dfccdd21399e44f8af71a8f345a.zip |
stm32: Add support for disabling the canbus filter
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'src/stm32/fdcan.c')
-rwxr-xr-x | src/stm32/fdcan.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/stm32/fdcan.c b/src/stm32/fdcan.c index cf2cc276..3af9ffa8 100755 --- a/src/stm32/fdcan.c +++ b/src/stm32/fdcan.c @@ -113,6 +113,8 @@ can_filter(uint32_t index, uint32_t id) void canbus_set_filter(uint32_t id) { + if (!CONFIG_CANBUS_FILTER) + return; /* Request initialisation */ SOC_CAN->CCCR |= FDCAN_CCCR_INIT; /* Wait the acknowledge */ |