-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathcommon.h
46 lines (34 loc) · 2.05 KB
/
common.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
#ifndef COMMON_H
#define COMMON_H
/****************************************************************************/
/*** Include files ***/
/****************************************************************************/
#include <stdint.h>
/****************************************************************************/
/*** Macro Definitions ***/
/****************************************************************************/
/*--------------------------------------------------------------------------*/
/* Boolean Constants */
/*--------------------------------------------------------------------------*/
#if !defined FALSE && !defined TRUE
#define TRUE (1) /* page 207 K+R 2nd Edition */
#define FALSE (0)
#endif /* !defined FALSE && #if !defined TRUE */
/*--------------------------------------------------------------------------*/
/* Null pointers */
/*--------------------------------------------------------------------------*/
/* NULL data pointer */
#if !defined NULL
#define NULL ( (void *) 0 )
#endif
/****************************************************************************/
/*** Type Definitions ***/
/****************************************************************************/
typedef uint8_t bool_t;
/****************************************************************************/
/*** Exported Functions ***/
/****************************************************************************/
#endif // COMMON_H
/****************************************************************************/
/*** END OF FILE ***/
/****************************************************************************/