10 #ifndef __8051_DEF_H__
11 #define __8051_DEF_H__
13 #define CC_CONF_FUNCTION_POINTER_ARGS 1
14 #define CC_CONF_FASTCALL
15 #define CC_CONF_VA_ARGS 1
16 #define CC_CONF_UNSIGNED_CHAR_BUGS 0
17 #define CC_CONF_REGISTER_ARGS 0
18 #define CC_CONF_FUNCTION_POINTER_KEYWORD __reentrant
21 typedef signed char int8_t;
22 typedef unsigned char uint8_t;
23 typedef signed short int16_t;
24 typedef unsigned short uint16_t;
25 typedef unsigned long uint32_t;
26 typedef unsigned char u8_t;
27 typedef unsigned short u16_t;
28 typedef unsigned long u32_t;
29 typedef signed long s32_t;
31 typedef signed long int32_t;
32 #ifndef _SIZE_T_DEFINED
33 #define _SIZE_T_DEFINED
34 typedef unsigned int size_t;
40 #define CC_CONF_CONST_FUNCTION_BUG
43 #define DISABLE_INTERRUPTS() EA = 0;
44 #define ENABLE_INTERRUPTS() EA = 1;
46 #define ENTER_CRITICAL() \
55 #define EXIT_CRITICAL() \
78 #define UIP_ARCH_ADD32 0
79 #define UIP_ARCH_CHKSUM 0
80 #define UIP_ARCH_IPCHKSUM
82 #define CC_CONF_ASSIGN_AGGREGATE(dest, src) \
83 memcpy(dest, src, sizeof(*dest))
85 #define uip_ipaddr_copy(dest, src) \
86 memcpy(dest, src, sizeof(*dest))