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

Go to the documentation of this file.
00001 /*
00002  *  Copyright(c) Siemens AG, Muenchen, Germany, 2005, 2006, 2007
00003  *                           Bernhard Walle <bernhard.walle@gmx.de>
00004  *                           Gernot Hillier <gernot.hillier@siemens.com>
00005  *
00006  * ----------------------------------------------------------------------------
00007  * This program is free software; you can redistribute it and/or modify
00008  * it under the terms of the GNU General Public License version 2 as 
00009  * published by the Free Software Foundation;
00010  *
00011  * This program is distributed in the hope that it will be useful,
00012  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00013  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00014  * GNU General Public License for more details.
00015  *
00016  * You should have received a copy of the GNU General Public License
00017  * along with this program; if not, write to the Free Software
00018  * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
00019  * ----------------------------------------------------------------------------
00020  */
00021 #ifndef SERIAL_RT_DEBUG_H
00022 #define SERIAL_RT_DEBUG_H
00023 
00039 #ifdef HAVE_CONFIG_H
00040 #include "config/config.h"
00041 #endif
00042 #include <rtdm/rtserial.h>
00043 
00048 #define SERIAL_RT_DEVICE        "rtser0"
00049 
00053 #define SERIAL_RT_BAUDRATE      115200
00054 
00058 #define SERIAL_RT_PARITY        RTSER_NO_PARITY
00059 
00063 #define SERIAL_RT_DATABITS      RTSER_8_BITS
00064 
00068 #define SERIAL_RT_STOPBITS      RTSER_1_STOPB
00069 
00073 #define SERIAL_RT_HANDSHAKE     RTSER_NO_HAND
00074 
00078 typedef int serial_rt_t;
00079 
00083 #define SERIAL_RT_ERROR     0
00084 
00085 #if defined(SERIAL_RT_DEBUG) || defined(DOXYGEN)
00086 
00092 int serial_rt_debug_init(void);
00093 
00099 int serial_rt_debug_write(const char *format, ...);
00100 
00104 void serial_rt_debug_finish(void);
00105 
00106 #else
00107 
00108 #define serial_rt_debug_init() \
00109     do { } while (0)
00110 
00111 #define serial_rt_debug_write(format, arg...) \
00112     do { } while (0)
00113 
00114 #define serial_rt_debug_finish() \
00115     do { } while (0)
00116 
00117 #endif
00118 
00119 
00120 #endif /* SERIAL_RT_DEBUG_H */
00121 
00122 /* vim: set ts=4 et sw=4: */

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