Changeset 205d5645 in rtems


Ignore:
Timestamp:
Jan 3, 2000, 4:44:04 PM (20 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, master
Children:
e065e8ae
Parents:
6b7cf9f
Message:

Patch from John Mills <jmills@…> to correct some cut and paste
errors.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libcpu/sh/sh7045/sci/sci.c

    r6b7cf9f r205d5645  
    136136
    137137  if ((read8(SCI_SSR0) & SCI_RDRF) != 0x00) {
    138     /* Write the character to the TDR */
    139     write8(*ch, SCI_RDR0);
    140     /* Clear the TDRE bit */
     138    /* read input */
     139    *ch = read8(SCI_RDR0);
     140    /* Clear RDRF flag */
    141141    temp = read8(SCI_SSR0) & ~SCI_RDRF;
    142142    write8(temp, SCI_SSR0);
     
    152152
    153153  if ((read8(SCI_SSR1) & SCI_RDRF) != 0x00) {
    154     /* Write the character to the TDR */
    155     write8(*ch, SCI_RDR1);
    156     /* Clear the TDRE bit */
     154    /* read input */
     155    *ch = read8(SCI_RDR1);
     156    /* Clear RDRF flag */
    157157    temp= read8(SCI_SSR1) & ~SCI_RDRF;
    158158    write8(temp, SCI_SSR1);
Note: See TracChangeset for help on using the changeset viewer.