contiki-conf.h

Go to the documentation of this file.
00001 /*
00002  * Copyright (c) 2009, University of Colombo School of Computing
00003  * All rights reserved.
00004  *
00005  * Redistribution and use in source and binary forms, with or without
00006  * modification, are permitted provided that the following conditions
00007  * are met:
00008  * 1. Redistributions of source code must retain the above copyright
00009  *    notice, this list of conditions and the following disclaimer.
00010  * 2. Redistributions in binary form must reproduce the above copyright
00011  *    notice, this list of conditions and the following disclaimer in the
00012  *    documentation and/or other materials provided with the distribution.
00013  * 3. Neither the name of the Institute nor the names of its contributors
00014  *    may be used to endorse or promote products derived from this software
00015  *    without specific prior written permission.
00016  *
00017  * THIS SOFTWARE IS PROVIDED BY THE INSTITUTE AND CONTRIBUTORS ``AS IS'' AND
00018  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
00019  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
00020  * ARE DISCLAIMED.  IN NO EVENT SHALL THE INSTITUTE OR CONTRIBUTORS BE LIABLE
00021  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
00022  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
00023  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
00024  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
00025  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
00026  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
00027  * SUCH DAMAGE.
00028  *
00029  * This file is part of the Contiki operating system.
00030  *
00031  * @(#)$$
00032  */
00033 
00034 /**
00035  * \file
00036  *         Configuration for MICAz platform.
00037  *
00038  * \author
00039  *         Kasun Hewage <kasun.ch@gmail.com>
00040  */
00041 
00042 #ifndef __CONTIKI_CONF_H__
00043 #define __CONTIKI_CONF_H__
00044 
00045 #define HAVE_STDINT_H
00046 #include "avrdef.h"
00047 
00048 #include "platform-conf.h"
00049 
00050 #if WITH_UIP6
00051 
00052 /* Network setup for IPv6 */
00053 #define NETSTACK_CONF_NETWORK sicslowpan_driver
00054 #define NETSTACK_CONF_MAC     csma_driver
00055 #define NETSTACK_CONF_RDC     nullrdc_driver
00056 #define NETSTACK_CONF_FRAMER  framer_802154
00057 
00058 #define CC2420_CONF_AUTOACK              1
00059 #define MAC_CONF_CHANNEL_CHECK_RATE      8
00060 #define RIME_CONF_NO_POLITE_ANNOUCEMENTS 0
00061 #define CXMAC_CONF_ANNOUNCEMENTS         0
00062 
00063 #else /* WITH_UIP6 */
00064 
00065 /* Network setup for non-IPv6 (rime). */
00066 
00067 #define NETSTACK_CONF_NETWORK rime_driver
00068 #define NETSTACK_CONF_MAC     csma_driver
00069 #define NETSTACK_CONF_RDC     cxmac_driver
00070 #define NETSTACK_CONF_FRAMER  framer_802154
00071 
00072 #define CC2420_CONF_AUTOACK              1
00073 #define MAC_CONF_CHANNEL_CHECK_RATE      8
00074 
00075 #define COLLECT_CONF_ANNOUNCEMENTS       1
00076 #define RIME_CONF_NO_POLITE_ANNOUCEMENTS 1
00077 #define CXMAC_CONF_ANNOUNCEMENTS         0
00078 #define CXMAC_CONF_COMPOWER              1
00079 #define CONTIKIMAC_CONF_ANNOUNCEMENTS    0
00080 #define CONTIKIMAC_CONF_COMPOWER         1
00081 
00082 #define COLLECT_NEIGHBOR_CONF_MAX_NEIGHBORS      32
00083 
00084 #endif /* WITH_UIP6 */
00085 
00086 #define PACKETBUF_CONF_ATTRS_INLINE 1
00087 
00088 #ifndef RF_CHANNEL
00089 #define RF_CHANNEL              26
00090 #endif /* RF_CHANNEL */
00091 
00092 #define CONTIKIMAC_CONF_BROADCAST_RATE_LIMIT 0
00093 
00094 #define IEEE802154_CONF_PANID       0xABCD
00095 
00096 
00097 #define AODV_COMPLIANCE
00098 #define AODV_NUM_RT_ENTRIES 32
00099 
00100 #define WITH_ASCII 1
00101 
00102 #define PROCESS_CONF_NUMEVENTS 8
00103 #define PROCESS_CONF_STATS 1
00104 
00105 #ifdef WITH_UIP6
00106 
00107 #define RIMEADDR_CONF_SIZE              8
00108 
00109 #define UIP_CONF_LL_802154              1
00110 #define UIP_CONF_LLH_LEN                0
00111 
00112 #define UIP_CONF_ROUTER                 1
00113 #define UIP_CONF_IPV6_RPL               1
00114 
00115 /* configure number of neighbors and routes */
00116 #define UIP_CONF_DS6_NBR_NBU     5
00117 #define UIP_CONF_DS6_ROUTE_NBU   5
00118 
00119 #define RPL_CONF_MAX_PARENTS         4
00120 #define NEIGHBOR_CONF_MAX_NEIGHBORS  8
00121 
00122 #define UIP_CONF_ND6_SEND_RA            0
00123 #define UIP_CONF_ND6_REACHABLE_TIME     600000
00124 #define UIP_CONF_ND6_RETRANS_TIMER      10000
00125 
00126 #define UIP_CONF_IPV6                   1
00127 #define UIP_CONF_IPV6_QUEUE_PKT         0
00128 #define UIP_CONF_IPV6_CHECKS            1
00129 #define UIP_CONF_IPV6_REASSEMBLY        0
00130 #define UIP_CONF_NETIF_MAX_ADDRESSES    3
00131 #define UIP_CONF_ND6_MAX_PREFIXES       3
00132 #define UIP_CONF_ND6_MAX_NEIGHBORS      4
00133 #define UIP_CONF_ND6_MAX_DEFROUTERS     2
00134 #define UIP_CONF_IP_FORWARD             0
00135 #define UIP_CONF_BUFFER_SIZE                240
00136 
00137 #define SICSLOWPAN_CONF_COMPRESSION_IPV6        0
00138 #define SICSLOWPAN_CONF_COMPRESSION_HC1         1
00139 #define SICSLOWPAN_CONF_COMPRESSION_HC01        2
00140 #define SICSLOWPAN_CONF_COMPRESSION             SICSLOWPAN_COMPRESSION_HC06
00141 #ifndef SICSLOWPAN_CONF_FRAG
00142 #define SICSLOWPAN_CONF_FRAG                    1
00143 #define SICSLOWPAN_CONF_MAXAGE                  8
00144 #endif /* SICSLOWPAN_CONF_FRAG */
00145 #define SICSLOWPAN_CONF_CONVENTIONAL_MAC        1
00146 #define SICSLOWPAN_CONF_MAX_ADDR_CONTEXTS       2
00147 #else /* WITH_UIP6 */
00148 #define UIP_CONF_IP_FORWARD      1
00149 #define UIP_CONF_BUFFER_SIZE     128
00150 #endif /* WITH_UIP6 */
00151 
00152 #define UIP_CONF_ICMP_DEST_UNREACH 1
00153 
00154 #if !WITH_UIP && !WITH_UIP6
00155 #define QUEUEBUF_CONF_NUM          8
00156 #else
00157 #define QUEUEBUF_CONF_NUM          4
00158 #endif
00159 
00160 #define TIMESYNCH_CONF_ENABLED 1
00161 #define CC2420_CONF_TIMESTAMPS 1
00162 #define CC2420_CONF_SYMBOL_LOOP_COUNT 500
00163 
00164 #define WITH_NULLMAC 0
00165 
00166 #define CCIF
00167 #define CLIF
00168 
00169 /* The process names are not used to save RAM */
00170 #define PROCESS_CONF_NO_PROCESS_NAMES 1
00171 
00172 #define UIP_CONF_ICMP_DEST_UNREACH 1
00173 
00174 #define UIP_CONF_DHCP_LIGHT
00175 #define UIP_CONF_LLH_LEN         0
00176 #define UIP_CONF_RECEIVE_WINDOW  48
00177 #define UIP_CONF_TCP_MSS         48
00178 #define UIP_CONF_MAX_CONNECTIONS 4
00179 #define UIP_CONF_MAX_LISTENPORTS 8
00180 #define UIP_CONF_UDP_CONNS       12
00181 #define UIP_CONF_FWCACHE_SIZE    15
00182 #define UIP_CONF_BROADCAST       1
00183 //#define UIP_ARCH_IPCHKSUM        1
00184 #define UIP_CONF_UDP             1
00185 #define UIP_CONF_UDP_CHECKSUMS   1
00186 #define UIP_CONF_PINGADDRCONF    0
00187 #define UIP_CONF_LOGGING         0
00188 
00189 #define UIP_CONF_TCP_SPLIT       0
00190 
00191 
00192 typedef unsigned short clock_time_t;
00193 typedef unsigned short uip_stats_t;
00194 typedef unsigned long off_t;
00195 
00196 void clock_delay(unsigned int us2);
00197 void clock_wait(int ms10);
00198 void clock_set_seconds(unsigned long s);
00199 unsigned long clock_seconds(void);
00200 
00201 #endif /* __CONTIKI_CONF_H__ */

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