2015-07-10 06:01:56 -07:00
|
|
|
/*-------------------------------------------*/
|
|
|
|
/* Integer type definitions for FatFs module */
|
|
|
|
/*-------------------------------------------*/
|
|
|
|
|
2018-01-23 18:17:30 -08:00
|
|
|
#ifndef FF_INTEGER
|
|
|
|
#define FF_INTEGER
|
2015-07-10 06:01:56 -07:00
|
|
|
|
|
|
|
#ifdef _WIN32 /* FatFs development platform */
|
|
|
|
|
|
|
|
#include <windows.h>
|
|
|
|
#include <tchar.h>
|
2018-01-23 18:17:30 -08:00
|
|
|
typedef unsigned __int64 QWORD;
|
|
|
|
|
2015-07-10 06:01:56 -07:00
|
|
|
|
|
|
|
#else /* Embedded platform */
|
|
|
|
|
2018-01-23 18:17:30 -08:00
|
|
|
/* These types MUST be 16-bit or 32-bit */
|
|
|
|
typedef int INT;
|
|
|
|
typedef unsigned int UINT;
|
|
|
|
|
|
|
|
/* This type MUST be 8-bit */
|
2015-07-10 06:01:56 -07:00
|
|
|
typedef unsigned char BYTE;
|
|
|
|
|
2018-01-23 18:17:30 -08:00
|
|
|
/* These types MUST be 16-bit */
|
2015-07-10 06:01:56 -07:00
|
|
|
typedef short SHORT;
|
|
|
|
typedef unsigned short WORD;
|
|
|
|
typedef unsigned short WCHAR;
|
|
|
|
|
2018-01-23 18:17:30 -08:00
|
|
|
/* These types MUST be 32-bit */
|
2015-07-10 06:01:56 -07:00
|
|
|
typedef long LONG;
|
|
|
|
typedef unsigned long DWORD;
|
|
|
|
|
2018-01-23 18:17:30 -08:00
|
|
|
/* This type MUST be 64-bit (Remove this for ANSI C (C89) compatibility) */
|
|
|
|
typedef unsigned long long QWORD;
|
|
|
|
|
2015-07-10 06:01:56 -07:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif
|