-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstdtypes.h
65 lines (54 loc) · 2.57 KB
/
stdtypes.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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
/************************************************************************/
/* */
/* stdtypes.h -- Digilent Standard Type Declarations */
/* */
/************************************************************************/
/* Author: Gene Apperson */
/* Copyright 2005, Digilent Inc. */
/************************************************************************/
/* File Description: */
/* */
/* This header file contains declarations for standard Digilent data */
/* types and constants for use with avr-gcc. */
/* */
/************************************************************************/
/* Revision History: */
/* */
/* 01/04/2005(GeneA): created */
/* 08/19/2019(MichaelA): modified to support Petalinux */
/* */
/************************************************************************/
#if !defined(_STDTYPES_INC)
#define _STDTYPES_INC
#include <stdint.h>
/* ------------------------------------------------------------ */
/* General Type Declarations */
/* ------------------------------------------------------------ */
#if defined(__cplusplus)
const bool fFalse = false;
const bool fTrue = true;
#else
#define fFalse 0
#define fTrue (!fFalse)
#endif
typedef signed short INT16;
typedef unsigned short UINT16;
typedef int32_t INT32;
typedef uint32_t UINT32;
typedef int64_t INT64;
typedef uint64_t UINT64;
typedef unsigned char BYTE;
typedef unsigned short WORD;
typedef UINT32 DWORD;
typedef unsigned long ULONG;
typedef unsigned short USHORT;
typedef int BOOL;
typedef char CHAR;
typedef unsigned char UCHAR;
typedef CHAR* PCHAR;
typedef short SHORT;
typedef DWORD HANDLE;
typedef char TCHAR;
/* ------------------------------------------------------------ */
#endif
/************************************************************************/