2020-10-08 14:37:19 +00:00
|
|
|
/*-------------------------------------------*/
|
|
|
|
/* Integer type definitions for FatFs module */
|
|
|
|
/*-------------------------------------------*/
|
|
|
|
|
|
|
|
#ifndef _FF_INTEGER
|
|
|
|
#define _FF_INTEGER
|
|
|
|
|
2021-01-11 14:52:35 +00:00
|
|
|
#ifdef _WIN32 /* FatFs development platform */
|
2020-10-08 14:37:19 +00:00
|
|
|
|
|
|
|
#include <windows.h>
|
|
|
|
#include <tchar.h>
|
|
|
|
typedef unsigned __int64 QWORD;
|
|
|
|
|
2021-01-11 14:52:35 +00:00
|
|
|
#else /* Embedded platform */
|
|
|
|
#include <stdint.h>
|
2020-10-08 14:37:19 +00:00
|
|
|
|
|
|
|
/* These types MUST be 16-bit or 32-bit */
|
2021-01-11 14:52:35 +00:00
|
|
|
typedef int16_t INT;
|
|
|
|
typedef uint16_t UINT;
|
2020-10-08 14:37:19 +00:00
|
|
|
|
|
|
|
/* This type MUST be 8-bit */
|
2021-01-11 14:52:35 +00:00
|
|
|
typedef uint8_t BYTE;
|
2020-10-08 14:37:19 +00:00
|
|
|
|
|
|
|
/* These types MUST be 16-bit */
|
2021-01-11 14:52:35 +00:00
|
|
|
typedef int16_t SHORT;
|
|
|
|
typedef uint16_t WORD;
|
|
|
|
typedef uint16_t WCHAR;
|
2020-10-08 14:37:19 +00:00
|
|
|
|
|
|
|
/* These types MUST be 32-bit */
|
2021-01-11 14:52:35 +00:00
|
|
|
typedef int32_t LONG;
|
|
|
|
typedef uint32_t DWORD;
|
2020-10-08 14:37:19 +00:00
|
|
|
|
|
|
|
/* This type MUST be 64-bit (Remove this for ANSI C (C89) compatibility) */
|
2021-01-11 14:52:35 +00:00
|
|
|
typedef uint64_t QWORD;
|
2020-10-08 14:37:19 +00:00
|
|
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif
|