BeRTOS
|
00001 /*-------------------------------------------*/ 00002 /* Integer type definitions for FatFs module */ 00003 /*-------------------------------------------*/ 00004 00005 #ifndef _INTEGER 00006 00007 #include <cfg/compiler.h> 00008 00009 #if 0 00010 #include <windows.h> 00011 #else 00012 00013 /* These types must be 16-bit, 32-bit or larger integer */ 00014 typedef int INT; 00015 typedef unsigned UINT; 00016 00017 /* These types must be 8-bit integer */ 00018 typedef int8_t CHAR; 00019 typedef uint8_t UCHAR; 00020 typedef uint8_t BYTE; 00021 00022 /* These types must be 16-bit integer */ 00023 typedef int16_t SHORT; 00024 typedef uint16_t USHORT; 00025 typedef uint16_t WORD; 00026 typedef uint16_t WCHAR; 00027 00028 /* These types must be 32-bit integer */ 00029 typedef int32_t LONG; 00030 typedef uint32_t ULONG; 00031 typedef uint32_t DWORD; 00032 00033 /* Boolean type */ 00034 typedef enum { FALSE = 0, TRUE } BOOL; 00035 00036 #endif 00037 00038 #define _INTEGER 00039 #endif