RTEMS 6.1-rc7
Loading...
Searching...
No Matches
Macros | Enumerations | Functions
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)   UART##port_no
 
#define CONSOLE_DEVICE_ENUM(port_no, ...)   CONSOLE_DEVICE_PORT2ENUM(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.

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.