/* Set up little-endian word and fill tmp buf. */
for (i=0; i<SPM_PAGESIZE; i+=2) {
uint16_t w = buf[i] + ((uint16_t)(buf[i+1]) << 8);
boot_page_fill(addr + i, w);
}
/* Set up little-endian word and fill tmp buf. */
for (i=0; i<SPM_PAGESIZE; i+=2) {
uint16_t w = buf[i] + ((uint16_t)(buf[i+1]) << 8);
boot_page_fill(addr + i, w);
}