Contiki 2.5
contiki-conf.h
1 #ifndef __CONTIKI_CONF_H__
2 #define __CONTIKI_CONF_H__
3 
4 #define NETSTACK_CONF_RADIO ethernode_driver
5 
6 #define XMAC_CONF_ON_TIME RTIMER_SECOND
7 #define XMAC_CONF_OFF_TIME RTIMER_SECOND * 2
8 
9 /*
10  * Copyright (c) 2003, Adam Dunkels.
11  * All rights reserved.
12  *
13  * Redistribution and use in source and binary forms, with or without
14  * modification, are permitted provided that the following conditions
15  * are met:
16  * 1. Redistributions of source code must retain the above copyright
17  * notice, this list of conditions and the following disclaimer.
18  * 2. Redistributions in binary form must reproduce the above
19  * copyright notice, this list of conditions and the following
20  * disclaimer in the documentation and/or other materials provided
21  * with the distribution.
22  * 3. The name of the author may not be used to endorse or promote
23  * products derived from this software without specific prior
24  * written permission.
25  *
26  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS
27  * OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
28  * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
29  * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY
30  * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
31  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
32  * GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
33  * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
34  * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
35  * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
36  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
37  *
38  * This file is part of the Contiki desktop OS
39  *
40  * $Id: contiki-conf.h,v 1.13 2010/02/18 23:10:06 adamdunkels Exp $
41  *
42  */
43 
44 #define CC_CONF_REGISTER_ARGS 1
45 #define CC_CONF_FUNCTION_POINTER_ARGS 1
46 #define CC_CONF_FASTCALL
47 
48 #define CC_CONF_VA_ARGS 1
49 
50 #define CCIF
51 #define CLIF
52 
53 /*------------------------------------------------------------------------------*/
54 /**
55  * \defgroup uipopttypedef uIP type definitions
56  * @{
57  */
58 
59 #include <inttypes.h>
60 
61 /**
62  * The 8-bit unsigned data type.
63  *
64  * This may have to be tweaked for your particular compiler. "unsigned
65  * char" works for most compilers.
66  */
67 typedef uint8_t u8_t;
68 
69 /**
70  * The 16-bit unsigned data type.
71  *
72  * This may have to be tweaked for your particular compiler. "unsigned
73  * short" works for most compilers.
74  */
75 typedef uint16_t u16_t;
76 
77 /**
78  * The 32-bit unsigned data type.
79  *
80  * This may have to be tweaked for your particular compiler. "unsigned
81  * short" works for most compilers.
82  */
83 typedef uint32_t u32_t;
84 
85 /**
86  * The 32-bit signed data type.
87  *
88  * This may have to be tweaked for your particular compiler. "signed
89  * short" works for most compilers.
90  */
91 typedef int32_t s32_t;
92 
93 /**
94  * The statistics data type.
95  *
96  * This datatype determines how high the statistics counters are able
97  * to count.
98  */
99 typedef unsigned short uip_stats_t;
100 
101 /** @} */
102 
103 
104 /*------------------------------------------------------------------------------*/
105 
106 typedef unsigned long clock_time_t;
107 #define CLOCK_CONF_SECOND 1000
108 
109 
110 /*------------------------------------------------------------------------------*/
111 
112 #define PACKETBUF_CONF_SIZE 128
113 #define PACKETBUF_CONF_HDR_SIZE 32
114 #define QUEUEBUF_CONF_STATS 1
115 
116 #define UIP_CONF_UIP_IP4ADDR_T_WITH_U32 1
117 
118 #define UIP_CONF_ICMP_DEST_UNREACH 1
119 
120 #define UIP_CONF_MAX_CONNECTIONS 40
121 #define UIP_CONF_MAX_LISTENPORTS 40
122 #define UIP_CONF_BUFFER_SIZE 120
123 
124 #define UIP_CONF_BYTE_ORDER UIP_LITTLE_ENDIAN
125 
126 #define UIP_CONF_BROADCAST 1
127 
128 #define UIP_CONF_IP_FORWARD 1
129 
130 /* TCP splitting does not work well with multi hop routing. */
131 #define UIP_CONF_TCP_SPLIT 0
132 
133 #define UIP_CONF_LOGGING 1
134 
135 #define UIP_CONF_UDP_CHECKSUMS 0
136 
137 #define LOADER_CONF_ARCH "loader/dlloader.h"
138 
139 #endif /* __CONTIKI_CONF_H__ */