]> git.gir.st - tmk_keyboard.git/blob - vusb/sendchar_usart.c
move files: main_vusb.c ps2_usart.c sendchar_usart.c from ps2_usb to common dir
[tmk_keyboard.git] / vusb / sendchar_usart.c
1 #include <stdint.h>
2 #include "oddebug.h"
3 #include "sendchar.h"
4
5
6 #if DEBUG_LEVEL > 0
7 /* from oddebug.c */
8 int8_t sendchar(uint8_t c)
9 {
10 while(!(ODDBG_USR & (1 << ODDBG_UDRE))); /* wait for data register empty */
11 ODDBG_UDR = c;
12 return 1;
13 }
14 #else
15 int8_t sendchar(uint8_t c)
16 {
17 return 1;
18 }
19 #endif
Imprint / Impressum