RTEMS: bsps/shared/dev/serial/ns16550-context.c File Reference

| RTEMS 5.4-rc2

Loading...
Searching...
No Matches
Functions | Variables
ns16550-context.c File Reference
`#include <stdlib.h>`
`#include <rtems/bspIo.h>`
`#include <bsp.h>`
`#include <libchip/ns16550.h>`
`#include <libchip/ns16550_p.h>`

## Functions
bool | ns16550_probe (rtems_termios_device_context *base)
void | ns16550_polled_putchar (rtems_termios_device_context *base, char out)
| Polled write for NS16550.
int | ns16550_polled_getchar (rtems_termios_device_context *base)

## Variables
const rtems_termios_device_flow | ns16550_flow_rtscts
const rtems_termios_device_flow | ns16550_flow_dtrcts
const rtems_termios_device_handler | ns16550_handler_interrupt
const rtems_termios_device_handler | ns16550_handler_polled
const rtems_termios_device_handler | ns16550_handler_task

## Detailed Description

This file contains the TTY driver for the National Semiconductor NS16550.

This part is widely cloned and second sourced. It is found in a number of "Super IO" controllers.

This driver uses the termios pseudo driver.

## Variable Documentation

## ◆ ns16550_flow_dtrcts

const rtems_termios_device_flow ns16550_flow_dtrcts

Initial value:
= {
.stop_remote_tx = ns16550_negate_DTR,
.start_remote_tx = ns16550_assert_DTR
}

## ◆ ns16550_flow_rtscts

const rtems_termios_device_flow ns16550_flow_rtscts

Initial value:
= {
.stop_remote_tx = ns16550_negate_RTS,
.start_remote_tx = ns16550_assert_RTS
}

## ◆ ns16550_handler_interrupt

const rtems_termios_device_handler ns16550_handler_interrupt

Initial value:
= {
.first_open = ns16550_open,
.last_close = ns16550_close,
.poll_read = NULL,
.write = ns16550_write_support_int,
.set_attributes = ns16550_set_attributes,
.mode = TERMIOS_IRQ_DRIVEN
}
NULL
#define NULL
Requests a GPIO pin group configuration.
Definition: bestcomm_api.h:77

## ◆ ns16550_handler_polled

const rtems_termios_device_handler ns16550_handler_polled

Initial value:
= {
.first_open = ns16550_open,
.last_close = ns16550_close,
.poll_read = ns16550_polled_getchar,
.write = ns16550_write_support_polled,
.set_attributes = ns16550_set_attributes,
.mode = TERMIOS_POLLED
}

## ◆ ns16550_handler_task

const rtems_termios_device_handler ns16550_handler_task

Initial value:
= {
.first_open = ns16550_open,
.last_close = ns16550_close,
.poll_read = ns16550_read_task,
.write = ns16550_write_support_task,
.set_attributes = ns16550_set_attributes,
.mode = TERMIOS_TASK_DRIVEN
}