Fix for ChibiOS 2.3.4
[gnuk/neug.git] / src / chconf.h
1 /* ChibiOS/RT configuration file */
2
3 #ifndef _CHCONF_H_
4 #define _CHCONF_H_
5
6 #include <config.h>
7 #ifdef DFU_SUPPORT
8 #define CORTEX_VTOR_INIT 0x00003000
9 #endif
10
11 #define CH_FREQUENCY                    1000
12 #define CH_TIME_QUANTUM                 20
13 #define CH_USE_NESTED_LOCKS             FALSE
14 #define CH_MEMCORE_SIZE                 0 /* Whole RAM */
15 #define CH_NO_IDLE_THREAD               FALSE
16 #define CH_OPTIMIZE_SPEED               TRUE
17 #define CH_USE_REGISTRY                 TRUE
18 #define CH_USE_WAITEXIT                 TRUE
19 #define CH_USE_SEMAPHORES               FALSE
20 #define CH_USE_SEMAPHORES_PRIORITY      FALSE
21 #define CH_USE_SEMSW                    FALSE
22 #define CH_USE_MUTEXES                  TRUE
23 #define CH_USE_CONDVARS                 TRUE
24 #define CH_USE_CONDVARS_TIMEOUT         TRUE
25 #define CH_USE_EVENTS                   TRUE /* We use this! */
26 #define CH_USE_EVENTS_TIMEOUT           TRUE /* We use this! */
27 #define CH_USE_MESSAGES                 FALSE
28 #define CH_USE_MESSAGES_PRIORITY        FALSE
29 #define CH_USE_MAILBOXES                FALSE
30 #define CH_USE_QUEUES                   TRUE
31 #define CH_USE_MEMCORE                  TRUE
32 #define CH_USE_HEAP                     TRUE
33 #define CH_USE_MALLOC_HEAP              FALSE
34 #define CH_USE_MEMPOOLS                 FALSE
35 #define CH_USE_DYNAMIC                  TRUE
36
37 /* Debug options */
38 #define CH_DBG_ENABLE_CHECKS            FALSE
39 #define CH_DBG_ENABLE_ASSERTS           FALSE
40 #define CH_DBG_ENABLE_TRACE             FALSE
41 #define CH_DBG_ENABLE_STACK_CHECK       TRUE
42 #define CH_DBG_FILL_THREADS             FALSE
43 #define CH_DBG_THREADS_PROFILING        FALSE
44
45 #define THREAD_EXT_FIELDS                                               \
46   /* Add threads custom fields here.*/                                  \
47
48 #define THREAD_EXT_INIT(tp) {                                           \
49   /* Add threads initialization code here.*/                            \
50 }
51
52 #define THREAD_CONTEXT_SWITCH_HOOK(ntp, otp) {                              \
53   /* System halt code here.*/                                               \
54 }
55
56 #define THREAD_EXT_EXIT(tp) {                                           \
57   /* Add threads finalization code here.*/                              \
58 }
59
60 #define IDLE_LOOP_HOOK() {                                              \
61   /* Idle loop code here.*/                                             \
62 }
63
64 #define SYSTEM_TICK_EVENT_HOOK() {                                          \
65   /* System tick event code here.*/                                         \
66 }
67
68 #define SYSTEM_HALT_HOOK() {                                                \
69   /* System halt code here.*/                                               \
70 }
71
72 #endif  /* _CHCONF_H_ */