8.2.15 boot_spm_busy Macro
Check if the SPM is busy.
Include
<avr/boot.h>
Prototype
int boot_spm_busy(void);
Remarks
This macro returns 1 if the SPM enable is set; 0 otherwise.
Example
#include <avr/boot.h>
int main(void)
{
if(boot_spm_busy())
altMode();
}