Skip to content

Commit a4bd34a

Browse files
committed
[io] Prevent circular header dependency
IOStream is used almost everywhere
1 parent 6206bb0 commit a4bd34a

File tree

18 files changed

+19
-19
lines changed

18 files changed

+19
-19
lines changed

examples/avr/1-wire/ds18b20/main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
#include <modm/platform.hpp>
1515
#include <modm/driver/temperature/ds18b20.hpp>
16-
#include <modm/io/iostream.hpp>
16+
#include <modm/io.hpp>
1717

1818
using namespace modm::platform;
1919
using namespace modm::literals;

examples/avr/adc/basic/main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
// ----------------------------------------------------------------------------
1313

1414
#include <modm/platform.hpp>
15-
#include <modm/io/iostream.hpp>
15+
#include <modm/io.hpp>
1616

1717
using namespace modm::platform;
1818
using namespace modm::literals;

examples/avr/adc/oversample/main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ using namespace std::chrono_literals;
1919

2020
// Create a new UART object
2121

22-
#include <modm/io/iostream.hpp>
22+
#include <modm/io.hpp>
2323
// Create a IOStream for complex formatting tasks
2424
modm::IODeviceWrapper< Uart0, modm::IOBuffer::BlockIfFull > device;
2525
modm::IOStream output(device);

examples/avr/display/dogm128/touch/main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
#include <modm/platform.hpp>
1515
#include <modm/driver/display/ea_dog.hpp>
16-
#include <modm/io/iostream.hpp>
16+
#include <modm/io.hpp>
1717
#include <modm/architecture/interface/clock.hpp>
1818

1919
using namespace modm::platform;

examples/avr/uart/extended/main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
// ----------------------------------------------------------------------------
1313

1414
#include <modm/platform.hpp>
15-
#include <modm/io/iostream.hpp>
15+
#include <modm/io.hpp>
1616
using namespace modm::literals;
1717

1818
using namespace modm::platform;

examples/rp_pico/adc_simple/main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
*/
1010

1111
#include <modm/board.hpp>
12-
#include <modm/io/iostream.hpp>
12+
#include <modm/io.hpp>
1313
#include <modm/platform.hpp>
1414

1515
int

examples/rp_pico/st7789/main.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
// ----------------------------------------------------------------------------
1111

1212
#include <modm/board.hpp>
13+
#include <modm/io.hpp>
1314
#include <modm/driver/display/st7789.hpp>
1415
#include <modm/driver/display/st7789/st7789_spi_interface.hpp>
1516
#include <modm/processing/timer/periodic_timer.hpp>

examples/same70_xplained/adc/main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
*/
1212

1313
#include <modm/board.hpp>
14-
#include <modm/io/iostream.hpp>
14+
#include <modm/io.hpp>
1515

1616
using namespace modm::platform;
1717
using namespace modm::literals;

examples/samg55_xplained_pro/adc-uart/main.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
*/
1010

1111
#include <modm/board.hpp>
12-
#include <modm/io/iostream.hpp>
12+
#include <modm/io.hpp>
1313

1414
using namespace modm::platform;
1515
using namespace modm::literals;
@@ -52,4 +52,4 @@ main()
5252

5353
modm::delay(500ms);
5454
}
55-
}
55+
}

examples/samg55_xplained_pro/timer/main.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
*/
1010

1111
#include <modm/board.hpp>
12-
#include <modm/io/iostream.hpp>
12+
#include <modm/io.hpp>
1313
#include <modm/platform.hpp>
1414

1515
using namespace modm::platform;
@@ -83,4 +83,4 @@ main()
8383

8484
while (true)
8585
;
86-
}
86+
}

0 commit comments

Comments
 (0)