RTEMS 6.1-rc6
Loading...
Searching...
No Matches
Data Structures | Functions | Variables
tms570-sci-driver.h File Reference

This header file provides interfaces of the SCI support. More...

#include <rtems/termiostypes.h>
#include <rtems/irq.h>
#include <bsp/tms570.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.
 

Variables

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

Detailed Description

This header file provides interfaces of the SCI support.

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[]
extern

Table including all serial drivers.

Definitions of all serial drivers

◆ tms570_sci_handler_interrupt

const rtems_termios_device_handler tms570_sci_handler_interrupt
extern

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
extern

Struct containing definitions of polled driver functions.

Encapsulates polled driver functions. Use of this table is determited by not defining TMS570_USE_INTERRUPTS