Changeset 76e552d3 in rtems for c/src/lib/libbsp/powerpc/ep1a


Ignore:
Timestamp:
Sep 17, 2007, 2:09:32 PM (12 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, master
Children:
50f93fb
Parents:
e80aa4fa
Message:

2007-09-17 Joel Sherrill <joel.sherrill@…>

  • console/console.c: Eliminate DEBUG_puts.
Location:
c/src/lib/libbsp/powerpc/ep1a
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/powerpc/ep1a/ChangeLog

    re80aa4fa r76e552d3  
     12007-09-17      Joel Sherrill <joel.sherrill@OARcorp.com>
     2
     3        * console/console.c: Eliminate DEBUG_puts.
     4
    152007-09-12      Joel Sherrill <joel.sherrill@OARcorp.com>
    26
  • c/src/lib/libbsp/powerpc/ep1a/console/console.c

    re80aa4fa r76e552d3  
    243243}
    244244
    245 /* PAGE
    246  *
    247  *  DEBUG_puts
    248  *
    249  *  This should be safe in the event of an error.  It attempts to ensure
    250  *  that no TX empty interrupts occur while it is doing polled IO.  Then
    251  *  it restores the state of that external interrupt.
    252  *
    253  *  Input parameters:
    254  *    string  - pointer to debug output string
    255  *
    256  *  Output parameters:  NONE
    257  *
    258  *  Return values:      NONE
    259  */
    260 
    261 void DEBUG_puts(
    262         char *string
    263 )
    264 {
    265         char *s;
    266         uint32_t        Irql;
    267 
    268         rtems_interrupt_disable(Irql);
    269 
    270         for ( s = string ; *s ; s++ )
    271         {
    272                 Console_Port_Tbl[Console_Port_Minor].pDeviceFns->
    273                         deviceWritePolled(Console_Port_Minor, *s);
    274         }
    275 
    276         rtems_interrupt_enable(Irql);
    277 }
    278 
    279 /* PAGE
    280  *
    281  *  DEBUG_puth
    282  *
    283  *  This should be safe in the event of an error.  It attempts to ensure
    284  *  that no TX empty interrupts occur while it is doing polled IO.  Then
    285  *  it restores the state of that external interrupt.
    286  *
    287  *  Input parameters:
    288  *    ulHexNum - value to display
    289  *
    290  *  Output parameters:  NONE
    291  *
    292  *  Return values:      NONE
    293  */
    294 void
    295 DEBUG_puth(
    296     uint32_t ulHexNum
    297     )
    298 {
    299         unsigned long i,d;
    300         uint32_t Irql;
    301 
    302         rtems_interrupt_disable(Irql);
    303        
    304         Console_Port_Tbl[Console_Port_Minor].pDeviceFns->
    305                 deviceWritePolled(Console_Port_Minor, '0');
    306         Console_Port_Tbl[Console_Port_Minor].pDeviceFns->
    307                 deviceWritePolled(Console_Port_Minor, 'x');
    308 
    309         for(i=32;i;)
    310         {
    311                 i-=4;
    312                 d=(ulHexNum>>i)&0xf;
    313                 Console_Port_Tbl[Console_Port_Minor].pDeviceFns->
    314                         deviceWritePolled(Console_Port_Minor,
    315                                           (d<=9) ? d+'0' : d+'a'-0xa);
    316         }
    317 
    318         rtems_interrupt_enable(Irql);
    319 }
    320 
    321 
    322245/* const char arg to be compatible with BSP_output_char decl. */
    323246void
Note: See TracChangeset for help on using the changeset viewer.