RTEMS  5.1
Data Structures | Functions | Variables
tms570-sci-driver.h File Reference

Declaration of serial's driver inner structure. More...

#include <rtems/termiostypes.h>
#include <rtems/irq.h>
#include <bsp/tms570-sci.h>

Go to the source code of this file.

Data Structures

struct  tms570_sci_context
 

Functions

void tms570_sci_initialize (tms570_sci_context *ctx)
 
bool tms570_sci_set_attributes (rtems_termios_device_context *base, const struct termios *term)
 Set attributes of the HW peripheral. More...
 

Variables

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...
 
tms570_sci_context driver_context_table []
 Table including all serial drivers. More...
 

Detailed Description

Declaration of serial's driver inner structure.

Function Documentation

◆ tms570_sci_set_attributes()

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.)

Parameters
[in]basecontext of the driver
[in]ttermios driver
Return values
trueperipheral setting is changed

Variable Documentation

◆ driver_context_table

tms570_sci_context driver_context_table[]

Table including all serial drivers.

Definitions of all serial drivers

◆ tms570_sci_handler_interrupt

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

◆ tms570_sci_handler_polled

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