contiki-conf.h

Go to the documentation of this file.
00001 /*
00002  * Copyright (c) 2006, Technical University of Munich
00003  * All rights reserved.
00004  *
00005  * Redistribution and use in source and binary forms, with or without
00006  * modification, are permitted provided that the following conditions
00007  * are met:
00008  * 1. Redistributions of source code must retain the above copyright
00009  *    notice, this list of conditions and the following disclaimer.
00010  * 2. Redistributions in binary form must reproduce the above copyright
00011  *    notice, this list of conditions and the following disclaimer in the
00012  *    documentation and/or other materials provided with the distribution.
00013  * 3. Neither the name of the Institute nor the names of its contributors
00014  *    may be used to endorse or promote products derived from this software
00015  *    without specific prior written permission.
00016  *
00017  * THIS SOFTWARE IS PROVIDED BY THE INSTITUTE AND CONTRIBUTORS ``AS IS'' AND
00018  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
00019  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
00020  * ARE DISCLAIMED.  IN NO EVENT SHALL THE INSTITUTE OR CONTRIBUTORS BE LIABLE
00021  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
00022  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
00023  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
00024  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
00025  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
00026  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
00027  * SUCH DAMAGE.
00028  *
00029  * This file is part of the Contiki operating system.
00030  *
00031  * @(#)$$
00032  */
00033 
00034 /**
00035  * \file
00036  *         Configuration for sample STK 501 Contiki kernel
00037  *
00038  * \author
00039  *         Simon Barner <barner@in.tum.de
00040  */
00041 
00042 #ifndef __CONTIKI_CONF_H__
00043 #define __CONTIKI_CONF_H__
00044 
00045 #include <stdint.h>
00046 
00047 typedef int32_t s32_t;
00048 
00049 /*
00050  * MCU and clock rate
00051  */
00052 #define MCU_MHZ 8
00053 #define PLATFORM PLATFORM_AVR
00054 #define RCB_REVISION RCB_B
00055 
00056 /* Clock ticks per second */
00057 #define CLOCK_CONF_SECOND 125
00058 
00059 /* COM port to be used for SLIP connection */
00060 #define SLIP_PORT RS232_PORT_0
00061 
00062 /* Pre-allocated memory for loadable modules heap space (in bytes)*/
00063 #define MMEM_CONF_SIZE 256
00064 
00065 /* Use the following address for code received via the codeprop
00066  * facility
00067  */
00068 #define EEPROMFS_ADDR_CODEPROP 0x8000
00069 
00070 #define CCIF
00071 #define CLIF
00072 
00073 //#define UIP_CONF_IPV6            1  //Let makefile determine this so ipv4 hello-world will compile
00074 
00075 #define RIMEADDR_CONF_SIZE       8
00076 #define PACKETBUF_CONF_HDR_SIZE    0
00077 
00078 /* 0 for IPv6, or 1 for HC1, 2 for HC01 */
00079 #define SICSLOWPAN_CONF_COMPRESSION_IPV6 0 
00080 #define SICSLOWPAN_CONF_COMPRESSION_HC1  1 
00081 #define SICSLOWPAN_CONF_COMPRESSION_HC01 2
00082 
00083 #define SICSLOWPAN_CONF_COMPRESSION       SICSLOWPAN_CONF_COMPRESSION_HC01 
00084 #define SICSLOWPAN_CONF_MAX_ADDR_CONTEXTS 2
00085 #define SICSLOWPAN_CONF_FRAG              1
00086 
00087 #define SICSLOWPAN_CONF_MAXAGE 5
00088 
00089 #define UIP_CONF_LL_802154       1
00090 #define UIP_CONF_LLH_LEN         0
00091 
00092 #define UIP_CONF_MAX_CONNECTIONS 2
00093 #define UIP_CONF_MAX_LISTENPORTS 2
00094 #define UIP_CONF_UDP_CONNS       2
00095 
00096 #define UIP_CONF_IP_FORWARD      0
00097 #define UIP_CONF_FWCACHE_SIZE    0
00098 
00099 #define UIP_CONF_IPV6_CHECKS     1
00100 #define UIP_CONF_IPV6_QUEUE_PKT  0
00101 #define UIP_CONF_IPV6_REASSEMBLY 0
00102 #define UIP_CONF_NETIF_MAX_ADDRESSES  3
00103 #define UIP_CONF_ND6_MAX_PREFIXES     3
00104 #define UIP_CONF_ND6_MAX_NEIGHBORS    4  
00105 #define UIP_CONF_ND6_MAX_DEFROUTERS   2
00106 #if UIP_CONF_IPV6                       //tcpip.c error on ipv4 build if UIP_CONF_ICMP6 defined
00107 #define UIP_CONF_ICMP6           1
00108 #endif
00109 
00110 #define UIP_CONF_UDP             1
00111 #define UIP_CONF_UDP_CHECKSUMS   1
00112 
00113 #define UIP_CONF_TCP             0
00114 #define UIP_CONF_TCP_SPLIT       0
00115 
00116 
00117 typedef unsigned short clock_time_t;
00118 typedef unsigned char u8_t;
00119 typedef unsigned short u16_t;
00120 typedef unsigned long u32_t;
00121 typedef unsigned short uip_stats_t;
00122 typedef unsigned long off_t;
00123 
00124 void clock_delay(unsigned int us2);
00125 void clock_wait(int ms10);
00126 void clock_set_seconds(unsigned long s);
00127 unsigned long clock_seconds(void);
00128 
00129 #endif /* __CONTIKI_CONF_H__ */

Generated on Mon Apr 11 14:23:41 2011 for Contiki 2.5 by  doxygen 1.6.1