82bd9d4dac56825eb1d7d1f1cdeb2f34c466d946
[gnuk/neug.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_NO_IDLE_THREAD               FALSE
11 #define CH_OPTIMIZE_SPEED               TRUE
12 #define CH_USE_REGISTRY                 TRUE
13 #define CH_USE_WAITEXIT                 TRUE
14 #define CH_USE_SEMAPHORES               FALSE
15 #define CH_USE_SEMAPHORES_PRIORITY      FALSE
16 #define CH_USE_SEMSW                    FALSE
17 #define CH_USE_MUTEXES                  TRUE
18 #define CH_USE_CONDVARS                 TRUE
19 #define CH_USE_CONDVARS_TIMEOUT         TRUE
20 #define CH_USE_EVENTS                   TRUE /* We use this! */
21 #define CH_USE_EVENTS_TIMEOUT           TRUE /* We use this! */
22 #define CH_USE_MESSAGES                 FALSE
23 #define CH_USE_MESSAGES_PRIORITY        FALSE
24 #define CH_USE_MAILBOXES                FALSE
25 #define CH_USE_QUEUES                   TRUE
26 #define CH_USE_MEMCORE                  TRUE
27 #define CH_USE_HEAP                     TRUE
28 #define CH_USE_MALLOC_HEAP              FALSE
29 #define CH_USE_MEMPOOLS                 FALSE
30 #define CH_USE_DYNAMIC                  TRUE
31
32 /* Debug options */
33 #define CH_DBG_ENABLE_CHECKS            FALSE
34 #define CH_DBG_ENABLE_ASSERTS           FALSE
35 #define CH_DBG_ENABLE_TRACE             FALSE
36 #define CH_DBG_ENABLE_STACK_CHECK       TRUE
37 #define CH_DBG_FILL_THREADS             FALSE
38 #define CH_DBG_THREADS_PROFILING        FALSE
39
40 #define THREAD_EXT_FIELDS                                               \
41   /* Add threads custom fields here.*/                                  \
42
43 #define THREAD_EXT_INIT(tp) {                                           \
44   /* Add threads initialization code here.*/                            \
45 }
46
47 #define THREAD_CONTEXT_SWITCH_HOOK(ntp, otp) {                              \
48   /* System halt code here.*/                                               \
49 }
50
51 #define THREAD_EXT_EXIT(tp) {                                           \
52   /* Add threads finalization code here.*/                              \
53 }
54
55 #define IDLE_LOOP_HOOK() {                                              \
56   /* Idle loop code here.*/                                             \
57 }
58
59 #define SYSTEM_TICK_EVENT_HOOK() {                                          \
60   /* System tick event code here.*/                                         \
61 }
62
63 #define SYSTEM_HALT_HOOK() {                                                \
64   /* System halt code here.*/                                               \
65 }
66
67 #endif  /* _CHCONF_H_ */