Skip to content

Commit

Permalink
[io] Refactor IOStream to use external printf
Browse files Browse the repository at this point in the history
  • Loading branch information
salkinium committed Apr 27, 2019
1 parent 21236a7 commit 901d434
Show file tree
Hide file tree
Showing 20 changed files with 747 additions and 1,318 deletions.
1 change: 1 addition & 0 deletions examples/arduino_uno/basic/read_analog_voltage/project.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
<extends>modm:arduino-uno</extends>
<options>
<option name="modm:build:build.path">../../../../build/arduino_uno/basic/read_analog_voltage</option>
<option name="modm:io:with_float">True</option>
</options>
<modules>
<module>modm:platform:adc</module>
Expand Down
1 change: 1 addition & 0 deletions examples/avr/block_device_mirror/project.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
<option name="modm:target">atmega644</option>
<option name="modm:platform:clock:f_cpu">14745600</option>
<option name="modm:build:build.path">../../../build/avr/block_device_mirror</option>
<option name="modm:io:with_printf">True</option>
</options>
<modules>
<module>modm:debug</module>
Expand Down
1 change: 1 addition & 0 deletions examples/avr/can/mcp2515/project.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
<option name="modm:target">atmega644</option>
<option name="modm:platform:clock:f_cpu">14745600</option>
<option name="modm:build:build.path">../../../../build/avr/can/mcp2515</option>
<option name="modm:io:with_printf">True</option>
</options>
<modules>
<module>modm:driver:mcp2515</module>
Expand Down
1 change: 1 addition & 0 deletions examples/avr/can/mcp2515_uart/project.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
<option name="modm:target">atmega644</option>
<option name="modm:platform:clock:f_cpu">14745600</option>
<option name="modm:build:build.path">../../../../build/avr/can/mcp2515_uart</option>
<option name="modm:io:with_printf">True</option>
</options>
<modules>
<module>modm:architecture:interrupt</module>
Expand Down
2 changes: 2 additions & 0 deletions examples/avr/xpcc/receiver/project.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
<option name="modm:build:build.path">../../../../build/avr/xpcc/receiver</option>
<option name="modm::xpcc:generator:source">../../../xpcc/xml/communication.xml</option>
<option name="modm::xpcc:generator:container">receiver</option>
<option name="modm:io:with_printf">True</option>
<option name="modm:io:with_float">True</option>
</options>
<modules>
<module>modm:communication:xpcc:generator</module>
Expand Down
2 changes: 2 additions & 0 deletions examples/avr/xpcc/sender/project.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
<option name="modm:build:build.path">../../../../build/avr/xpcc/sender</option>
<option name="modm::xpcc:generator:source">../../../xpcc/xml/communication.xml</option>
<option name="modm::xpcc:generator:container">sender</option>
<option name="modm:io:with_printf">True</option>
<option name="modm:io:with_float">True</option>
</options>
<modules>
<module>modm:communication:xpcc:generator</module>
Expand Down
2 changes: 1 addition & 1 deletion src/modm/architecture/interface/accessor_flash.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@

/// Declare a flash string inline
/// @ingroup modm_architecture_accessor
#define PSTR(s) ((const char *)(s))
#define IFSS(s) ((const char *)(s))

#else // !__DOXYGEN__

Expand Down
Loading

0 comments on commit 901d434

Please sign in to comment.