TSK_enable
Application Program Interface
2-491
C Interface
Syntax
TSK_enable();
Parameters
Void
Return Value
Void
Description
TSK_enable is used to reenable the DSP/BIOS task scheduler after
TSK_disable has been called. Since TSK_disable calls can be nested,
the task scheduler is not enabled until TSK_enable is called the same
number of times as TSK_disable.
A task switch occurs when calling TSK_enable only if there exists a
TSK_READY task whose priority is greater than the currently executing
task.
Constraints and
Calling Context
❏
Do not call any function that can cause the current task to block within
a TSK_disable/TSK_enable block. For example, SEM_pend (if
timeout is non-zero), TSK_sleep, TSK_yield, and MEM_alloc can all
cause blocking. For a complete list, see Section A.1,
❏
TSK_enable cannot be called from a SWI or HWI.
❏
TSK_enable cannot be called from the program’s main() function.
❏
Do not call TSK_enable when TSKs are already enabled. If you do
so, the subsequent call to TSK_disable will not disable TSK
processing.
See Also
TSK_enable
Enable DSP/BIOS task scheduler