diff options
Diffstat (limited to 'common/print.c')
-rw-r--r-- | common/print.c | 28 |
1 files changed, 7 insertions, 21 deletions
diff --git a/common/print.c b/common/print.c index 783bb4e9b..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,26 +38,11 @@ void print_set_sendchar(int8_t (*sendchar_func)(uint8_t)) xdev_out(sendchar_func); } -void print_S(const char *s) -{ - uint8_t c; - while (1) { - c = *s++; - if (!c) break; - if (c == '\n') sendchar('\r'); - sendchar(c); - } -} +#elif defined(__arm__) -void print_lf(void) -{ - sendchar('\n'); -} +// TODO +//void print_set_sendchar(int8_t (*sendchar_func)(uint8_t)) { } -void print_crlf(void) -{ - sendchar('\r'); - sendchar('\n'); -} +#endif #endif |