revert between 56095 -> 55830 in arch
[AROS.git] / arch / m68k-amiga / boot / debug.h
blobe690717c4eb5ff23bfbdaac8932a141bdc69f073
1 /*
2 * Copyright (C) 2011, The AROS Development Team. All rights reserved.
3 * Author: Jason S. McMullan <jason.mcmullan@gmail.com>
5 * Licensed under the AROS PUBLIC LICENSE (APL) Version 1.1
6 */
8 #ifndef DEBUG_H
9 #define DEBUG_H
11 #ifndef DEBUG
12 #define DEBUG 0
13 #endif
15 #include <aros/config.h>
17 void DebugInit(void);
18 int DebugPutChar(register int chr);
19 int DebugMayGetChar(void);
21 #if AROS_SERIAL_DEBUG
22 void DebugPutStr(register const char *buff);
23 void DebugPutHex(const char *what, ULONG val);
24 void DebugPutDec(const char *what, ULONG val);
25 void DebugPutHexVal(ULONG val);
26 #if DEBUG > 0
27 #define DEBUGPUTS(x) do { DebugPutStr x; } while(0)
28 #define DEBUGPUTD(x) do { DebugPutDec x; } while(0)
29 #define DEBUGPUTHEX(x) do { DebugPutHex x; } while(0)
30 #endif
31 #endif /* !AROS_SERIAL_DEBUG */
33 #ifndef DEBUGPUTS
34 #define DEBUGPUTS(x) do { } while (0)
35 #define DEBUGPUTD(x) do { } while (0)
36 #define DEBUGPUTHEX(x) do { } while (0)
37 #endif
39 #endif /* DEBUG_H */