CMSIS2000  0.0.7
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
integer.h
Go to the documentation of this file.
1 /*-------------------------------------------*/
2 /* Integer type definitions for FatFs module */
3 /*-------------------------------------------*/
4 
5 #ifndef _INTEGER
6 #define _INTEGER
7 
8 #ifdef _WIN32 /* FatFs development platform */
9 
10 #include <windows.h>
11 #include <tchar.h>
12 
13 #else /* Embedded platform */
14 
15 /* These types must be 16-bit, 32-bit or larger integer */
16 typedef int INT;
17 typedef unsigned int UINT;
18 
19 /* These types must be 8-bit integer */
20 #ifndef LPC_TYPES_H
21 typedef char CHAR;
22 #endif
23 typedef unsigned char UCHAR;
24 typedef unsigned char BYTE;
25 
26 /* These types must be 16-bit integer */
27 typedef short SHORT;
28 typedef unsigned short USHORT;
29 typedef unsigned short WORD;
30 typedef unsigned short WCHAR;
31 
32 /* These types must be 32-bit integer */
33 typedef long LONG;
34 typedef unsigned long ULONG;
35 typedef unsigned long DWORD;
36 
37 #endif
38 
39 #endif