2006-06-18 00:41:10 +02:00
|
|
|
#ifndef __CONTIKI_CONF_H__
|
|
|
|
#define __CONTIKI_CONF_H__
|
|
|
|
|
2012-03-09 20:35:49 +01:00
|
|
|
#define PLATFORM_HAS_LEDS 1
|
|
|
|
#define PLATFORM_HAS_BUTTON 1
|
|
|
|
#define PLATFORM_HAS_BATTERY 1
|
|
|
|
|
2009-07-07 15:06:56 +02:00
|
|
|
/* DCO speed resynchronization for more robust UART, etc. */
|
|
|
|
#define DCOSYNCH_CONF_ENABLED 1
|
|
|
|
#define DCOSYNCH_CONF_PERIOD 30
|
|
|
|
|
2009-11-18 16:34:57 +01:00
|
|
|
#define SERIAL_LINE_CONF_BUFSIZE 64
|
2008-03-07 18:54:22 +01:00
|
|
|
|
|
|
|
#define TIMESYNCH_CONF_ENABLED 0
|
|
|
|
#define PROFILE_CONF_ON 0
|
|
|
|
#define ENERGEST_CONF_ON 1
|
|
|
|
|
2011-09-26 10:38:41 +02:00
|
|
|
#define HAVE_STDINT_H
|
2008-07-08 11:36:48 +02:00
|
|
|
#include "msp430def.h"
|
2007-08-16 15:35:33 +02:00
|
|
|
|
2011-09-26 10:38:41 +02:00
|
|
|
|
2008-03-07 18:54:22 +01:00
|
|
|
#define PROCESS_CONF_NUMEVENTS 8
|
|
|
|
#define PROCESS_CONF_STATS 0
|
|
|
|
|
|
|
|
/* CPU target speed in Hz */
|
|
|
|
#define F_CPU 2457600uL
|
2007-05-22 23:06:30 +02:00
|
|
|
|
2008-07-08 11:36:48 +02:00
|
|
|
/* Our clock resolution, this is the same as Unix HZ. Must be a power
|
|
|
|
of two (see clock.c for details). */
|
2010-06-21 17:15:10 +02:00
|
|
|
#define CLOCK_CONF_SECOND 64UL
|
2008-07-08 11:36:48 +02:00
|
|
|
|
2006-10-06 09:58:39 +02:00
|
|
|
#define NODE_ID_EEPROM_OFFSET 0x0010 /* - 0x0014 */
|
|
|
|
#define CFS_EEPROM_CONF_OFFSET 0x0040
|
2006-06-18 00:41:10 +02:00
|
|
|
|
|
|
|
#define CC_CONF_REGISTER_ARGS 1
|
|
|
|
#define CC_CONF_FUNCTION_POINTER_ARGS 1
|
|
|
|
|
|
|
|
#define CC_CONF_VA_ARGS 1
|
|
|
|
|
2006-08-15 16:46:33 +02:00
|
|
|
#define CCIF
|
|
|
|
#define CLIF
|
2006-06-18 00:41:10 +02:00
|
|
|
|
2010-06-21 17:15:10 +02:00
|
|
|
typedef unsigned long clock_time_t;
|
2006-06-18 00:41:10 +02:00
|
|
|
|
|
|
|
void clock_wait(int ms10);
|
|
|
|
|
|
|
|
#define LOG_CONF_ENABLED 0
|
|
|
|
|
2010-03-02 23:40:39 +01:00
|
|
|
#define PACKETBUF_CONF_ATTRS_INLINE 1
|
|
|
|
#define NETSTACK_CONF_RADIO tr1001_driver
|
|
|
|
|
|
|
|
#if WITH_UIP
|
|
|
|
/* Network setup for IPv4 */
|
|
|
|
|
|
|
|
#define NETSTACK_CONF_NETWORK uip_driver
|
|
|
|
#define NETSTACK_CONF_MAC nullmac_driver
|
|
|
|
#define NETSTACK_CONF_RDC nullrdc_driver
|
|
|
|
#define NETSTACK_CONF_FRAMER framer_nullmac
|
|
|
|
|
|
|
|
#define QUEUEBUF_CONF_NUM 0
|
|
|
|
#define QUEUEBUF_CONF_REF_NUM 0
|
|
|
|
#define ROUTE_CONF_ENTRIES 0
|
|
|
|
|
|
|
|
#else /* WITH_UIP */
|
|
|
|
|
|
|
|
/* Network setup for non-IPv4 (rime). */
|
|
|
|
|
|
|
|
#define NETSTACK_CONF_NETWORK rime_driver
|
|
|
|
#define NETSTACK_CONF_MAC nullmac_driver
|
2010-06-21 17:15:10 +02:00
|
|
|
#define NETSTACK_CONF_RDC nullrdc_driver
|
2010-03-02 23:40:39 +01:00
|
|
|
#define NETSTACK_CONF_FRAMER framer_nullmac
|
|
|
|
|
|
|
|
#define QUEUEBUF_CONF_NUM 1
|
|
|
|
#define QUEUEBUF_CONF_REF_NUM 1
|
|
|
|
#define ROUTE_CONF_ENTRIES 4
|
|
|
|
|
|
|
|
#endif /* WITH_UIP */
|
|
|
|
|
2006-06-18 00:41:10 +02:00
|
|
|
/**
|
|
|
|
* The statistics data type.
|
|
|
|
*
|
|
|
|
* This datatype determines how high the statistics counters are able
|
|
|
|
* to count.
|
|
|
|
*/
|
|
|
|
typedef unsigned short uip_stats_t;
|
|
|
|
|
2008-07-08 11:36:48 +02:00
|
|
|
#define UIP_CONF_ICMP_DEST_UNREACH 1
|
2006-06-18 00:41:10 +02:00
|
|
|
|
2008-07-08 11:36:48 +02:00
|
|
|
#define UIP_CONF_IP_FORWARD 1
|
|
|
|
#define UIP_CONF_DHCP_LIGHT
|
|
|
|
#define UIP_CONF_LLH_LEN 0
|
|
|
|
#define UIP_CONF_BUFFER_SIZE 110
|
|
|
|
#define UIP_CONF_RECEIVE_WINDOW (UIP_CONF_BUFFER_SIZE - 40)
|
2006-06-18 00:41:10 +02:00
|
|
|
#define UIP_CONF_MAX_CONNECTIONS 4
|
2010-03-02 23:40:39 +01:00
|
|
|
#define UIP_CONF_MAX_LISTENPORTS 4
|
|
|
|
#define UIP_CONF_UDP_CONNS 3
|
2006-06-18 00:41:10 +02:00
|
|
|
#define UIP_CONF_FWCACHE_SIZE 1
|
|
|
|
#define UIP_CONF_BROADCAST 1
|
2008-07-08 11:36:48 +02:00
|
|
|
#define UIP_ARCH_IPCHKSUM 1
|
|
|
|
#define UIP_CONF_UDP_CHECKSUMS 1
|
|
|
|
#define UIP_CONF_PINGADDRCONF 0
|
|
|
|
#define UIP_CONF_LOGGING 0
|
|
|
|
#define UIP_CONF_RESOLV_ENTRIES 1
|
|
|
|
|
|
|
|
#define UIP_CONF_TCP_SPLIT 0
|
2006-06-18 00:41:10 +02:00
|
|
|
|
|
|
|
#define LOADER_CONF_ARCH "loader/loader-arch.h"
|
|
|
|
|
2010-02-09 07:52:26 +01:00
|
|
|
#define ELFLOADER_CONF_TEXT_IN_ROM 1
|
2006-06-18 00:41:10 +02:00
|
|
|
#define ELFLOADER_CONF_DATAMEMORY_SIZE 100
|
|
|
|
#define ELFLOADER_CONF_TEXTMEMORY_SIZE 0x1000
|
|
|
|
|
2010-03-02 23:40:39 +01:00
|
|
|
#define WEBSERVER_CONF_CGI_CONNS 1
|
|
|
|
|
2006-06-18 00:41:10 +02:00
|
|
|
/* LEDs ports. */
|
|
|
|
#define LEDS_PxDIR P2DIR
|
|
|
|
#define LEDS_PxOUT P2OUT
|
|
|
|
#define LEDS_CONF_RED 0x01
|
|
|
|
#define LEDS_CONF_GREEN 0x02
|
|
|
|
#define LEDS_CONF_YELLOW 0x04
|
|
|
|
|
2009-07-07 15:06:56 +02:00
|
|
|
#ifdef PROJECT_CONF_H
|
|
|
|
#include PROJECT_CONF_H
|
|
|
|
#endif /* PROJECT_CONF_H */
|
|
|
|
|
2006-06-18 00:41:10 +02:00
|
|
|
#endif /* __CONTIKI_CONF_H__ */
|