From 05d09f44fc298db02043cb6e21783cfb129b1c85 Mon Sep 17 00:00:00 2001 From: Aun-Ali Zaidi Date: Tue, 8 Dec 2015 22:01:15 -0600 Subject: powerpc/ep1a: Remove updates #2457. --- .../libbsp/powerpc/ep1a/console/printk_support.c | 49 ---------------------- 1 file changed, 49 deletions(-) delete mode 100644 c/src/lib/libbsp/powerpc/ep1a/console/printk_support.c (limited to 'c/src/lib/libbsp/powerpc/ep1a/console/printk_support.c') diff --git a/c/src/lib/libbsp/powerpc/ep1a/console/printk_support.c b/c/src/lib/libbsp/powerpc/ep1a/console/printk_support.c deleted file mode 100644 index e5b75f4ff2..0000000000 --- a/c/src/lib/libbsp/powerpc/ep1a/console/printk_support.c +++ /dev/null @@ -1,49 +0,0 @@ -/* - * This file contains the ep1a printk support routines. - */ - -/* - * COPYRIGHT (c) 2011-2014. - * On-Line Applications Research Corporation (OAR). - * - * The license and distribution terms for this file may be - * found in the file LICENSE in this distribution or at - * http://www.rtems.org/license/LICENSE. - */ - -#include -#include -#include -#include -#include -#include - -rtems_device_minor_number BSPPrintkPort = 0; - -/* const char arg to be compatible with BSP_output_char decl. */ -static void debug_putc_onlcr(const char c) -{ - volatile int i; - - /* - * Note: Hack to get printk to work. Depends upon bit - * and silverchip to initialize the port and just - * forces a character to be polled out of com1 - * regardless of where the console is. - */ - volatile unsigned char *ptr = (void *)0xff800000; - - if ('\n'==c){ - *ptr = '\r'; - __asm__ volatile("sync"); - for (i=0;i<0x0fff;i++); - } - - *ptr = c; - __asm__ volatile("sync"); - for (i=0;i<0x0fff;i++); -} - -BSP_output_char_function_type BSP_output_char = debug_putc_onlcr; -BSP_polling_getchar_function_type BSP_poll_char = NULL; - -- cgit v1.2.3