RestoreInterrupts

From chipKIT
Jump to: navigation, search

Synopsis

void restoreInterrupts(uint32_t st)

Description

This function restores the state of the global interrupt enable flag to a previous state. The value passed in for st should be a value previously returned by either enableInterrupts() or disableInterrupts().

Return Value

None

Conforming To

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

Examples

uint32_t st = disableInterrupts();
// Do something critical
restoreInterrupts(st);

See Also

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