2006-08-14 23:53:55 +00:00
|
|
|
#ifndef __CONTIKI_CONF_H__
|
|
|
|
#define __CONTIKI_CONF_H__
|
|
|
|
|
|
|
|
#define CC_CONF_REGISTER_ARGS 1
|
2007-12-15 00:00:34 +00:00
|
|
|
#define CC_CONF_FASTCALL __fastcall
|
|
|
|
#define CC_CONF_INLINE __inline
|
2006-08-14 23:53:55 +00:00
|
|
|
|
|
|
|
|
|
|
|
#if _USRDLL
|
2006-08-15 14:46:33 +00:00
|
|
|
#define CCIF __declspec(dllimport)
|
2007-12-15 00:00:34 +00:00
|
|
|
#else /* _USRDLL */
|
2006-08-15 14:46:33 +00:00
|
|
|
#define CCIF __declspec(dllexport)
|
2007-12-15 00:00:34 +00:00
|
|
|
#endif /* _USRDLL */
|
2006-08-16 22:47:01 +00:00
|
|
|
#define CLIF __declspec(dllexport)
|
2006-08-14 23:53:55 +00:00
|
|
|
|
|
|
|
|
2007-11-18 00:55:19 +00:00
|
|
|
#ifdef __CYGWIN__
|
|
|
|
int strcasecmp(const char*, const char*);
|
2007-11-18 02:16:57 +00:00
|
|
|
char* strdup(const char*);
|
2007-12-15 00:00:34 +00:00
|
|
|
#else /* __CYGWIN__ */
|
2006-08-30 22:07:53 +00:00
|
|
|
#define strcasecmp _stricmp
|
2007-11-18 02:17:33 +00:00
|
|
|
#define strdup _strdup
|
2007-12-15 00:00:34 +00:00
|
|
|
#endif /* __CYGWIN__ */
|
2006-08-30 22:07:53 +00:00
|
|
|
|
|
|
|
|
2006-08-14 23:53:55 +00:00
|
|
|
#define LOG_CONF_ENABLED 1
|
|
|
|
#include "sys/log.h"
|
2006-09-23 20:12:40 +00:00
|
|
|
CCIF void debug_printf(char *format, ...);
|
2006-08-14 23:53:55 +00:00
|
|
|
|
|
|
|
|
2007-04-14 23:23:15 +00:00
|
|
|
#define CLOCK_CONF_SECOND 1000
|
2006-08-14 23:53:55 +00:00
|
|
|
typedef unsigned long clock_time_t;
|
|
|
|
|
|
|
|
|
2007-12-06 22:09:56 +00:00
|
|
|
typedef signed char int8_t;
|
|
|
|
typedef unsigned char uint8_t;
|
|
|
|
typedef signed short int16_t;
|
|
|
|
typedef unsigned short uint16_t;
|
|
|
|
typedef signed long int32_t;
|
|
|
|
typedef unsigned long uint32_t;
|
|
|
|
|
|
|
|
/* These names are deprecated, use C99 names. */
|
|
|
|
typedef unsigned char u8_t;
|
|
|
|
typedef unsigned short u16_t;
|
|
|
|
typedef unsigned long u32_t;
|
|
|
|
typedef long s32_t;
|
|
|
|
|
|
|
|
typedef unsigned short uip_stats_t;
|
|
|
|
|
|
|
|
#define UIP_CONF_MAX_CONNECTIONS 40
|
|
|
|
#define UIP_CONF_MAX_LISTENPORTS 40
|
|
|
|
#define UIP_CONF_BUFFER_SIZE 420
|
|
|
|
#define UIP_CONF_BYTE_ORDER UIP_LITTLE_ENDIAN
|
|
|
|
#define UIP_CONF_TCP_SPLIT 1
|
|
|
|
#define UIP_CONF_LOGGING 1
|
|
|
|
#define UIP_CONF_UDP_CHECKSUMS 1
|
|
|
|
|
2006-08-14 23:53:55 +00:00
|
|
|
|
|
|
|
#include <ctype.h>
|
|
|
|
#define ctk_arch_isprint isprint
|
|
|
|
|
2007-04-15 13:30:16 +00:00
|
|
|
#include "ctk/ctk-console.h"
|
|
|
|
|
2006-08-14 23:53:55 +00:00
|
|
|
#define CH_ULCORNER 0xDA
|
|
|
|
#define CH_URCORNER 0xBF
|
|
|
|
#define CH_LLCORNER 0xC0
|
|
|
|
#define CH_LRCORNER 0xD9
|
|
|
|
#define CH_ENTER '\r'
|
|
|
|
#define CH_DEL '\b'
|
|
|
|
#define CH_CURS_UP -1
|
|
|
|
#define CH_CURS_LEFT -2
|
|
|
|
#define CH_CURS_RIGHT -3
|
|
|
|
#define CH_CURS_DOWN -4
|
|
|
|
|
|
|
|
#define CTK_CONF_MENU_KEY -5 /* F10 */
|
|
|
|
#define CTK_CONF_WINDOWSWITCH_KEY -6 /* Ctrl-Tab */
|
|
|
|
#define CTK_CONF_WIDGETUP_KEY -7 /* Shift-Tab */
|
2007-12-15 23:02:16 +00:00
|
|
|
#define CTK_CONF_WIDGETDOWN_KEY '\t'
|
2007-12-15 00:00:34 +00:00
|
|
|
#define CTK_CONF_WIDGET_FLAGS 0
|
|
|
|
#define CTK_CONF_SCREENSAVER 0
|
|
|
|
|
|
|
|
#ifdef PLATFORM_BUILD
|
2006-08-14 23:53:55 +00:00
|
|
|
#define CTK_CONF_MOUSE_SUPPORT 1
|
2007-12-06 22:09:56 +00:00
|
|
|
#define CTK_CONF_WINDOWS 1
|
2007-12-15 00:00:34 +00:00
|
|
|
#define CTK_CONF_WINDOWMOVE 1
|
|
|
|
#define CTK_CONF_WINDOWCLOSE 1
|
2006-08-14 23:53:55 +00:00
|
|
|
#define CTK_CONF_ICONS 1
|
|
|
|
#define CTK_CONF_ICON_BITMAPS 0
|
|
|
|
#define CTK_CONF_ICON_TEXTMAPS 1
|
|
|
|
#define CTK_CONF_MENUS 1
|
|
|
|
#define CTK_CONF_MENUWIDTH 16
|
|
|
|
#define CTK_CONF_MAXMENUITEMS 10
|
2007-12-15 00:00:34 +00:00
|
|
|
#else /* PLATFORM_BUILD */
|
2007-12-15 21:30:56 +00:00
|
|
|
#define CTK_CONF_MOUSE_SUPPORT 1
|
2007-12-15 00:00:34 +00:00
|
|
|
#define CTK_CONF_WINDOWS 0
|
|
|
|
#define CTK_CONF_WINDOWMOVE 0
|
|
|
|
#define CTK_CONF_WINDOWCLOSE 0
|
|
|
|
#define CTK_CONF_ICONS 0
|
|
|
|
#define CTK_CONF_MENUS 0
|
2007-12-15 21:39:06 +00:00
|
|
|
#endif /* PLATFORM_BUILD */
|
2007-12-15 00:00:34 +00:00
|
|
|
|
|
|
|
#define COLOR_BLACK (0)
|
|
|
|
#define COLOR_BLUE (1)
|
|
|
|
#define COLOR_GRAY (1 | 2 | 4)
|
|
|
|
#define COLOR_CYAN (1 | 2 | 8)
|
|
|
|
#define COLOR_YELLOW (2 | 4 | 8)
|
|
|
|
#define COLOR_WHITE (1 | 2 | 4 | 8)
|
2006-08-14 23:53:55 +00:00
|
|
|
|
|
|
|
#define BORDERCOLOR COLOR_BLACK
|
|
|
|
#define SCREENCOLOR COLOR_BLACK
|
|
|
|
#define BACKGROUNDCOLOR COLOR_BLACK
|
|
|
|
#define WINDOWCOLOR_FOCUS COLOR_WHITE | COLOR_BLUE * 0x10
|
|
|
|
#define WINDOWCOLOR COLOR_GRAY | COLOR_BLUE * 0x10
|
|
|
|
#define DIALOGCOLOR COLOR_WHITE | COLOR_BLUE * 0x10
|
|
|
|
#define WIDGETCOLOR_HLINK COLOR_CYAN | COLOR_BLUE * 0x10
|
|
|
|
#define WIDGETCOLOR_FWIN COLOR_WHITE | COLOR_BLUE * 0x10
|
|
|
|
#define WIDGETCOLOR COLOR_GRAY | COLOR_BLUE * 0x10
|
|
|
|
#define WIDGETCOLOR_DIALOG COLOR_WHITE | COLOR_BLUE * 0x10
|
|
|
|
#define WIDGETCOLOR_FOCUS COLOR_YELLOW | COLOR_BLUE * 0x10
|
|
|
|
#define MENUCOLOR COLOR_WHITE | COLOR_BLUE * 0x10
|
|
|
|
#define OPENMENUCOLOR COLOR_WHITE | COLOR_BLUE * 0x10
|
|
|
|
#define ACTIVEMENUITEMCOLOR COLOR_YELLOW | COLOR_BLUE * 0x10
|
|
|
|
|
|
|
|
|
2007-12-15 00:00:34 +00:00
|
|
|
#ifdef PLATFORM_BUILD
|
2006-08-14 23:53:55 +00:00
|
|
|
#define LOADER_CONF_ARCH "loader/dll-loader.h"
|
2007-12-15 21:39:06 +00:00
|
|
|
#endif /* PLATFORM_BUILD */
|
2006-08-14 23:53:55 +00:00
|
|
|
|
|
|
|
#define PROGRAM_HANDLER_CONF_MAX_NUMDSCS 10
|
2006-08-30 22:41:52 +00:00
|
|
|
#define PROGRAM_HANDLER_CONF_QUIT_MENU 1
|
2006-08-14 23:53:55 +00:00
|
|
|
|
|
|
|
|
2007-12-06 22:09:56 +00:00
|
|
|
#define EMAIL_CONF_WIDTH 76
|
|
|
|
#define EMAIL_CONF_HEIGHT 25
|
2006-08-14 23:53:55 +00:00
|
|
|
|
2007-11-17 22:40:33 +00:00
|
|
|
|
2007-12-06 22:09:56 +00:00
|
|
|
#define IRC_CONF_WIDTH 78
|
|
|
|
#define IRC_CONF_HEIGHT 30
|
|
|
|
#define IRC_CONF_SYSTEM_STRING "Win32"
|
2007-11-17 22:40:33 +00:00
|
|
|
|
2006-08-14 23:53:55 +00:00
|
|
|
|
2007-12-06 22:09:56 +00:00
|
|
|
#define SHELL_CONF_WITH_PROGRAM_HANDLER 1
|
2006-08-14 23:53:55 +00:00
|
|
|
|
|
|
|
|
2007-12-06 22:09:56 +00:00
|
|
|
#define SHELL_GUI_CONF_XSIZE 46
|
|
|
|
#define SHELL_GUI_CONF_YSIZE 22
|
2006-08-14 23:53:55 +00:00
|
|
|
|
|
|
|
|
2007-12-06 22:09:56 +00:00
|
|
|
#define TELNETD_CONF_GUI 1
|
2007-04-13 21:04:52 +00:00
|
|
|
|
|
|
|
|
2007-12-15 21:39:06 +00:00
|
|
|
#ifdef PLATFORM_BUILD
|
2007-12-06 22:09:56 +00:00
|
|
|
#define WWW_CONF_WEBPAGE_WIDTH 76
|
|
|
|
#define WWW_CONF_WEBPAGE_HEIGHT 30
|
2007-12-15 21:39:06 +00:00
|
|
|
#endif /* PLATFORM_BUILD */
|
2007-04-13 21:04:52 +00:00
|
|
|
|
2006-08-14 23:53:55 +00:00
|
|
|
#endif /* __CONTIKI_CONF_H__ */
|