Skip to content

Commit 22a36f7

Browse files
committed
[examples] Deduplicate RTT examples
1 parent b4dc3c8 commit 22a36f7

File tree

8 files changed

+20
-223
lines changed

8 files changed

+20
-223
lines changed

examples/blue_pill_f103/rtt/main.cpp

Lines changed: 0 additions & 94 deletions
This file was deleted.

examples/blue_pill_f103/rtt/openocd.cfg

Lines changed: 0 additions & 2 deletions
This file was deleted.

examples/blue_pill_f103/rtt/project.xml

Lines changed: 0 additions & 14 deletions
This file was deleted.

examples/stm32f3_discovery/rtt/main.cpp renamed to examples/generic/rtt/main.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ int
5959
main()
6060
{
6161
Board::initialize();
62+
Leds::setOutput();
6263

6364
MODM_LOG_DEBUG << "Debug" << modm::endl;
6465
MODM_LOG_INFO << "Info" << modm::endl;
@@ -83,7 +84,7 @@ main()
8384
}
8485
if (tmr.execute())
8586
{
86-
LedNorth::toggle();
87+
Leds::toggle();
8788

8889
MODM_LOG_INFO << "loop: " << counter++ << modm::endl;
8990
}

examples/generic/rtt/project.xml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
<library>
2+
<extends>modm:disco-f303vc</extends>
3+
<!-- <extends>modm:blue-pill-f103</extends> -->
4+
<!-- <extends>modm:black-pill-f401</extends> -->
5+
<options>
6+
<option name="modm:build:build.path">../../../build/generic/rtt</option>
7+
<option name="modm:platform:rtt:buffer.tx">256</option>
8+
<option name="modm:platform:rtt:buffer.rx">16</option>
9+
<!-- Required for modm:blue-pill-f103, modm:black-pill-f401 -->
10+
<!-- <option name="modm:build:openocd.cfg">../stlink.cfg</option> -->
11+
</options>
12+
<modules>
13+
<module>modm:platform:rtt</module>
14+
<module>modm:processing:timer</module>
15+
<module>modm:build:scons</module>
16+
<module>modm:debug</module>
17+
</modules>
18+
</library>

examples/nucleo_l476rg/rtt/main.cpp

Lines changed: 0 additions & 86 deletions
This file was deleted.

examples/nucleo_l476rg/rtt/project.xml

Lines changed: 0 additions & 13 deletions
This file was deleted.

examples/stm32f3_discovery/rtt/project.xml

Lines changed: 0 additions & 13 deletions
This file was deleted.

0 commit comments

Comments
 (0)