esp-open-rtos/extras/fatfs/integer.h

39 lines
853 B
C
Raw Permalink Normal View History

/*-------------------------------------------*/
/* Integer type definitions for FatFs module */
/*-------------------------------------------*/
2017-12-12 04:40:21 +00:00
#ifndef FF_INTEGER
#define FF_INTEGER
#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 */
/* These types MUST be 16-bit or 32-bit */
2017-12-12 04:40:21 +00:00
typedef int INT;
typedef unsigned int UINT;
/* This type MUST be 8-bit */
2017-12-12 04:40:21 +00:00
typedef unsigned char BYTE;
/* 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;
/* These types MUST be 32-bit */
2017-12-12 04:40:21 +00:00
typedef long LONG;
typedef unsigned long DWORD;
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;
#endif
#endif