Changeset 76e552d3 in rtems


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
Files:
4 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
  • c/src/lib/libbsp/powerpc/gen83xx/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/gen83xx/console/console.c

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