~ruther/qmk_firmware

8f1e311cd7624d765901c69e61837db33a51928b — Jun Wako 10 years ago 06527bd
Ad hoc fix of print and debug for mbed
2 files changed, 12 insertions(+), 2 deletions(-)

M common/print.c
M tool/mbed/common.mk
M common/print.c => common/print.c +10 -2
@@ 22,13 22,14 @@
 * 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

M tool/mbed/common.mk => tool/mbed/common.mk +2 -0
@@ 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 \