Contiki 2.5
contiki-conf.h
1 #ifndef __CONTIKI_CONF_H__
2 #define __CONTIKI_CONF_H__
3 
4 #include<stdint.h>
5 
6 #define CCIF
7 #define CLIF
8 
9 typedef unsigned short clock_time_t;
10 #define CLOCK_CONF_SECOND 125
11 /* Maximum tick interval is 0xffff/125 = 524 seconds */
12 #define RIME_CONF_BROADCAST_ANNOUNCEMENT_MAX_TIME CLOCK_CONF_SECOND * 524UL /* Default uses 600UL */
13 #define COLLECT_CONF_BROADCAST_ANNOUNCEMENT_MAX_TIME CLOCK_CONF_SECOND * 524UL /* Default uses 600UL */
14 
15 
16 #define SLIP_PORT 0
17 
18 #if UIP_CONF_IPV6
19 #define RIMEADDR_CONF_SIZE 8
20 #define UIP_CONF_ICMP6 1
21 #define UIP_CONF_UDP 1
22 #define UIP_CONF_TCP 1
23 //#define UIP_CONF_IPV6_RPL 0
24 
25 /* See uip-ds6.h */
26 #define UIP_CONF_DS6_NBR_NBU 20
27 #define UIP_CONF_DS6_DEFRT_NBU 2
28 #define UIP_CONF_DS6_PREFIX_NBU 3
29 #define UIP_CONF_DS6_ROUTE_NBU 20
30 #define UIP_CONF_DS6_ADDR_NBU 3
31 #define UIP_CONF_DS6_MADDR_NBU 0
32 #define UIP_CONF_DS6_AADDR_NBU 0
33 
34 #define NETSTACK_CONF_NETWORK sicslowpan_driver
35 #define NETSTACK_CONF_MAC nullmac_driver
36 #define SICSLOWPAN_CONF_COMPRESSION SICSLOWPAN_COMPRESSION_HC06
37 #define NETSTACK_CONF_RDC sicslowmac_driver
38 #define NETSTACK_CONF_FRAMER framer_802154
39 #define NETSTACK_CONF_RADIO rf230_driver
40 #define CHANNEL_802_15_4 26
41 /* AUTOACK receive mode gives better rssi measurements, even if ACK is never requested */
42 #define RF230_CONF_AUTOACK 1
43 /* Request 802.15.4 ACK on all packets sent (else autoretry). This is primarily for testing. */
44 #define SICSLOWPAN_CONF_ACK_ALL 0
45 /* Number of auto retry attempts 0-15 (0 implies don't use extended TX_ARET_ON mode with CCA) */
46 #define RF230_CONF_AUTORETRIES 2
47 #define SICSLOWPAN_CONF_FRAG 1
48 /* Most browsers reissue GETs after 3 seconds which stops fragment reassembly so a longer MAXAGE does no good */
49 #define SICSLOWPAN_CONF_MAXAGE 3
50 /* How long to wait before terminating an idle TCP connection. Smaller to allow faster sleep. Default is 120 seconds */
51 #define UIP_CONF_WAIT_TIMEOUT 5
52 
53 #else
54 /* ip4 should build but is largely untested */
55 #define RIMEADDR_CONF_SIZE 2
56 #define NETSTACK_CONF_NETWORK rime_driver
57 #endif /* UIP_CONF_IPV6 */
58 
59 void clock_delay(unsigned int us2);
60 
61 void clock_wait(int ms10);
62 
63 void clock_set_seconds(unsigned long s);
64 unsigned long clock_seconds(void);
65 
66 typedef unsigned short uip_stats_t;
67 
68 typedef uint8_t u8_t;
69 typedef int8_t s8_t;
70 typedef uint16_t u16_t;
71 typedef int16_t s16_t;
72 typedef uint32_t u32_t;
73 typedef int32_t s32_t;
74 
75 #endif /* __CONTIKI_CONF_H__ */