aboutsummaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorJun Wako <wakojun@gmail.com>2014-12-12 14:05:05 +0900
committerJun Wako <wakojun@gmail.com>2015-01-04 17:21:42 +0900
commit8f1e311cd7624d765901c69e61837db33a51928b (patch)
tree641c06cd3043cae76f8198a3fbdf9361c19884c7 /common
parent06527bde4f873ffc6eb8e359fb3b150e880b89ba (diff)
downloadqmk_firmware-8f1e311cd7624d765901c69e61837db33a51928b.tar.gz
qmk_firmware-8f1e311cd7624d765901c69e61837db33a51928b.zip
Ad hoc fix of print and debug for mbed
Diffstat (limited to 'common')
-rw-r--r--common/print.c12
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 @@
22 * THE SOFTWARE. 22 * THE SOFTWARE.
23 */ 23 */
24 24
25#include <avr/io.h> 25#include <stdint.h>
26#include <avr/pgmspace.h>
27#include "print.h" 26#include "print.h"
28 27
29 28
30#ifndef NO_PRINT 29#ifndef NO_PRINT
31 30
31#if defined(__AVR__)
32
32#define sendchar(c) xputc(c) 33#define sendchar(c) xputc(c)
33 34
34 35
@@ -37,4 +38,11 @@ void print_set_sendchar(int8_t (*sendchar_func)(uint8_t))
37 xdev_out(sendchar_func); 38 xdev_out(sendchar_func);
38} 39}
39 40
41#elif defined(__arm__)
42
43// TODO
44//void print_set_sendchar(int8_t (*sendchar_func)(uint8_t)) { }
45
46#endif
47
40#endif 48#endif