2015-04-26 17:54:51 +02:00
|
|
|
/*-------------------------------------------*/
|
|
|
|
/* Integer type definitions for FatFs module */
|
|
|
|
/*-------------------------------------------*/
|
|
|
|
|
|
|
|
#ifndef _FF_INTEGER
|
|
|
|
#define _FF_INTEGER
|
|
|
|
|
|
|
|
#ifdef _WIN32 /* FatFs development platform */
|
|
|
|
|
|
|
|
#include <windows.h>
|
|
|
|
#include <tchar.h>
|
2017-04-06 17:03:53 +02:00
|
|
|
typedef unsigned __int64 QWORD;
|
|
|
|
|
2015-04-26 17:54:51 +02:00
|
|
|
|
|
|
|
#else /* Embedded platform */
|
|
|
|
|
2017-04-06 17:03:53 +02:00
|
|
|
/* These types MUST be 16-bit or 32-bit */
|
|
|
|
typedef int INT;
|
|
|
|
typedef unsigned int UINT;
|
|
|
|
|
|
|
|
/* This type MUST be 8-bit */
|
2015-04-26 17:54:51 +02:00
|
|
|
typedef unsigned char BYTE;
|
|
|
|
|
2017-04-06 17:03:53 +02:00
|
|
|
/* These types MUST be 16-bit */
|
2015-04-26 17:54:51 +02:00
|
|
|
typedef short SHORT;
|
|
|
|
typedef unsigned short WORD;
|
|
|
|
typedef unsigned short WCHAR;
|
|
|
|
|
2017-04-06 17:03:53 +02:00
|
|
|
/* These types MUST be 32-bit */
|
2015-04-26 17:54:51 +02:00
|
|
|
typedef long LONG;
|
|
|
|
typedef unsigned long DWORD;
|
|
|
|
|
2017-04-06 17:03:53 +02:00
|
|
|
/* This type MUST be 64-bit (Remove this for ANSI C (C89) compatibility) */
|
|
|
|
typedef unsigned long long QWORD;
|
|
|
|
|
2015-04-26 17:54:51 +02:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif
|