BL4S100 User’s Manual
77
setIER
int setIER(int isr_handle, int ier);
FUNCTION DESCRIPTION
Sets the Interrupt Enable Register (IER) mask for an interrupt handler. Note that the in-
terrupt handler must be currently disabled to set the IER value. Disabling the ISR can
be done by calling
enableISR()
with a zero for the
enable
parameter.
PARAMETERS
isr_handle
index to the desired ISR
ier
bit mask of interrupts this handler services (bit positions match
RIO Interrupt Enable and Status registers)
RETURN VALUE
0 — success
-EINVAL
— Invalid parameter given.
-EPERM
— Handler is enabled, can't change IER.
SEE ALSO
addISRIn, addISROut, enableISR, tickISR