![]() |
RTEMS 6.1
|
This source file contains the Console Driver implementation using the Serial Communication Interface (SCI). More...
#include <bspopts.h>#include <termios.h>#include <rtems/termiostypes.h>#include <bsp/tms570-sci-driver.h>#include <rtems/console.h>#include <bsp.h>#include <bsp/fatal.h>#include <bsp/irq.h>Functions | |
| void | tms570_sci_initialize (tms570_sci_context *ctx) |
| rtems_device_driver | console_initialize (rtems_device_major_number major, rtems_device_minor_number minor, void *arg) |
| Serial drivers init function. | |
| bool | tms570_sci_set_attributes (rtems_termios_device_context *base, const struct termios *t) |
| Set attributes of the HW peripheral. | |
Variables | |
| tms570_sci_context | driver_context_table [] |
| Table including all serial drivers. | |
| const rtems_termios_device_handler | tms570_sci_handler_polled |
| Struct containing definitions of polled driver functions. | |
| const rtems_termios_device_handler | tms570_sci_handler_interrupt |
| Struct containing definitions of interrupt driven driver functions. | |
This source file contains the Console Driver implementation using the Serial Communication Interface (SCI).
| rtems_device_driver console_initialize | ( | rtems_device_major_number | major, |
| rtems_device_minor_number | minor, | ||
| void * | arg | ||
| ) |
Serial drivers init function.
Console initialization entry point.
Initialize all serial drivers specified in driver_context_table
| [in] | major | |
| [in] | minor | |
| [in] | arg |
| RTEMS_SUCCESSFUL | Initialization completed |
| bool tms570_sci_set_attributes | ( | rtems_termios_device_context * | base, |
| const struct termios * | t | ||
| ) |
Set attributes of the HW peripheral.
Sets attributes of the HW peripheral (parity, baud rate, etc.)
| [in] | base | context of the driver |
| [in] | t | termios driver |
| true | peripheral setting is changed |
| tms570_sci_context driver_context_table[] |
Table including all serial drivers.
Definitions of all serial drivers
| const rtems_termios_device_handler tms570_sci_handler_interrupt |
Struct containing definitions of interrupt driven driver functions.
Encapsulates interrupt driven driver functions. Use of this table is determited by defining TMS570_USE_INTERRUPTS
| const rtems_termios_device_handler tms570_sci_handler_polled |
Struct containing definitions of polled driver functions.
Encapsulates polled driver functions. Use of this table is determited by not defining TMS570_USE_INTERRUPTS