TNeo  BETA v1.08-11-g97e5a6d
Macros
tn_cfg_dispatch.h File Reference

Detailed Description

Dispatch configuration: set predefined options, include user-provided cfg file as well as default cfg file.

Definition in file tn_cfg_dispatch.h.

Go to the source code of this file.

Macros

#define TN_API_MAKE_ALIG_ARG__TYPE   1
 In this case, you should use macro like this: TN_MAKE_ALIG(struct my_struct). More...
 
#define TN_API_MAKE_ALIG_ARG__SIZE   2
 In this case, you should use macro like this: TN_MAKE_ALIG(sizeof(struct my_struct)). More...
 
#define _TN_ON_CONTEXT_SWITCH_HANDLER   1
 Internal kernel definition: set to non-zero if _tn_sys_on_context_switch() should be called on context switch.
 
#define _TN_STACK_OVERFLOW_SIZE_ADD   (TN_STACK_OVERFLOW_CHECK ? 1 : 0)
 If TN_STACK_OVERFLOW_CHECK is set, we have 1-word overhead for each task stack.
 

Macro Definition Documentation

◆ TN_API_MAKE_ALIG_ARG__TYPE

#define TN_API_MAKE_ALIG_ARG__TYPE   1

In this case, you should use macro like this: TN_MAKE_ALIG(struct my_struct).

This way is used in the majority of TNKernel ports. (actually, in all ports except the one by AlexB)

Definition at line 56 of file tn_cfg_dispatch.h.

◆ TN_API_MAKE_ALIG_ARG__SIZE

#define TN_API_MAKE_ALIG_ARG__SIZE   2

In this case, you should use macro like this: TN_MAKE_ALIG(sizeof(struct my_struct)).

This way is stated in TNKernel docs and used in the port for dsPIC/PIC24/PIC32 by AlexB.

Definition at line 63 of file tn_cfg_dispatch.h.