Changeset 8b2492f in rtems


Ignore:
Timestamp:
Jul 9, 1998, 6:39:50 PM (22 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, master
Children:
37e8259
Parents:
27045a82
Message:

Added support for the Extended Baud Rate set control found in the
Exar 88681 but not in the base 68681.

Added support for user provided baud rate tables. This is needed
when the board does not use the standard baud rate clock.

Location:
c/src
Files:
2 edited

Legend:

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

    r27045a82 r8b2492f  
    3535/*
    3636 *  Data Port bit map configuration
     37 *
     38 *   D0      : Baud Rate Set Selection
     39 *   D1 - D2 : Extended Baud Rate Setting
    3740 */
    3841
    39 #define MC68681_DATA_BAUD_RATE_SET_1      0
    40 #define MC68681_DATA_BAUD_RATE_SET_2      1
     42#define MC68681_DATA_BAUD_RATE_SET_1      0  /* ACR[7] = 0 */
     43#define MC68681_DATA_BAUD_RATE_SET_2      1  /* ACR[7] = 1 */
     44
     45#define MC68681_XBRG_IGNORED              (0 << 1)
     46#define MC68681_XBRG_ENABLED              (1 << 1)
     47#define MC68681_XBRG_DISABLED             (2 << 1)
     48#define MC68681_XBRG_MASK                 (3 << 1)
     49
     50/*
     51 *  Custom baud rate table information
     52 */
     53
     54typedef unsigned char mc68681_baud_t;
     55typedef mc68681_baud_t mc68681_baud_table_t[RTEMS_TERMIOS_NUMBER_BAUD_RATES];
     56/* typedef mc68681_baud_t[RTEMS_TERMIOS_NUMBER_BAUD_RATES] mc68681_baud_table_t;*/
     57
     58#define MC68681_BAUD_NOT_VALID 0xFF
    4159
    4260/*
  • c/src/libchip/serial/mc68681.h

    r27045a82 r8b2492f  
    3535/*
    3636 *  Data Port bit map configuration
     37 *
     38 *   D0      : Baud Rate Set Selection
     39 *   D1 - D2 : Extended Baud Rate Setting
    3740 */
    3841
    39 #define MC68681_DATA_BAUD_RATE_SET_1      0
    40 #define MC68681_DATA_BAUD_RATE_SET_2      1
     42#define MC68681_DATA_BAUD_RATE_SET_1      0  /* ACR[7] = 0 */
     43#define MC68681_DATA_BAUD_RATE_SET_2      1  /* ACR[7] = 1 */
     44
     45#define MC68681_XBRG_IGNORED              (0 << 1)
     46#define MC68681_XBRG_ENABLED              (1 << 1)
     47#define MC68681_XBRG_DISABLED             (2 << 1)
     48#define MC68681_XBRG_MASK                 (3 << 1)
     49
     50/*
     51 *  Custom baud rate table information
     52 */
     53
     54typedef unsigned char mc68681_baud_t;
     55typedef mc68681_baud_t mc68681_baud_table_t[RTEMS_TERMIOS_NUMBER_BAUD_RATES];
     56/* typedef mc68681_baud_t[RTEMS_TERMIOS_NUMBER_BAUD_RATES] mc68681_baud_table_t;*/
     57
     58#define MC68681_BAUD_NOT_VALID 0xFF
    4159
    4260/*
Note: See TracChangeset for help on using the changeset viewer.