TMPM4G9  V1.0.0.0
txz_safety_def.h
Go to the documentation of this file.
1 
13 /* Define to prevent recursive inclusion -------------------------------------*/
14 #ifndef __TXZ_SAFETY_DEF_H
15 #define __TXZ_SAFETY_DEF_H
16 
17 #ifdef __cplusplus
18  extern "C" {
19 #endif
20 
34 #include "TMPM4G9.h" /* End of group Device_Header */
38 
39 // bool definition in plain C (not C++)
40 
41 // bool definition in EWARM C (not C++) build
42 // this is from arm\inc\stdbool.h
43 #ifndef __cplusplus
44 
45 // check multiple define
46 #ifndef true
47 //#define bool _Bool
48 typedef _Bool bool;
49 #define true 1
50 #define false 0
51 #endif
52 
53 #endif /* !__cplusplus */
54 
55 // NULL define
56 #ifndef SAFETY_NULL
57 #define SAFETY_NULL ((void *)0)
58 #endif
59 
60 // DEBUG define
61 #ifndef NDEBUG
62 #include <stdio.h>
63 // message output in DEBUG build
64 // use DEBUGMSG(1, ("message %s", string)) kind of forms to pass multiple arguments
65 // #define DEBUGMSG(x, y) (((x)?((void)printf y),1:0))
66 #define DEBUGMSG(x, y) if(x){((void)printf y);}
67 #else
68 // if you would like debug in "RELEASE" build, enable following and make build option
69 // general - library option - low level library option as semi-hosting
70 //#include <stdio.h>
71 //#define DEBUGMSG(x, y) ((void)((x)?(printf y),1:0))
72 #define DEBUGMSG(x, y) ((void)0)
73 #endif
74  /* End of group TXZ_SAFETY_DEF */
77  /* End of group Safety_Library */
81 
82 #ifdef __cplusplus
83 }
84 #endif /* __cplusplus */
85 
86 #endif /* __TXZ_SAFETY_DEF_H */
_Bool bool
Definition: txz_safety_def.h:48
CMSIS Cortex-M4 Core Peripheral Access Layer Header File for the TOSHIBA &#39;TMPM4G9&#39; Device Series...