Files

39 lines
785 B
C
Raw Permalink Normal View History

2018-09-27 17:31:08 -04:00
/*-------------------------------------------*/
/* Integer type definitions for FatFs module */
/*-------------------------------------------*/
#ifndef FF_INTEGER
#define FF_INTEGER
#include <stdint.h>
2018-09-27 17:31:08 -04:00
#ifdef _WIN32 /* FatFs development platform */
#include <windows.h>
typedef unsigned __int64 QWORD;
#else /* Embedded platform */
/* These types MUST be 16-bit or 32-bit */
typedef int32_t INT;
typedef uint32_t UINT;
2018-09-27 17:31:08 -04:00
/* This type MUST be 8-bit */
typedef uint8_t BYTE;
2018-09-27 17:31:08 -04:00
/* These types MUST be 16-bit */
typedef int16_t SHORT;
typedef uint16_t WORD;
typedef uint16_t WCHAR;
2018-09-27 17:31:08 -04:00
/* These types MUST be 32-bit */
typedef int32_t LONG;
typedef uint32_t DWORD;
2018-09-27 17:31:08 -04:00
/* This type MUST be 64-bit (Remove this for ANSI C (C89) compatibility) */
typedef uint64_t QWORD;
2018-09-27 17:31:08 -04:00
#endif
#endif