Skip to content

Commit a5223aa

Browse files
chris-durandWasabiFan
authored andcommitted
[stm32] Allow using hardware buffers only in FDCAN driver
1 parent ce9c654 commit a5223aa

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

src/modm/platform/can/stm32-fdcan/can.cpp.in

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -471,11 +471,9 @@ modm::platform::Fdcan{{ id }}::getMessage(can::Message& message, uint8_t *filter
471471
%% else
472472
if (rxFifo0HasMessage()) {
473473
readMsg(message, 0, filter_id, timestamp);
474-
releaseRxFifo0Message();
475474
return true;
476475
} else if (rxFifo1HasMessage()) {
477476
readMsg(message, 1, filter_id, timestamp);
478-
releaseRxFifo1Message();
479477
return true;
480478
}
481479
return false;

src/modm/platform/can/stm32-fdcan/module.lb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,13 +30,13 @@ def load_options(module, options):
3030
NumericOption(
3131
name="buffer.tx",
3232
description="",
33-
minimum=1, maximum="64Ki-2",
33+
minimum=0, maximum="64Ki-2",
3434
default=32))
3535
module.add_option(
3636
NumericOption(
3737
name="buffer.rx",
3838
description="",
39-
minimum=1, maximum="64Ki-2",
39+
minimum=0, maximum="64Ki-2",
4040
default=32))
4141

4242
supports_configurable_message_ram = options[":target"].identifier.family == "h7"

0 commit comments

Comments
 (0)