X-Git-Url: https://git.friedersdorff.com/?a=blobdiff_plain;ds=sidebyside;f=common%2Fprint.c;h=ca94e1e5d6a7ffb9649648ef367b2ab2c5fa21c3;hb=75a59e4d12a13efc03cacd85b394fcf1204aad76;hp=783bb4e9bb676a39b979be1405988b2e99991ce6;hpb=cbb9c408e46a7a7a567f3d6e07713256152106d0;p=max%2Ftmk_keyboard.git diff --git a/common/print.c b/common/print.c index 783bb4e9..ca94e1e5 100644 --- a/common/print.c +++ b/common/print.c @@ -22,13 +22,14 @@ * THE SOFTWARE. */ -#include -#include +#include #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