amiro-lld / drivers / DW1000 / v2 / decadriver / deca_types.h @ 22401187
History | View | Annotate | Download (1.028 KB)
1 | 22401187 | Thomas Schöpping | /*! ----------------------------------------------------------------------------
|
---|---|---|---|
2 | * @file deca_types.h
|
||
3 | * @brief Decawave general type definitions
|
||
4 | *
|
||
5 | * @attention
|
||
6 | *
|
||
7 | * Copyright 2013 (c) Decawave Ltd, Dublin, Ireland.
|
||
8 | *
|
||
9 | * All rights reserved.
|
||
10 | *
|
||
11 | */
|
||
12 | |||
13 | #ifndef _DECA_TYPES_H_
|
||
14 | #define _DECA_TYPES_H_
|
||
15 | |||
16 | #ifdef __cplusplus
|
||
17 | extern "C" { |
||
18 | #endif
|
||
19 | |||
20 | #ifndef uint8
|
||
21 | #ifndef _DECA_UINT8_
|
||
22 | #define _DECA_UINT8_
|
||
23 | typedef unsigned char uint8; |
||
24 | #endif
|
||
25 | #endif
|
||
26 | |||
27 | #ifndef uint16
|
||
28 | #ifndef _DECA_UINT16_
|
||
29 | #define _DECA_UINT16_
|
||
30 | typedef unsigned short uint16; |
||
31 | #endif
|
||
32 | #endif
|
||
33 | |||
34 | #ifndef uint32
|
||
35 | #ifndef _DECA_UINT32_
|
||
36 | #define _DECA_UINT32_
|
||
37 | typedef unsigned long uint32; |
||
38 | #endif
|
||
39 | #endif
|
||
40 | |||
41 | #ifndef int8
|
||
42 | #ifndef _DECA_INT8_
|
||
43 | #define _DECA_INT8_
|
||
44 | typedef signed char int8; |
||
45 | #endif
|
||
46 | #endif
|
||
47 | |||
48 | #ifndef int16
|
||
49 | #ifndef _DECA_INT16_
|
||
50 | #define _DECA_INT16_
|
||
51 | typedef signed short int16; |
||
52 | #endif
|
||
53 | #endif
|
||
54 | |||
55 | #ifndef int32
|
||
56 | #ifndef _DECA_INT32_
|
||
57 | #define _DECA_INT32_
|
||
58 | typedef signed long int32; |
||
59 | #endif
|
||
60 | #endif
|
||
61 | |||
62 | #ifndef NULL |
||
63 | #define NULL ((void *)0UL) |
||
64 | #endif
|
||
65 | |||
66 | #ifdef __cplusplus
|
||
67 | } |
||
68 | #endif
|
||
69 | |||
70 | #endif /* DECA_TYPES_H_ */ |
||
71 |