diff options
| -rw-r--r-- | common/print.c | 12 | ||||
| -rw-r--r-- | tool/mbed/common.mk | 2 |
2 files changed, 12 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 |
diff --git a/tool/mbed/common.mk b/tool/mbed/common.mk index 93a927a3e..403da9ac8 100644 --- a/tool/mbed/common.mk +++ b/tool/mbed/common.mk | |||
| @@ -7,6 +7,8 @@ OBJECTS += \ | |||
| 7 | $(OBJDIR)/common/host.o \ | 7 | $(OBJDIR)/common/host.o \ |
| 8 | $(OBJDIR)/common/keymap.o \ | 8 | $(OBJDIR)/common/keymap.o \ |
| 9 | $(OBJDIR)/common/keyboard.o \ | 9 | $(OBJDIR)/common/keyboard.o \ |
| 10 | $(OBJDIR)/common/print.o \ | ||
| 11 | $(OBJDIR)/common/debug.o \ | ||
| 10 | $(OBJDIR)/common/util.o \ | 12 | $(OBJDIR)/common/util.o \ |
| 11 | $(OBJDIR)/common/mbed/suspend.o \ | 13 | $(OBJDIR)/common/mbed/suspend.o \ |
| 12 | $(OBJDIR)/common/mbed/timer.o \ | 14 | $(OBJDIR)/common/mbed/timer.o \ |
