8.2.6 boot_page_erase_safe Macro

Erase the flash page that contains address.

Include

<avr/boot.h>

Prototype

void boot_page_erase_safe(unsigned int address);

Remarks

Erase the flash page that contains byte address specified ater ensuring that EEPROM and SPM operations are complete.

Example

#include <avr/boot.h>
int main(void)
{
  boot_page_erase_safe(0x100);
}