SWI_enable
2-436
C Interface
Syntax
SWI_enable();
Parameters
Void
Return Value
Void
Reentrant
yes
Description
SWI_disable and SWI_enable control software interrupt processing.
SWI_disable disables all other SWI functions from running until
SWI_enable is called. Hardware interrupts can still run. See the
SWI_disable section for details.
SWI_disable calls can be nested. The number of nesting levels is stored
internally. SWI handling is not be reenabled until SWI_enable has been
called as many times as SWI_disable.
SWI_enable results in a context switch if a higher-priority SWI is ready to
run.
Constraints and
Calling Context
❏
The calls to HWI_enter and HWI_exit are required in any HWI that
schedules SWIs. They automatically disable and reenable SWI
handling. You should not call SWI_disable or SWI_enable within a
HWI.
❏
SWI_enable cannot be called from the program’s main() function.
❏
Do not call SWI_enable when SWIs are already enabled. If you do
so, the subsequent call to SWI_disable will not disable SWI
processing.
See Also
HWI_disable
HWI_enable
SWI_disable
SWI_enable
Enable software interrupts