From 0cf18a8291226c9c0b09c8abf3c0b242c5775a11 Mon Sep 17 00:00:00 2001 From: Nathael Pajani Date: Mon, 11 Mar 2013 17:57:41 +0100 Subject: [PATCH] Remove debug code replacing serial_write() --- drivers/serial.c | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/drivers/serial.c b/drivers/serial.c index 5e7e5ea..b8d8406 100644 --- a/drivers/serial.c +++ b/drivers/serial.c @@ -65,15 +65,6 @@ static struct uart_device uarts[NUM_UARTS] = { }, }; -#if 0 -#define DEBUG -extern char* UARTBUFFER; -extern volatile int UARTPTR; -extern volatile int UARTSENDPTR; -extern volatile int UARTSENDING; -#endif - - /* Generic UART handler */ static void UART_Handler(struct uart_device* uart) { @@ -89,15 +80,8 @@ static void UART_Handler(struct uart_device* uart) if (uart->out_buff && uart->sending && (uart->out_length > uart->sending)) { uart->regs->func.buffer = uart->out_buff[uart->sending]; uart->sending++; -#ifdef DEBUG - } else if (UARTPTR > UARTSENDPTR) { - uart->regs->func.buffer = UARTBUFFER[UARTSENDPTR++]; -#endif } else { uart->sending = 0; -#ifdef DEBUG - UARTSENDING = 0; -#endif } } } -- 2.43.0