Contiki 2.5
contiki-conf.h
1 /*
2  * Copyright (c) 2005, Swedish Institute of Computer Science
3  * All rights reserved.
4  *
5  * Redistribution and use in source and binary forms, with or without
6  * modification, are permitted provided that the following conditions
7  * are met:
8  * 1. Redistributions of source code must retain the above copyright
9  * notice, this list of conditions and the following disclaimer.
10  * 2. Redistributions in binary form must reproduce the above copyright
11  * notice, this list of conditions and the following disclaimer in the
12  * documentation and/or other materials provided with the distribution.
13  * 3. Neither the name of the Institute nor the names of its contributors
14  * may be used to endorse or promote products derived from this software
15  * without specific prior written permission.
16  *
17  * THIS SOFTWARE IS PROVIDED BY THE INSTITUTE AND CONTRIBUTORS ``AS IS'' AND
18  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
19  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
20  * ARE DISCLAIMED. IN NO EVENT SHALL THE INSTITUTE OR CONTRIBUTORS BE LIABLE
21  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
22  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
23  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
24  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
25  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
26  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
27  * SUCH DAMAGE.
28  *
29  * This file is part of the Contiki operating system.
30  *
31  * @(#)$Id: contiki-conf.h,v 1.12 2009/09/09 21:11:24 adamdunkels Exp $
32  */
33 
34 #ifndef __CONTIKI_CONF_H__
35 #define __CONTIKI_CONF_H__
36 
37 #include <inttypes.h>
38 
39 #define CC_CONF_REGISTER_ARGS 1
40 #define CC_CONF_FUNCTION_POINTER_ARGS 1
41 #define CC_CONF_FASTCALL
42 #define CC_CONF_VA_ARGS 1
43 /*#define CC_CONF_INLINE inline*/
44 
45 #define CCIF
46 #define CLIF
47 
48 typedef uint8_t u8_t;
49 typedef uint16_t u16_t;
50 typedef uint32_t u32_t;
51 typedef int32_t s32_t;
52 typedef unsigned short uip_stats_t;
53 
54 #define UIP_CONF_UDP 1
55 #define UIP_CONF_MAX_CONNECTIONS 40
56 #define UIP_CONF_MAX_LISTENPORTS 40
57 #define UIP_CONF_BUFFER_SIZE 420
58 #define UIP_CONF_BYTE_ORDER UIP_LITTLE_ENDIAN
59 #define UIP_CONF_TCP 1
60 #define UIP_CONF_TCP_SPLIT 1
61 #define UIP_CONF_LOGGING 0
62 #define UIP_CONF_UDP_CHECKSUMS 1
63 
64 #if UIP_CONF_IPV6
65 #define UIP_CONF_IPV6_CHECKS 1
66 #define UIP_CONF_IPV6_QUEUE_PKT 1
67 #define UIP_CONF_IPV6_REASSEMBLY 0
68 #define UIP_CONF_NETIF_MAX_ADDRESSES 3
69 #define UIP_CONF_ND6_MAX_PREFIXES 3
70 #define UIP_CONF_ND6_MAX_NEIGHBORS 4
71 #define UIP_CONF_ND6_MAX_DEFROUTERS 2
72 #define UIP_CONF_ICMP6 1
73 #endif /* UIP_CONF_ICMP6 */
74 
75 typedef unsigned long clock_time_t;
76 
77 #define CLOCK_CONF_SECOND 1000
78 
79 #define LOG_CONF_ENABLED 1
80 
81 /* Not part of C99 but actually present */
82 int strcasecmp(const char*, const char*);
83 
84 #endif /* __CONTIKI_CONF_H__ */