mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2025-12-05 23:23:13 +00:00
2007-09-17 Joel Sherrill <joel.sherrill@OARcorp.com>
* console/console.c: Eliminate DEBUG_puts.
This commit is contained in:
@@ -1,3 +1,7 @@
|
|||||||
|
2007-09-17 Joel Sherrill <joel.sherrill@OARcorp.com>
|
||||||
|
|
||||||
|
* console/console.c: Eliminate DEBUG_puts.
|
||||||
|
|
||||||
2007-09-12 Joel Sherrill <joel.sherrill@OARcorp.com>
|
2007-09-12 Joel Sherrill <joel.sherrill@OARcorp.com>
|
||||||
|
|
||||||
PR 1257/bsps
|
PR 1257/bsps
|
||||||
|
|||||||
@@ -242,83 +242,6 @@ rtems_device_driver console_initialize(
|
|||||||
return RTEMS_SUCCESSFUL;
|
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. */
|
/* const char arg to be compatible with BSP_output_char decl. */
|
||||||
void
|
void
|
||||||
debug_putc_onlcr(const char c)
|
debug_putc_onlcr(const char c)
|
||||||
|
|||||||
@@ -1,3 +1,7 @@
|
|||||||
|
2007-09-17 Joel Sherrill <joel.sherrill@OARcorp.com>
|
||||||
|
|
||||||
|
* console/console.c: Eliminate DEBUG_puts.
|
||||||
|
|
||||||
2007-09-12 Joel Sherrill <joel.sherrill@OARcorp.com>
|
2007-09-12 Joel Sherrill <joel.sherrill@OARcorp.com>
|
||||||
|
|
||||||
PR 1257/bsps
|
PR 1257/bsps
|
||||||
|
|||||||
@@ -243,85 +243,6 @@ rtems_device_driver console_initialize(
|
|||||||
return RTEMS_SUCCESSFUL;
|
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)
|
debug_putc_onlcr(const char c)
|
||||||
{
|
{
|
||||||
uint32_t Irql;
|
uint32_t Irql;
|
||||||
|
|||||||
Reference in New Issue
Block a user