forked from mirrors/qmk_userspace
move files: main_vusb.c ps2_usart.c sendchar_usart.c from ps2_usb to common dir
This commit is contained in:
parent
a6b31e950f
commit
61e12a3157
8 changed files with 25 additions and 71 deletions
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
|
Loading…
Add table
Add a link
Reference in a new issue