move files: main_vusb.c ps2_usart.c sendchar_usart.c from ps2_usb to common dir
This commit is contained in:
1 parent
a6b31e950f
commit
61e12a3157
8 files changed
+25
-71
No files matched your search
@@ -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