]> git.friedersdorff.com Git - max/tmk_keyboard.git/commitdiff
Ad hoc fix of print and debug for mbed
authorJun Wako <wakojun@gmail.com>
Fri, 12 Dec 2014 05:05:05 +0000 (14:05 +0900)
committerJun Wako <wakojun@gmail.com>
Sun, 4 Jan 2015 08:21:42 +0000 (17:21 +0900)
common/print.c
tool/mbed/common.mk

index c13a29f3170d57799bf594c3511ee02b4f924217..ca94e1e5d6a7ffb9649648ef367b2ab2c5fa21c3 100644 (file)
  * 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,4 +38,11 @@ void print_set_sendchar(int8_t (*sendchar_func)(uint8_t))
     xdev_out(sendchar_func);
 }
 
+#elif defined(__arm__)
+
+// TODO
+//void print_set_sendchar(int8_t (*sendchar_func)(uint8_t)) { }
+
+#endif
+
 #endif
index 93a927a3e852cfaa0f587c2820569649c9d9bbf3..403da9ac8d7881c19ef67c6cba46cb606135017b 100644 (file)
@@ -7,6 +7,8 @@ OBJECTS += \
        $(OBJDIR)/common/host.o \
        $(OBJDIR)/common/keymap.o \
        $(OBJDIR)/common/keyboard.o \
+       $(OBJDIR)/common/print.o \
+       $(OBJDIR)/common/debug.o \
        $(OBJDIR)/common/util.o \
        $(OBJDIR)/common/mbed/suspend.o \
        $(OBJDIR)/common/mbed/timer.o \