diff --git a/avr-code/uart.c b/avr-code/uart.c index 10b6475..b021750 100644 --- a/avr-code/uart.c +++ b/avr-code/uart.c @@ -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<