diff options
author | Aun-Ali Zaidi <admin@kodeit.net> | 2015-12-08 22:01:15 -0600 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2015-12-09 07:27:28 +0100 |
commit | 05d09f44fc298db02043cb6e21783cfb129b1c85 (patch) | |
tree | adda7bcee66661674f08ed37710d814161f911ec /c/src/lib/libbsp/powerpc/ep1a/console/printk_support.c | |
parent | powerpc/score603e: Remove (obselete). (diff) | |
download | rtems-05d09f44fc298db02043cb6e21783cfb129b1c85.tar.bz2 |
powerpc/ep1a: Remove
updates #2457.
Diffstat (limited to 'c/src/lib/libbsp/powerpc/ep1a/console/printk_support.c')
-rw-r--r-- | c/src/lib/libbsp/powerpc/ep1a/console/printk_support.c | 49 |
1 files changed, 0 insertions, 49 deletions
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 <bsp.h> -#include <rtems/libio.h> -#include <stdlib.h> -#include <assert.h> -#include <termios.h> -#include <rtems/bspIo.h> - -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; - |