RTEMS 6.1-rc1
|
Serial communication interface (SCI) functions definitions. More...
#include <bspopts.h>
#include <termios.h>
#include <rtems/termiostypes.h>
#include <bsp/tms570-sci.h>
#include <bsp/tms570-sci-driver.h>
#include <rtems/console.h>
#include <bsp.h>
#include <bsp/fatal.h>
#include <bsp/irq.h>
Macros | |
#define | TMS570_SCI_BUFFER_SIZE 1 |
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. More... | |
bool | tms570_sci_set_attributes (rtems_termios_device_context *base, const struct termios *t) |
Set attributes of the HW peripheral. More... | |
Variables | |
tms570_sci_context | driver_context_table [] |
Table including all serial drivers. More... | |
const rtems_termios_device_handler | tms570_sci_handler_polled |
Struct containing definitions of polled driver functions. More... | |
const rtems_termios_device_handler | tms570_sci_handler_interrupt |
Struct containing definitions of interrupt driven driver functions. More... | |
Serial communication interface (SCI) functions definitions.
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