-
Notifications
You must be signed in to change notification settings - Fork 143
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[dma] New DMA implementation, starting with some STM32L4 MCU.
- Loading branch information
1 parent
59ce752
commit 0217a19
Showing
7 changed files
with
801 additions
and
385 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
/* | ||
* Copyright (c) 2020, Mike Wolfram | ||
* | ||
* 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 "dma.hpp" | ||
|
||
%% for channels in dma["channels"] | ||
/* | ||
* IRQ handler for DMA{{ channels.instance }} | ||
*/ | ||
%% for channel in channels.channel | ||
|
||
MODM_ISR(DMA{{ channels.instance }}_Channel{{ channel.position }}) | ||
{ | ||
using namespace modm::platform; | ||
Dma{{ channels.instance }}::Channel<DmaBase::Channel::Channel{{ channel.position }}>::interruptHandler(); | ||
} | ||
|
||
%% endfor | ||
%% endfor |
Oops, something went wrong.