diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2002-06-27 21:25:14 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2002-06-27 21:25:14 +0000 |
commit | 9e633f58da0e7a5e07da0becdd81b43ab2ea227c (patch) | |
tree | 9600a2157eec583dabde35d2eba10a47268a64f8 /cpukit/libmisc/serdbg/serdbgcnf.h | |
parent | 2002-06-27 Joel Sherrill <joel@OARcorp.com> (diff) | |
download | rtems-9e633f58da0e7a5e07da0becdd81b43ab2ea227c.tar.bz2 |
2002-06-25 Thomas Doerfler <Thomas.Doerfler@imd-systems.de>
* With the addition of serdbg, the standard polled I/O functions
for gdbstub and/or printk are optionally routed to any termios-aware
device driver, that supports polled mode. See libmisc/serdbg/README.
* serdbg/Makefile.am, serdbg/README, serdbg/serdbg.c, serdbg/serdbg.h,
serdbg/serdbgcnf.h, serdbg/serdbgio.c, serdbg/termios_printk.c,
serdbg/termios_printk.h, serdbg/termios_printk_cnf.h,
serdbg/.cvsignore: New files.
* configure.ac, Makefile.am, wrapup/Makefile.am: Modified to
reflect addition.
Diffstat (limited to 'cpukit/libmisc/serdbg/serdbgcnf.h')
-rw-r--r-- | cpukit/libmisc/serdbg/serdbgcnf.h | 81 |
1 files changed, 81 insertions, 0 deletions
diff --git a/cpukit/libmisc/serdbg/serdbgcnf.h b/cpukit/libmisc/serdbg/serdbgcnf.h new file mode 100644 index 0000000000..c03f56d9b0 --- /dev/null +++ b/cpukit/libmisc/serdbg/serdbgcnf.h @@ -0,0 +1,81 @@ +/*===============================================================*\ +| Project: RTEMS configure remote gdb over serial line | ++-----------------------------------------------------------------+ +| File: serdbgcnf.h | ++-----------------------------------------------------------------+ +| Copyright (c) 2002 IMD | +| Ingenieurbuero fuer Microcomputertechnik Th. Doerfler | +| <Thomas.Doerfler@imd-systems.de> | +| all rights reserved | ++-----------------------------------------------------------------+ +| this file declares intialization functions to add | +| a gdb remote debug stub to an RTEMS system | +| | ++-----------------------------------------------------------------+ +| date history ID | +| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | +| 13.05.02 creation doe | +\*===============================================================*/ +/* + * $Id$ + */ +#ifndef _SERDBGCNF_H +#define _SERDBGCNF_H + +#include "serdbg.h" + +#ifdef CONFIGURE_INIT + +/* + * fallback for baud rate to use + */ +#ifndef CONFIGURE_SERDBG_BAUDRATE +#define CONFIGURE_SERDBG_BAUDRATE 9600 +#endif + +/* + * fallback for device name to use + */ +#ifndef CONFIGURE_SERDBG_DEVNAME +#define CONFIGURE_SERDBG_DEVNAME "/dev/tty01" +#endif + +/* + * fill in serdbg_conf structure + */ +serdbg_conf_t serdbg_conf = { + CONFIGURE_SERDBG_BAUDRATE, + +#ifdef CONFIGURE_SERDBG_CALLOUT + CONFIGURE_SERDBG_CALLOUT, +#else + NULL, +#endif + +#ifdef CONFIGURE_SERDBG_USE_POLLED_TERMIOS + serdbg_open, +#else + NULL, +#endif + + CONFIGURE_SERDBG_DEVNAME, + +#ifdef CONFIGURE_SERDBG_SKIP_INIT_BKPT + TRUE, +#else + FALSE, +#endif +}; + +int serdbg_init(void) { +#ifdef CONFIGURE_USE_SERDBG + extern int serdbg_init_dbg(void); + return serdbg_init_dbg(); +#else + return 0; +#endif +} + +#endif /* CONFIGURE_INIT */ + +#endif /* _SERDBGCNF_H */ |