TSK Module
2-478
❏
Default task priority
. The default priority level for tasks that are
created dynamically with TSK_create. This property applies to TSK
objects created both with Tconf and with TSK_create.
Tconf Name: PRIORITY
Type: EnumInt
Options:
1 to 15
Example:
bios.TSK.PRIORITY = 1;
❏
TSK tick driven by
. Choose whether you want the system clock to
be driven by the PRD module or by calls to TSK_tick and TSK_itick.
This clock is used by TSK_sleep and functions such as SEM_pend
that accept a timeout argument.
Tconf Name: DRIVETSKTICK
Type: EnumString
Options:
"PRD", "User"
Example:
bios.TSK.DRIVETSKTICK = "PRD";
❏
Create function
. The name of a function to call when any task is
created. This includes tasks that are created statically and those
created dynamically using TSK_create. If you are using Tconf, do not
add an underscore before the function name; Tconf adds the
underscore needed to call a C function from assembly internally. The
TSK_create topic describes the Create function.
Tconf Name: CREATEFXN
Type: Extern
Example:
bios.TSK.CREATEFXN =
prog.extern("tskCreate");
❏
Delete function
. The name of a function to call when any task is
deleted at run-time with TSK_delete. The TSK_delete topic
describes the Delete function.
Tconf Name: DELETEFXN
Type: Extern
Example:
bios.TSK.DELETEFXN =
prog.extern("tskDelete");
❏
Exit function
. The name of a function to call when any task exits.
The TSK_exit topic describes the Exit function.
Tconf Name: EXITFXN
Type: Extern
Example:
bios.TSK.EXITFXN =
prog.extern("tskExit");
❏
Call switch function
. Check this box if you want a function to be
called when any task switch occurs.
Tconf Name: CALLSWITCHFXN
Type: Bool
Example:
bios.TSK.CALLSWITCHFXN = false;