projekty/Source/example1/src/include/inttypes.h

Go to the documentation of this file.
00001 /*
00002  * File        : inttypes.h
00003  * Title       : C99 Standard Integer Data Types
00004  *
00005  * Revised     : 03/Apr/2007
00006  * Created     : 16/Jan/2006
00007  * Version     : 1.0.1
00008  * Editor Tabs : 3
00009  * Tool-Chain  : arm-elf-gcc 4.0.1
00010  *
00011  * MCU         : Philips LPC2xxx (32-Bits ARM7TDMI-S Core)
00012  *
00013  * Author      : Boris Estudiez <stk@freeshell.org>
00014  * Website     : http://stk.freeshell.org
00015  * Licence     : GPL
00016  *
00017  * Description :
00018  * Since these typedefs are mandated by the C99 standard, they are preferred
00019  * over rolling your own typedefs.
00020  *
00021  * History     : Originally relased for my LPC-STXLIB library.
00022  * 
00023  * (C) Copyright by slicetex electronics, 2001-2007.
00024  */
00025  
00026 #ifndef __INTTYPES_H__
00027 #define __INTTYPES_H__
00028 
00029 // ---------------------------------------------------------------------------
00030 // HEADERS
00031 // ---------------------------------------------------------------------------
00032 
00033 // None.
00034 
00035 // ---------------------------------------------------------------------------
00036 // DEFINES/CONSTANTS
00037 // ---------------------------------------------------------------------------
00038 
00039 // Maximum and minimum values for unsigned integer types.
00040 
00041 #define MIN_UINT8_T   (0)
00042 #define MAX_UINT8_T   (255)
00043 #define MIN_UINT16_T  (0)
00044 #define MAX_UINT16_T  (65535)
00045 #define MIN_UINT32_T  (0)
00046 #define MAX_UINT32_T  (4294967295)
00047 
00048 // Maximum and minimum values for signed integer types.
00049 
00050 #define MIN_INT8_T    (-128)
00051 #define MAX_INT8_T    (127)
00052 #define MIN_INT16_T   (-32768)
00053 #define MAX_INT16_T   (32767)
00054 #define MIN_INT32_T   (-2147483648)
00055 #define MAX_INT32_T   (2147483647)
00056 
00057 // ---------------------------------------------------------------------------
00058 // TYPEDEFS
00059 // ---------------------------------------------------------------------------
00060 
00061 typedef unsigned char            uint8_t;
00062 typedef signed char              int8_t;
00063 typedef unsigned short int       uint16_t;
00064 typedef signed short int         int16_t;
00065 typedef unsigned long int        uint32_t;
00066 typedef signed long int          int32_t;
00067 typedef unsigned long long int   uint64_t;
00068 typedef signed long long int     int64_t;
00069 
00070 // ---------------------------------------------------------------------------
00071  
00072 #endif
00073 
00074 // ---------------------------------------------------------------------------
00075 // END OF FILE
00076 // ---------------------------------------------------------------------------
00077 

Generated on Fri Sep 21 13:41:54 2007 for example1 by  doxygen 1.4.7