summaryrefslogtreecommitdiffstats
path: root/c/src/lib/libbsp/powerpc/gen83xx/console/console.c
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2007-09-17 14:09:32 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2007-09-17 14:09:32 +0000
commit76e552d39b1c0e882ff570d7c49e189b1479bfb1 (patch)
tree68106594536624eb7e20b6706aecd156525a34af /c/src/lib/libbsp/powerpc/gen83xx/console/console.c
parent2007-09-16 Ralf Corsépius <ralf.corsepius@rtems.org> (diff)
downloadrtems-76e552d39b1c0e882ff570d7c49e189b1479bfb1.tar.bz2
2007-09-17 Joel Sherrill <joel.sherrill@OARcorp.com>
* console/console.c: Eliminate DEBUG_puts.
Diffstat (limited to '')
-rw-r--r--c/src/lib/libbsp/powerpc/gen83xx/console/console.c79
1 files changed, 0 insertions, 79 deletions
diff --git a/c/src/lib/libbsp/powerpc/gen83xx/console/console.c b/c/src/lib/libbsp/powerpc/gen83xx/console/console.c
index 8fadc46d3e..12b96574ef 100644
--- a/c/src/lib/libbsp/powerpc/gen83xx/console/console.c
+++ b/c/src/lib/libbsp/powerpc/gen83xx/console/console.c
@@ -243,85 +243,6 @@ rtems_device_driver console_initialize(
return RTEMS_SUCCESSFUL;
}
-/* PAGE
- *
- * DEBUG_puts
- *
- * This should be safe in the event of an error. It attempts to ensure
- * that no TX empty interrupts occur while it is doing polled IO. Then
- * it restores the state of that external interrupt.
- *
- * Input parameters:
- * string - pointer to debug output string
- *
- * Output parameters: NONE
- *
- * Return values: NONE
- */
-
-void DEBUG_puts(
- char *string
-)
-{
- char *s;
- uint32_t Irql;
-
- rtems_interrupt_disable(Irql);
-
- for ( s = string ; *s ; s++ )
- {
- Console_Port_Tbl[Console_Port_Minor].pDeviceFns->
- deviceWritePolled(Console_Port_Minor, *s);
- }
-
- rtems_interrupt_enable(Irql);
-}
-
-/* PAGE
- *
- * DEBUG_puth
- *
- * This should be safe in the event of an error. It attempts to ensure
- * that no TX empty interrupts occur while it is doing polled IO. Then
- * it restores the state of that external interrupt.
- *
- * Input parameters:
- * ulHexNum - value to display
- *
- * Output parameters: NONE
- *
- * Return values: NONE
- */
-void
-DEBUG_puth(
- uint32_t ulHexNum
- )
-{
- unsigned long i,d;
- uint32_t Irql;
-
- rtems_interrupt_disable(Irql);
-
- Console_Port_Tbl[Console_Port_Minor].pDeviceFns->
- deviceWritePolled(Console_Port_Minor, '0');
- Console_Port_Tbl[Console_Port_Minor].pDeviceFns->
- deviceWritePolled(Console_Port_Minor, 'x');
-
- for(i=32;i;)
- {
- i-=4;
- d=(ulHexNum>>i)&0xf;
- Console_Port_Tbl[Console_Port_Minor].pDeviceFns->
- deviceWritePolled(Console_Port_Minor,
- (d<=9) ? d+'0' : d+'a'-0xa);
- }
-
- rtems_interrupt_enable(Irql);
-}
-
-
-/* const char arg to be compatible with BSP_output_char decl. */
-void
debug_putc_onlcr(const char c)
{
uint32_t Irql;