Console Configuration.
More...
#include <bspopts.h>
#include <bsp/raspberrypi-uart.h>
Go to the source code of this file.
|
|
#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), |
| |
|
| enum | raspberrypi_console_device_port { CONSOLE_DEVICE_COUNT
} |
| |
◆ raspberrypi_uart_init()
Initialize gpio of UART and install UART to the dev directory.
- Parameters
-
| uart_num | The optional devices are UART0, UART2, UART3, UART4, UART5. |
- Return values
-
| RTEMS_SUCCESSFUL | Successful operation. |
| RTEMS_INVALID_NUMBER | This status code indicates that a specified number was invalid. |
| RTEMS_NO_MEMORY | Not enough memory to create a device node. |
| RTEMS_UNSATISFIED | Creation of the device file failed. |
| RTEMS_INCORRECT_STATE | Termios is not initialized. |