• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /******************************************************************************
2  *
3  *  Copyright (C) 1999-2012 Broadcom Corporation
4  *
5  *  Licensed under the Apache License, Version 2.0 (the "License");
6  *  you may not use this file except in compliance with the License.
7  *  You may obtain a copy of the License at:
8  *
9  *  http://www.apache.org/licenses/LICENSE-2.0
10  *
11  *  Unless required by applicable law or agreed to in writing, software
12  *  distributed under the License is distributed on an "AS IS" BASIS,
13  *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  *  See the License for the specific language governing permissions and
15  *  limitations under the License.
16  *
17  ******************************************************************************/
18 #ifndef DATA_TYPES_H
19 #define DATA_TYPES_H
20 
21 #include <stdint.h>
22 #include <stdbool.h>
23 
24 #ifndef NULL
25 #define NULL 0
26 #endif
27 
28 #ifndef false
29 #define false 0
30 #endif
31 
32 #ifndef FALSE
33 #define FALSE 0
34 #endif
35 
36 typedef uint32_t TIME_STAMP;
37 
38 #ifndef true
39 #define true (!false)
40 #endif
41 
42 #ifndef TRUE
43 #define TRUE (!FALSE)
44 #endif
45 typedef unsigned char UBYTE;
46 
47 #ifdef __arm
48 #define PACKED __packed
49 #define INLINE __inline
50 #else
51 #define PACKED
52 #define INLINE
53 #endif
54 
55 #ifndef BIG_ENDIAN
56 #define BIG_ENDIAN false
57 #endif
58 
59 #define UINT16_LOW_BYTE(x) ((x)&0xff)
60 #define UINT16_HI_BYTE(x) ((x) >> 8)
61 
62 #endif
63