From: qwert Date: Fri, 18 Jul 2008 13:14:43 +0000 (+0000) Subject: Rename "page_modified" variable in "page_dirty" X-Git-Tag: 2.0.0~438 X-Git-Url: https://codewiz.org/gitweb?a=commitdiff_plain;h=20864a0b7de7b14931826c17f113f8435fea523c;p=bertos.git Rename "page_modified" variable in "page_dirty" git-svn-id: https://src.develer.com/svnoss/bertos/trunk@1496 38d2e660-2303-0410-9eaa-f027e97ec537 --- diff --git a/bertos/cpu/avr/drv/flash_avr.c b/bertos/cpu/avr/drv/flash_avr.c index 73075cde..de1aab39 100644 --- a/bertos/cpu/avr/drv/flash_avr.c +++ b/bertos/cpu/avr/drv/flash_avr.c @@ -88,7 +88,7 @@ static uint8_t page_buf[SPM_PAGESIZE]; */ static void flash_avr_flush(KFileFlashAvr *fd) { - if (fd->page_modified) + if (fd->page_dirty) { kprintf("Flushing page %d\n", fd->curr_page); @@ -129,7 +129,7 @@ static void flash_avr_flush(KFileFlashAvr *fd) */ ATOMIC(boot_rww_enable()); - fd->page_modified = false; + fd->page_dirty = false; kprintf("Done.\n"); } } @@ -193,7 +193,7 @@ static size_t flash_avr_write(struct KFile *_fd, const void *_buf, size_t size) 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; @@ -216,7 +216,7 @@ static void flash_avr_open(struct KFileFlashAvr *fd) 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"); } diff --git a/bertos/cpu/avr/drv/flash_avr.h b/bertos/cpu/avr/drv/flash_avr.h index bb7698ab..db6152a9 100644 --- a/bertos/cpu/avr/drv/flash_avr.h +++ b/bertos/cpu/avr/drv/flash_avr.h @@ -68,7 +68,7 @@ typedef struct KFileFlashAvr /** * Flag for checking if current page is modified. */ - bool page_modified; + bool page_dirty; } KFileFlashAvr;