Go to the documentation of this file.
45 #ifndef _TN_CFG_DISPATCH_H
46 #define _TN_CFG_DISPATCH_H
48 #include "../arch/tn_arch_detect.h"
56 #define TN_API_MAKE_ALIG_ARG__TYPE 1
63 #define TN_API_MAKE_ALIG_ARG__SIZE 2
78 #undef _TN_CFG_DEFAULT_H
86 #if !defined(TN_CHECK_BUILD_CFG)
87 # error TN_CHECK_BUILD_CFG is not defined
90 #if !defined(TN_PRIORITIES_CNT)
91 # error TN_PRIORITIES_CNT is not defined
95 #if !defined(TN_CHECK_PARAM)
96 # error TN_CHECK_PARAM is not defined
99 #if !defined(TN_DEBUG)
100 # error TN_DEBUG is not defined
103 #if !defined(TN_OLD_TNKERNEL_NAMES)
104 # error TN_OLD_TNKERNEL_NAMES is not defined
107 #if !defined(TN_USE_MUTEXES)
108 # error TN_USE_MUTEXES is not defined
112 # if !defined(TN_MUTEX_REC)
113 # error TN_MUTEX_REC is not defined
115 # if !defined(TN_MUTEX_DEADLOCK_DETECT)
116 # error TN_MUTEX_DEADLOCK_DETECT is not defined
120 #if !defined(TN_TICK_LISTS_CNT)
121 # error TN_TICK_LISTS_CNT is not defined
124 #if !defined(TN_API_MAKE_ALIG_ARG)
125 # error TN_API_MAKE_ALIG_ARG is not defined
128 #if !defined(TN_PROFILER)
129 # error TN_PROFILER is not defined
132 #if !defined(TN_PROFILER_WAIT_TIME)
133 # error TN_PROFILER_WAIT_TIME is not defined
136 #if !defined(TN_INIT_INTERRUPT_STACK_SPACE)
137 # error TN_INIT_INTERRUPT_STACK_SPACE is not defined
140 #if !defined(TN_STACK_OVERFLOW_CHECK)
141 # error TN_STACK_OVERFLOW_CHECK is not defined
144 #if defined (__TN_ARCH_PIC24_DSPIC__)
145 # if !defined(TN_P24_SYS_IPL)
146 # error TN_P24_SYS_IPL is not defined
150 #if !defined(TN_DYNAMIC_TICK)
151 # error TN_DYNAMIC_TICK is not defined
154 #if !defined(TN_OLD_EVENT_API)
155 # error TN_OLD_EVENT_API is not defined
158 #if !defined(TN_FORCED_INLINE)
159 # error TN_FORCED_INLINE is not defined
162 #if !defined(TN_MAX_INLINE)
163 # error TN_MAX_INLINE is not defined
172 #if defined (__TN_ARCH_PIC24_DSPIC__)
173 # if TN_P24_SYS_IPL >= 7
174 # error TN_P24_SYS_IPL must be less than 7
176 # if TN_P24_SYS_IPL <= 0
177 # error TN_P24_SYS_IPL must be more than 0
190 #if TN_PROFILER || TN_STACK_OVERFLOW_CHECK
191 # define _TN_ON_CONTEXT_SWITCH_HANDLER 1
193 # define _TN_ON_CONTEXT_SWITCH_HANDLER 0
200 #define _TN_STACK_OVERFLOW_SIZE_ADD (TN_STACK_OVERFLOW_CHECK ? 1 : 0)
202 #endif // _TN_CFG_DISPATCH_H