RestoreIntEnable

From chipKIT
Jump to: navigation, search

Synopsis

void restoreIntEnable(int irq, uint32_t st)

Description

This function restores the interrupt enable flag to a previous state. The value specified in the st parameter should be a value previously returned by setIntEnable() or clearIntEnable()

Return Value

None

Conforming To

restorIntEnable() does not conform to any external API, it is unique to the chipKIT system.

Examples

uint32_t st = clearIntEnable(_TIMER_3_IRQ);
// Do something critical
restoreIntEnable(_TIMER_3_IRQ, st);

See Also

attachInterrupt(), detachInterrupt(), clearIntEnable(), clearIntFlag(), clearIntVector(), disableInterrupts(), enableInterrupts(), getIntFlag(), getIntPriority(), getIntVector(), restoreInterrupts(), setIntEnable(), setIntPriority(), setIntVector()