[rtems commit] m68k/uC5282/console/console.c: Eliminate unused debug methods

Joel Sherrill joel at rtems.org
Mon Oct 13 15:23:39 UTC 2014


Module:    rtems
Branch:    master
Commit:    d08e1320821daeec61448b6e5a440900adb4a562
Changeset: http://git.rtems.org/rtems/commit/?id=d08e1320821daeec61448b6e5a440900adb4a562

Author:    Joel Sherrill <joel.sherrill at oarcorp.com>
Date:      Sun Oct 12 08:54:17 2014 -0500

m68k/uC5282/console/console.c: Eliminate unused debug methods

---

 c/src/lib/libbsp/m68k/uC5282/console/console.c |   26 ++---------------------
 1 files changed, 3 insertions(+), 23 deletions(-)

diff --git a/c/src/lib/libbsp/m68k/uC5282/console/console.c b/c/src/lib/libbsp/m68k/uC5282/console/console.c
index 6662956..0daa99b 100644
--- a/c/src/lib/libbsp/m68k/uC5282/console/console.c
+++ b/c/src/lib/libbsp/m68k/uC5282/console/console.c
@@ -50,7 +50,9 @@ _BSP_null_char( char c )
         continue;
 	rtems_interrupt_enable(level);
 }
-BSP_output_char_function_type BSP_output_char = _BSP_null_char;
+
+BSP_polling_getchar_function_type       BSP_poll_char = NULL;
+BSP_output_char_function_type           BSP_output_char = _BSP_null_char;
 
 /*
  * The MCF5282 has three UARTs.  Enable all them here.  I/O pin selection
@@ -769,26 +771,4 @@ rtems_device_driver console_control(
 {
     return( rtems_termios_ioctl (arg) );
 }
-int DEBUG_OUTCHAR(int c)
-{
-    if(c == '\n')
-        DEBUG_OUTCHAR('\r');
-    _BSP_null_char(c);
-    return c;
-}
-void DEBUG_OUTSTR(const char *msg)
-{
-    while (*msg)
-        DEBUG_OUTCHAR(*msg++);
-}
-void DEBUG_OUTNUM(int i)
-{
-    int n;
-    static const char map[] = "0123456789ABCDEF";
-    DEBUG_OUTCHAR(' ');
-    for (n = 28 ; n >= 0 ; n -= 4)
-        DEBUG_OUTCHAR(map[(i >> n) & 0xF]);
-}
-
-BSP_polling_getchar_function_type       BSP_poll_char = NULL;
 



More information about the vc mailing list