avr: remove superfluous function

Signed-off-by: Ralf Ramsauer <ralf@binary-kitchen.de>
This commit is contained in:
Ralf Ramsauer 2018-09-03 21:29:15 +00:00
parent 2307df2a0b
commit 0f6c837eb8
1 changed files with 0 additions and 7 deletions

View File

@ -25,8 +25,6 @@
#error Choose another crystal. Baud error too high.
#endif
static void (*recv_handler)(unsigned char c) = NULL;
void uart_init()
{
// Enable receive and transmit
@ -39,11 +37,6 @@ void uart_init()
UBRRL = UBRR_VAL & 0xFF;
}
void uart_set_recv_handler(void (*handler)(unsigned char c))
{
recv_handler = handler;
}
void uart_putc(const char c)
{
while ( !(UCSRA & (1<<UDRE)) );