-
Notifications
You must be signed in to change notification settings - Fork 130
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
shared IRQ handling for fdcan on STM32G0
- Loading branch information
Klaus Schnass
committed
Jul 21, 2023
1 parent
8012d82
commit a05cc62
Showing
5 changed files
with
93 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
/* | ||
* Copyright (c) 2023, Klaus Schnass (Zuehlke Engineering) | ||
* | ||
* This file is part of the modm project. | ||
* | ||
* This Source Code Form is subject to the terms of the Mozilla Public | ||
* License, v. 2.0. If a copy of the MPL was not distributed with this | ||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. | ||
*/ | ||
// ---------------------------------------------------------------------------- | ||
#include <cstring> | ||
#include <modm/architecture/interface/delay.hpp> | ||
#include <modm/architecture/interface/interrupt.hpp> | ||
|
||
%% for instances in shared_irqs.values() | ||
%% for instance in instances | sort | ||
#include "can_{{ instance[0] }}.hpp" | ||
%% endfor | ||
%% endfor | ||
|
||
%% for irq,instances in shared_irqs.items() | ||
MODM_ISR({{ irq }}) | ||
{ | ||
%% for id,line in instances | sort | ||
modm::platform::Fdcan{{ id }}::irq{{ line }}(); | ||
%% endfor | ||
} | ||
%% endfor |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters