OpenOCD
main.c
Go to the documentation of this file.
1
// SPDX-License-Identifier: GPL-2.0-or-later
2
3
/***************************************************************************
4
* Copyright (C) 2005 by Dominic Rath *
5
* Dominic.Rath@gmx.de *
6
***************************************************************************/
7
8
#ifdef HAVE_CONFIG_H
9
#include "
config.h
"
10
#endif
11
#include "
openocd.h
"
12
#include "
helper/system.h
"
13
14
/* This is the main entry for developer PC hosted OpenOCD.
15
*
16
* OpenOCD can also be used as a library that is linked with
17
* another application(not mainstream yet, but possible), e.g.
18
* w/as an embedded application.
19
*
20
* Those applications will have their own main() implementation
21
* and use bits and pieces from openocd.c. */
22
23
int
main
(
int
argc,
char
*argv[])
24
{
25
/* disable buffering otherwise piping to logs causes problems work */
26
setvbuf(stdout,
NULL
, _IONBF, 0);
27
setvbuf(stderr,
NULL
, _IONBF, 0);
28
29
return
openocd_main
(argc, argv);
30
}
config.h
main
int main(int argc, char *argv[])
Definition:
main.c:23
openocd_main
int openocd_main(int argc, char *argv[])
Different applications can define this entry point to override the default openocd main function.
Definition:
openocd.c:387
openocd.h
system.h
NULL
#define NULL
Definition:
usb.h:16
src
main.c
Generated by
1.9.1