Changeset 0fd4a13 in rtems


Ignore:
Timestamp:
Jan 3, 2001, 4:42:59 PM (21 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, 5, master
Children:
1f275887
Parents:
7f9bee00
Message:

2001-01-03 Joel Sherrill <joel@…>

  • clock/Makefile.am: Fixed reference to ckinit.c.
  • clock/clockdrv.c: Enabled fast idle.
  • console/console-io.c: Added console_initialize_hardware().
Location:
c/src/lib/libbsp/mips/jmr3904
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/mips/jmr3904/ChangeLog

    r7f9bee00 r0fd4a13  
     12001-01-03      Joel Sherrill <joel@OARcorp.com>
     2
     3        * clock/Makefile.am: Fixed reference to ckinit.c.
     4        * clock/clockdrv.c: Enabled fast idle.
     5        * console/console-io.c: Added console_initialize_hardware().
     6
    172000-12-19      Joel Sherrill <joel@OARcorp.com>
    28
  • c/src/lib/libbsp/mips/jmr3904/clock/Makefile.am

    r7f9bee00 r0fd4a13  
    2929.PRECIOUS: $(PGM)
    3030
    31 EXTRA_DIST = ckinit.c
     31EXTRA_DIST = clockdrv.c
    3232
    3333include $(top_srcdir)/../../../../../../automake/local.am
  • c/src/lib/libbsp/mips/jmr3904/clock/clockdrv.c

    r7f9bee00 r0fd4a13  
    1010#include <rtems.h>
    1111#include <libcpu/tx3904.h>
     12
     13#define CLOCK_DRIVER_USE_FAST_IDLE
    1214
    1315#define CLOCK_VECTOR TX3904_IRQ_TMR0
  • c/src/lib/libbsp/mips/jmr3904/console/console-io.c

    r7f9bee00 r0fd4a13  
    5757static char initialized = 0;
    5858
    59 void board_serial_init (void)
     59/*
     60 *  console_initialize_hardware
     61 *
     62 *  This routine initializes the console hardware.
     63 *
     64 */
     65
     66void console_initialize_hardware(void)
    6067{
    61   initialized = 1;
    6268  WRITE_UINT16 (DIAG_SLCR, 0x0020);
    6369  WRITE_UINT16 (DIAG_SLDICR, 0x0000);
     
    7985  unsigned short disr;
    8086
    81   if ( !initialized )
    82     board_serial_init();
    83 
    84   for (;;)
    85     {
    86       READ_UINT16 (DIAG_SLDISR, disr);
    87       if (disr & 0x0002)
    88         break;
    89     }
     87  for (;;) {
     88    READ_UINT16 (DIAG_SLDISR, disr);
     89    if (disr & 0x0002)
     90      break;
     91  }
    9092  disr = disr & ~0x0002;
    9193  WRITE_UINT8 (DIAG_TFIFO, (unsigned char) ch);
     
    106108  unsigned short disr;
    107109
    108   if ( !initialized )
    109     board_serial_init();
    110 
    111110  READ_UINT16 (DIAG_SLDISR, disr);
    112111  if (disr & 0x0001) {
Note: See TracChangeset for help on using the changeset viewer.