Denislam Valeev / Mbed OS Nucleo_rtos_basic
Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers integer.h Source File

integer.h

00001 /*-------------------------------------------*/
00002 /* Integer type definitions for FatFs module */
00003 /*-------------------------------------------*/
00004 
00005 #ifndef FF_INTEGER
00006 #define FF_INTEGER
00007 
00008 #ifdef _WIN32   /* FatFs development platform */
00009 
00010 #include <windows.h>
00011 #include <tchar.h>
00012 typedef unsigned __int64 QWORD;
00013 
00014 
00015 #else           /* Embedded platform */
00016 
00017 /* These types MUST be 16-bit or 32-bit */
00018 typedef int             INT;
00019 typedef unsigned int    UINT;
00020 
00021 /* This type MUST be 8-bit */
00022 typedef unsigned char   BYTE;
00023 
00024 /* These types MUST be 16-bit */
00025 typedef short           SHORT;
00026 typedef unsigned short  WORD;
00027 typedef unsigned short  WCHAR;
00028 
00029 /* These types MUST be 32-bit */
00030 typedef long            LONG;
00031 typedef unsigned long   DWORD;
00032 
00033 /* This type MUST be 64-bit (Remove this for ANSI C (C89) compatibility) */
00034 typedef unsigned long long QWORD;
00035 
00036 #endif
00037 
00038 #endif