Go to the source code of this file.
Defines | |
#define | SERIAL_RT_DEVICE "rtser0" |
#define | SERIAL_RT_BAUDRATE 115200 |
#define | SERIAL_RT_PARITY RTSER_NO_PARITY |
#define | SERIAL_RT_DATABITS RTSER_8_BITS |
#define | SERIAL_RT_STOPBITS RTSER_1_STOPB |
#define | SERIAL_RT_HANDSHAKE RTSER_NO_HAND |
#define | SERIAL_RT_ERROR 0 |
Typedefs | |
typedef int | serial_rt_t |
Functions | |
int | serial_rt_debug_init (void) |
int | serial_rt_debug_write (const char *format,...) |
void | serial_rt_debug_finish (void) |
Can be used by a driver to output debugging information on serial devices. This is necessary in RT because rt_printk() only ouptuts information after the Linux kernel can continue operation, but this is not sufficient in realtime because if the RT part hangs, the output never is displayed.
Uses the RTDM sample driver. Configuration is done statically in this header file.
Definition in file serial-rt-debug.h.
#define SERIAL_RT_DEVICE "rtser0" |
The serial port, "rtser0"
is the first serial device, the second port is "rtser1"
.
Definition at line 48 of file serial-rt-debug.h.
#define SERIAL_RT_BAUDRATE 115200 |
The baudrate used for the serial connection.
Definition at line 53 of file serial-rt-debug.h.
#define SERIAL_RT_PARITY RTSER_NO_PARITY |
The parity bits used for the serial connection.
Definition at line 58 of file serial-rt-debug.h.
#define SERIAL_RT_DATABITS RTSER_8_BITS |
The number of data bits used for the serial connection
Definition at line 63 of file serial-rt-debug.h.
#define SERIAL_RT_STOPBITS RTSER_1_STOPB |
The number of stop bits used for the serial connection.
Definition at line 68 of file serial-rt-debug.h.
#define SERIAL_RT_HANDSHAKE RTSER_NO_HAND |
The handshake protocol used for the serial connection
Definition at line 73 of file serial-rt-debug.h.
#define SERIAL_RT_ERROR 0 |
Error value for the serial_rt_t type.
Definition at line 83 of file serial-rt-debug.h.
typedef int serial_rt_t |
Opaque type that is returned from open and that must be passed on write and close.
Definition at line 78 of file serial-rt-debug.h.
int serial_rt_debug_init | ( | void | ) |
Initialises serial debugging for a driver.
Referenced by most_sync_rt_init().
int serial_rt_debug_write | ( | const char * | format, | |
... | ||||
) |
Prints the output on the serial line.
format | the format string, same as printk() |
void serial_rt_debug_finish | ( | void | ) |
Deinitalises serial debugging for a driver.
Referenced by most_sync_rt_exit().