File tree Expand file tree Collapse file tree 9 files changed +6
-206
lines changed Expand file tree Collapse file tree 9 files changed +6
-206
lines changed Load Diff This file was deleted.
Load Diff This file was deleted.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1515using namespace Board ;
1616
1717modm::IODeviceWrapper<Itm, modm::IOBuffer::DiscardIfFull> itm_device;
18+ // Set all four logger streams to use ITM
1819modm::IOStream stream (itm_device);
1920
2021int
2122main ()
2223{
2324 Board::initialize ();
2425 Itm::initialize ();
26+ Leds::setOutput ();
2527
2628 stream << " Hello from the SWO." << modm::endl;
27- stream << " debug" << modm::endl;
28- stream << " info" << modm::endl;
29- stream << " warning" << modm::endl;
30- stream << " error" << modm::endl;
31-
3229
3330 while (true )
3431 {
3532 static modm::PeriodicTimer tmr{500ms};
3633 if (tmr.execute ())
3734 {
3835 tmr.restart (Button::read () ? 100ms : 500ms);
39- LedGreen ::toggle ();
36+ Leds ::toggle ();
4037
4138 static uint32_t counter{0 };
4239 stream << " loop: " << counter++ << modm::endl;
Original file line number Diff line number Diff line change 11<library >
22 <extends >modm:nucleo-f303re</extends >
3+ <!-- <extends>modm:nucleo-l476rg</extends> -->
4+ <!-- <extends>modm:nucleo-f103rb</extends> -->
35 <options >
4- <option name =" modm:build:build.path" >../../../build/nucleo_f303re /itm</option >
6+ <option name =" modm:build:build.path" >../../../build/generic /itm</option >
57 <option name =" modm:platform:itm:buffer.tx" >250</option >
68 </options >
79 <modules >
Load Diff This file was deleted.
Load Diff This file was deleted.
Load Diff This file was deleted.
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments