]> rtime.felk.cvut.cz Git - arc.git/blob - system/kernel/include/debug.h
Initial commit.
[arc.git] / system / kernel / include / debug.h
1 /* -------------------------------- Arctic Core ------------------------------
2  * Arctic Core - the open source AUTOSAR platform http://arccore.com
3  *
4  * Copyright (C) 2009  ArcCore AB <contact@arccore.com>
5  *
6  * This source code is free software; you can redistribute it and/or modify it
7  * under the terms of the GNU General Public License version 2 as published by the
8  * Free Software Foundation; See <http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt>.
9  *
10  * This program is distributed in the hope that it will be useful, but
11  * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
12  * or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
13  * for more details.
14  * -------------------------------- Arctic Core ------------------------------*/
15
16
17
18
19
20
21
22
23 #ifndef DEBUG_H_\r
24 #define DEBUG_H_\r
25 \r
26 #include <stdio.h>\r
27 \r
28 #ifdef USE_DBG_PRINTF\r
29 \r
30 #define DBG_T32_TERMINAL        1\r
31 // Swap hook\r
32 #define DGB_HOOK_SWAP           1\r
33 \r
34 #define DBG_START_OS            1\r
35 \r
36 #define DBG_EXCEPTION           1\r
37 \r
38 // C99, see gcc manual for more info if no args..\r
39 // WARNING!! This eats lots and lots of stack, about 500bytes ??\r
40 \r
41 //#defineos_printf(format,...) printf(format,__VA_ARGS__)\r
42 #define os_printf(format,...) simple_printf(format,__VA_ARGS__)\r
43 // #define os_printf(format,...) iprintf(format,__VA_ARGS__)\r
44 \r
45 // Macro's that don't take the whole stack...\r
46 // #define os_print_hex()\r
47 // #define os_print(char *str);\r
48 \r
49 #else\r
50 \r
51 #define os_printf(format,...)\r
52 \r
53 #endif\r
54 \r
55 \r
56 \r
57 \r
58 #endif /*DEBUG_H_*/\r