RTEMS 7.0-rc1
Loading...
Searching...
No Matches
Data Structures | Macros | Typedefs | Functions | Variables
console.c File Reference

console I/O package More...

#include <stdlib.h>
#include <assert.h>
#include <inttypes.h>
#include <bsp.h>
#include <bsp/irq.h>
#include <rtems/bspIo.h>
#include <rtems/libio.h>
#include <rtems/console.h>
#include <rtems/termiostypes.h>
#include <termios.h>
#include <bsp/uart.h>

Data Structures

struct  TtySTblRec_
 

Macros

#define TERMIOS_OUTPUT_MODE   TERMIOS_IRQ_DRIVEN
 

Typedefs

typedef struct TtySTblRec_ TtySTblRec
 
typedef struct TtySTblRec_TtySTbl
 

Functions

rtems_device_driver console_initialize (rtems_device_major_number major, rtems_device_minor_number minor, void *arg)
 Console initialization entry point.
 
rtems_device_driver console_open (rtems_device_major_number major, rtems_device_minor_number minor, void *arg)
 Console open entry point.
 
rtems_device_driver console_close (rtems_device_major_number major, rtems_device_minor_number minor, void *arg)
 Console close entry point.
 
rtems_device_driver console_read (rtems_device_major_number major, rtems_device_minor_number minor, void *arg)
 Console read entry point.
 
rtems_device_driver console_write (rtems_device_major_number major, rtems_device_minor_number minor, void *arg)
 Console write entry point.
 
rtems_device_driver console_control (rtems_device_major_number major, rtems_device_minor_number minor, void *arg)
 Console IO control entry point.
 

Variables

int BSPConsolePort = BSP_CONSOLE_PORT
 
int BSPBaseBaud = BSP_UART_BAUD_BASE
 

Detailed Description

console I/O package

Function Documentation

◆ console_close()

rtems_device_driver console_close ( rtems_device_major_number  major,
rtems_device_minor_number  minor,
void *  arg 
)

Console close entry point.

This method closes a specific device supported by the console device driver.

Parameters
[in]majoris the device driver major number
[in]minoris the device driver minor number
[in]argis the parameters to this call
Return values
RTEMS_SUCCESSFULThe device driver is successfully closed.

◆ console_control()

rtems_device_driver console_control ( rtems_device_major_number  major,
rtems_device_minor_number  minor,
void *  arg 
)

Console IO control entry point.

This method performs an IO Control operation on a specific device supported by the console device driver.

Parameters
[in]majoris the device driver major number
[in]minoris the device driver minor number
[in]argis the parameters to this call
Return values
RTEMS_SUCCESSFULthe device driver IO control operation is successfully performed.

◆ console_initialize()

rtems_device_driver console_initialize ( rtems_device_major_number  major,
rtems_device_minor_number  minor,
void *  arg 
)

Console initialization entry point.

This method initializes the console device driver.

Parameters
[in]majoris the device driver major number.
[in]minoris the device driver minor number.
[in]argis the parameters to this call.
Return values
RTEMS_SUCCESSFULThe device driver is successfully initialized.

Console initialization entry point.

Initialize all serial drivers specified in driver_context_table

Parameters
[in]major
[in]minor
[in]arg
Return values
RTEMS_SUCCESSFULInitialization completed

◆ console_open()

rtems_device_driver console_open ( rtems_device_major_number  major,
rtems_device_minor_number  minor,
void *  arg 
)

Console open entry point.

This method opens a specific device supported by the console device driver.

Parameters
[in]majoris the device driver major number
[in]minoris the device driver minor number
[in]argis the parameters to this call
Return values
RTEMS_SUCCESSFULThe device driver is successfully opened.

◆ console_read()

rtems_device_driver console_read ( rtems_device_major_number  major,
rtems_device_minor_number  minor,
void *  arg 
)

Console read entry point.

This method reads from a specific device supported by the console device driver.

Parameters
[in]majoris the device driver major number
[in]minoris the device driver minor number
[in]argis the parameters to this call
Return values
RTEMS_SUCCESSFULThe device is successfully read from.

◆ console_write()

rtems_device_driver console_write ( rtems_device_major_number  major,
rtems_device_minor_number  minor,
void *  arg 
)

Console write entry point.

This method writes to a specific device supported by the console device driver.

Parameters
[in]majoris the device driver major number
[in]minoris the device driver minor number
[in]argis the parameters to this call
Return values
RTEMS_SUCCESSFULThe device is successfully written.