diff options
author | Nathan Ross Powell <nathanrosspowell@gmail.com> | 2015-03-18 23:33:42 -0400 |
---|---|---|
committer | Nathan Ross Powell <nathanrosspowell@gmail.com> | 2015-03-18 23:33:42 -0400 |
commit | 80c4cdb245a3ff55627d40a3a164073b30382def (patch) | |
tree | e134969a2fc20979101a7e9e7aa06c1877bf82eb /common/print.c | |
parent | e7289bb029b28b824eb0ef7be23dba279057d7ac (diff) | |
parent | 9c3a95663410a294f2c85ad2d1c016f328730e0b (diff) | |
download | firmware-80c4cdb245a3ff55627d40a3a164073b30382def.tar.gz firmware-80c4cdb245a3ff55627d40a3a164073b30382def.tar.bz2 firmware-80c4cdb245a3ff55627d40a3a164073b30382def.zip |
Merge remote-tracking branch 'upstream/master'
Diffstat (limited to 'common/print.c')
-rw-r--r-- | common/print.c | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/common/print.c b/common/print.c index c13a29f31..ca94e1e5d 100644 --- a/common/print.c +++ b/common/print.c @@ -22,13 +22,14 @@ * THE SOFTWARE. */ -#include <avr/io.h> -#include <avr/pgmspace.h> +#include <stdint.h> #include "print.h" #ifndef NO_PRINT +#if defined(__AVR__) + #define sendchar(c) xputc(c) @@ -37,4 +38,11 @@ void print_set_sendchar(int8_t (*sendchar_func)(uint8_t)) xdev_out(sendchar_func); } +#elif defined(__arm__) + +// TODO +//void print_set_sendchar(int8_t (*sendchar_func)(uint8_t)) { } + +#endif + #endif |