mayhem-firmware/firmware/chibios-portapack/ext/fatfs/src/integer.h

39 lines
855 B
C
Raw Normal View History

2015-07-08 15:39:24 +00:00
/*-------------------------------------------*/
/* Integer type definitions for FatFs module */
/*-------------------------------------------*/
#ifndef _FF_INTEGER
#define _FF_INTEGER
2016-07-29 06:06:21 +00:00
#ifdef _WIN32 /* FatFs development platform */
2015-07-08 15:39:24 +00:00
#include <windows.h>
#include <tchar.h>
2016-07-29 06:06:21 +00:00
typedef unsigned __int64 QWORD;
2015-07-08 15:39:24 +00:00
#else /* Embedded platform */
2016-07-29 06:06:21 +00:00
/* These types MUST be 16-bit or 32-bit */
typedef int INT;
typedef unsigned int UINT;
2016-04-19 16:51:31 +00:00
/* This type MUST be 8-bit */
2015-07-08 15:39:24 +00:00
typedef unsigned char BYTE;
2016-04-19 16:51:31 +00:00
/* These types MUST be 16-bit */
2015-07-08 15:39:24 +00:00
typedef short SHORT;
typedef unsigned short WORD;
typedef unsigned short WCHAR;
2016-04-19 16:51:31 +00:00
/* These types MUST be 32-bit */
2015-07-08 15:39:24 +00:00
typedef long LONG;
typedef unsigned long DWORD;
2017-05-03 11:39:05 +00:00
/* This type MUST be 64-bit (Remove this for ANSI C (C89) compatibility) */
2016-07-29 06:06:21 +00:00
typedef unsigned long long QWORD;
2015-07-08 15:39:24 +00:00
#endif
#endif