EVE 1.0
contiki-conf.h
1 #ifndef CONTIKI_CONF_H_NRF52_INCLUDED
2 #define CONTIKI_CONF_H_NRF52_INCLUDED
3 
4 #include <stdint.h>
5 #include <dev/eve-module.h>
6 #ifdef ECLIPSE_STUB_CODE_ANALYSE
7  #include <sys/lc-addrlabels.h>
8 #endif
9 
10 #define CCIF
11 #define CLIF
12 
13 #define WITH_UIP 1
14 #define WITH_ASCII 1
15 
16 #define CLOCK_CONF_SECOND 1024
17 
18 #define CLOCK_CONF_TICKLESS 1
19 
20 typedef unsigned int clock_time_t;
21 typedef unsigned int uip_stats_t;
22 
23 extern uint16_t uip_recv_wnd;
24 
25 /* NRF52 options */
26 #ifdef ENABLE_SWO
27  #define NRF52_ENABLE_SWO
28 #endif
29 
30 #ifdef ENABLE_TRACE
31  #define NRF52_ENABLE_SWO
32 #endif
33 
34 /* Watchdog configuration */
35 #define WDG_CONF_ENABLED
36 
37 /* Process event queue */
38 #define PROCESS_CONF_NUMEVENTS 32
39 
40 /* uIP configuration */
41 #define UIP_CONF_LLH_LEN 14
42 #define UIP_CONF_BROADCAST 1
43 #define UIP_CONF_LOGGING 0
44 #define UIP_CONF_BUFFER_SIZE 1514
45 
46 #define UIP_CONF_IPV6_RPL 0
47 #define UIP_CONF_TCP_FORWARD 1
48 
49 #define UIP_CONF_RECEIVE_WINDOW ({uint16_t wnd = uip_recv_wnd; uip_recv_wnd = UIP_TCP_MSS; wnd;})
50 
51 /* Prefix for relocation sections in ELF files */
52 #define CC_BYTE_ALIGNED __attribute__ ((packed, aligned(1)))
53 
54 #define COFFEE_MICRO_LOGS 0
55 #define COFFEE_APPEND_ONLY 0
56 #define COFFEE_EXTENDED_WEAR_LEVELLING 0
57 #define COFFEE_IO_SEMANTICS 1
58 
59 #ifndef FIRMWARE_START_SECTOR
60  #define FIRMWARE_START_SECTOR (2U)
61 #endif
62 #ifndef COFFEE_START_SECTOR
63  #define COFFEE_START_SECTOR (6U)
64 #endif
65 #ifndef COFFEE_SIZE
66  #define COFFEE_SIZE (EXT_FLASH_SIZE - COFFEE_START)
67 #endif
68 
69 #define ETIMER_CONF_SYNC 1
70 
71 #include <contiki-default-conf.h>
72 
73 #endif /* CONTIKI_CONF_H_NRF52_INCLUDED */
EVE module stub.