00001 /****************************************************************************** 00002 * $Id$ / $Rev$ / $Date$ 00003 * $URL$ 00004 *****************************************************************************/ 00005 /* (C) Fujitsu Microelectronics Europe GmbH */ 00006 /* */ 00007 /* The following software deliverable is intended for and must only be */ 00008 /* used in an evaluation laboratory environment. */ 00009 /* It is provided without charge and therefore provided on an as-is */ 00010 /* basis, subject to alterations. */ 00011 /* */ 00012 /* The software deliverable is to be used exclusively in connection */ 00013 /* with FME products. */ 00014 /* In the event the software deliverable includes the use of open */ 00015 /* source components, the provisions of the governing open source */ 00016 /* license agreement shall apply with respect to such software */ 00017 /* deliverable. */ 00018 /* FME does not warrant that the deliverables do not infringe any */ 00019 /* third party intellectual property right (IPR). In the event that */ 00020 /* the deliverables infringe a third party IPR it is the sole */ 00021 /* responsibility of the customer to obtain necessary licenses to */ 00022 /* continue the usage of the deliverable. */ 00023 /* */ 00024 /* To the maximum extent permitted by applicable law FME disclaims all */ 00025 /* warranties, whether express or implied, in particular, but not */ 00026 /* limited to, warranties of merchantability and fitness for a */ 00027 /* particular purpose for which the deliverable is not designated. */ 00028 /* */ 00029 /* To the maximum extent permitted by applicable law, FME’s liability */ 00030 /* is restricted to intention and gross negligence. */ 00031 /* FME is not liable for consequential damages. */ 00032 /* */ 00033 /* (Disclaimer V1.2) */ 00034 /*****************************************************************************/ 00043 #ifndef _DBG_H 00044 #define _DBG_H 00045 00046 00047 #define debug_enabled 0 00048 #define use_printbuffer 0 00049 00050 00051 #if (debug_enabled) 00052 #define dbg(x) puts(x) 00053 #define dbgsect(x,y) dbg(x);dbg(y) 00054 #define dbgval(x,y) dbg(x);dbghex(y);dbg("\n") 00055 #define dbgsectval(x,y,z) dbg(x);dbgval(y,z) 00056 #define dbghex(x) _dbghex((uint32_t)x) 00057 00058 void _dbghex(uint32_t n); 00059 #if (use_printbuffer) 00060 void bufferprintout(uint8_t* buffer, uint32_t size); 00061 #define printBuffer(x,y) bufferprintout(x,y); 00062 #else 00063 #define printBuffer(x,y) ; 00064 #endif 00065 #else 00066 #define dbg(x) ; 00067 #define dbghex(x) ; 00068 #define printBuffer(x,y) ; 00069 #define dbgval(x,y) ; 00070 #endif 00071 #endif
1.6.1