Skip to content

Commit

Permalink
[examples] Add DevEBox STM32H750VB blink example
Browse files Browse the repository at this point in the history
  • Loading branch information
hshose authored and salkinium committed Sep 16, 2021
1 parent 5e6200b commit b4eddeb
Show file tree
Hide file tree
Showing 4 changed files with 40 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ jobs:
- name: Examples STM32H7 Series
if: always()
run: |
(cd examples && ../tools/scripts/examples_compile.py nucleo_h743zi nucleo_h723zg)
(cd examples && ../tools/scripts/examples_compile.py nucleo_h743zi nucleo_h723zg stm32h750vbt6_devebox)
stm32f4-examples-1:
runs-on: ubuntu-20.04
Expand Down
28 changes: 28 additions & 0 deletions examples/stm32h750vbt6_devebox/blink/main.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
/*
* Copyright (c) 2021, Henrik Hose
*
* 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>

using namespace Board;

int
main()
{
Board::initialize();

while(true)
{
LedGreen::toggle();
modm::delay(100ms + ButtonK1::read()*500ms + ButtonK2::read()*1000ms);
}

return 0;
}
1 change: 1 addition & 0 deletions examples/stm32h750vbt6_devebox/blink/openocd.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
source [find interface/stlink.cfg]
10 changes: 10 additions & 0 deletions examples/stm32h750vbt6_devebox/blink/project.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<library>
<extends>modm:devebox-stm32h750vb</extends>
<options>
<option name="modm:build:build.path">../../../build/stm32h750vbt6_devebox/blink</option>
<option name="modm:build:openocd.cfg">openocd.cfg</option>
</options>
<modules>
<module>modm:build:scons</module>
</modules>
</library>

0 comments on commit b4eddeb

Please sign in to comment.