Changeset 2be6ab7f in rtems


Ignore:
Timestamp:
Jun 14, 2019, 5:41:36 AM (6 weeks ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
master
Children:
bb24892
Parents:
6ff1da40
Message:

dev/sc16is752: Add set/get EFCR IO controls

Location:
cpukit
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • cpukit/dev/serial/sc16is752.c

    r6ff1da40 r2be6ab7f  
    401401      read_reg(ctx, SC16IS752_IOSTATE, (uint8_t *)buffer, 1);
    402402      break;
     403    case SC16IS752_SET_EFCR:
     404      write_reg(ctx, SC16IS752_EFCR, (uint8_t *)buffer, 1);
     405      break;
     406    case SC16IS752_GET_EFCR:
     407      read_reg(ctx, SC16IS752_EFCR, (uint8_t *)buffer, 1);
     408      break;
    403409    case TIOCMGET:
    404410      sc16is752_get_modem_bits(ctx, (int *)buffer);
  • cpukit/include/dev/serial/sc16is752.h

    r6ff1da40 r2be6ab7f  
    281281
    282282/**
     283 * @brief Set the EFCR register.
     284 */
     285#define SC16IS752_SET_EFCR _IOW('d', 4, uint8_t)
     286
     287/**
    283288 * @brief Returns non-zero in case the sleep mode is enabled, otherwise zero.
    284289 */
     
    299304 */
    300305#define SC16IS752_GET_IOSTATE _IOR('d', 3, uint8_t)
     306
     307/**
     308 * @brief Read the EFCR register.
     309 */
     310#define SC16IS752_GET_EFCR _IOR('d', 4, uint8_t)
    301311
    302312/**
Note: See TracChangeset for help on using the changeset viewer.