From 2a696ab963fe71296d9495caed1b748f6f7d8971 Mon Sep 17 00:00:00 2001 From: Michael Brown Date: Mon, 29 Jun 2015 08:43:16 +0100 Subject: [serial] Use new UART abstraction in serial console driver Signed-off-by: Michael Brown --- src/core/serial_console.c | 42 ------------------------------------------ 1 file changed, 42 deletions(-) delete mode 100644 src/core/serial_console.c (limited to 'src/core/serial_console.c') diff --git a/src/core/serial_console.c b/src/core/serial_console.c deleted file mode 100644 index de9b84ca7..000000000 --- a/src/core/serial_console.c +++ /dev/null @@ -1,42 +0,0 @@ -#include -#include -#include -#include - -/** @file - * - * Serial console - * - */ - -/* Set default console usage if applicable */ -#if ! ( defined ( CONSOLE_SERIAL ) && CONSOLE_EXPLICIT ( CONSOLE_SERIAL ) ) -#undef CONSOLE_SERIAL -#define CONSOLE_SERIAL ( CONSOLE_USAGE_ALL & ~CONSOLE_USAGE_LOG ) -#endif - -struct console_driver serial_console __console_driver; - -static void serial_console_init ( void ) { - /* - * Check if serial driver initialization is done. - * If so, it's time to enable the serial console. - */ - if ( serial_initialized ) - serial_console.disabled = 0; -} - -struct console_driver serial_console __console_driver = { - .putchar = serial_putc, - .getchar = serial_getc, - .iskey = serial_ischar, - .disabled = CONSOLE_DISABLED, - .usage = CONSOLE_SERIAL, -}; - -/** - * Serial console initialisation function - */ -struct init_fn serial_console_init_fn __init_fn ( INIT_CONSOLE ) = { - .initialise = serial_console_init, -}; -- cgit v1.2.3-55-g7522