Skip to content

Commit

Permalink
[dma] New DMA implementation, starting with some STM32L4 MCU.
Browse files Browse the repository at this point in the history
  • Loading branch information
mikewolfram committed May 6, 2020
1 parent 59ce752 commit 0217a19
Show file tree
Hide file tree
Showing 7 changed files with 801 additions and 385 deletions.
27 changes: 27 additions & 0 deletions src/modm/platform/dma/stm32/dma.cpp.in
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
Loading

0 comments on commit 0217a19

Please sign in to comment.