Version 0.10
[gnuk/gnuk.git] / src / chconf.h
1 /* ChibiOS/RT configuration file */
2
3 #ifndef _CHCONF_H_
4 #define _CHCONF_H_
5
6 #define CH_FREQUENCY                    1000
7 #define CH_TIME_QUANTUM                 20
8 #define CH_USE_NESTED_LOCKS             FALSE
9 #define CH_MEMCORE_SIZE                 0 /* Whole RAM */
10 #define CH_OPTIMIZE_SPEED               TRUE
11 #define CH_USE_REGISTRY                 TRUE
12 #define CH_USE_WAITEXIT                 TRUE
13 #define CH_USE_SEMAPHORES               FALSE
14 #define CH_USE_SEMAPHORES_PRIORITY      FALSE
15 #define CH_USE_SEMSW                    FALSE
16 #define CH_USE_MUTEXES                  TRUE
17 #define CH_USE_CONDVARS                 TRUE
18 #define CH_USE_CONDVARS_TIMEOUT         TRUE
19 #define CH_USE_EVENTS                   TRUE /* We use this! */
20 #define CH_USE_EVENTS_TIMEOUT           TRUE /* We use this! */
21 #define CH_USE_MESSAGES                 FALSE
22 #define CH_USE_MESSAGES_PRIORITY        FALSE
23 #define CH_USE_MAILBOXES                FALSE
24 #define CH_USE_QUEUES                   FALSE
25 #define CH_USE_MEMCORE                  TRUE
26 #define CH_USE_HEAP                     TRUE
27 #define CH_USE_MALLOC_HEAP              FALSE
28 #define CH_USE_MEMPOOLS                 FALSE
29 #define CH_USE_DYNAMIC                  TRUE
30
31 /* Debug options */
32 #define CH_DBG_ENABLE_CHECKS            FALSE
33 #define CH_DBG_ENABLE_ASSERTS           FALSE
34 #define CH_DBG_ENABLE_TRACE             FALSE
35 #define CH_DBG_ENABLE_STACK_CHECK       TRUE
36 #define CH_DBG_FILL_THREADS             FALSE
37 #define CH_DBG_THREADS_PROFILING        FALSE
38
39 #define THREAD_EXT_FIELDS                                               \
40 struct {                                                                \
41   /* Add threads custom fields here.*/                                  \
42 };
43
44 #define THREAD_EXT_INIT(tp) {                                           \
45   /* Add threads initialization code here.*/                            \
46 }
47
48 #define THREAD_EXT_EXIT(tp) {                                           \
49   /* Add threads finalization code here.*/                              \
50 }
51
52 #define IDLE_LOOP_HOOK() {                                              \
53   /* Idle loop code here.*/                                             \
54 }
55
56 #endif  /* _CHCONF_H_ */