2 * \brief VP OS. Types declaration.
3 * \brief These types are used to provide clean types declaration for portability between OSes
4 * \author Sylvain Gaeremynck <sylvain.gaeremynck@parrot.fr>
6 * \date first release 19/12/2006
7 * \date modification 26/03/2007
10 #ifndef _VP_SDK_TYPES_H_
11 #define _VP_SDK_TYPES_H_
13 #include <VP_Os/vp_os.h>
20 #define FAIL (!SUCCESS)
22 #define SUCCEED(a) (((a) & 0xffff) == SUCCESS)
23 #define FAILED(a) (((a) & 0xffff) != SUCCESS)
29 #if defined(USE_MINGW32)
31 // Definition des types entiers
32 typedef signed __int8 int8_t;
33 typedef unsigned __int8 uint8_t;
34 typedef signed __int16 int16_t;
35 typedef unsigned __int16 uint16_t;
36 typedef signed __int32 int32_t;
37 typedef unsigned __int32 uint32_t;
38 typedef signed __int64 int64_t;
39 typedef unsigned __int64 uint64_t;
43 typedef float float32_t;
44 typedef double float64_t;
46 #if !defined(USE_MINGW32)
55 typedef volatile uint8_t vuint8;
56 typedef volatile uint16_t vuint16;
57 typedef volatile uint32_t vuint32;
58 typedef volatile uint64_t vuint64;
60 typedef volatile int8_t vint8;
61 typedef volatile int16_t vint16;
62 typedef volatile int32_t vint32;
63 typedef volatile int64_t vint64;
65 #define bool_t int32_t
67 #if !defined(USE_MINGW32)
77 #endif // < USE_MINGW32
81 #if !defined(__BLUETOOTH_H)
82 typedef struct _bdaddr_t
84 uint8_t b[BDADDR_SIZE];
86 #endif // !defined(__BLUETOOTH_H)