Web server based weather station using Sparkfun Weather Meters.
Dependencies: FatFileSystem mbed WeatherMeters SDFileSystem
cc.h
00001 /* 00002 * Author: Adam Dunkels <adam@sics.se> 00003 * 00004 */ 00005 #ifndef __LWIP_ARCH_CC_H__ 00006 #define __LWIP_ARCH_CC_H__ 00007 #include <mbed.h> 00008 00009 #define LITTLE_ENDIAN 1234 00010 00011 #define BYTE_ORDER LITTLE_ENDIAN 00012 00013 typedef unsigned char u8_t; 00014 typedef signed char s8_t; 00015 typedef unsigned short u16_t; 00016 typedef signed short s16_t; 00017 typedef unsigned int u32_t; 00018 typedef signed int s32_t; 00019 typedef unsigned int mem_ptr_t; 00020 00021 #ifndef NULL 00022 #define NULL 0 00023 #endif 00024 00025 #ifndef TRUE 00026 #define TRUE 1 00027 #endif 00028 00029 #ifndef FALSE 00030 #define FALSE 0 00031 #endif 00032 00033 #define LWIP_RAND rand 00034 00035 #define LWIP_PLATFORM_DIAG(x) printf x 00036 #define LWIP_PLATFORM_ASSERT(x) error(x) 00037 00038 #define LWIP_PROVIDE_ERRNO 00039 00040 #ifdef __GNUC__ 00041 /* printf() format specifiers used by GCC. */ 00042 #define U16_F "hu" 00043 #define S16_F "hd" 00044 #define X16_F "hx" 00045 #define U32_F "u" 00046 #define S32_F "d" 00047 #define X32_F "x" 00048 #else /* !__GNUC__ */ 00049 /* printf() format specifiers used by ARM compiler. */ 00050 #define U16_F "hu" 00051 #define S16_F "hd" 00052 #define X16_F "hx" 00053 #define U32_F "lu" 00054 #define S32_F "ld" 00055 #define X32_F "lx" 00056 #endif /* __GNUC__ */ 00057 00058 #if 0 00059 /*Create compilation problems, and according to http://www.mail-archive.com/lwip-users@nongnu.org/msg06786.html, 00060 lwIP uses packed structures, so packing the field is not really a good idea ;) */ 00061 #define PACK_STRUCT_FIELD(x) __packed x 00062 #else 00063 #define PACK_STRUCT_FIELD(x) x 00064 #endif 00065 00066 #ifdef __GNUC__ 00067 /* Packing for structs in GCC. */ 00068 #define PACK_STRUCT_STRUCT __attribute__((packed)) 00069 #define PACK_STRUCT_BEGIN 00070 #define PACK_STRUCT_END 00071 #else /* !__GNUC__ */ 00072 /* Packing for structs in ARM compiler. */ 00073 #define PACK_STRUCT_STRUCT 00074 #define PACK_STRUCT_BEGIN __packed 00075 #define PACK_STRUCT_END 00076 #endif /* __GNUC__ */ 00077 00078 #define LWIP_CHKSUM_ALGORITHM 3 00079 00080 00081 #endif /* __LWIP_ARCH_CC_H__ */
Generated on Tue Jul 12 2022 20:48:15 by 1.7.2