소스 검색

Ad hoc fix of print and debug for mbed

tags/v1.9
Jun Wako 9 년 전
부모
커밋
8f1e311cd7
2개의 변경된 파일12개의 추가작업 그리고 2개의 파일을 삭제
  1. 10
    2
      common/print.c
  2. 2
    0
      tool/mbed/common.mk

+ 10
- 2
common/print.c 파일 보기

* THE SOFTWARE. * THE SOFTWARE.
*/ */


#include <avr/io.h>
#include <avr/pgmspace.h>
#include <stdint.h>
#include "print.h" #include "print.h"




#ifndef NO_PRINT #ifndef NO_PRINT


#if defined(__AVR__)

#define sendchar(c) xputc(c) #define sendchar(c) xputc(c)




xdev_out(sendchar_func); xdev_out(sendchar_func);
} }


#elif defined(__arm__)

// TODO
//void print_set_sendchar(int8_t (*sendchar_func)(uint8_t)) { }

#endif

#endif #endif

+ 2
- 0
tool/mbed/common.mk 파일 보기

$(OBJDIR)/common/host.o \ $(OBJDIR)/common/host.o \
$(OBJDIR)/common/keymap.o \ $(OBJDIR)/common/keymap.o \
$(OBJDIR)/common/keyboard.o \ $(OBJDIR)/common/keyboard.o \
$(OBJDIR)/common/print.o \
$(OBJDIR)/common/debug.o \
$(OBJDIR)/common/util.o \ $(OBJDIR)/common/util.o \
$(OBJDIR)/common/mbed/suspend.o \ $(OBJDIR)/common/mbed/suspend.o \
$(OBJDIR)/common/mbed/timer.o \ $(OBJDIR)/common/mbed/timer.o \

Loading…
취소
저장