8.2.10 boot_page_write_safe Macro

Write the bootloader temporary buffer to the flash page.

Include

<avr/boot.h>

Prototype

void boot_page_write_safe(unsigned int address);

Remarks

This macro writes the bootloader temporary buffer to the flash page that corresponding to the specified address after ensuring that EEPROM and SPM operations have completed. The address is a byte address.

Example

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