annotate integer.h @ 323:5181ea55ea77

Add clock_epoch
author Matt Johnston <matt@ucc.asn.au>
date Tue, 22 May 2012 21:24:04 +0800
parents 49e83333e546
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
309
49e83333e546 Add FatFS
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
1 /*-------------------------------------------*/
49e83333e546 Add FatFS
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
2 /* Integer type definitions for FatFs module */
49e83333e546 Add FatFS
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
3 /*-------------------------------------------*/
49e83333e546 Add FatFS
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
4
49e83333e546 Add FatFS
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
5 #ifndef _INTEGER
49e83333e546 Add FatFS
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
6 #define _INTEGER
49e83333e546 Add FatFS
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
7
49e83333e546 Add FatFS
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
8 #ifdef _WIN32 /* FatFs development platform */
49e83333e546 Add FatFS
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
9
49e83333e546 Add FatFS
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
10 #include <windows.h>
49e83333e546 Add FatFS
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
11 #include <tchar.h>
49e83333e546 Add FatFS
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
12
49e83333e546 Add FatFS
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
13 #else /* Embedded platform */
49e83333e546 Add FatFS
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
14
49e83333e546 Add FatFS
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
15 /* These types must be 16-bit, 32-bit or larger integer */
49e83333e546 Add FatFS
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
16 typedef int INT;
49e83333e546 Add FatFS
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
17 typedef unsigned int UINT;
49e83333e546 Add FatFS
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
18
49e83333e546 Add FatFS
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
19 /* These types must be 8-bit integer */
49e83333e546 Add FatFS
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
20 typedef char CHAR;
49e83333e546 Add FatFS
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
21 typedef unsigned char UCHAR;
49e83333e546 Add FatFS
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
22 typedef unsigned char BYTE;
49e83333e546 Add FatFS
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
23
49e83333e546 Add FatFS
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
24 /* These types must be 16-bit integer */
49e83333e546 Add FatFS
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
25 typedef short SHORT;
49e83333e546 Add FatFS
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
26 typedef unsigned short USHORT;
49e83333e546 Add FatFS
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
27 typedef unsigned short WORD;
49e83333e546 Add FatFS
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
28 typedef unsigned short WCHAR;
49e83333e546 Add FatFS
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
29
49e83333e546 Add FatFS
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
30 /* These types must be 32-bit integer */
49e83333e546 Add FatFS
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
31 typedef long LONG;
49e83333e546 Add FatFS
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
32 typedef unsigned long ULONG;
49e83333e546 Add FatFS
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
33 typedef unsigned long DWORD;
49e83333e546 Add FatFS
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
34
49e83333e546 Add FatFS
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
35 #endif
49e83333e546 Add FatFS
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
36
49e83333e546 Add FatFS
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
37 #endif