rtt-f030/components/dfs/filesystems/elmfat/integer.h

39 lines
808 B
C
Raw Normal View History

2013-01-08 22:40:58 +08:00
/*-------------------------------------------*/
/* Integer type definitions for FatFs module */
/*-------------------------------------------*/
2017-02-13 22:33:15 +08:00
#ifndef _FF_INTEGER
#define _FF_INTEGER
2013-01-08 22:40:58 +08:00
#ifdef _WIN32 /* FatFs development platform */
#include <windows.h>
#include <tchar.h>
2017-02-13 22:33:15 +08:00
typedef unsigned __int64 QWORD;
2013-01-08 22:40:58 +08:00
#else /* Embedded platform */
2017-02-13 22:33:15 +08:00
/* These types MUST be 16-bit or 32-bit */
2013-01-08 22:40:58 +08:00
typedef int INT;
typedef unsigned int UINT;
2017-02-13 22:33:15 +08:00
/* This type MUST be 8-bit */
2013-01-08 22:40:58 +08:00
typedef unsigned char BYTE;
2017-02-13 22:33:15 +08:00
/* These types MUST be 16-bit */
2013-01-08 22:40:58 +08:00
typedef short SHORT;
typedef unsigned short WORD;
typedef unsigned short WCHAR;
2017-02-13 22:33:15 +08:00
/* These types MUST be 32-bit */
2013-01-08 22:40:58 +08:00
typedef long LONG;
typedef unsigned long DWORD;
2017-02-13 22:33:15 +08:00
/* This type MUST be 64-bit (Remove this for C89 compatibility) */
typedef unsigned long long QWORD;
2013-01-08 22:40:58 +08:00
#endif
#endif