Synopsis
#include <inavr.h>
unsigned char __save_interrupt(void);
Description

__save_interrupt returns the current value of the AVR status register, including the I bit, without changing the status register. You can restore the state of the interrupt flag using the __restore_interrupt intrinsic function.

__save_interrupt is an intrinsic function and produces inline code.

Portability

__save_interrupt can be used on any AVR device.

See Also

__restore_interrupt