센서보드 RF IRQ 테스트 중

Fork of stm-spirit1-rf-driver by ST

Committer:
Wolfgang Betz
Date:
Fri Sep 01 08:51:04 2017 +0200
Revision:
75:8dc65c09af67
Parent:
67:93bec0baf1de
Clarification on radio configuration

Who changed what in which revision?

UserRevisionLine numberNew contents of line
Wolfgang Betz 67:93bec0baf1de 1 /**
Wolfgang Betz 67:93bec0baf1de 2 ******************************************************************************
Wolfgang Betz 67:93bec0baf1de 3 * @file platform/stm32nucleo-spirit1/contiki-conf.h
Wolfgang Betz 67:93bec0baf1de 4 * @author System LAB
Wolfgang Betz 67:93bec0baf1de 5 * @version V1.0.0
Wolfgang Betz 67:93bec0baf1de 6 * @date 17-May-2015
Wolfgang Betz 67:93bec0baf1de 7 * @brief Contiki configuration parameters
Wolfgang Betz 67:93bec0baf1de 8 ******************************************************************************
Wolfgang Betz 67:93bec0baf1de 9 * @attention
Wolfgang Betz 67:93bec0baf1de 10 *
Wolfgang Betz 67:93bec0baf1de 11 * <h2><center>&copy; COPYRIGHT(c) 2014 STMicroelectronics</center></h2>
Wolfgang Betz 67:93bec0baf1de 12 *
Wolfgang Betz 67:93bec0baf1de 13 * Redistribution and use in source and binary forms, with or without modification,
Wolfgang Betz 67:93bec0baf1de 14 * are permitted provided that the following conditions are met:
Wolfgang Betz 67:93bec0baf1de 15 * 1. Redistributions of source code must retain the above copyright notice,
Wolfgang Betz 67:93bec0baf1de 16 * this list of conditions and the following disclaimer.
Wolfgang Betz 67:93bec0baf1de 17 * 2. Redistributions in binary form must reproduce the above copyright notice,
Wolfgang Betz 67:93bec0baf1de 18 * this list of conditions and the following disclaimer in the documentation
Wolfgang Betz 67:93bec0baf1de 19 * and/or other materials provided with the distribution.
Wolfgang Betz 67:93bec0baf1de 20 * 3. Neither the name of STMicroelectronics nor the names of its contributors
Wolfgang Betz 67:93bec0baf1de 21 * may be used to endorse or promote products derived from this software
Wolfgang Betz 67:93bec0baf1de 22 * without specific prior written permission.
Wolfgang Betz 67:93bec0baf1de 23 *
Wolfgang Betz 67:93bec0baf1de 24 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
Wolfgang Betz 67:93bec0baf1de 25 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
Wolfgang Betz 67:93bec0baf1de 26 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
Wolfgang Betz 67:93bec0baf1de 27 * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
Wolfgang Betz 67:93bec0baf1de 28 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
Wolfgang Betz 67:93bec0baf1de 29 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
Wolfgang Betz 67:93bec0baf1de 30 * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
Wolfgang Betz 67:93bec0baf1de 31 * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
Wolfgang Betz 67:93bec0baf1de 32 * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
Wolfgang Betz 67:93bec0baf1de 33 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
Wolfgang Betz 67:93bec0baf1de 34 *
Wolfgang Betz 67:93bec0baf1de 35 ******************************************************************************
Wolfgang Betz 67:93bec0baf1de 36 */
Wolfgang Betz 67:93bec0baf1de 37 /*---------------------------------------------------------------------------*/
Wolfgang Betz 67:93bec0baf1de 38 #ifndef __CONTIKI_CONF_H__
Wolfgang Betz 67:93bec0baf1de 39 #define __CONTIKI_CONF_H__
Wolfgang Betz 67:93bec0baf1de 40 /*---------------------------------------------------------------------------*/
Wolfgang Betz 67:93bec0baf1de 41 #include "platform-conf.h"
Wolfgang Betz 67:93bec0baf1de 42 //#include "project-conf.h"
Wolfgang Betz 67:93bec0baf1de 43 /*---------------------------------------------------------------------------*/
Wolfgang Betz 67:93bec0baf1de 44 #define SLIP_BRIDGE_CONF_NO_PUTCHAR 1
Wolfgang Betz 67:93bec0baf1de 45
Wolfgang Betz 67:93bec0baf1de 46 #define NETSTACK_CONF_RDC_CHANNEL_CHECK_RATE 8
Wolfgang Betz 67:93bec0baf1de 47 #define NULLRDC_CONF_802154_AUTOACK 0
Wolfgang Betz 67:93bec0baf1de 48 #define NETSTACK_CONF_FRAMER framer_802154
Wolfgang Betz 67:93bec0baf1de 49 #define NETSTACK_CONF_NETWORK sicslowpan_driver
Wolfgang Betz 67:93bec0baf1de 50
Wolfgang Betz 67:93bec0baf1de 51 #undef NETSTACK_CONF_RDC
Wolfgang Betz 67:93bec0baf1de 52 #define NETSTACK_CONF_RDC nullrdc_driver
Wolfgang Betz 67:93bec0baf1de 53 #define NETSTACK_RDC_HEADER_LEN 0
Wolfgang Betz 67:93bec0baf1de 54
Wolfgang Betz 67:93bec0baf1de 55 #undef NETSTACK_CONF_MAC
Wolfgang Betz 67:93bec0baf1de 56 #define NETSTACK_CONF_MAC csma_driver
Wolfgang Betz 67:93bec0baf1de 57 #define NETSTACK_MAC_HEADER_LEN 0
Wolfgang Betz 67:93bec0baf1de 58
Wolfgang Betz 67:93bec0baf1de 59 #define SICSLOWPAN_CONF_MAC_MAX_PAYLOAD \
Wolfgang Betz 67:93bec0baf1de 60 (NETSTACK_RADIO_MAX_PAYLOAD_LEN - NETSTACK_MAC_HEADER_LEN - \
Wolfgang Betz 67:93bec0baf1de 61 NETSTACK_RDC_HEADER_LEN )
Wolfgang Betz 67:93bec0baf1de 62
Wolfgang Betz 67:93bec0baf1de 63 #define RIMESTATS_CONF_ENABLED 0
Wolfgang Betz 67:93bec0baf1de 64 #define RIMESTATS_CONF_ON 0
Wolfgang Betz 67:93bec0baf1de 65
Wolfgang Betz 67:93bec0baf1de 66
Wolfgang Betz 67:93bec0baf1de 67 /* Network setup for IPv6 */
Wolfgang Betz 67:93bec0baf1de 68
Wolfgang Betz 67:93bec0baf1de 69 #define CXMAC_CONF_ANNOUNCEMENTS 0
Wolfgang Betz 67:93bec0baf1de 70
Wolfgang Betz 67:93bec0baf1de 71
Wolfgang Betz 67:93bec0baf1de 72 /* A trick to resolve a compilation error with IAR. */
Wolfgang Betz 67:93bec0baf1de 73 #ifdef __ICCARM__
Wolfgang Betz 67:93bec0baf1de 74 #define UIP_CONF_DS6_AADDR_NBU 1
Wolfgang Betz 67:93bec0baf1de 75 #endif
Wolfgang Betz 67:93bec0baf1de 76
Wolfgang Betz 67:93bec0baf1de 77 /* radio driver blocks until ACK is received */
Wolfgang Betz 67:93bec0baf1de 78 #define NULLRDC_CONF_ACK_WAIT_TIME (0)
Wolfgang Betz 67:93bec0baf1de 79 #define CONTIKIMAC_CONF_BROADCAST_RATE_LIMIT 0
Wolfgang Betz 67:93bec0baf1de 80 #define IEEE802154_CONF_PANID 0xABCD
Wolfgang Betz 67:93bec0baf1de 81
Wolfgang Betz 67:93bec0baf1de 82 #define AODV_COMPLIANCE
Wolfgang Betz 67:93bec0baf1de 83
Wolfgang Betz 67:93bec0baf1de 84 #define WITH_ASCII 1
Wolfgang Betz 67:93bec0baf1de 85
Wolfgang Betz 67:93bec0baf1de 86 #define PROCESS_CONF_NUMEVENTS 8
Wolfgang Betz 67:93bec0baf1de 87 #define PROCESS_CONF_STATS 1
Wolfgang Betz 67:93bec0baf1de 88 /*#define PROCESS_CONF_FASTPOLL 4*/
Wolfgang Betz 67:93bec0baf1de 89
Wolfgang Betz 67:93bec0baf1de 90
Wolfgang Betz 67:93bec0baf1de 91 #define LINKADDR_CONF_SIZE 8
Wolfgang Betz 67:93bec0baf1de 92
Wolfgang Betz 67:93bec0baf1de 93 #define UIP_CONF_LL_802154 1
Wolfgang Betz 67:93bec0baf1de 94 #define UIP_CONF_LLH_LEN 0
Wolfgang Betz 67:93bec0baf1de 95
Wolfgang Betz 67:93bec0baf1de 96 #define UIP_CONF_ROUTER 1
Wolfgang Betz 67:93bec0baf1de 97
Wolfgang Betz 67:93bec0baf1de 98 /* configure number of neighbors and routes */
Wolfgang Betz 67:93bec0baf1de 99 #ifndef UIP_CONF_DS6_ROUTE_NBU
Wolfgang Betz 67:93bec0baf1de 100 #define UIP_CONF_DS6_ROUTE_NBU 30
Wolfgang Betz 67:93bec0baf1de 101 #endif /* UIP_CONF_DS6_ROUTE_NBU */
Wolfgang Betz 67:93bec0baf1de 102
Wolfgang Betz 67:93bec0baf1de 103 #ifndef UIP_CONF_ND6_SEND_RA
Wolfgang Betz 67:93bec0baf1de 104 #define UIP_CONF_ND6_SEND_RA 0
Wolfgang Betz 67:93bec0baf1de 105 #endif
Wolfgang Betz 67:93bec0baf1de 106 #define UIP_CONF_ND6_REACHABLE_TIME 600000 //90000// 600000
Wolfgang Betz 67:93bec0baf1de 107 #define UIP_CONF_ND6_RETRANS_TIMER 10000
Wolfgang Betz 67:93bec0baf1de 108
Wolfgang Betz 67:93bec0baf1de 109
Wolfgang Betz 67:93bec0baf1de 110 #define UIP_CONF_IPV6 1
Wolfgang Betz 67:93bec0baf1de 111 #ifndef UIP_CONF_IPV6_QUEUE_PKT
Wolfgang Betz 67:93bec0baf1de 112 #define UIP_CONF_IPV6_QUEUE_PKT 0
Wolfgang Betz 67:93bec0baf1de 113 #endif /* UIP_CONF_IPV6_QUEUE_PKT */
Wolfgang Betz 67:93bec0baf1de 114 #define UIP_CONF_IP_FORWARD 0
Wolfgang Betz 67:93bec0baf1de 115 #ifndef UIP_CONF_BUFFER_SIZE
Wolfgang Betz 67:93bec0baf1de 116 //#define UIP_CONF_BUFFER_SIZE 280
Wolfgang Betz 67:93bec0baf1de 117 #define UIP_CONF_BUFFER_SIZE 600
Wolfgang Betz 67:93bec0baf1de 118 #endif
Wolfgang Betz 67:93bec0baf1de 119
Wolfgang Betz 67:93bec0baf1de 120 #define SICSLOWPAN_CONF_MAXAGE 4
Wolfgang Betz 67:93bec0baf1de 121 #define SICSLOWPAN_CONF_MAX_ADDR_CONTEXTS 2
Wolfgang Betz 67:93bec0baf1de 122
Wolfgang Betz 67:93bec0baf1de 123
Wolfgang Betz 67:93bec0baf1de 124 #ifndef SICSLOWPAN_CONF_MAX_MAC_TRANSMISSIONS
Wolfgang Betz 67:93bec0baf1de 125 #define SICSLOWPAN_CONF_MAX_MAC_TRANSMISSIONS 5
Wolfgang Betz 67:93bec0baf1de 126 #endif /* SICSLOWPAN_CONF_MAX_MAC_TRANSMISSIONS */
Wolfgang Betz 67:93bec0baf1de 127
Wolfgang Betz 67:93bec0baf1de 128 #define UIP_CONF_ICMP_DEST_UNREACH 1
Wolfgang Betz 67:93bec0baf1de 129
Wolfgang Betz 67:93bec0baf1de 130 #define UIP_CONF_DHCP_LIGHT
Wolfgang Betz 67:93bec0baf1de 131 #define UIP_CONF_LLH_LEN 0
Wolfgang Betz 67:93bec0baf1de 132 #ifndef UIP_CONF_RECEIVE_WINDOW
Wolfgang Betz 67:93bec0baf1de 133 #define UIP_CONF_RECEIVE_WINDOW 150
Wolfgang Betz 67:93bec0baf1de 134 #endif
Wolfgang Betz 67:93bec0baf1de 135 #ifndef UIP_CONF_TCP_MSS
Wolfgang Betz 67:93bec0baf1de 136 #define UIP_CONF_TCP_MSS UIP_CONF_RECEIVE_WINDOW
Wolfgang Betz 67:93bec0baf1de 137 #endif
Wolfgang Betz 67:93bec0baf1de 138 #define UIP_CONF_MAX_CONNECTIONS 4
Wolfgang Betz 67:93bec0baf1de 139 #define UIP_CONF_MAX_LISTENPORTS 8
Wolfgang Betz 67:93bec0baf1de 140 #define UIP_CONF_UDP_CONNS 12
Wolfgang Betz 67:93bec0baf1de 141 #define UIP_CONF_FWCACHE_SIZE 30
Wolfgang Betz 67:93bec0baf1de 142 #define UIP_CONF_BROADCAST 1
Wolfgang Betz 67:93bec0baf1de 143 #define UIP_ARCH_IPCHKSUM 0
Wolfgang Betz 67:93bec0baf1de 144 #define UIP_CONF_UDP 1
Wolfgang Betz 67:93bec0baf1de 145 #define UIP_CONF_UDP_CHECKSUMS 1
Wolfgang Betz 67:93bec0baf1de 146 #define UIP_CONF_TCP 1
Wolfgang Betz 67:93bec0baf1de 147 /*---------------------------------------------------------------------------*/
Wolfgang Betz 67:93bec0baf1de 148 /* include the project config */
Wolfgang Betz 67:93bec0baf1de 149 /* PROJECT_CONF_H might be defined in the project Makefile */
Wolfgang Betz 67:93bec0baf1de 150 #ifdef PROJECT_CONF_H
Wolfgang Betz 67:93bec0baf1de 151 #include "project-conf.h"
Wolfgang Betz 67:93bec0baf1de 152 #endif /* PROJECT_CONF_H */
Wolfgang Betz 67:93bec0baf1de 153 /*---------------------------------------------------------------------------*/
Wolfgang Betz 67:93bec0baf1de 154 #endif /* CONTIKI_CONF_H */
Wolfgang Betz 67:93bec0baf1de 155 /*---------------------------------------------------------------------------*/