SWI_post
Application Program Interface
2-445
C Interface
Syntax
SWI_post(swi);
Parameters
SWI_Handle swi;
/* SWI object handle*/
Return Value
Void
Reentrant
yes
Description
SWI_post is used to post a software interrupt regardless of the mailbox
value. No change is made to the SWI object’s mailbox value.
To have a PRD object post a SWI object’s function, you can set
_SWI_post as the function property of a PRD object and the name of the
SWI object you want to post its function as the arg0 property.
SWI_post results in a context switch if the SWI is higher priority than the
currently executing thread.
Constraints and
Calling Context
❏
If this macro (API) is invoked outside the context of an HWI, interrupts
must be enabled.
❏
When called within an HWI, the code sequence calling SWI_post
must be either wrapped within an HWI_enter/HWI_exit pair or
invoked by the HWI dispatcher.
See Also
SWI_andn
SWI_dec
SWI_getmbox
SWI_inc
SWI_or
SWI_self
SWI_post
Post a software interrupt