34 lines
700 B
C
Raw Normal View History

2015-07-08 08:39:24 -07:00
/*-------------------------------------------*/
/* Integer type definitions for FatFs module */
/*-------------------------------------------*/
#ifndef _FF_INTEGER
#define _FF_INTEGER
2016-04-19 09:51:31 -07:00
#ifdef _WIN32 /* Development platform */
2015-07-08 08:39:24 -07:00
#include <windows.h>
#include <tchar.h>
#else /* Embedded platform */
2016-04-19 09:51:31 -07:00
/* This type MUST be 8-bit */
2015-07-08 08:39:24 -07:00
typedef unsigned char BYTE;
2016-04-19 09:51:31 -07:00
/* These types MUST be 16-bit */
2015-07-08 08:39:24 -07:00
typedef short SHORT;
typedef unsigned short WORD;
typedef unsigned short WCHAR;
2016-04-19 09:51:31 -07:00
/* These types MUST be 16-bit or 32-bit */
2015-07-08 08:39:24 -07:00
typedef int INT;
typedef unsigned int UINT;
2016-04-19 09:51:31 -07:00
/* These types MUST be 32-bit */
2015-07-08 08:39:24 -07:00
typedef long LONG;
typedef unsigned long DWORD;
#endif
#endif