-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathcrosstypes.h
38 lines (36 loc) · 1.21 KB
/
crosstypes.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
// crosstypes.h
// 28.05.2015
//------------------------------------------------------------
#ifndef CROSSTYPES_H
#define CROSSTYPES_H
#ifndef BASETYPES
//...................................................... 8-bit
typedef unsigned char UCHAR;
typedef UCHAR BYTE;
typedef BYTE BOOL;
//...................................................... 16-bit
typedef short int SHORT;
typedef unsigned short int USHORT;
typedef USHORT WORD;
typedef USHORT wchar;
typedef USHORT WCHAR;
//...................................................... 32-bit
typedef long LONG; /* OS dependence 32/64-bit */
typedef unsigned long ULONG;
typedef unsigned int UINT; /* always 32-bit */
typedef UINT DWORD;
//...................................................... 64-bit
typedef long long LONGLONG;
typedef unsigned long long ULONGLONG;
#endif
typedef ULONGLONG QWORD;
//------------------------------------------------------ zero pointer
#ifndef NULL
#define NULL 0
#endif
//...................................................... multipliers of frequencies
#define GHz *1000000000
#define MHz *1000000
#define kHz *1000
//---------------------------------------------------------------
#endif // CROSSTYPES_H