]> git.friedersdorff.com Git - max/tmk_keyboard.git/blob - vusb/sendchar_usart.c
Added PS/2 multimeda key support.
[max/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