diff options
Diffstat (limited to 'tmk_core/common/print.h')
-rw-r--r-- | tmk_core/common/print.h | 33 |
1 files changed, 1 insertions, 32 deletions
diff --git a/tmk_core/common/print.h b/tmk_core/common/print.h index 20189838f..04ca55810 100644 --- a/tmk_core/common/print.h +++ b/tmk_core/common/print.h | |||
@@ -128,38 +128,7 @@ extern "C" | |||
128 | 128 | ||
129 | # endif /* USER_PRINT / NORMAL PRINT */ | 129 | # endif /* USER_PRINT / NORMAL PRINT */ |
130 | 130 | ||
131 | # elif defined(__arm__) /* __arm__ */ | 131 | # endif /* __AVR__ / PROTOCOL_CHIBIOS / PROTOCOL_ARM_ATSAM */ |
132 | |||
133 | # include "mbed/xprintf.h" | ||
134 | |||
135 | # ifdef USER_PRINT /* USER_PRINT */ | ||
136 | |||
137 | // Remove normal print defines | ||
138 | # define print(s) | ||
139 | # define println(s) | ||
140 | # define xprintf(fmt, ...) | ||
141 | |||
142 | // Create user print defines | ||
143 | # define uprintf(fmt, ...) __xprintf(fmt, ##__VA_ARGS__) | ||
144 | # define uprint(s) xprintf(s) | ||
145 | # define uprintln(s) xprintf(s "\r\n") | ||
146 | |||
147 | # else /* NORMAL PRINT */ | ||
148 | |||
149 | // Create user & normal print defines | ||
150 | # define xprintf(fmt, ...) __xprintf(fmt, ##__VA_ARGS__) | ||
151 | # define print(s) xprintf(s) | ||
152 | # define println(s) xprintf(s "\r\n") | ||
153 | # define uprint(s) print(s) | ||
154 | # define uprintln(s) println(s) | ||
155 | # define uprintf(fmt, ...) xprintf(fmt, ##__VA_ARGS__) | ||
156 | |||
157 | # endif /* USER_PRINT / NORMAL PRINT */ | ||
158 | |||
159 | /* TODO: to select output destinations: UART/USBSerial */ | ||
160 | # define print_set_sendchar(func) | ||
161 | |||
162 | # endif /* __AVR__ / PROTOCOL_CHIBIOS / PROTOCOL_ARM_ATSAM / __arm__ */ | ||
163 | 132 | ||
164 | // User print disables the normal print messages in the body of QMK/TMK code and | 133 | // User print disables the normal print messages in the body of QMK/TMK code and |
165 | // is meant as a lightweight alternative to NOPRINT. Use it when you only want to do | 134 | // is meant as a lightweight alternative to NOPRINT. Use it when you only want to do |