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

Generated on Mon Apr 11 14:23:41 2011 for Contiki 2.5 by  doxygen 1.6.1