2013-07-11 17:50:15 +02:00
|
|
|
/**
|
|
|
|
* \addtogroup mbxxx-platform
|
|
|
|
*
|
|
|
|
* @{
|
|
|
|
*/
|
2011-04-01 10:22:29 +02:00
|
|
|
/*
|
|
|
|
* Copyright (c) 2010, STMicroelectronics.
|
|
|
|
* All rights reserved.
|
|
|
|
*
|
|
|
|
* Redistribution and use in source and binary forms, with or without
|
|
|
|
* modification, are permitted provided that the following conditions
|
|
|
|
* are met:
|
|
|
|
* 1. Redistributions of source code must retain the above copyright
|
|
|
|
* notice, this list of conditions and the following disclaimer.
|
|
|
|
* 2. Redistributions in binary form must reproduce the above
|
|
|
|
* copyright notice, this list of conditions and the following
|
|
|
|
* disclaimer in the documentation and/or other materials provided
|
|
|
|
* with the distribution.
|
|
|
|
* 3. The name of the author may not be used to endorse or promote
|
|
|
|
* products derived from this software without specific prior
|
|
|
|
* written permission.
|
|
|
|
*
|
|
|
|
* THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS
|
|
|
|
* OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
|
|
|
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
|
|
|
* ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY
|
|
|
|
* DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
|
|
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
|
|
|
|
* GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
|
|
|
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
|
|
|
|
* WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
|
|
|
|
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
|
|
|
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
|
|
*
|
|
|
|
* This file is part of the Contiki OS
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
/*---------------------------------------------------------------------------*/
|
|
|
|
/**
|
|
|
|
* \file
|
2013-07-11 17:50:15 +02:00
|
|
|
* Contiki-conf.h for MBXXX.
|
2011-04-01 10:22:29 +02:00
|
|
|
* \author
|
2013-07-11 17:50:15 +02:00
|
|
|
* Salvatore Pitrulli <salvopitru@users.sourceforge.net>
|
|
|
|
* Chi-Anh La <la@imag.fr>
|
|
|
|
* Simon Duquennoy <simonduq@sics.se>
|
2011-04-01 10:22:29 +02:00
|
|
|
*/
|
|
|
|
/*---------------------------------------------------------------------------*/
|
|
|
|
|
2013-07-11 17:50:15 +02:00
|
|
|
|
|
|
|
|
2013-11-24 16:57:08 +01:00
|
|
|
#ifndef CONTIKI_CONF_H_
|
|
|
|
#define CONTIKI_CONF_H_
|
2011-04-01 10:22:29 +02:00
|
|
|
|
2012-03-20 15:54:05 +01:00
|
|
|
#ifdef PLATFORM_CONF_H
|
|
|
|
#include PLATFORM_CONF_H
|
|
|
|
#else
|
|
|
|
#include "platform-conf.h"
|
|
|
|
#endif /* PLATFORM_CONF_H */
|
|
|
|
|
2012-03-20 16:15:51 +01:00
|
|
|
/* Radio and 802.15.4 params */
|
2012-03-20 15:54:05 +01:00
|
|
|
/* 802.15.4 radio channel */
|
2013-07-11 17:50:15 +02:00
|
|
|
#define RF_CHANNEL 16
|
2012-03-20 16:15:51 +01:00
|
|
|
/* 802.15.4 PAN ID */
|
2013-07-11 17:50:15 +02:00
|
|
|
#define IEEE802154_CONF_PANID 0x1234
|
2012-03-20 16:15:51 +01:00
|
|
|
/* Use EID 64, enable hardware autoack and address filtering */
|
2013-12-12 23:58:52 +01:00
|
|
|
#define LINKADDR_CONF_SIZE 8
|
2013-07-11 17:50:15 +02:00
|
|
|
#define UIP_CONF_LL_802154 1
|
|
|
|
#define ST_CONF_RADIO_AUTOACK 1
|
2012-03-20 15:54:05 +01:00
|
|
|
/* Number of buffers for incoming frames */
|
2013-07-11 17:50:15 +02:00
|
|
|
#define RADIO_RXBUFS 2
|
2012-03-20 15:54:05 +01:00
|
|
|
/* Set to 0 for non ethernet links */
|
2013-07-11 17:50:15 +02:00
|
|
|
#define UIP_CONF_LLH_LEN 0
|
2012-03-20 11:46:38 +01:00
|
|
|
|
|
|
|
/* RDC params */
|
|
|
|
/* TX routine passes the cca/ack result in the return parameter */
|
2013-07-11 17:50:15 +02:00
|
|
|
#define RDC_CONF_HARDWARE_ACK 1
|
2012-03-20 11:46:38 +01:00
|
|
|
/* TX routine does automatic cca and optional backoff */
|
2013-07-11 17:50:15 +02:00
|
|
|
#define RDC_CONF_HARDWARE_CSMA 0
|
2012-03-20 15:54:05 +01:00
|
|
|
/* RDC debug with LED */
|
2013-07-11 17:50:15 +02:00
|
|
|
#define RDC_CONF_DEBUG_LED 1
|
2012-03-20 11:46:38 +01:00
|
|
|
/* Channel check rate (per second) */
|
2013-07-11 17:50:15 +02:00
|
|
|
#define NETSTACK_CONF_RDC_CHANNEL_CHECK_RATE 8
|
2012-03-20 11:46:38 +01:00
|
|
|
/* Use ACK for optimization (LPP, XMAC) */
|
2013-07-11 17:50:15 +02:00
|
|
|
#define WITH_ACK_OPTIMIZATION 0
|
2012-03-20 15:54:05 +01:00
|
|
|
|
|
|
|
/* Netstack config */
|
2013-07-11 17:50:15 +02:00
|
|
|
//#define NETSTACK_CONF_MAC csma_driver
|
|
|
|
//#define NETSTACK_CONF_RDC contikimac_driver
|
|
|
|
#define NETSTACK_CONF_MAC nullmac_driver
|
2013-12-02 12:12:04 +01:00
|
|
|
#define NETSTACK_CONF_RDC nullrdc_driver
|
2013-07-11 17:50:15 +02:00
|
|
|
#define NETSTACK_CONF_FRAMER framer_802154
|
|
|
|
#define NETSTACK_CONF_RADIO stm32w_radio_driver
|
2012-03-20 11:46:38 +01:00
|
|
|
|
|
|
|
/* ContikiMAC config */
|
2013-07-11 17:50:15 +02:00
|
|
|
#define CONTIKIMAC_CONF_COMPOWER 1
|
|
|
|
#define CONTIKIMAC_CONF_BROADCAST_RATE_LIMIT 0
|
|
|
|
#define CONTIKIMAC_CONF_ANNOUNCEMENTS 0
|
2012-03-20 11:46:38 +01:00
|
|
|
|
|
|
|
/* CXMAC config */
|
2013-07-11 17:50:15 +02:00
|
|
|
#define CXMAC_CONF_ANNOUNCEMENTS 0
|
|
|
|
#define CXMAC_CONF_COMPOWER 1
|
2012-03-20 11:46:38 +01:00
|
|
|
|
|
|
|
/* XMAC config */
|
2013-07-11 17:50:15 +02:00
|
|
|
#define XMAC_CONF_ANNOUNCEMENTS 0
|
|
|
|
#define XMAC_CONF_COMPOWER 1
|
2012-03-20 11:46:38 +01:00
|
|
|
|
2012-04-03 14:29:46 +02:00
|
|
|
/* Other (RAM saving) */
|
2013-07-11 17:50:15 +02:00
|
|
|
#define ENERGEST_CONF_ON 0
|
|
|
|
#define QUEUEBUF_CONF_NUM 2
|
|
|
|
#define QUEUEBUF_CONF_REF_NUM 0
|
2013-07-29 18:49:21 +02:00
|
|
|
#define NBR_TABLE_CONF_MAX_NEIGHBORS 4
|
2013-07-11 17:50:15 +02:00
|
|
|
#define UIP_CONF_DS6_ROUTE_NBU 4
|
|
|
|
#define RPL_CONF_MAX_PARENTS_PER_DAG 4
|
|
|
|
#define RPL_CONF_MAX_INSTANCES 1
|
|
|
|
#define RPL_CONF_MAX_DAG_PER_INSTANCE 1
|
|
|
|
#define PROCESS_CONF_NUMEVENTS 16
|
2011-04-01 10:22:29 +02:00
|
|
|
|
2014-12-01 21:02:57 +01:00
|
|
|
#if NETSTACK_CONF_WITH_IPV6
|
2011-04-01 10:22:29 +02:00
|
|
|
|
2012-03-20 15:54:05 +01:00
|
|
|
/* Network setup for IPv6 */
|
|
|
|
#define NETSTACK_CONF_NETWORK sicslowpan_driver
|
2011-04-01 10:22:29 +02:00
|
|
|
|
2012-03-20 15:54:05 +01: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. */
|
2013-07-11 17:50:15 +02:00
|
|
|
#define SICSLOWPAN_CONF_COMPRESSION_THRESHOLD 63
|
|
|
|
|
|
|
|
#define UIP_CONF_UDP 1
|
|
|
|
|
|
|
|
#if (WITH_COAP==7) || (WITH_COAP==6) || (WITH_COAP==3)
|
|
|
|
#define UIP_CONF_TCP 0
|
|
|
|
#else
|
|
|
|
#define UIP_CONF_TCP 1
|
|
|
|
#endif /* WITH_COAP */
|
|
|
|
|
|
|
|
#define UIP_CONF_ROUTER 1
|
|
|
|
#define UIP_CONF_ND6_SEND_RA 0
|
|
|
|
|
2014-12-01 21:02:57 +01:00
|
|
|
#define NETSTACK_CONF_WITH_IPV6 1
|
2013-07-11 17:50:15 +02:00
|
|
|
#define UIP_CONF_IPV6_QUEUE_PKT 0
|
|
|
|
#define UIP_CONF_IPV6_CHECKS 1
|
|
|
|
#define UIP_CONF_IPV6_REASSEMBLY 0
|
|
|
|
#define UIP_CONF_IP_FORWARD 0
|
|
|
|
#define UIP_CONF_BUFFER_SIZE 140
|
|
|
|
#define UIP_CONF_MAX_CONNECTIONS 4
|
|
|
|
#define UIP_CONF_MAX_LISTENPORTS 8
|
|
|
|
#define UIP_CONF_UDP_CONNS 4
|
|
|
|
|
|
|
|
#define SICSLOWPAN_CONF_COMPRESSION SICSLOWPAN_COMPRESSION_HC06
|
2012-04-03 14:28:11 +02:00
|
|
|
#ifndef SICSLOWPAN_CONF_FRAG
|
2013-07-11 17:50:15 +02:00
|
|
|
#define SICSLOWPAN_CONF_FRAG 1
|
2012-04-03 14:28:11 +02:00
|
|
|
#endif /* SICSLOWPAN_CONF_FRAG */
|
|
|
|
#ifndef SICSLOWPAN_CONF_MAX_ADDR_CONTEXTS
|
2013-07-11 17:50:15 +02:00
|
|
|
#define SICSLOWPAN_CONF_MAX_ADDR_CONTEXTS 2
|
2012-04-03 14:28:11 +02:00
|
|
|
#endif /* SICSLOWPAN_CONF_MAX_ADDR_CONTEXTS */
|
|
|
|
#ifndef SICSLOWPAN_CONF_MAXAGE
|
2013-07-11 17:50:15 +02:00
|
|
|
#define SICSLOWPAN_CONF_MAXAGE 2
|
2012-04-03 14:28:11 +02:00
|
|
|
#endif /* SICSLOWPAN_CONF_MAXAGE */
|
2011-04-01 10:22:29 +02:00
|
|
|
|
2014-12-01 21:02:57 +01:00
|
|
|
#else /* NETSTACK_CONF_WITH_IPV6 */
|
2011-04-01 10:22:29 +02:00
|
|
|
|
2012-03-20 15:54:05 +01:00
|
|
|
/* Network setup for non-IPv6 (rime). */
|
2013-07-11 17:50:15 +02:00
|
|
|
#define NETSTACK_CONF_NETWORK rime_driver
|
2011-04-01 10:22:29 +02:00
|
|
|
|
2014-12-01 21:02:57 +01:00
|
|
|
#endif /* NETSTACK_CONF_WITH_IPV6 */
|
2011-04-01 10:22:29 +02:00
|
|
|
|
|
|
|
#ifdef PROJECT_CONF_H
|
|
|
|
#include PROJECT_CONF_H
|
|
|
|
#endif /* PROJECT_CONF_H */
|
|
|
|
|
2013-11-24 16:57:08 +01:00
|
|
|
#endif /* CONTIKI_CONF_H_ */
|
2013-07-11 17:50:15 +02:00
|
|
|
/** @} */
|