00001 #ifndef __CONTIKI_CONF_H__ 00002 #define __CONTIKI_CONF_H__ 00003 00004 #define NETSTACK_CONF_RADIO ethernode_driver 00005 00006 #define XMAC_CONF_ON_TIME RTIMER_SECOND 00007 #define XMAC_CONF_OFF_TIME RTIMER_SECOND * 2 00008 00009 /* 00010 * Copyright (c) 2003, Adam Dunkels. 00011 * All rights reserved. 00012 * 00013 * Redistribution and use in source and binary forms, with or without 00014 * modification, are permitted provided that the following conditions 00015 * are met: 00016 * 1. Redistributions of source code must retain the above copyright 00017 * notice, this list of conditions and the following disclaimer. 00018 * 2. Redistributions in binary form must reproduce the above 00019 * copyright notice, this list of conditions and the following 00020 * disclaimer in the documentation and/or other materials provided 00021 * with the distribution. 00022 * 3. The name of the author may not be used to endorse or promote 00023 * products derived from this software without specific prior 00024 * written permission. 00025 * 00026 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS 00027 * OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 00028 * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 00029 * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY 00030 * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 00031 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE 00032 * GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 00033 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, 00034 * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING 00035 * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 00036 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 00037 * 00038 * This file is part of the Contiki desktop OS 00039 * 00040 * $Id: contiki-conf.h,v 1.13 2010/02/18 23:10:06 adamdunkels Exp $ 00041 * 00042 */ 00043 00044 #define CC_CONF_REGISTER_ARGS 1 00045 #define CC_CONF_FUNCTION_POINTER_ARGS 1 00046 #define CC_CONF_FASTCALL 00047 00048 #define CC_CONF_VA_ARGS 1 00049 00050 #define CCIF 00051 #define CLIF 00052 00053 /*------------------------------------------------------------------------------*/ 00054 /** 00055 * \defgroup uipopttypedef uIP type definitions 00056 * @{ 00057 */ 00058 00059 #include <inttypes.h> 00060 00061 /** 00062 * The 8-bit unsigned data type. 00063 * 00064 * This may have to be tweaked for your particular compiler. "unsigned 00065 * char" works for most compilers. 00066 */ 00067 typedef uint8_t u8_t; 00068 00069 /** 00070 * The 16-bit unsigned data type. 00071 * 00072 * This may have to be tweaked for your particular compiler. "unsigned 00073 * short" works for most compilers. 00074 */ 00075 typedef uint16_t u16_t; 00076 00077 /** 00078 * The 32-bit unsigned data type. 00079 * 00080 * This may have to be tweaked for your particular compiler. "unsigned 00081 * short" works for most compilers. 00082 */ 00083 typedef uint32_t u32_t; 00084 00085 /** 00086 * The 32-bit signed data type. 00087 * 00088 * This may have to be tweaked for your particular compiler. "signed 00089 * short" works for most compilers. 00090 */ 00091 typedef int32_t s32_t; 00092 00093 /** 00094 * The statistics data type. 00095 * 00096 * This datatype determines how high the statistics counters are able 00097 * to count. 00098 */ 00099 typedef unsigned short uip_stats_t; 00100 00101 /** @} */ 00102 00103 00104 /*------------------------------------------------------------------------------*/ 00105 00106 typedef unsigned long clock_time_t; 00107 #define CLOCK_CONF_SECOND 1000 00108 00109 00110 /*------------------------------------------------------------------------------*/ 00111 00112 #define PACKETBUF_CONF_SIZE 128 00113 #define PACKETBUF_CONF_HDR_SIZE 32 00114 #define QUEUEBUF_CONF_STATS 1 00115 00116 #define UIP_CONF_UIP_IP4ADDR_T_WITH_U32 1 00117 00118 #define UIP_CONF_ICMP_DEST_UNREACH 1 00119 00120 #define UIP_CONF_MAX_CONNECTIONS 40 00121 #define UIP_CONF_MAX_LISTENPORTS 40 00122 #define UIP_CONF_BUFFER_SIZE 120 00123 00124 #define UIP_CONF_BYTE_ORDER UIP_LITTLE_ENDIAN 00125 00126 #define UIP_CONF_BROADCAST 1 00127 00128 #define UIP_CONF_IP_FORWARD 1 00129 00130 /* TCP splitting does not work well with multi hop routing. */ 00131 #define UIP_CONF_TCP_SPLIT 0 00132 00133 #define UIP_CONF_LOGGING 1 00134 00135 #define UIP_CONF_UDP_CHECKSUMS 0 00136 00137 #define LOADER_CONF_ARCH "loader/dlloader.h" 00138 00139 #endif /* __CONTIKI_CONF_H__ */