39 lines
846 B
C
Raw Normal View History

2015-07-08 08:39:24 -07:00
/*-------------------------------------------*/
/* Integer type definitions for FatFs module */
/*-------------------------------------------*/
#ifndef _FF_INTEGER
#define _FF_INTEGER
2016-07-28 23:06:21 -07:00
#ifdef _WIN32 /* FatFs development platform */
2015-07-08 08:39:24 -07:00
#include <windows.h>
#include <tchar.h>
2016-07-28 23:06:21 -07:00
typedef unsigned __int64 QWORD;
2015-07-08 08:39:24 -07:00
#else /* Embedded platform */
2016-07-28 23:06:21 -07:00
/* These types MUST be 16-bit or 32-bit */
typedef int INT;
typedef unsigned int UINT;
2016-04-19 09:51:31 -07:00
/* This type MUST be 8-bit */
2015-07-08 08:39:24 -07:00
typedef unsigned char BYTE;
2016-04-19 09:51:31 -07:00
/* These types MUST be 16-bit */
2015-07-08 08:39:24 -07:00
typedef short SHORT;
typedef unsigned short WORD;
typedef unsigned short WCHAR;
2016-04-19 09:51:31 -07:00
/* These types MUST be 32-bit */
2015-07-08 08:39:24 -07:00
typedef long LONG;
typedef unsigned long DWORD;
2016-07-28 23:06:21 -07:00
/* This type MUST be 64-bit (Remove this for C89 compatibility) */
typedef unsigned long long QWORD;
2015-07-08 08:39:24 -07:00
#endif
#endif