corrections to host channel offsets. add definitions for device endpoints.
[AROS.git] / arch / arm-raspi / usb / usb2otg / usb2otg_debug.h
blob8389f0ba0e8105e835179504c219c4337403acf5
1 /*
2 Copyright © 2013, The AROS Development Team. All rights reserved.
3 $Id$
5 This file can be included multiple times with different DB_LEVEL
6 */
7 #undef DB
8 #undef KPRINTF
10 #ifndef DB_LEVEL
11 #define DB_LEVEL 200
12 #endif
14 //#define DEBUG 1
16 #include <proto/debug.h>
18 // DEBUG 0 should equal undefined DEBUG
19 #ifdef DEBUG
20 #if DEBUG == 0
21 #undef DEBUG
22 #endif
23 #endif
25 #ifdef DEBUG
26 #define KPRINTF(l, x) do { if ((l) >= DB_LEVEL) \
27 { KPrintF("%s/%lu: ", __FUNCTION__, __LINE__); KPrintF x;} } while (0)
28 #define DB(x) x
29 void dumpmem_usb2otg(void *mem, unsigned long int len);
30 #else /* !DEBUG */
32 #define KPRINTF(l, x) ((void) 0)
33 #define DB(x)
35 #endif /* DEBUG */