2006-08-02 14:44:46 +00:00
|
|
|
/* -*- C -*- */
|
|
|
|
|
|
|
|
#ifndef CONTIKI_CONF_H
|
|
|
|
#define CONTIKI_CONF_H
|
|
|
|
|
2011-07-01 15:16:12 +00:00
|
|
|
#ifdef PLATFORM_CONF_H
|
|
|
|
#include PLATFORM_CONF_H
|
|
|
|
#else
|
2010-12-16 22:51:22 +00:00
|
|
|
#include "platform-conf.h"
|
2011-07-01 15:16:12 +00:00
|
|
|
#endif /* PLATFORM_CONF_H */
|
2010-12-16 22:51:22 +00:00
|
|
|
|
2010-10-20 22:21:16 +00:00
|
|
|
#ifndef NETSTACK_CONF_RADIO
|
|
|
|
#define NETSTACK_CONF_RADIO cc2420_driver
|
|
|
|
#endif /* NETSTACK_CONF_RADIO */
|
|
|
|
|
|
|
|
#ifndef CC2420_CONF_AUTOACK
|
A work-in-progress rework of the Contiki MAC and radio layers. The
main ideas are:
* Separates the Contiki low-layer network stack into four layers:
network (e.g. sicslowpan / rime), Medium Access Control MAC
(e.g. CSMA), Radio Duty Cycling RDC (e.g. ContikiMAC, X-MAC), and
radio (e.g. cc2420).
* Introduces a new way to configure the network stack. Four #defines
that specify what mechanism/protocol/driver to use at the four
layers: NETSTACK_CONF_NETWORK, NETSTACK_CONF_MAC, NETSTACK_CONF_RDC,
NETSTACK_CONF_RADIO.
* Adds a callback mechanism to inform the MAC and network layers about
the fate of a transmitted packet: if the packet was not possible to
transmit, the cause of the failure is reported, and if the packets
was successfully transmitted, the number of tries before it was
finally transmitted is reported.
* NULL-protocols at both the MAC and RDC layers: nullmac and nullrdc,
which can be used when MAC and RDC functionality is not needed.
* Extends the radio API with three new functions that enable more
efficient radio duty cycling protocols: channel check, pending
packet, and receiving packet.
* New initialization mechanism, which takes advantage of the NETSTACK
#defines.
2010-02-18 21:48:39 +00:00
|
|
|
#define CC2420_CONF_AUTOACK 1
|
2010-10-20 22:21:16 +00:00
|
|
|
#endif /* CC2420_CONF_AUTOACK */
|
|
|
|
|
2015-09-21 20:05:40 +00:00
|
|
|
/* The TSCH default slot length of 10ms is a bit too short for this platform,
|
|
|
|
* use 15ms instead. */
|
|
|
|
#define TSCH_CONF_DEFAULT_TIMESLOT_LENGTH 15000
|
|
|
|
|
2014-12-01 20:02:57 +00:00
|
|
|
#if NETSTACK_CONF_WITH_IPV6
|
2010-10-20 22:21:16 +00:00
|
|
|
/* Network setup for IPv6 */
|
|
|
|
#define NETSTACK_CONF_NETWORK sicslowpan_driver
|
2011-09-02 11:52:19 +00:00
|
|
|
|
|
|
|
/* Specify a minimum packet size for 6lowpan compression to be
|
|
|
|
enabled. This is needed for ContikiMAC, which needs packets to be
|
|
|
|
larger than a specified size, if no ContikiMAC header should be
|
|
|
|
used. */
|
2011-09-05 09:41:41 +00:00
|
|
|
#define SICSLOWPAN_CONF_COMPRESSION_THRESHOLD 63
|
2011-09-02 11:52:19 +00:00
|
|
|
|
2010-10-21 18:25:39 +00:00
|
|
|
#ifndef QUEUEBUF_CONF_NUM
|
2010-04-30 15:06:00 +00:00
|
|
|
#define QUEUEBUF_CONF_NUM 8
|
2010-10-21 18:25:39 +00:00
|
|
|
#endif
|
2010-04-30 15:06:00 +00:00
|
|
|
|
2014-12-01 20:02:57 +00:00
|
|
|
#endif /* NETSTACK_CONF_WITH_IPV6 */
|
2010-04-30 15:06:00 +00:00
|
|
|
|
2009-03-12 21:58:20 +00:00
|
|
|
#define PACKETBUF_CONF_ATTRS_INLINE 1
|
2008-02-25 02:14:34 +00:00
|
|
|
|
2013-11-07 14:17:38 +00:00
|
|
|
#ifdef RF_CHANNEL
|
|
|
|
#define CC2420_CONF_CHANNEL RF_CHANNEL
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef CC2420_CONF_CHANNEL
|
|
|
|
#define CC2420_CONF_CHANNEL 26
|
|
|
|
#endif /* CC2420_CONF_CHANNEL */
|
|
|
|
|
|
|
|
#ifndef CC2420_CONF_CCA_THRESH
|
|
|
|
#define CC2420_CONF_CCA_THRESH -45
|
|
|
|
#endif /* CC2420_CONF_CCA_THRESH */
|
2009-05-10 21:15:16 +00:00
|
|
|
|
2009-04-06 13:31:00 +00:00
|
|
|
#define IEEE802154_CONF_PANID 0xABCD
|
|
|
|
|
2008-01-08 08:19:56 +00:00
|
|
|
#define SHELL_VARS_CONF_RAM_BEGIN 0x1100
|
|
|
|
#define SHELL_VARS_CONF_RAM_END 0x2000
|
|
|
|
|
2008-02-03 21:01:36 +00:00
|
|
|
#define PROFILE_CONF_ON 0
|
2011-03-21 20:28:43 +00:00
|
|
|
#ifndef ENERGEST_CONF_ON
|
2007-11-13 21:10:50 +00:00
|
|
|
#define ENERGEST_CONF_ON 1
|
2011-03-21 20:28:43 +00:00
|
|
|
#endif /* ENERGEST_CONF_ON */
|
2007-11-13 21:10:50 +00:00
|
|
|
|
2007-08-16 13:10:53 +00:00
|
|
|
#define AODV_COMPLIANCE
|
2007-04-04 11:39:49 +00:00
|
|
|
#define AODV_NUM_RT_ENTRIES 32
|
2006-08-02 14:44:46 +00:00
|
|
|
|
|
|
|
#define WITH_ASCII 1
|
|
|
|
|
2008-02-03 21:01:36 +00:00
|
|
|
#define PROCESS_CONF_NUMEVENTS 8
|
|
|
|
#define PROCESS_CONF_STATS 1
|
2008-01-08 08:19:56 +00:00
|
|
|
/*#define PROCESS_CONF_FASTPOLL 4*/
|
2006-08-02 14:44:46 +00:00
|
|
|
|
2014-12-01 20:02:57 +00:00
|
|
|
#ifdef NETSTACK_CONF_WITH_IPV6
|
2008-11-06 15:14:24 +00:00
|
|
|
|
2013-12-12 22:58:52 +00:00
|
|
|
#define LINKADDR_CONF_SIZE 8
|
2008-11-06 15:14:24 +00:00
|
|
|
|
2008-11-05 14:31:06 +00:00
|
|
|
#define UIP_CONF_LL_802154 1
|
|
|
|
#define UIP_CONF_LLH_LEN 0
|
|
|
|
|
2010-04-30 13:52:14 +00:00
|
|
|
#define UIP_CONF_ROUTER 1
|
|
|
|
|
2010-06-21 19:57:18 +00:00
|
|
|
/* configure number of neighbors and routes */
|
2013-07-29 16:49:21 +00:00
|
|
|
#ifndef NBR_TABLE_CONF_MAX_NEIGHBORS
|
2016-01-25 12:51:10 +00:00
|
|
|
#define NBR_TABLE_CONF_MAX_NEIGHBORS 16
|
2013-07-29 16:49:21 +00:00
|
|
|
#endif /* NBR_TABLE_CONF_MAX_NEIGHBORS */
|
2013-03-17 23:00:15 +00:00
|
|
|
#ifndef UIP_CONF_MAX_ROUTES
|
2016-01-25 12:51:10 +00:00
|
|
|
#define UIP_CONF_MAX_ROUTES 16
|
2013-03-17 23:00:15 +00:00
|
|
|
#endif /* UIP_CONF_MAX_ROUTES */
|
2010-04-30 15:06:00 +00:00
|
|
|
|
|
|
|
#define UIP_CONF_ND6_SEND_RA 0
|
2017-01-16 12:44:15 +00:00
|
|
|
#define UIP_CONF_ND6_SEND_NS 0
|
2010-04-30 15:06:00 +00:00
|
|
|
#define UIP_CONF_ND6_REACHABLE_TIME 600000
|
|
|
|
#define UIP_CONF_ND6_RETRANS_TIMER 10000
|
2009-04-06 13:23:14 +00:00
|
|
|
|
2014-12-01 20:02:57 +00:00
|
|
|
#define NETSTACK_CONF_WITH_IPV6 1
|
2010-11-02 11:06:01 +00:00
|
|
|
#ifndef UIP_CONF_IPV6_QUEUE_PKT
|
2010-06-14 07:04:20 +00:00
|
|
|
#define UIP_CONF_IPV6_QUEUE_PKT 0
|
2010-11-02 11:06:01 +00:00
|
|
|
#endif /* UIP_CONF_IPV6_QUEUE_PKT */
|
2008-11-05 14:31:06 +00:00
|
|
|
#define UIP_CONF_IPV6_CHECKS 1
|
|
|
|
#define UIP_CONF_IPV6_REASSEMBLY 0
|
|
|
|
#define UIP_CONF_NETIF_MAX_ADDRESSES 3
|
|
|
|
#define UIP_CONF_IP_FORWARD 0
|
2010-10-21 18:25:39 +00:00
|
|
|
#ifndef UIP_CONF_BUFFER_SIZE
|
2010-02-06 10:00:25 +00:00
|
|
|
#define UIP_CONF_BUFFER_SIZE 240
|
2010-10-21 18:25:39 +00:00
|
|
|
#endif
|
2008-11-05 14:31:06 +00:00
|
|
|
|
2010-02-25 15:51:37 +00:00
|
|
|
#define SICSLOWPAN_CONF_COMPRESSION SICSLOWPAN_COMPRESSION_HC06
|
2010-02-06 10:00:25 +00:00
|
|
|
#ifndef SICSLOWPAN_CONF_FRAG
|
2010-02-08 22:12:29 +00:00
|
|
|
#define SICSLOWPAN_CONF_FRAG 1
|
|
|
|
#define SICSLOWPAN_CONF_MAXAGE 8
|
2010-02-06 10:00:25 +00:00
|
|
|
#endif /* SICSLOWPAN_CONF_FRAG */
|
2009-04-06 16:01:11 +00:00
|
|
|
#define SICSLOWPAN_CONF_MAX_ADDR_CONTEXTS 2
|
2014-12-01 20:02:57 +00:00
|
|
|
#else /* NETSTACK_CONF_WITH_IPV6 */
|
2008-11-05 14:31:06 +00:00
|
|
|
#define UIP_CONF_IP_FORWARD 1
|
2009-04-06 13:23:14 +00:00
|
|
|
#define UIP_CONF_BUFFER_SIZE 108
|
2014-12-01 20:02:57 +00:00
|
|
|
#endif /* NETSTACK_CONF_WITH_IPV6 */
|
2008-11-05 14:31:06 +00:00
|
|
|
|
2008-02-03 21:01:36 +00:00
|
|
|
#define UIP_CONF_ICMP_DEST_UNREACH 1
|
|
|
|
|
2006-08-02 14:44:46 +00:00
|
|
|
#define UIP_CONF_DHCP_LIGHT
|
|
|
|
#define UIP_CONF_LLH_LEN 0
|
2010-10-21 18:25:39 +00:00
|
|
|
#ifndef UIP_CONF_RECEIVE_WINDOW
|
2010-01-28 13:38:40 +00:00
|
|
|
#define UIP_CONF_RECEIVE_WINDOW 48
|
2010-10-21 18:25:39 +00:00
|
|
|
#endif
|
|
|
|
#ifndef UIP_CONF_TCP_MSS
|
2010-01-28 13:38:40 +00:00
|
|
|
#define UIP_CONF_TCP_MSS 48
|
2010-10-21 18:25:39 +00:00
|
|
|
#endif
|
2006-08-02 14:44:46 +00:00
|
|
|
#define UIP_CONF_MAX_CONNECTIONS 4
|
|
|
|
#define UIP_CONF_MAX_LISTENPORTS 8
|
2007-04-11 15:22:05 +00:00
|
|
|
#define UIP_CONF_UDP_CONNS 12
|
2007-04-04 11:39:49 +00:00
|
|
|
#define UIP_CONF_FWCACHE_SIZE 30
|
2006-08-02 14:44:46 +00:00
|
|
|
#define UIP_CONF_BROADCAST 1
|
|
|
|
#define UIP_ARCH_IPCHKSUM 1
|
2009-04-06 16:01:11 +00:00
|
|
|
#define UIP_CONF_UDP 1
|
2006-08-02 14:44:46 +00:00
|
|
|
#define UIP_CONF_UDP_CHECKSUMS 1
|
|
|
|
#define UIP_CONF_PINGADDRCONF 0
|
|
|
|
#define UIP_CONF_LOGGING 0
|
|
|
|
|
2008-02-24 21:11:35 +00:00
|
|
|
#define UIP_CONF_TCP_SPLIT 0
|
|
|
|
|
2014-04-21 11:40:45 +00:00
|
|
|
#ifndef AES_128_CONF
|
|
|
|
#define AES_128_CONF cc2420_aes_128_driver
|
|
|
|
#endif /* AES_128_CONF */
|
2009-02-14 22:52:24 +00:00
|
|
|
|
2011-09-05 09:46:15 +00:00
|
|
|
/* include the project config */
|
|
|
|
/* PROJECT_CONF_H might be defined in the project Makefile */
|
|
|
|
#ifdef PROJECT_CONF_H
|
|
|
|
#include PROJECT_CONF_H
|
|
|
|
#endif /* PROJECT_CONF_H */
|
|
|
|
|
2007-05-22 21:12:15 +00:00
|
|
|
|
2006-08-02 14:44:46 +00:00
|
|
|
#endif /* CONTIKI_CONF_H */
|