From 61e12a3157ea6860f23bf8e29372aa70aeb02be0 Mon Sep 17 00:00:00 2001 From: tmk Date: Sat, 7 May 2011 00:04:18 +0900 Subject: move files: main_vusb.c ps2_usart.c sendchar_usart.c from ps2_usb to common dir --- vusb/sendchar_usart.c | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 vusb/sendchar_usart.c (limited to 'vusb/sendchar_usart.c') diff --git a/vusb/sendchar_usart.c b/vusb/sendchar_usart.c new file mode 100644 index 0000000000..d6f3c894c4 --- /dev/null +++ b/vusb/sendchar_usart.c @@ -0,0 +1,19 @@ +#include +#include "oddebug.h" +#include "sendchar.h" + + +#if DEBUG_LEVEL > 0 +/* from oddebug.c */ +int8_t sendchar(uint8_t c) +{ + while(!(ODDBG_USR & (1 << ODDBG_UDRE))); /* wait for data register empty */ + ODDBG_UDR = c; + return 1; +} +#else +int8_t sendchar(uint8_t c) +{ + return 1; +} +#endif -- cgit v1.2.3