Contiki 2.5
contiki-conf.h
1 
2 #ifndef __CONTIKI_CONF_H__
3 #define __CONTIKI_CONF_H__
4 
5 #include "8051def.h"
6 #include "sys/cc.h"
7 #include <ctype.h>
8 #include <string.h>
9 #include "log.h"
10 
11 /* Time type. */
12 /*typedef unsigned long clock_time_t;*/
13 typedef unsigned short clock_time_t;
14 
15 /* Defines tick counts for a second. */
16 #define CLOCK_CONF_SECOND 128
17 
18 #define rtimer_arch_now() clock_time()
19 
20 /* Memory filesystem RAM size. */
21 #define CFS_RAM_CONF_SIZE 512
22 
23 /* Logging.. */
24 #define LOG_CONF_ENABLED 0
25 
26 /* XXX argh, ugly hack to make stuff compile! */
27 #define snprintf(BUF, SIZE, ...) sprintf(BUF, __VA_ARGS__)
28 
29 #endif /* __CONTIKI_CONF_H__ */