source: rtems/cpukit/libmisc/serdbg/serdbgcnf.h @ f11858ac

4.115
Last change on this file since f11858ac was 9b4422a2, checked in by Joel Sherrill <joel.sherrill@…>, on 05/03/12 at 15:09:24

Remove All CVS Id Strings Possible Using a Script

Script does what is expected and tries to do it as
smartly as possible.

+ remove occurrences of two blank comment lines

next to each other after Id string line removed.

+ remove entire comment blocks which only exited to

contain CVS Ids

+ If the processing left a blank line at the top of

a file, it was removed.

  • 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#ifndef _SERDBGCNF_H
20#define _SERDBGCNF_H
21
22#include <rtems/serdbg.h>
23
24#ifdef __cplusplus
25extern "C" {
26#endif
27
28#ifdef CONFIGURE_INIT
29
30/*
31 * fallback for baud rate to use
32 */
33#ifndef CONFIGURE_SERDBG_BAUDRATE
34#define CONFIGURE_SERDBG_BAUDRATE 9600
35#endif
36
37/*
38 * fallback for device name to use
39 */
40#ifndef CONFIGURE_SERDBG_DEVNAME
41#define CONFIGURE_SERDBG_DEVNAME "/dev/tty01"
42#endif
43
44/*
45 * fill in serdbg_conf structure
46 */
47serdbg_conf_t serdbg_conf = {
48  CONFIGURE_SERDBG_BAUDRATE,
49
50#ifdef CONFIGURE_SERDBG_CALLOUT
51  CONFIGURE_SERDBG_CALLOUT,
52#else
53  NULL,
54#endif
55
56#ifdef CONFIGURE_SERDBG_USE_POLLED_TERMIOS
57  serdbg_open,
58#else
59  NULL,
60#endif
61
62  CONFIGURE_SERDBG_DEVNAME,
63
64#ifdef CONFIGURE_SERDBG_SKIP_INIT_BKPT
65  true,
66#else
67  false,
68#endif
69};
70
71int serdbg_init(void) {
72#ifdef CONFIGURE_USE_SERDBG
73  return serdbg_init_dbg();
74#else
75  return 0;
76#endif
77}
78
79#endif /* CONFIGURE_INIT */
80
81#ifdef __cplusplus
82}
83#endif
84
85#endif /* _SERDBGCNF_H */
Note: See TracBrowser for help on using the repository browser.