#define boot_page_fill_safe(address,data) \
	do { \
    boot_spm_busy_wait();                       \
    eeprom_busy_wait();                         \
    boot_page_fill(address, data);              \
} while (0) 

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