Vergil Cola
/
MQTTGateway2
Fork of my original MQTTGateway
Embed:
(wiki syntax)
Show/hide line numbers
contiki-conf.h
00001 /** 00002 ****************************************************************************** 00003 * @file platform/stm32nucleo-spirit1/contiki-conf.h 00004 * @author System LAB 00005 * @version V1.0.0 00006 * @date 17-May-2015 00007 * @brief Contiki configuration parameters 00008 ****************************************************************************** 00009 * @attention 00010 * 00011 * <h2><center>© COPYRIGHT(c) 2014 STMicroelectronics</center></h2> 00012 * 00013 * Redistribution and use in source and binary forms, with or without modification, 00014 * are permitted provided that the following conditions are met: 00015 * 1. Redistributions of source code must retain the above copyright notice, 00016 * this list of conditions and the following disclaimer. 00017 * 2. Redistributions in binary form must reproduce the above copyright notice, 00018 * this list of conditions and the following disclaimer in the documentation 00019 * and/or other materials provided with the distribution. 00020 * 3. Neither the name of STMicroelectronics nor the names of its contributors 00021 * may be used to endorse or promote products derived from this software 00022 * without specific prior written permission. 00023 * 00024 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" 00025 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 00026 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 00027 * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE 00028 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 00029 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR 00030 * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER 00031 * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, 00032 * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 00033 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 00034 * 00035 ****************************************************************************** 00036 */ 00037 /*---------------------------------------------------------------------------*/ 00038 #ifndef __CONTIKI_CONF_H__ 00039 #define __CONTIKI_CONF_H__ 00040 /*---------------------------------------------------------------------------*/ 00041 #include "platform-conf.h" 00042 //#include "project-conf.h" 00043 /*---------------------------------------------------------------------------*/ 00044 #define SLIP_BRIDGE_CONF_NO_PUTCHAR 1 00045 00046 #define NETSTACK_CONF_RDC_CHANNEL_CHECK_RATE 8 00047 #define NULLRDC_CONF_802154_AUTOACK 0 00048 #define NETSTACK_CONF_FRAMER framer_802154 00049 #define NETSTACK_CONF_NETWORK sicslowpan_driver 00050 00051 #undef NETSTACK_CONF_RDC 00052 #define NETSTACK_CONF_RDC nullrdc_driver 00053 #define NETSTACK_RDC_HEADER_LEN 0 00054 00055 #undef NETSTACK_CONF_MAC 00056 #define NETSTACK_CONF_MAC csma_driver 00057 #define NETSTACK_MAC_HEADER_LEN 0 00058 00059 #define SICSLOWPAN_CONF_MAC_MAX_PAYLOAD \ 00060 (NETSTACK_RADIO_MAX_PAYLOAD_LEN - NETSTACK_MAC_HEADER_LEN - \ 00061 NETSTACK_RDC_HEADER_LEN ) 00062 00063 #define RIMESTATS_CONF_ENABLED 0 00064 #define RIMESTATS_CONF_ON 0 00065 00066 00067 /* Network setup for IPv6 */ 00068 00069 #define CXMAC_CONF_ANNOUNCEMENTS 0 00070 00071 00072 /* A trick to resolve a compilation error with IAR. */ 00073 #ifdef __ICCARM__ 00074 #define UIP_CONF_DS6_AADDR_NBU 1 00075 #endif 00076 00077 /* radio driver blocks until ACK is received */ 00078 #define NULLRDC_CONF_ACK_WAIT_TIME (0) 00079 #define CONTIKIMAC_CONF_BROADCAST_RATE_LIMIT 0 00080 #define IEEE802154_CONF_PANID 0xABCD 00081 00082 #define AODV_COMPLIANCE 00083 00084 #define WITH_ASCII 1 00085 00086 #define PROCESS_CONF_NUMEVENTS 8 00087 #define PROCESS_CONF_STATS 1 00088 /*#define PROCESS_CONF_FASTPOLL 4*/ 00089 00090 00091 #define LINKADDR_CONF_SIZE 8 00092 00093 #define UIP_CONF_LL_802154 1 00094 #define UIP_CONF_LLH_LEN 0 00095 00096 #define UIP_CONF_ROUTER 1 00097 00098 /* configure number of neighbors and routes */ 00099 #ifndef UIP_CONF_DS6_ROUTE_NBU 00100 #define UIP_CONF_DS6_ROUTE_NBU 30 00101 #endif /* UIP_CONF_DS6_ROUTE_NBU */ 00102 00103 #ifndef UIP_CONF_ND6_SEND_RA 00104 #define UIP_CONF_ND6_SEND_RA 0 00105 #endif 00106 #define UIP_CONF_ND6_REACHABLE_TIME 600000 //90000// 600000 00107 #define UIP_CONF_ND6_RETRANS_TIMER 10000 00108 00109 00110 #define UIP_CONF_IPV6 1 00111 #ifndef UIP_CONF_IPV6_QUEUE_PKT 00112 #define UIP_CONF_IPV6_QUEUE_PKT 0 00113 #endif /* UIP_CONF_IPV6_QUEUE_PKT */ 00114 #define UIP_CONF_IP_FORWARD 0 00115 #ifndef UIP_CONF_BUFFER_SIZE 00116 //#define UIP_CONF_BUFFER_SIZE 280 00117 #define UIP_CONF_BUFFER_SIZE 600 00118 #endif 00119 00120 #define SICSLOWPAN_CONF_MAXAGE 4 00121 #define SICSLOWPAN_CONF_MAX_ADDR_CONTEXTS 2 00122 00123 00124 #ifndef SICSLOWPAN_CONF_MAX_MAC_TRANSMISSIONS 00125 #define SICSLOWPAN_CONF_MAX_MAC_TRANSMISSIONS 5 00126 #endif /* SICSLOWPAN_CONF_MAX_MAC_TRANSMISSIONS */ 00127 00128 #define UIP_CONF_ICMP_DEST_UNREACH 1 00129 00130 #define UIP_CONF_DHCP_LIGHT 00131 #define UIP_CONF_LLH_LEN 0 00132 #ifndef UIP_CONF_RECEIVE_WINDOW 00133 #define UIP_CONF_RECEIVE_WINDOW 150 00134 #endif 00135 #ifndef UIP_CONF_TCP_MSS 00136 #define UIP_CONF_TCP_MSS UIP_CONF_RECEIVE_WINDOW 00137 #endif 00138 #define UIP_CONF_MAX_CONNECTIONS 4 00139 #define UIP_CONF_MAX_LISTENPORTS 8 00140 #define UIP_CONF_UDP_CONNS 12 00141 #define UIP_CONF_FWCACHE_SIZE 30 00142 #define UIP_CONF_BROADCAST 1 00143 #define UIP_ARCH_IPCHKSUM 0 00144 #define UIP_CONF_UDP 1 00145 #define UIP_CONF_UDP_CHECKSUMS 1 00146 #define UIP_CONF_TCP 1 00147 /*---------------------------------------------------------------------------*/ 00148 /* include the project config */ 00149 /* PROJECT_CONF_H might be defined in the project Makefile */ 00150 #ifdef PROJECT_CONF_H 00151 #include "project-conf.h" 00152 #endif /* PROJECT_CONF_H */ 00153 /*---------------------------------------------------------------------------*/ 00154 #endif /* CONTIKI_CONF_H */ 00155 /*---------------------------------------------------------------------------*/
Generated on Tue Jul 12 2022 18:06:45 by 1.7.2