Contiki 2.6

contiki-conf.h

00001 #ifndef __CONTIKI_CONF_H__
00002 #define __CONTIKI_CONF_H__
00003 
00004 #define CC_CONF_REGISTER_ARGS 1
00005 #define CC_CONF_FASTCALL __fastcall
00006 #define CC_CONF_INLINE   __inline
00007 
00008 
00009 #if _USRDLL
00010 #define CCIF __declspec(dllimport)
00011 #else /* _USRDLL */
00012 #define CCIF __declspec(dllexport)
00013 #endif /* _USRDLL */
00014 #define CLIF __declspec(dllexport)
00015 
00016 #ifdef __CYGWIN__
00017 int strcasecmp(const char*, const char*);
00018 char* strdup(const char*);
00019 #else /* __CYGWIN__ */
00020 #define HAVE_SNPRINTF
00021 #define snprintf   _snprintf
00022 #define strcasecmp _stricmp
00023 #define strdup     _strdup
00024 #endif /* __CYGWIN__ */
00025 
00026 
00027 #define LOG_CONF_ENABLED 1
00028 #include "sys/log.h"
00029 CCIF void debug_printf(char *format, ...);
00030 
00031 
00032 #define CLOCK_CONF_SECOND 1000
00033 typedef unsigned long clock_time_t;
00034 
00035 
00036 typedef   signed char    int8_t;
00037 typedef unsigned char   uint8_t;
00038 typedef   signed short  int16_t;
00039 typedef unsigned short uint16_t;
00040 typedef   signed int    int32_t;
00041 typedef unsigned int   uint32_t;
00042 
00043 /* These names are deprecated, use C99 names. */
00044 typedef unsigned char   u8_t;
00045 typedef unsigned short u16_t;
00046 typedef unsigned long  u32_t;
00047 typedef          long  s32_t;
00048 
00049 typedef unsigned short uip_stats_t;
00050 
00051 #define UIP_CONF_MAX_CONNECTIONS 40
00052 #define UIP_CONF_MAX_LISTENPORTS 40
00053 #define UIP_CONF_BUFFER_SIZE     420
00054 #define UIP_CONF_BYTE_ORDER      UIP_LITTLE_ENDIAN
00055 #define UIP_CONF_TCP_SPLIT       1
00056 #if UIP_CONF_IPV6
00057 #define UIP_CONF_IP_FORWARD 0
00058 #define UIP_CONF_DS6_NBR_NBU     100
00059 #define UIP_CONF_DS6_DEFRT_NBU   2
00060 #define UIP_CONF_DS6_PREFIX_NBU  5
00061 #define UIP_CONF_DS6_ROUTE_NBU   100
00062 #define UIP_CONF_DS6_ADDR_NBU    10
00063 #define UIP_CONF_DS6_MADDR_NBU   0  //VC++ does not allow zero length arrays
00064 #define UIP_CONF_DS6_AADDR_NBU   0  //inside a struct
00065 #else
00066 #define UIP_CONF_IP_FORWARD      1
00067 #endif
00068 #define UIP_CONF_LOGGING         1
00069 #define UIP_CONF_UDP_CHECKSUMS   1
00070 
00071 
00072 #include <ctype.h>
00073 #define ctk_arch_isprint isprint
00074 
00075 #include "ctk/ctk-console.h"
00076 
00077 #define CH_ULCORNER               0xDA
00078 #define CH_URCORNER               0xBF
00079 #define CH_LLCORNER               0xC0
00080 #define CH_LRCORNER               0xD9
00081 #define CH_ENTER                  '\r'
00082 #define CH_DEL                    '\b'
00083 #define CH_CURS_UP                -1
00084 #define CH_CURS_LEFT              -2
00085 #define CH_CURS_RIGHT             -3
00086 #define CH_CURS_DOWN              -4
00087 
00088 #define CTK_CONF_MENU_KEY         -5  /* F10 */
00089 #define CTK_CONF_WINDOWSWITCH_KEY -6  /* Ctrl-Tab */
00090 #define CTK_CONF_WIDGETUP_KEY     -7  /* Shift-Tab */
00091 #define CTK_CONF_WIDGETDOWN_KEY   '\t'
00092 #define CTK_CONF_WIDGET_FLAGS     0
00093 #define CTK_CONF_SCREENSAVER      0
00094 
00095 #ifdef PLATFORM_BUILD
00096 #define CTK_CONF_MOUSE_SUPPORT    1
00097 #define CTK_CONF_WINDOWS          1
00098 #define CTK_CONF_WINDOWMOVE       1
00099 #define CTK_CONF_WINDOWCLOSE      1
00100 #define CTK_CONF_ICONS            1
00101 #define CTK_CONF_ICON_BITMAPS     0
00102 #define CTK_CONF_ICON_TEXTMAPS    1
00103 #define CTK_CONF_MENUS            1
00104 #define CTK_CONF_MENUWIDTH        16
00105 #define CTK_CONF_MAXMENUITEMS     10
00106 #else /* PLATFORM_BUILD */
00107 #define CTK_CONF_MOUSE_SUPPORT    1
00108 #define CTK_CONF_WINDOWS          0
00109 #define CTK_CONF_WINDOWMOVE       0
00110 #define CTK_CONF_WINDOWCLOSE      0
00111 #define CTK_CONF_ICONS            0
00112 #define CTK_CONF_MENUS            0
00113 #endif /* PLATFORM_BUILD */
00114 
00115 #define COLOR_BLACK  (0)
00116 #define COLOR_BLUE   (1)
00117 #define COLOR_GRAY   (1 | 2 | 4)
00118 #define COLOR_CYAN   (1 | 2 | 8)
00119 #define COLOR_YELLOW (2 | 4 | 8)
00120 #define COLOR_WHITE  (1 | 2 | 4 | 8)
00121 
00122 #define BORDERCOLOR         COLOR_BLACK
00123 #define SCREENCOLOR         COLOR_BLACK
00124 #define BACKGROUNDCOLOR     COLOR_BLACK
00125 #define WINDOWCOLOR_FOCUS   COLOR_WHITE  | COLOR_BLUE * 0x10
00126 #define WINDOWCOLOR         COLOR_GRAY   | COLOR_BLUE * 0x10
00127 #define DIALOGCOLOR         COLOR_WHITE  | COLOR_BLUE * 0x10
00128 #define WIDGETCOLOR_HLINK   COLOR_CYAN   | COLOR_BLUE * 0x10
00129 #define WIDGETCOLOR_FWIN    COLOR_WHITE  | COLOR_BLUE * 0x10
00130 #define WIDGETCOLOR         COLOR_GRAY   | COLOR_BLUE * 0x10
00131 #define WIDGETCOLOR_DIALOG  COLOR_WHITE  | COLOR_BLUE * 0x10
00132 #define WIDGETCOLOR_FOCUS   COLOR_YELLOW | COLOR_BLUE * 0x10
00133 #define MENUCOLOR           COLOR_WHITE  | COLOR_BLUE * 0x10
00134 #define OPENMENUCOLOR       COLOR_WHITE  | COLOR_BLUE * 0x10
00135 #define ACTIVEMENUITEMCOLOR COLOR_YELLOW | COLOR_BLUE * 0x10
00136 
00137 
00138 #ifdef PLATFORM_BUILD
00139 #define LOADER_CONF_ARCH "loader/dll-loader.h"
00140 #else /* PLATFORM_BUILD */
00141 #define LOADER_CONF_ARCH "loader/unload.h"
00142 #endif /* PLATFORM_BUILD */
00143 
00144 #define PROGRAM_HANDLER_CONF_MAX_NUMDSCS 10
00145 #define PROGRAM_HANDLER_CONF_QUIT_MENU   1
00146 
00147 
00148 #define EMAIL_CONF_WIDTH  76
00149 #define EMAIL_CONF_HEIGHT 30
00150 #ifndef PLATFORM_BUILD
00151 #define EMAIL_CONF_ERASE   0
00152 #endif
00153 
00154 #define IRC_CONF_WIDTH         78
00155 #define IRC_CONF_HEIGHT        30
00156 #define IRC_CONF_SYSTEM_STRING "Win32"
00157 
00158 
00159 #define SHELL_CONF_WITH_PROGRAM_HANDLER 1
00160 
00161 
00162 #define SHELL_GUI_CONF_XSIZE 78
00163 #define SHELL_GUI_CONF_YSIZE 30
00164 
00165 
00166 #ifdef PLATFORM_BUILD
00167 #define TELNETD_CONF_GUI 1
00168 #endif /* PLATFORM_BUILD */
00169 
00170 
00171 #ifdef PLATFORM_BUILD
00172 #define WWW_CONF_WEBPAGE_WIDTH  76
00173 #define WWW_CONF_WEBPAGE_HEIGHT 30
00174 #endif /* PLATFORM_BUILD */
00175 
00176 #endif /* __CONTIKI_CONF_H__ */