8.2.1 boot_is_spm_interrupt Macro
Check if the store program memory interrupt is enabled.
Include
<avr/boot.h>
Prototype
int boot_is_spm_interrupt(void);
Remarks
This macro returns 1 if the SPM interrupt enable bit is set; 0 otherwise.
Example
#include <avr/boot.h>
int main(void)
{
if(boot_is_spm_interrupt())
disableMode();
}