*/
static void flash_avr_flush(KFileFlashAvr *fd)
{
- if (fd->page_modified)
+ if (fd->page_dirty)
{
kprintf("Flushing page %d\n", fd->curr_page);
*/
ATOMIC(boot_rww_enable());
- fd->page_modified = false;
+ fd->page_dirty = false;
kprintf("Done.\n");
}
}
size_t wr_len = MIN(size, SPM_PAGESIZE - page_addr);
memcpy(page_buf + page_addr, buf, wr_len);
- fd->page_modified = true;
+ fd->page_dirty = true;
buf += wr_len;
fd->fd.seek_pos += wr_len;
fd->fd.seek_pos = 0;
fd->fd.size = (uint16_t)(FLASHEND - CONFIG_FLASH_AVR_BOOTSIZE + 1);
- fd->page_modified = false;
+ fd->page_dirty = false;
kprintf("Flash file opened\n");
}