2014-08-13 05:48:16 +00:00
|
|
|
/*-------------------------------------------*/
|
|
|
|
/* Integer type definitions for FatFs module */
|
|
|
|
/*-------------------------------------------*/
|
|
|
|
|
2017-06-24 06:35:31 +00:00
|
|
|
#ifndef FF_INTEGER
|
|
|
|
#define FF_INTEGER
|
2014-08-13 05:48:16 +00:00
|
|
|
|
|
|
|
#ifdef _WIN32 /* FatFs development platform */
|
|
|
|
|
|
|
|
#include <windows.h>
|
|
|
|
#include <tchar.h>
|
2017-06-24 06:35:31 +00:00
|
|
|
typedef unsigned __int64 QWORD;
|
|
|
|
|
2014-08-13 05:48:16 +00:00
|
|
|
|
|
|
|
#else /* Embedded platform */
|
|
|
|
|
2017-06-24 06:35:31 +00:00
|
|
|
/* These types MUST be 16-bit or 32-bit */
|
|
|
|
typedef int INT;
|
|
|
|
typedef unsigned int UINT;
|
|
|
|
|
|
|
|
/* This type MUST be 8-bit */
|
2014-08-13 05:48:16 +00:00
|
|
|
typedef unsigned char BYTE;
|
|
|
|
|
2017-06-24 06:35:31 +00:00
|
|
|
/* These types MUST be 16-bit */
|
2014-08-13 05:48:16 +00:00
|
|
|
typedef short SHORT;
|
|
|
|
typedef unsigned short WORD;
|
|
|
|
typedef unsigned short WCHAR;
|
|
|
|
|
2017-06-24 06:35:31 +00:00
|
|
|
/* These types MUST be 32-bit */
|
2014-08-13 05:48:16 +00:00
|
|
|
typedef long LONG;
|
|
|
|
typedef unsigned long DWORD;
|
|
|
|
|
2017-06-24 06:35:31 +00:00
|
|
|
/* This type MUST be 64-bit (Remove this for ANSI C (C89) compatibility) */
|
|
|
|
typedef unsigned long long QWORD;
|
|
|
|
|
2014-08-13 05:48:16 +00:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif
|