isDI
BOOL isDI( UINT intsts )
intsts CPU interrupt status (details are implementation-dependent)
Return code:
TRUE (not 0): Interrupts disabled
FALSE: Interrupts enabled
Gets the status of external interrupt disabling stored in intsts.
Interrupts disabled status is the status in which µT-Kernel determines that interrupts are disabled.
intsts must be the value stored by DI(). If any other value is specified, the behavior is not guaranteed.
Sample usage:
void foo()
{
UINT intsts;
DI(intsts);
if ( isDI(intsts) ) {
/* Interrupts were already disabled at the time this function was called. */
} else {
/* Interrupts were enabled at the time this function was called. */
}
EI(intsts);
}

Comments
Click here to Post a Comment