TSK Module
Application Program Interface
2-477
The Switch function and Ready function are called in such a way that they
can use only functions allowed within a SWI handler. See Appendix A,
Function Callability Table, for a list of functions that can be called by SWI
handlers. There are no real constraints on what functions are called via
the Create function, Delete function, or Exit function.
TSK Manager
Properties
The following global properties can be set for the TSK module in the TSK
Manager Properties dialog of the DSP/BIOS Configuration Tool or in a
Tconf script:
❏
Enable TSK Manager
. If no tasks are used by the program other
than TSK_idle, you can optimize the program by disabling the task
manager. The program must then not use TSK objects created with
either Tconf or the TSK_create function. If the task manager is
disabled, the idle loop still runs and uses the system stack instead of
a task stack.
Tconf Name: ENABLETSK
Type: Bool
Example:
bios.TSK.ENABLETSK = true;
❏
Object Memory
. The memory segment that contains the TSK
objects created with Tconf.
Tconf Name: OBJMEMSEG
Type: Reference
Example:
bios.TSK.OBJMEMSEG = prog.get("myMEM");
❏
Default stack size
. The default size of the stack (in MADUs) used by
tasks. You can override this value for an individual task you create
with Tconf or TSK_create. The estimated minimum task size is
shown in the status bar of the DSP/BIOS Configuration Tool. This
property applies to TSK objects created both with Tconf and with
TSK_create.
Tconf Name: STACKSIZE
Type: Int16
Example:
bios.TSK.STACKSIZE = 1024;
❏
Default systack size
. This property defines the size (in MADUs) of
the system stack.
Tconf Name: SYSSTACKSIZE
Type: Int16
Example:
bios.TSK.SYSSTACKSIZE = 256;
❏
Stack segment for dynamic tasks
. The default memory segment to
contain task stacks created at run-time with the TSK_create function.
The TSK_Attrs structure passed to the TSK_create function can
override this default. If you select MEM_NULL for this property,
creation of task objects at run-time is disabled.
Tconf Name: STACKSEG
Type: Reference
Example:
bios.TSK.STACKSEG = prog.get("myMEM");