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