boot_page_erase_safe

boot_page_erase_safe(address)

Same as boot_page_erase() except it waits for eeprom and spm operations to complete before erasing the page.