Contiki 2.5
contiki-conf.h
1 #ifndef CONTIKI_CONF_H
2 #define CONTIKI_CONF_H
3 
4 #define HAVE_STDINT_H
5 #include "msp430def.h"
6 
7 #define WITH_SD 0
8 
9 #define NETSTACK_CONF_RADIO cc1020_driver
10 #define NETSTACK_CONF_RDC lpp_driver
11 #define NETSTACK_CONF_MAC csma_driver
12 #define NETSTACK_CONF_NETWORK rime_driver
13 #define NETSTACK_CONF_FRAMER framer_nullmac
14 
15 #define NETSTACK_CONF_RDC_CHANNEL_CHECK_RATE 8
16 
17 #define ENERGEST_CONF_ON 1
18 
19 #define IRQ_PORT1 0x01
20 #define IRQ_PORT2 0x02
21 #define IRQ_ADC 0x03
22 
23 /* MSP430 information memory */
24 #define INFOMEM_START 0x1000
25 #define INFOMEM_BLOCK_SIZE 128
26 #define INFOMEM_NODE_ID 0x0000 /* - 0x0004 */
27 
28 #define CC_CONF_REGISTER_ARGS 1
29 #define CC_CONF_FUNCTION_POINTER_ARGS 1
30 #define CC_CONF_INLINE inline
31 #define CC_CONF_VA_ARGS 1
32 
33 #define LPP_CONF_LISTEN_TIME 2
34 #define LPP_CONF_OFF_TIME (CLOCK_SECOND - (LPP_CONF_LISTEN_TIME))
35 #define QUEUEBUF_CONF_NUM 4
36 
37 
38 #define CCIF
39 #define CLIF
40 
41 /* Clear channel assessment timeout for sending with the CC1020 radio. (ms) */
42 #define CC1020_CONF_CCA_TIMEOUT 10
43 
44 /* Clock */
45 typedef unsigned clock_time_t;
46 #define CLOCK_CONF_SECOND 64
47 #define F_CPU 2457600uL /* CPU target speed in Hz. */
48 
49 #define BAUD2UBR(baud) (F_CPU/(baud))
50 
51 #include "ctk/ctk-vncarch.h"
52 
53 #define LOG_CONF_ENABLED 0
54 
55 /**
56  * The statistics data type.
57  *
58  * This datatype determines how high the statistics counters are able
59  * to count.
60  */
61 typedef uint16_t uip_stats_t;
62 
63 typedef int bool;
64 #define TRUE 1
65 #define FALSE 0
66 
67 #define UIP_CONF_ICMP_DEST_UNREACH 1
68 #define UIP_CONF_DHCP_LIGHT
69 #define UIP_CONF_LLH_LEN 0
70 #define UIP_CONF_BUFFER_SIZE 116
71 #define UIP_CONF_RECEIVE_WINDOW (UIP_CONF_BUFFER_SIZE - 40)
72 #define UIP_CONF_MAX_CONNECTIONS 4
73 #define UIP_CONF_MAX_LISTENPORTS 8
74 #define UIP_CONF_UDP_CONNS 8
75 #define UIP_CONF_FWCACHE_SIZE 20
76 #define UIP_CONF_BROADCAST 1
77 #define UIP_ARCH_IPCHKSUM 1
78 #define UIP_CONF_UDP_CHECKSUMS 1
79 #define UIP_CONF_PINGADDRCONF 0
80 #define UIP_CONF_LOGGING 0
81 
82 #define LOADER_CONF_ARCH "loader/loader-arch.h"
83 
84 #define ELFLOADER_CONF_DATAMEMORY_SIZE 100
85 #define ELFLOADER_CONF_TEXTMEMORY_SIZE 0x1000
86 
87 /* LEDs ports MSB430 */
88 #define LEDS_PxDIR P5DIR
89 #define LEDS_PxOUT P5OUT
90 #define LEDS_CONF_RED 0x80
91 #define LEDS_CONF_GREEN 0x00
92 #define LEDS_CONF_YELLOW 0x00
93 
94 #endif /* !CONTIKI_CONF_H */