EnableInterrupts

From chipKIT
Jump to: navigation, search

Synopsis

 uint32_t enableInterrupts(void)

Description

'enableInterrupts() turns on the interrupt system allowing interrupts to be serviced.

Return Value

The previous state of the interrupt system which may be used with restoreInterrupts() to return the interrupt system to the previous settings.

Conforming To

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

Examples

Enable and restore interrupts:

 uint32_t s = enableInterrupts();
 // Perform operations
 restoreInterrupts(s);

See Also

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