diff options
Diffstat (limited to 'tmk_core/common/print.h')
| -rw-r--r-- | tmk_core/common/print.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/tmk_core/common/print.h b/tmk_core/common/print.h index 4f3dde65a..0368bcd4a 100644 --- a/tmk_core/common/print.h +++ b/tmk_core/common/print.h | |||
| @@ -47,7 +47,15 @@ extern "C" | |||
| 47 | /* function pointer of sendchar to be used by print utility */ | 47 | /* function pointer of sendchar to be used by print utility */ |
| 48 | void print_set_sendchar(int8_t (*print_sendchar_func)(uint8_t)); | 48 | void print_set_sendchar(int8_t (*print_sendchar_func)(uint8_t)); |
| 49 | 49 | ||
| 50 | #elif defined(__arm__) | 50 | #elif defined(PROTOCOL_CHIBIOS) /* __AVR__ */ |
| 51 | |||
| 52 | #include "chibios/printf.h" | ||
| 53 | |||
| 54 | #define print(s) printf(s) | ||
| 55 | #define println(s) printf(s "\r\n") | ||
| 56 | #define xprintf printf | ||
| 57 | |||
| 58 | #elif defined(__arm__) /* __AVR__ */ | ||
| 51 | 59 | ||
| 52 | #include "mbed/xprintf.h" | 60 | #include "mbed/xprintf.h" |
| 53 | 61 | ||
