Skip to content

Commit b4eddeb

Browse files
hshosesalkinium
authored andcommitted
[examples] Add DevEBox STM32H750VB blink example
1 parent 5e6200b commit b4eddeb

File tree

4 files changed

+40
-1
lines changed

4 files changed

+40
-1
lines changed

.github/workflows/linux.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ jobs:
131131
- name: Examples STM32H7 Series
132132
if: always()
133133
run: |
134-
(cd examples && ../tools/scripts/examples_compile.py nucleo_h743zi nucleo_h723zg)
134+
(cd examples && ../tools/scripts/examples_compile.py nucleo_h743zi nucleo_h723zg stm32h750vbt6_devebox)
135135
136136
stm32f4-examples-1:
137137
runs-on: ubuntu-20.04
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
/*
2+
* Copyright (c) 2021, Henrik Hose
3+
*
4+
* This file is part of the modm project.
5+
*
6+
* This Source Code Form is subject to the terms of the Mozilla Public
7+
* License, v. 2.0. If a copy of the MPL was not distributed with this
8+
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
9+
*/
10+
// ----------------------------------------------------------------------------
11+
12+
#include <modm/board.hpp>
13+
14+
using namespace Board;
15+
16+
int
17+
main()
18+
{
19+
Board::initialize();
20+
21+
while(true)
22+
{
23+
LedGreen::toggle();
24+
modm::delay(100ms + ButtonK1::read()*500ms + ButtonK2::read()*1000ms);
25+
}
26+
27+
return 0;
28+
}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
source [find interface/stlink.cfg]
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
<library>
2+
<extends>modm:devebox-stm32h750vb</extends>
3+
<options>
4+
<option name="modm:build:build.path">../../../build/stm32h750vbt6_devebox/blink</option>
5+
<option name="modm:build:openocd.cfg">openocd.cfg</option>
6+
</options>
7+
<modules>
8+
<module>modm:build:scons</module>
9+
</modules>
10+
</library>

0 commit comments

Comments
 (0)