56 #define TN_API_MAKE_ALIG_ARG__TYPE 1
63 #define TN_API_MAKE_ALIG_ARG__SIZE 2
217 # define NULL ((void *)0)
227 # define TRUE (1 == 1)
232 # define FALSE (1 == 0)
239 #define TN_MAKE_ALIG_SIZE(a) \
240 (((a) + (sizeof(TN_UWord) - 1)) & (~(sizeof(TN_UWord) - 1)))
243 #if (!defined TN_API_MAKE_ALIG_ARG)
244 # error TN_API_MAKE_ALIG_ARG is not defined
245 #elif (!defined TN_API_MAKE_ALIG_ARG__TYPE)
246 # error TN_API_MAKE_ALIG_ARG__TYPE is not defined
247 #elif (!defined TN_API_MAKE_ALIG_ARG__SIZE)
248 # error TN_API_MAKE_ALIG_ARG__SIZE is not defined
260 #if (TN_API_MAKE_ALIG_ARG == TN_API_MAKE_ALIG_ARG__TYPE)
261 # define TN_MAKE_ALIG(a) TN_MAKE_ALIG_SIZE(sizeof(a))
262 #elif (TN_API_MAKE_ALIG_ARG == TN_API_MAKE_ALIG_ARG__SIZE)
263 # define TN_MAKE_ALIG(a) TN_MAKE_ALIG_SIZE(a)
265 # error wrong TN_API_MAKE_ALIG_ARG
278 #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_Timeout
The value representing maximum number of system ticks to wait.
This code is returned in the following cases:
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_Timeout for details).
TNeoKernel default configuration file, to be copied as tn_cfg.h.