RTEMS 6.3
Loading...
Searching...
No Matches
console.h File Reference

Console Configuration. More...

#include <bspopts.h>
#include <bsp/raspberrypi-uart.h>

Go to the source code of this file.

Macros

#define CONSOLE_DEVICES   RASPBERRYPI_CONSOLE_DEVICES
#define CONSOLE_DEVICE_PORT2ENUM(port_no)
#define CONSOLE_DEVICE_ENUM(port_no, ...)

Enumerations

enum  raspberrypi_console_device_port { CONSOLE_DEVICE_COUNT }

Functions

rtems_status_code raspberrypi_uart_init (raspberrypi_console_device_port uart_num)
 Initialize gpio of UART and install UART to the dev directory.

Detailed Description

Console Configuration.

Macro Definition Documentation

◆ CONSOLE_DEVICE_ENUM

#define CONSOLE_DEVICE_ENUM ( port_no,
... )
Value:
CONSOLE_DEVICE_PORT2ENUM(port_no),

◆ CONSOLE_DEVICE_PORT2ENUM

#define CONSOLE_DEVICE_PORT2ENUM ( port_no)
Value:
UART##port_no

Function Documentation

◆ raspberrypi_uart_init()

rtems_status_code raspberrypi_uart_init ( raspberrypi_console_device_port uart_num)

Initialize gpio of UART and install UART to the dev directory.

Parameters
uart_numThe optional devices are UART0, UART2, UART3, UART4, UART5.
Return values
RTEMS_SUCCESSFULSuccessful operation.
RTEMS_INVALID_NUMBERThis status code indicates that a specified number was invalid.
RTEMS_NO_MEMORYNot enough memory to create a device node.
RTEMS_UNSATISFIEDCreation of the device file failed.
RTEMS_INCORRECT_STATETermios is not initialized.