Skip to content

Commit

Permalink
fixup! [stm32] Add FDCAN support for H7 series
Browse files Browse the repository at this point in the history
  • Loading branch information
WasabiFan committed Sep 2, 2024
1 parent 2f582ad commit 700064c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/modm/platform/can/stm32-fdcan/can.cpp.in
Original file line number Diff line number Diff line change
Expand Up @@ -401,7 +401,7 @@ modm::platform::Fdcan{{ id }}::configureInterrupts(uint32_t interruptPriority)
// enable both interrupts lines (0 and 1)
{{ reg }}->ILE = FDCAN_ILE_EINT1 | FDCAN_ILE_EINT0;
// assign receive interrupts to line 1

%% if target["family"] == "h7"
{{ reg }}->ILS = (FDCAN_ILS_RF0LL | FDCAN_ILS_RF0FL | FDCAN_ILS_RF0NL) | (FDCAN_ILS_RF1LL | FDCAN_ILS_RF1FL | FDCAN_ILS_RF1NL);
%% else
Expand Down
2 changes: 1 addition & 1 deletion src/modm/platform/can/stm32-fdcan/can.hpp.in
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ namespace modm::platform
* transmit FIFOs. The RAM is 0.8 Kbyte per FDCAN instance, except for the H7
* series, which has 10 Kbytes of total message RAM arbitrarily split between
* FDCAN instances.
*
*
* This driver supports SW-managed/in-memory FIFOs which augment the hardware TX
* and RX FIFOs. Note that the HW TX queue is set to "queue mode" (not "FIFO mode").
* This means CAN messages are popped from the in-memory FIFO in order of addition
Expand Down

0 comments on commit 700064c

Please sign in to comment.