Skip to content

Commit

Permalink
[stm32] Allow using hardware buffers only in FDCAN driver
Browse files Browse the repository at this point in the history
  • Loading branch information
chris-durand authored and WasabiFan committed Sep 17, 2024
1 parent e491a79 commit 0716187
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 0 additions & 2 deletions src/modm/platform/can/stm32-fdcan/can.cpp.in
Original file line number Diff line number Diff line change
Expand Up @@ -470,11 +470,9 @@ modm::platform::Fdcan{{ id }}::getMessage(can::Message& message, uint8_t *filter
%% else
if (rxFifo0HasMessage()) {
readMsg(message, 0, filter_id, timestamp);
releaseRxFifo0Message();
return true;
} else if (rxFifo1HasMessage()) {
readMsg(message, 1, filter_id, timestamp);
releaseRxFifo1Message();
return true;
}
return false;
Expand Down
4 changes: 2 additions & 2 deletions src/modm/platform/can/stm32-fdcan/module.lb
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,13 @@ def load_options(module, options):
NumericOption(
name="buffer.tx",
description="",
minimum=1, maximum="64Ki-2",
minimum=0, maximum="64Ki-2",
default=32))
module.add_option(
NumericOption(
name="buffer.rx",
description="",
minimum=1, maximum="64Ki-2",
minimum=0, maximum="64Ki-2",
default=32))

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

0 comments on commit 0716187

Please sign in to comment.