Changeset e78c474b in rtems


Ignore:
Timestamp:
Jul 9, 1998, 10:21:54 PM (23 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, 5, master
Children:
a6e36dff
Parents:
2c5ea01
Message:

Added proper handling of extended baud rate table selection at boot time.

Still need to address default terminal settings.

Location:
c/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libchip/serial/mc68681.c

    r2c5ea01 re78c474b  
    452452  vector        = Console_Port_Tbl[minor].ulIntVector;
    453453
     454  /* XXX default baud rate should be from configuration table */
     455
    454456  (void) mc68681_baud_rate( minor, B9600, &baud, &acr, &command );
    455457
     
    459461
    460462  rtems_interrupt_disable(Irql);
    461     (*setReg)( pMC68681, MC68681_COMMAND, command );
    462463    (*setReg)( pMC68681, MC68681_AUX_CTRL_REG, acr );
    463464    (*setReg)( pMC68681_port, MC68681_CLOCK_SELECT, baud );
     465    if ( command ) {
     466      (*setReg)( pMC68681_port, MC68681_COMMAND, command );         /* RX */
     467      (*setReg)( pMC68681_port, MC68681_COMMAND, command | 0x20 );  /* TX */
     468    }
    464469    (*setReg)( pMC68681_port, MC68681_COMMAND, MC68681_MODE_REG_RESET_MR_PTR );
    465470    (*setReg)( pMC68681_port, MC68681_MODE, 0x13 );
  • c/src/libchip/serial/mc68681.c

    r2c5ea01 re78c474b  
    452452  vector        = Console_Port_Tbl[minor].ulIntVector;
    453453
     454  /* XXX default baud rate should be from configuration table */
     455
    454456  (void) mc68681_baud_rate( minor, B9600, &baud, &acr, &command );
    455457
     
    459461
    460462  rtems_interrupt_disable(Irql);
    461     (*setReg)( pMC68681, MC68681_COMMAND, command );
    462463    (*setReg)( pMC68681, MC68681_AUX_CTRL_REG, acr );
    463464    (*setReg)( pMC68681_port, MC68681_CLOCK_SELECT, baud );
     465    if ( command ) {
     466      (*setReg)( pMC68681_port, MC68681_COMMAND, command );         /* RX */
     467      (*setReg)( pMC68681_port, MC68681_COMMAND, command | 0x20 );  /* TX */
     468    }
    464469    (*setReg)( pMC68681_port, MC68681_COMMAND, MC68681_MODE_REG_RESET_MR_PTR );
    465470    (*setReg)( pMC68681_port, MC68681_MODE, 0x13 );
Note: See TracChangeset for help on using the changeset viewer.