/home/hillier_g/checkout/most4linux/most-kernel/serial-rt-debug.h File Reference

Output debigging information to the serial line (real-time). More...

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)


Detailed Description

Output debigging information to the serial line (real-time).

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 Documentation

#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 Documentation

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.


Function Documentation

int serial_rt_debug_init ( void   ) 

Initialises serial debugging for a driver.

Returns:
the file descriptor that must be passed to write and close.

Referenced by most_sync_rt_init().

int serial_rt_debug_write ( const char *  format,
  ... 
)

Prints the output on the serial line.

Parameters:
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().


Generated on Fri Mar 9 14:48:58 2007 for MOST Linux Drivers (Linux and RTAI) by  doxygen 1.5.0