50 #include "../arch/tn_arch_detect.h"
201 # define TN_NULL ((void *)0)
211 # define TN_TRUE (1 == 1)
216 # define TN_FALSE (1 == 0)
223 #define TN_MAKE_ALIG_SIZE(a) \
224 (((a) + (sizeof(TN_UWord) - 1)) & (~(sizeof(TN_UWord) - 1)))
227 #if (!defined TN_API_MAKE_ALIG_ARG)
228 # error TN_API_MAKE_ALIG_ARG is not defined
229 #elif (!defined TN_API_MAKE_ALIG_ARG__TYPE)
230 # error TN_API_MAKE_ALIG_ARG__TYPE is not defined
231 #elif (!defined TN_API_MAKE_ALIG_ARG__SIZE)
232 # error TN_API_MAKE_ALIG_ARG__SIZE is not defined
244 #if (TN_API_MAKE_ALIG_ARG == TN_API_MAKE_ALIG_ARG__TYPE)
245 # define TN_MAKE_ALIG(a) TN_MAKE_ALIG_SIZE(sizeof(a))
246 #elif (TN_API_MAKE_ALIG_ARG == TN_API_MAKE_ALIG_ARG__SIZE)
247 # define TN_MAKE_ALIG(a) TN_MAKE_ALIG_SIZE(a)
249 # error wrong TN_API_MAKE_ALIG_ARG
262 #endif // _TN_COMMON_H
Wrong context error: returned if function is called from non-acceptable context.
Returned when user tries to perform some operation on invalid object (mutex, semaphore, etc).
Task was released from waiting forcibly because some other task called tn_task_release_wait() ...
id for fixed memory pools
TN_RCode
Result code returned by kernel services.
TN_ObjId
Magic number for object validity verification.
unsigned long TN_TickCnt
Type for system tick count, it is used by the kernel to represent absolute tick count value as well a...
This code is returned in the following cases:
Dispatch configuration: set predefined options, include user-provided cfg file as well as default cfg...
Internal kernel error, should never be returned by kernel services.
This code is returned by most of the kernel functions when wrong params were given to function...
void( TN_TaskBody)(void *param)
Prototype for task body function.
Wrong task state error: requested operation requires different task state.
Object for whose event task was waiting is deleted.
Timeout (consult TN_TickCnt for details).