source: rtems/cpukit/libmisc/serdbg/serdbgcnf.h @ 126660c5

4.104.114.84.95
Last change on this file since 126660c5 was 9e633f5, checked in by Joel Sherrill <joel.sherrill@…>, on 06/27/02 at 21:25:14

2002-06-25 Thomas Doerfler <Thomas.Doerfler@…>

  • 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.
  • Property mode set to 100644
File size: 2.1 KB
Line 
1/*===============================================================*\
2| Project: RTEMS configure remote gdb over serial line            |
3+-----------------------------------------------------------------+
4| File: serdbgcnf.h                                               |
5+-----------------------------------------------------------------+
6|                    Copyright (c) 2002 IMD                       |
7|      Ingenieurbuero fuer Microcomputertechnik Th. Doerfler      |
8|               <Thomas.Doerfler@imd-systems.de>                  |
9|                       all rights reserved                       |
10+-----------------------------------------------------------------+
11| this file declares intialization functions to add               |
12| a gdb remote debug stub to an RTEMS system                      |
13|                                                                 |
14+-----------------------------------------------------------------+
15|   date                      history                        ID   |
16| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
17| 13.05.02  creation                                         doe  |
18\*===============================================================*/
19/*
20 * $Id$
21 */
22#ifndef _SERDBGCNF_H
23#define _SERDBGCNF_H
24
25#include "serdbg.h"
26
27#ifdef CONFIGURE_INIT
28
29/*
30 * fallback for baud rate to use
31 */
32#ifndef CONFIGURE_SERDBG_BAUDRATE
33#define CONFIGURE_SERDBG_BAUDRATE 9600
34#endif
35
36/*
37 * fallback for device name to use
38 */
39#ifndef CONFIGURE_SERDBG_DEVNAME
40#define CONFIGURE_SERDBG_DEVNAME "/dev/tty01"
41#endif
42
43/*
44 * fill in serdbg_conf structure
45 */
46serdbg_conf_t serdbg_conf = {
47  CONFIGURE_SERDBG_BAUDRATE,
48
49#ifdef CONFIGURE_SERDBG_CALLOUT
50  CONFIGURE_SERDBG_CALLOUT,
51#else
52  NULL,
53#endif
54
55#ifdef CONFIGURE_SERDBG_USE_POLLED_TERMIOS
56  serdbg_open,
57#else
58  NULL,
59#endif
60
61  CONFIGURE_SERDBG_DEVNAME,
62 
63#ifdef CONFIGURE_SERDBG_SKIP_INIT_BKPT
64  TRUE,
65#else
66  FALSE,
67#endif
68};
69
70int serdbg_init(void) {
71#ifdef CONFIGURE_USE_SERDBG
72  extern int serdbg_init_dbg(void);
73  return serdbg_init_dbg();
74#else
75  return 0;
76#endif
77}
78
79#endif /* CONFIGURE_INIT */
80
81#endif /* _SERDBGCNF_H */
Note: See TracBrowser for help on using the repository browser.