]>
git.gir.st - tmk_keyboard.git/blob - ps2_vusb/sendchar_usart.c
8 # define ODDBG_UBRR UBRR
10 # define ODDBG_UBRR UBRRL
12 # define ODDBG_UBRR UBRR0
14 # define ODDBG_UBRR UBRR0L
18 # define ODDBG_UCR UCR
20 # define ODDBG_UCR UCSRB
22 # define ODDBG_UCR UCSR0B
26 # define ODDBG_TXEN TXEN
28 # define ODDBG_TXEN TXEN0
32 # define ODDBG_USR USR
34 # define ODDBG_USR UCSRA
36 # define ODDBG_USR UCSR0A
40 # define ODDBG_UDRE UDRE
42 # define ODDBG_UDRE UDRE0
46 # define ODDBG_UDR UDR
48 # define ODDBG_UDR UDR0
53 int8_t sendchar(uint8_t c
)
55 while(!(ODDBG_USR
& (1 << ODDBG_UDRE
))); /* wait for data register empty */