![]() |
RTEMS 6.3
|
Console Configuration. More...
#include <rtems/bspIo.h>#include <bsp.h>#include <dev/serial/arm-pl011.h>#include <bsp/irq.h>#include <bsp/console.h>#include <bsp/fatal.h>#include <bsp/rpi-gpio.h>#include <bspopts.h>#include <rtems/console.h>#include <rtems/rtems/status.h>#include <rtems/termiosdevice.h>#include <stdint.h>Data Structures | |
| struct | raspberrypi_console_device_gpio_config |
| struct | raspberrypi_console_device |
Macros | |
| #define | CONSOLE_DEVICE_CONTEXT_NAME(port_no) |
| #define | CONSOLE_DEVICE_CONTEXT(port_no, _file_name, regs_base, _size, clock_freq, irq_no, context_type, ...) |
| #define | CONSOLE_DEVICE(port_no, file_name, _base, _size, _clock, _irq, _context_type, dev_handler, write_char_func, rx_pin, tx_pin, gpio_func, ...) |
Functions | |
| rtems_status_code | raspberrypi_uart_init (raspberrypi_console_device_port uart_num) |
| Initialize gpio of UART and install UART to the dev directory. | |
| rtems_device_driver | console_initialize (rtems_device_major_number major, rtems_device_minor_number minor, void *arg) |
| Console initialization entry point. | |
Variables | |
| BSP_output_char_function_type | BSP_output_char = output_char |
| This function pointer references the kernel character output implementation. | |
| BSP_polling_getchar_function_type | BSP_poll_char = poll_char |
Console Configuration.
| #define CONSOLE_DEVICE | ( | port_no, | |
| file_name, | |||
| _base, | |||
| _size, | |||
| _clock, | |||
| _irq, | |||
| _context_type, | |||
| dev_handler, | |||
| write_char_func, | |||
| rx_pin, | |||
| tx_pin, | |||
| gpio_func, | |||
| ... ) |
| #define CONSOLE_DEVICE_CONTEXT | ( | port_no, | |
| _file_name, | |||
| regs_base, | |||
| _size, | |||
| clock_freq, | |||
| irq_no, | |||
| context_type, | |||
| ... ) |
| #define CONSOLE_DEVICE_CONTEXT_NAME | ( | port_no | ) |
| 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.
| [in] | major | is the device driver major number. |
| [in] | minor | is the device driver minor number. |
| [in] | arg | is the parameters to this call. |
| RTEMS_SUCCESSFUL | The device driver is successfully initialized. |
| 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. |