source: rtems/cpukit/libmisc/serdbg/serdbgcnf.h @ 9876707a

4.104.114.84.95
Last change on this file since 9876707a was 9876707a, checked in by Ralf Corsepius <ralf.corsepius@…>, on 04/01/04 at 23:47:52

2004-04-01 Ralf Corsepius <ralf_corsepius@…>

  • libmisc/serdbg/serdbgcnf.h: Include <rtems/serdbg.h> instead of <serdbg.h>
  • libmisc/serdbg/termios_printk_cnf.h: Include <rtems/termios_printk.h> instead of <termios_printk.h>.
  • 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 <rtems/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.