SFBTypes.h
Go to the documentation of this file.00001 
00002 
00003 
00004 
00005 
00006 
00007 
00008 
00009 
00010 
00011 
00012 
00013 
00014 
00015 
00016 
00017 
00018 
00019 
00020 
00027 #ifndef SFBTYPES_H
00028 #define SFBTYPES_H
00029 
00030 #include <inttypes.h>
00031 
00032 typedef int8_t  s8;                    
00033 typedef int16_t s16;                   
00034 typedef int32_t s32;                   
00035 typedef int64_t s64;                   
00036 typedef intptr_t sptr;                 
00038 typedef const int8_t  sc8;             
00039 typedef const int16_t sc16;            
00040 typedef const int32_t sc32;            
00041 typedef const int64_t sc64;            
00042 typedef const intptr_t scptr;          
00044 typedef volatile int8_t  sv8;          
00045 typedef volatile int16_t sv16;         
00046 typedef volatile int32_t sv32;         
00047 typedef volatile int64_t sv64;         
00048 typedef volatile intptr_t svptr;       
00050 typedef volatile const int8_t  svc8;    
00051 typedef volatile const int16_t svc16;   
00052 typedef volatile const int32_t svc32;   
00053 typedef volatile const int64_t svc64;   
00054 typedef volatile const intptr_t svcptr; 
00056 typedef uint8_t  u8;                   
00057 typedef uint16_t u16;                  
00058 typedef uint32_t u32;                  
00059 typedef uint64_t u64;                  
00060 typedef uintptr_t uptr;                
00062 typedef const uint8_t  uc8;            
00063 typedef const uint16_t uc16;           
00064 typedef const uint32_t uc32;           
00065 typedef const uint64_t uc64;           
00066 typedef const uintptr_t ucptr;         
00068 typedef volatile uint8_t  uv8;         
00069 typedef volatile uint16_t uv16;        
00070 typedef volatile uint32_t uv32;        
00071 typedef volatile uint64_t uv64;        
00072 typedef volatile uintptr_t uvptr;      
00074 typedef volatile const uint8_t  uvc8;    
00075 typedef volatile const uint16_t uvc16;   
00076 typedef volatile const uint32_t uvc32;   
00077 typedef volatile const uint64_t uvc64;   
00078 typedef volatile const uintptr_t uvcptr; 
00080 #define S8_MAX     ((s8)127)           
00081 #define S8_MIN     ((s8)-128)          
00082 #define S16_MAX    ((s16)32767)        
00083 #define S16_MIN    ((s16)-32768)       
00084 #define S32_MAX    ((s32)2147483647)   
00085 #define S32_MIN    ((s32)2147483648UL) 
00086 #define S64_MAX    ((((s64)0x7fffffff)<<32)|0xffffffff)    
00087 #define S64_MIN    ((((s64)0x80000000)<<32))   
00089 #define U8_MAX     ((u8)255)           
00090 #define U8_MIN     ((u8)0)             
00091 #define U16_MAX    ((u16)65535U)       
00092 #define U16_MIN    ((u16)0)            
00093 #define U32_MAX    ((u32)4294967295UL) 
00094 #define U32_MIN    ((u32)0)            
00095 #define U64_MAX    ((((u64)0xffffffff)<<32)|0xffffffff) 
00096                                        
00097 #define U64_MIN    ((u64)0LL)          
00099 typedef void IRQHandler (void);
00100 
00101 #endif