TSK Module
Application Program Interface
2-479
❏
Switch function
. The name of a function to call when any task switch
occurs. This function can give the application access to both the
current and next task handles. The TSK Module topic describes the
Switch function.
Tconf Name: SWITCHFXN
Type: Extern
Example:
bios.TSK.SWITCHFXN =
prog.extern("tskSwitch");
❏
Call ready function
. Check this box if you want a function to be
called when any task becomes ready to run.
Tconf Name: CALLREADYFXN
Type: Bool
Example:
bios.TSK.CALLREADYFXN = false;
❏
Ready function
. The name of a function to call when any task
becomes ready to run. The TSK Module topic describes the Ready
function.
Tconf Name: READYFXN
Type: Extern
Example:
bios.TSK.READYFXN =
prog.extern("tskReady");
TSK Object Properties
To create a TSK object in a configuration script, use the following syntax.
The Tconf examples that follow assume the object has been created as
shown here.
var myTsk = bios.TSK.create("myTsk");
The following properties can be set for a TSK object in the TSK Object
Properties dialog of the DSP/BIOS Configuration Tool or in a Tconf script:
General tab
❏
comment
. Type a comment to identify this TSK object.
Tconf Name: comment
Type: String
Example:
myTsk.comment = "my TSK";
❏
Automatically allocate stack
. Check this box if you want the task’s
private stack space to be allocated automatically when this task is
created. The task’s context is saved in this stack before any higher-
priority task is allowed to block this task and run.
Tconf Name: autoAllocateStack
Type: Bool
Example:
myTsk.autoAllocateStack = true;
❏
Manually allocated stack
. If you did not check the box to
Automatically allocate stack, type the name of the manually allocated
stack to use for this task.
For ’C55x, the manually allocated stack must be large enough to
accommodate both the stack and the system stack (sysstack) on the