1*fdd8201dSApple OSS Distributions /* 2*fdd8201dSApple OSS Distributions * Copyright (c) 2017 Apple Inc. All rights reserved. 3*fdd8201dSApple OSS Distributions * 4*fdd8201dSApple OSS Distributions * @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 5*fdd8201dSApple OSS Distributions * 6*fdd8201dSApple OSS Distributions * This file contains Original Code and/or Modifications of Original Code 7*fdd8201dSApple OSS Distributions * as defined in and that are subject to the Apple Public Source License 8*fdd8201dSApple OSS Distributions * Version 2.0 (the 'License'). You may not use this file except in 9*fdd8201dSApple OSS Distributions * compliance with the License. The rights granted to you under the License 10*fdd8201dSApple OSS Distributions * may not be used to create, or enable the creation or redistribution of, 11*fdd8201dSApple OSS Distributions * unlawful or unlicensed copies of an Apple operating system, or to 12*fdd8201dSApple OSS Distributions * circumvent, violate, or enable the circumvention or violation of, any 13*fdd8201dSApple OSS Distributions * terms of an Apple operating system software license agreement. 14*fdd8201dSApple OSS Distributions * 15*fdd8201dSApple OSS Distributions * Please obtain a copy of the License at 16*fdd8201dSApple OSS Distributions * http://www.opensource.apple.com/apsl/ and read it before using this file. 17*fdd8201dSApple OSS Distributions * 18*fdd8201dSApple OSS Distributions * The Original Code and all software distributed under the License are 19*fdd8201dSApple OSS Distributions * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 20*fdd8201dSApple OSS Distributions * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 21*fdd8201dSApple OSS Distributions * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 22*fdd8201dSApple OSS Distributions * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 23*fdd8201dSApple OSS Distributions * Please see the License for the specific language governing rights and 24*fdd8201dSApple OSS Distributions * limitations under the License. 25*fdd8201dSApple OSS Distributions * 26*fdd8201dSApple OSS Distributions * @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 27*fdd8201dSApple OSS Distributions */ 28*fdd8201dSApple OSS Distributions /* 29*fdd8201dSApple OSS Distributions * Copyright (c) 2012, Thingsquare, http://www.thingsquare.com/. 30*fdd8201dSApple OSS Distributions * All rights reserved. 31*fdd8201dSApple OSS Distributions * 32*fdd8201dSApple OSS Distributions * Redistribution and use in source and binary forms, with or without 33*fdd8201dSApple OSS Distributions * modification, are permitted provided that the following conditions 34*fdd8201dSApple OSS Distributions * are met: 35*fdd8201dSApple OSS Distributions * 1. Redistributions of source code must retain the above copyright 36*fdd8201dSApple OSS Distributions * notice, this list of conditions and the following disclaimer. 37*fdd8201dSApple OSS Distributions * 2. Redistributions in binary form must reproduce the above copyright 38*fdd8201dSApple OSS Distributions * notice, this list of conditions and the following disclaimer in the 39*fdd8201dSApple OSS Distributions * documentation and/or other materials provided with the distribution. 40*fdd8201dSApple OSS Distributions * 3. Neither the name of the copyright holder nor the names of its 41*fdd8201dSApple OSS Distributions * contributors may be used to endorse or promote products derived 42*fdd8201dSApple OSS Distributions * from this software without specific prior written permission. 43*fdd8201dSApple OSS Distributions * 44*fdd8201dSApple OSS Distributions * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 45*fdd8201dSApple OSS Distributions * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 46*fdd8201dSApple OSS Distributions * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS 47*fdd8201dSApple OSS Distributions * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE 48*fdd8201dSApple OSS Distributions * COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, 49*fdd8201dSApple OSS Distributions * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 50*fdd8201dSApple OSS Distributions * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR 51*fdd8201dSApple OSS Distributions * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 52*fdd8201dSApple OSS Distributions * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, 53*fdd8201dSApple OSS Distributions * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 54*fdd8201dSApple OSS Distributions * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED 55*fdd8201dSApple OSS Distributions * OF THE POSSIBILITY OF SUCH DAMAGE. 56*fdd8201dSApple OSS Distributions * 57*fdd8201dSApple OSS Distributions */ 58*fdd8201dSApple OSS Distributions 59*fdd8201dSApple OSS Distributions #ifndef CONTIKI_DEFAULT_CONF_H 60*fdd8201dSApple OSS Distributions #define CONTIKI_DEFAULT_CONF_H 61*fdd8201dSApple OSS Distributions 62*fdd8201dSApple OSS Distributions /*---------------------------------------------------------------------------*/ 63*fdd8201dSApple OSS Distributions /* Netstack configuration 64*fdd8201dSApple OSS Distributions * 65*fdd8201dSApple OSS Distributions * The netstack configuration is typically overridden by the platform 66*fdd8201dSApple OSS Distributions * configuration, as defined in contiki-conf.h 67*fdd8201dSApple OSS Distributions */ 68*fdd8201dSApple OSS Distributions 69*fdd8201dSApple OSS Distributions /* NETSTACK_CONF_RADIO specifies the radio driver. The radio driver 70*fdd8201dSApple OSS Distributions * typically depends on the radio used on the target hardware. */ 71*fdd8201dSApple OSS Distributions #ifndef NETSTACK_CONF_RADIO 72*fdd8201dSApple OSS Distributions #define NETSTACK_CONF_RADIO nullradio_driver 73*fdd8201dSApple OSS Distributions /* #define NETSTACK_CONF_RADIO cc2420_driver */ 74*fdd8201dSApple OSS Distributions #endif /* NETSTACK_CONF_RADIO */ 75*fdd8201dSApple OSS Distributions 76*fdd8201dSApple OSS Distributions /* NETSTACK_CONF_FRAMER specifies the over-the-air frame format used 77*fdd8201dSApple OSS Distributions * by Contiki radio packets. For IEEE 802.15.4 radios, use the 78*fdd8201dSApple OSS Distributions * framer_802154 driver. */ 79*fdd8201dSApple OSS Distributions #ifndef NETSTACK_CONF_FRAMER 80*fdd8201dSApple OSS Distributions #define NETSTACK_CONF_FRAMER framer_nullmac 81*fdd8201dSApple OSS Distributions /* #define NETSTACK_CONF_FRAMER framer_802154 */ 82*fdd8201dSApple OSS Distributions #endif /* NETSTACK_CONF_FRAMER */ 83*fdd8201dSApple OSS Distributions 84*fdd8201dSApple OSS Distributions /* NETSTACK_CONF_RDC specifies the Radio Duty Cycling (RDC) layer. The 85*fdd8201dSApple OSS Distributions * nullrdc_driver never turns the radio off and is compatible with all 86*fdd8201dSApple OSS Distributions * radios, but consumes a lot of power. The contikimac_driver is 87*fdd8201dSApple OSS Distributions * highly power-efficent and allows sleepy routers, but is not 88*fdd8201dSApple OSS Distributions * compatible with all radios. */ 89*fdd8201dSApple OSS Distributions #ifndef NETSTACK_CONF_RDC 90*fdd8201dSApple OSS Distributions #define NETSTACK_CONF_RDC nullrdc_driver 91*fdd8201dSApple OSS Distributions /* #define NETSTACK_CONF_RDC contikimac_driver */ 92*fdd8201dSApple OSS Distributions #endif /* NETSTACK_CONF_RDC */ 93*fdd8201dSApple OSS Distributions 94*fdd8201dSApple OSS Distributions /* NETSTACK_CONF_MAC specifies the Medium Access Control (MAC) 95*fdd8201dSApple OSS Distributions * layer. The nullmac_driver does not provide any MAC 96*fdd8201dSApple OSS Distributions * functionality. The csma_driver is the default CSMA MAC layer, but 97*fdd8201dSApple OSS Distributions * is not compatible with all radios. */ 98*fdd8201dSApple OSS Distributions #ifndef NETSTACK_CONF_MAC 99*fdd8201dSApple OSS Distributions #define NETSTACK_CONF_MAC nullmac_driver 100*fdd8201dSApple OSS Distributions /* #define NETSTACK_CONF_MAC csma_driver */ 101*fdd8201dSApple OSS Distributions #endif /* NETSTACK_CONF_MAC */ 102*fdd8201dSApple OSS Distributions 103*fdd8201dSApple OSS Distributions /* NETSTACK_CONF_LLSEC specifies the link layer security driver. */ 104*fdd8201dSApple OSS Distributions #ifndef NETSTACK_CONF_LLSEC 105*fdd8201dSApple OSS Distributions #define NETSTACK_CONF_LLSEC nullsec_driver 106*fdd8201dSApple OSS Distributions #endif /* NETSTACK_CONF_LLSEC */ 107*fdd8201dSApple OSS Distributions 108*fdd8201dSApple OSS Distributions /* To avoid unnecessary complexity, we assume the common case of 109*fdd8201dSApple OSS Distributions * a constant LoWPAN-wide IEEE 802.15.4 security level, which 110*fdd8201dSApple OSS Distributions * can be specified by defining LLSEC802154_CONF_SECURITY_LEVEL. */ 111*fdd8201dSApple OSS Distributions #ifndef LLSEC802154_CONF_SECURITY_LEVEL 112*fdd8201dSApple OSS Distributions #define LLSEC802154_CONF_SECURITY_LEVEL 0 113*fdd8201dSApple OSS Distributions #endif /* LLSEC802154_CONF_SECURITY_LEVEL */ 114*fdd8201dSApple OSS Distributions 115*fdd8201dSApple OSS Distributions /* NETSTACK_CONF_NETWORK specifies the network layer and can be either 116*fdd8201dSApple OSS Distributions * sicslowpan_driver, for IPv6 networking, or rime_driver, for the 117*fdd8201dSApple OSS Distributions * custom Rime network stack. */ 118*fdd8201dSApple OSS Distributions #ifndef NETSTACK_CONF_NETWORK 119*fdd8201dSApple OSS Distributions #define NETSTACK_CONF_NETWORK rime_driver 120*fdd8201dSApple OSS Distributions /* #define NETSTACK_CONF_NETWORK sicslowpan_driver */ 121*fdd8201dSApple OSS Distributions #endif /* NETSTACK_CONF_NETWORK */ 122*fdd8201dSApple OSS Distributions 123*fdd8201dSApple OSS Distributions /* NETSTACK_CONF_RDC_CHANNEL_CHECK_RATE specifies the channel check 124*fdd8201dSApple OSS Distributions * rate of the RDC layer. This defines how often the RDC will wake up 125*fdd8201dSApple OSS Distributions * and check for radio channel activity. A higher check rate results 126*fdd8201dSApple OSS Distributions * in higher communication performance at the cost of a higher power 127*fdd8201dSApple OSS Distributions * consumption. */ 128*fdd8201dSApple OSS Distributions #ifndef NETSTACK_CONF_RDC_CHANNEL_CHECK_RATE 129*fdd8201dSApple OSS Distributions #define NETSTACK_CONF_RDC_CHANNEL_CHECK_RATE 8 130*fdd8201dSApple OSS Distributions #endif /* NETSTACK_CONF_RDC_CHANNEL_CHECK_RATE */ 131*fdd8201dSApple OSS Distributions 132*fdd8201dSApple OSS Distributions /*---------------------------------------------------------------------------*/ 133*fdd8201dSApple OSS Distributions /* Packet buffer size options. 134*fdd8201dSApple OSS Distributions * 135*fdd8201dSApple OSS Distributions * The packet buffer size options can be tweaked on a per-project 136*fdd8201dSApple OSS Distributions * basis to reduce memory consumption. 137*fdd8201dSApple OSS Distributions */ 138*fdd8201dSApple OSS Distributions 139*fdd8201dSApple OSS Distributions /* QUEUEBUF_CONF_NUM specifies the number of queue buffers. Queue 140*fdd8201dSApple OSS Distributions * buffers are used throughout the Contiki netstack but the 141*fdd8201dSApple OSS Distributions * configuration option can be tweaked to save memory. Performance can 142*fdd8201dSApple OSS Distributions * suffer with a too low number of queue buffers though. */ 143*fdd8201dSApple OSS Distributions #ifndef QUEUEBUF_CONF_NUM 144*fdd8201dSApple OSS Distributions #define QUEUEBUF_CONF_NUM 8 145*fdd8201dSApple OSS Distributions #endif /* QUEUEBUF_CONF_NUM */ 146*fdd8201dSApple OSS Distributions /*---------------------------------------------------------------------------*/ 147*fdd8201dSApple OSS Distributions /* uIPv6 configuration options. 148*fdd8201dSApple OSS Distributions * 149*fdd8201dSApple OSS Distributions * Many of the uIPv6 configuration options can be overriden by a 150*fdd8201dSApple OSS Distributions * project-specific configuration to save memory. 151*fdd8201dSApple OSS Distributions */ 152*fdd8201dSApple OSS Distributions 153*fdd8201dSApple OSS Distributions /* NETSTACK_CONF_WITH_IPV6 specifies whether or not IPv6 should be used. If IPv6 154*fdd8201dSApple OSS Distributions * is not used, IPv4 is used instead. */ 155*fdd8201dSApple OSS Distributions #ifndef NETSTACK_CONF_WITH_IPV6 156*fdd8201dSApple OSS Distributions #define NETSTACK_CONF_WITH_IPV6 0 157*fdd8201dSApple OSS Distributions #endif /* NETSTACK_CONF_WITH_IPV6 */ 158*fdd8201dSApple OSS Distributions 159*fdd8201dSApple OSS Distributions /* UIP_CONF_BUFFER_SIZE specifies how much memory should be reserved 160*fdd8201dSApple OSS Distributions * for the uIP packet buffer. This sets an upper bound on the largest 161*fdd8201dSApple OSS Distributions * IP packet that can be received by the system. */ 162*fdd8201dSApple OSS Distributions #ifndef UIP_CONF_BUFFER_SIZE 163*fdd8201dSApple OSS Distributions #define UIP_CONF_BUFFER_SIZE 128 164*fdd8201dSApple OSS Distributions #endif /* UIP_CONF_BUFFER_SIZE */ 165*fdd8201dSApple OSS Distributions 166*fdd8201dSApple OSS Distributions /* UIP_CONF_ROUTER specifies if the IPv6 node should be a router or 167*fdd8201dSApple OSS Distributions * not. By default, all Contiki nodes are routers. */ 168*fdd8201dSApple OSS Distributions #ifndef UIP_CONF_ROUTER 169*fdd8201dSApple OSS Distributions #define UIP_CONF_ROUTER 1 170*fdd8201dSApple OSS Distributions #endif /* UIP_CONF_ROUTER */ 171*fdd8201dSApple OSS Distributions 172*fdd8201dSApple OSS Distributions /* UIP_CONF_IPV6_RPL specifies if RPL is to be used for IPv6 173*fdd8201dSApple OSS Distributions * routing. */ 174*fdd8201dSApple OSS Distributions #ifndef UIP_CONF_IPV6_RPL 175*fdd8201dSApple OSS Distributions #define UIP_CONF_IPV6_RPL 1 176*fdd8201dSApple OSS Distributions #endif /* UIP_CONF_IPV6_RPL */ 177*fdd8201dSApple OSS Distributions 178*fdd8201dSApple OSS Distributions /* UIP_CONF_MAX_ROUTES specifies the maximum number of routes that each 179*fdd8201dSApple OSS Distributions * node will be able to handle. */ 180*fdd8201dSApple OSS Distributions #ifndef UIP_CONF_MAX_ROUTES 181*fdd8201dSApple OSS Distributions #define UIP_CONF_MAX_ROUTES 20 182*fdd8201dSApple OSS Distributions #endif /* UIP_CONF_MAX_ROUTES */ 183*fdd8201dSApple OSS Distributions 184*fdd8201dSApple OSS Distributions /* UIP_CONF_UDP specifies if UDP support should be included or 185*fdd8201dSApple OSS Distributions * not. Disabling UDP saves memory but breaks a lot of stuff. */ 186*fdd8201dSApple OSS Distributions #ifndef UIP_CONF_UDP 187*fdd8201dSApple OSS Distributions #define UIP_CONF_UDP 1 188*fdd8201dSApple OSS Distributions #endif /* UIP_CONF_UDP */ 189*fdd8201dSApple OSS Distributions 190*fdd8201dSApple OSS Distributions /* UIP_CONF_MAX_CONNECTIONS specifies the maximum number of 191*fdd8201dSApple OSS Distributions * simultaneous TCP connections. */ 192*fdd8201dSApple OSS Distributions #ifndef UIP_CONF_MAX_CONNECTIONS 193*fdd8201dSApple OSS Distributions #define UIP_CONF_MAX_CONNECTIONS 8 194*fdd8201dSApple OSS Distributions #endif /* UIP_CONF_MAX_CONNECTIONS */ 195*fdd8201dSApple OSS Distributions 196*fdd8201dSApple OSS Distributions /* UIP_CONF_TCP specifies if TCP support should be included or 197*fdd8201dSApple OSS Distributions * not. Disabling TCP saves memory. */ 198*fdd8201dSApple OSS Distributions #ifndef UIP_CONF_TCP 199*fdd8201dSApple OSS Distributions #define UIP_CONF_TCP 1 200*fdd8201dSApple OSS Distributions #endif /* UIP_CONF_TCP */ 201*fdd8201dSApple OSS Distributions 202*fdd8201dSApple OSS Distributions /* UIP_CONF_MAX_CONNECTIONS specifies the maximum number of 203*fdd8201dSApple OSS Distributions * simultaneous TCP connections. */ 204*fdd8201dSApple OSS Distributions #ifndef UIP_CONF_MAX_CONNECTIONS 205*fdd8201dSApple OSS Distributions #define UIP_CONF_MAX_CONNECTIONS 8 206*fdd8201dSApple OSS Distributions #endif /* UIP_CONF_MAX_CONNECTIONS */ 207*fdd8201dSApple OSS Distributions 208*fdd8201dSApple OSS Distributions 209*fdd8201dSApple OSS Distributions /* UIP_CONF_TCP_SPLIT enables a performance optimization hack, where 210*fdd8201dSApple OSS Distributions * each maximum-sized TCP segment is split into two, to avoid the 211*fdd8201dSApple OSS Distributions * performance degradation that is caused by delayed ACKs. */ 212*fdd8201dSApple OSS Distributions #ifndef UIP_CONF_TCP_SPLIT 213*fdd8201dSApple OSS Distributions #define UIP_CONF_TCP_SPLIT 0 214*fdd8201dSApple OSS Distributions #endif /* UIP_CONF_TCP_SPLIT */ 215*fdd8201dSApple OSS Distributions 216*fdd8201dSApple OSS Distributions /* NBR_TABLE_CONF_MAX_NEIGHBORS specifies the maximum number of neighbors 217*fdd8201dSApple OSS Distributions * that each node will be able to handle. */ 218*fdd8201dSApple OSS Distributions #ifndef NBR_TABLE_CONF_MAX_NEIGHBORS 219*fdd8201dSApple OSS Distributions #define NBR_TABLE_CONF_MAX_NEIGHBORS 8 220*fdd8201dSApple OSS Distributions #endif /* NBR_TABLE_CONF_MAX_NEIGHBORS */ 221*fdd8201dSApple OSS Distributions 222*fdd8201dSApple OSS Distributions /* UIP_CONF_ND6_SEND_NA enables standard IPv6 Neighbor Discovery Protocol. 223*fdd8201dSApple OSS Distributions * This is unneeded when RPL is used. Disable to save ROM and a little RAM. */ 224*fdd8201dSApple OSS Distributions #ifndef UIP_CONF_ND6_SEND_NA 225*fdd8201dSApple OSS Distributions #define UIP_CONF_ND6_SEND_NA 1 226*fdd8201dSApple OSS Distributions #endif /* UIP_CONF_ND6_SEND_NA */ 227*fdd8201dSApple OSS Distributions 228*fdd8201dSApple OSS Distributions /*---------------------------------------------------------------------------*/ 229*fdd8201dSApple OSS Distributions /* 6lowpan configuration options. 230*fdd8201dSApple OSS Distributions * 231*fdd8201dSApple OSS Distributions * These options change the behavior of the 6lowpan header compression 232*fdd8201dSApple OSS Distributions * code (sicslowpan). They typically depend on the type of radio used 233*fdd8201dSApple OSS Distributions * on the target platform, and are therefore platform-specific. 234*fdd8201dSApple OSS Distributions */ 235*fdd8201dSApple OSS Distributions 236*fdd8201dSApple OSS Distributions /* SICSLOWPAN_CONF_MAX_MAC_TRANSMISSIONS specifies how many times the 237*fdd8201dSApple OSS Distributions * MAC layer should resend packets if no link-layer ACK was 238*fdd8201dSApple OSS Distributions * received. This only makes sense with the csma_driver 239*fdd8201dSApple OSS Distributions * NETSTACK_CONF_MAC. */ 240*fdd8201dSApple OSS Distributions #ifndef SICSLOWPAN_CONF_MAX_MAC_TRANSMISSIONS 241*fdd8201dSApple OSS Distributions #define SICSLOWPAN_CONF_MAX_MAC_TRANSMISSIONS 4 242*fdd8201dSApple OSS Distributions #endif /* SICSLOWPAN_CONF_MAX_MAC_TRANSMISSIONS */ 243*fdd8201dSApple OSS Distributions 244*fdd8201dSApple OSS Distributions /* SICSLOWPAN_CONF_FRAG specifies if 6lowpan fragmentation should be 245*fdd8201dSApple OSS Distributions * used or not. Fragmentation is on by default. */ 246*fdd8201dSApple OSS Distributions #ifndef SICSLOWPAN_CONF_FRAG 247*fdd8201dSApple OSS Distributions #define SICSLOWPAN_CONF_FRAG 1 248*fdd8201dSApple OSS Distributions #endif /* SICSLOWPAN_CONF_FRAG */ 249*fdd8201dSApple OSS Distributions 250*fdd8201dSApple OSS Distributions /* SICSLOWPAN_CONF_MAC_MAX_PAYLOAD is the maximum available size for 251*fdd8201dSApple OSS Distributions * frame headers, link layer security-related overhead, as well as 252*fdd8201dSApple OSS Distributions * 6LoWPAN payload. By default, SICSLOWPAN_CONF_MAC_MAX_PAYLOAD is 253*fdd8201dSApple OSS Distributions * 127 bytes (MTU of 802.15.4) - 2 bytes (Footer of 802.15.4). */ 254*fdd8201dSApple OSS Distributions #ifndef SICSLOWPAN_CONF_MAC_MAX_PAYLOAD 255*fdd8201dSApple OSS Distributions #define SICSLOWPAN_CONF_MAC_MAX_PAYLOAD (127 - 2) 256*fdd8201dSApple OSS Distributions #endif /* SICSLOWPAN_CONF_MAC_MAX_PAYLOAD */ 257*fdd8201dSApple OSS Distributions 258*fdd8201dSApple OSS Distributions /* SICSLOWPAN_CONF_COMPRESSION_THRESHOLD sets a lower threshold for 259*fdd8201dSApple OSS Distributions * when packets should not be compressed. This is used by ContikiMAC, 260*fdd8201dSApple OSS Distributions * which requires packets to be larger than a given minimum size. */ 261*fdd8201dSApple OSS Distributions #ifndef SICSLOWPAN_CONF_COMPRESSION_THRESHOLD 262*fdd8201dSApple OSS Distributions #define SICSLOWPAN_CONF_COMPRESSION_THRESHOLD 0 263*fdd8201dSApple OSS Distributions /* #define SICSLOWPAN_CONF_COMPRESSION_THRESHOLD 63 */ 264*fdd8201dSApple OSS Distributions #endif /* SICSLOWPAN_CONF_COMPRESSION_THRESHOLD */ 265*fdd8201dSApple OSS Distributions 266*fdd8201dSApple OSS Distributions /* SICSLOWPAN_CONF_COMPRESSION specifies what 6lowpan compression 267*fdd8201dSApple OSS Distributions * mechanism to be used. 6lowpan hc06 is the default in Contiki. */ 268*fdd8201dSApple OSS Distributions #ifndef SICSLOWPAN_CONF_COMPRESSION 269*fdd8201dSApple OSS Distributions #define SICSLOWPAN_CONF_COMPRESSION SICSLOWPAN_COMPRESSION_HC06 270*fdd8201dSApple OSS Distributions #endif /* SICSLOWPAN_CONF_COMPRESSION */ 271*fdd8201dSApple OSS Distributions 272*fdd8201dSApple OSS Distributions /*---------------------------------------------------------------------------*/ 273*fdd8201dSApple OSS Distributions /* ContikiMAC configuration options. 274*fdd8201dSApple OSS Distributions * 275*fdd8201dSApple OSS Distributions * These are typically configured on a per-platform basis. 276*fdd8201dSApple OSS Distributions */ 277*fdd8201dSApple OSS Distributions 278*fdd8201dSApple OSS Distributions /* CONTIKIMAC_CONF_WITH_PHASE_OPTIMIZATION specifies if ContikiMAC 279*fdd8201dSApple OSS Distributions * should optimize for the phase of neighbors. The phase optimization 280*fdd8201dSApple OSS Distributions * may reduce power consumption but is not compatible with all timer 281*fdd8201dSApple OSS Distributions * settings and is therefore off by default. */ 282*fdd8201dSApple OSS Distributions #ifndef CONTIKIMAC_CONF_WITH_PHASE_OPTIMIZATION 283*fdd8201dSApple OSS Distributions #define CONTIKIMAC_CONF_WITH_PHASE_OPTIMIZATION 0 284*fdd8201dSApple OSS Distributions #endif /* CONTIKIMAC_CONF_WITH_PHASE_OPTIMIZATION */ 285*fdd8201dSApple OSS Distributions 286*fdd8201dSApple OSS Distributions 287*fdd8201dSApple OSS Distributions #endif /* CONTIKI_DEFAULT_CONF_H */ 288