comparison integer.h @ 3:888be1b234b6

Add FatFS
author Matt Johnston <matt@ucc.asn.au>
date Tue, 08 May 2012 22:51:38 +0800
parents
children
comparison
equal deleted inserted replaced
2:ab0e30c4b344 3:888be1b234b6
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 typedef char CHAR;
21 typedef unsigned char UCHAR;
22 typedef unsigned char BYTE;
23
24 /* These types must be 16-bit integer */
25 typedef short SHORT;
26 typedef unsigned short USHORT;
27 typedef unsigned short WORD;
28 typedef unsigned short WCHAR;
29
30 /* These types must be 32-bit integer */
31 typedef long LONG;
32 typedef unsigned long ULONG;
33 typedef unsigned long DWORD;
34
35 #endif
36
37 #endif