move files: main_vusb.c ps2_usart.c sendchar_usart.c from ps2_usb to common dir

This commit is contained in:
tmk 2011-05-07 00:04:18 +09:00
parent a6b31e950f
commit 61e12a3157
8 changed files with 25 additions and 71 deletions

19
vusb/sendchar_usart.c Normal file
View file

@ -0,0 +1,19 @@
#include <stdint.h>
#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