chipKIT® Development Platform

Inspired by Arduino™

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

RestoreInterrupts

  1. Synopsis

  2. Description

  3. Return Value

  4. Conforming To

  5. Examples

  6. See Also

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