annotate integer.h @ 26:d3e5934fe55c

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