Remove debug code replacing serial_write()
authorNathael Pajani <nathael.pajani@ed3l.fr>
Mon, 11 Mar 2013 16:57:41 +0000 (17:57 +0100)
committerNathael Pajani <nathael.pajani@ed3l.fr>
Tue, 8 Nov 2022 16:03:04 +0000 (17:03 +0100)
drivers/serial.c

index 5e7e5ea..b8d8406 100644 (file)
@@ -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
                }
        }
 }