Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DMA #358

Closed
wants to merge 1 commit into from
Closed

DMA #358

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
44 changes: 44 additions & 0 deletions examples/stm32f4_discovery/dma/main.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
/*
* Copyright (c) 2011, Georgi Grinshpun
* Copyright (c) 2011-2012, Fabian Greif
* Copyright (c) 2012, 2014, Sascha Schade
* Copyright (c) 2013, Kevin Läufer
* Copyright (c) 2013, 2015-2017, Niklas Hauser
*
* 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 <modm/board.hpp>

#include <modm/platform/dma/dmahal.hpp>

using namespace Board;

// ----------------------------------------------------------------------------
int
main()
{
initialize();

//LedOrange::set();
//LedRed::set();

modm::platform::DmaHal1 dmaHal1;
dmaHal1.slot1.reset();

while (1)
{
/*LedBlue::toggle();
LedGreen::toggle();
LedOrange::toggle();
LedRed::toggle();*/
modm::delayMilliseconds(Button::read() ? 250 : 500);
}

return 0;
}
17 changes: 17 additions & 0 deletions examples/stm32f4_discovery/dma/project.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<?xml version='1.0' encoding='UTF-8'?>
<library>
<!--
<extends>../../../src/modm/board/disco_f407vg/board.xml</extends>
<extends>../../../src/modm/board/nucleo_l432kc/board.xml</extends>
<extends>../../../src/modm/board/disco_f303vc/board.xml</extends>
<extends>../../../src/modm/board/disco_f072rb/board.xml</extends>
-->
<extends>../../../src/modm/board/disco_f072rb/board.xml</extends>
<options>
<option name=":build:build.path">../../../build/dma_tests/dma</option>
</options>
<modules>
<module>:build:scons</module>
<module>:platform:dma</module>
</modules>
</library>
140 changes: 0 additions & 140 deletions src/modm/platform/dma/stm32/dma.hpp.in

This file was deleted.

191 changes: 0 additions & 191 deletions src/modm/platform/dma/stm32/dma_base.hpp.in

This file was deleted.

Loading