comparison fatfs/integer.h @ 49:ace431a0d0f5

Add SDIO code poached from STM. Use FatFS to read from SD card. LFN doesn't work reliably so it's disabled for now.
author Daniel O'Connor <darius@dons.net.au>
date Wed, 03 Apr 2013 23:34:20 +1030
parents
children
comparison
equal deleted inserted replaced
48:2f336d212c74 49:ace431a0d0f5
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