chipKIT® Development Platform

Inspired by Arduino™

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


  1. Synopsis

  2. Description

  3. Return Value

  4. Conforming To

  5. Examples

  6. See Also


 void restoreIntEnable(int irq, uint32_t st)


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


Conforming To

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


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