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