![]() |
RTEMS 7.0-rc1
|
Multi UART console serial I/O. More...
#include <stdio.h>#include <fcntl.h>#include <termios.h>#include <bsp.h>#include <malloc.h>#include <rtems/bspIo.h>#include <rtems/console.h>#include <rtems/libio.h>#include <rtems/termiostypes.h>Data Structures | |
| struct | IntUartInfoStruct |
Macros | |
| #define | UART_INTC0_IRQ_VECTOR(x) (64+13+(x)) |
| #define | MCF5282_UART_USR_ERROR |
| #define | MAX_UART_INFO 3 |
| #define | RX_BUFFER_SIZE 512 |
Functions | |
| rtems_device_driver | console_initialize (rtems_device_major_number major, rtems_device_minor_number minor, void *arg) |
| Console initialization entry point. | |
| rtems_device_driver | console_open (rtems_device_major_number major, rtems_device_minor_number minor, void *arg) |
| Console open entry point. | |
| rtems_device_driver | console_close (rtems_device_major_number major, rtems_device_minor_number minor, void *arg) |
| Console close entry point. | |
| rtems_device_driver | console_read (rtems_device_major_number major, rtems_device_minor_number minor, void *arg) |
| Console read entry point. | |
| rtems_device_driver | console_write (rtems_device_major_number major, rtems_device_minor_number minor, void *arg) |
| Console write entry point. | |
| rtems_device_driver | console_control (rtems_device_major_number major, rtems_device_minor_number minor, void *arg) |
| Console IO control entry point. | |
Variables | |
| BSP_output_char_function_type | BSP_output_char = _BSP_null_char |
| This function pointer references the kernel character output implementation. | |
| BSP_polling_getchar_function_type | BSP_poll_char = NULL |
| This function pointer may reference the kernel character input implementation. | |
| struct IntUartInfoStruct | IntUartInfo [MAX_UART_INFO] |
Multi UART console serial I/O.
| #define MCF5282_UART_USR_ERROR |
| rtems_device_driver console_close | ( | rtems_device_major_number | major, |
| rtems_device_minor_number | minor, | ||
| void * | arg | ||
| ) |
Console close entry point.
This method closes a specific device supported by 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 closed. |
| rtems_device_driver console_control | ( | rtems_device_major_number | major, |
| rtems_device_minor_number | minor, | ||
| void * | arg | ||
| ) |
Console IO control entry point.
This method performs an IO Control operation on a specific device supported by 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 IO control operation is successfully performed. |
| 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. |
Console initialization entry point.
Initialize all serial drivers specified in driver_context_table
| [in] | major | |
| [in] | minor | |
| [in] | arg |
| RTEMS_SUCCESSFUL | Initialization completed |
| rtems_device_driver console_open | ( | rtems_device_major_number | major, |
| rtems_device_minor_number | minor, | ||
| void * | arg | ||
| ) |
Console open entry point.
This method opens a specific device supported by 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 opened. |
| rtems_device_driver console_read | ( | rtems_device_major_number | major, |
| rtems_device_minor_number | minor, | ||
| void * | arg | ||
| ) |
Console read entry point.
This method reads from a specific device supported by 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 is successfully read from. |
| rtems_device_driver console_write | ( | rtems_device_major_number | major, |
| rtems_device_minor_number | minor, | ||
| void * | arg | ||
| ) |
Console write entry point.
This method writes to a specific device supported by 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 is successfully written. |