chipKIT® Development Platform

Inspired by Arduino™

Last edit: 2021-03-21 22:34 by Majenko

EnableInterrupts

  1. Synopsis

  2. Description

  3. Return Value

  4. Conforming To

  5. Examples

  6. See Also

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()