move files: main_vusb.c ps2_usart.c sendchar_usart.c from ps2_usb to common dir
This commit is contained in:
19
vusb/sendchar_usart.c
Normal file
19
vusb/sendchar_usart.c
Normal 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
|
Reference in New Issue
Block a user