![]() |
RTEMS 6.3
|
Console Configuration. More...
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. | |
Console Configuration.
| #define CONSOLE_DEVICE_ENUM | ( | port_no, | |
| ... ) |
| #define CONSOLE_DEVICE_PORT2ENUM | ( | port_no | ) |
| rtems_status_code raspberrypi_uart_init | ( | raspberrypi_console_device_port | uart_num | ) |
Initialize gpio of UART and install UART to the dev directory.
| uart_num | The optional devices are UART0, UART2, UART3, UART4, UART5. |
| 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. |