Rename "page_modified" variable in "page_dirty"
authorqwert <qwert@38d2e660-2303-0410-9eaa-f027e97ec537>
Fri, 18 Jul 2008 13:14:43 +0000 (13:14 +0000)
committerqwert <qwert@38d2e660-2303-0410-9eaa-f027e97ec537>
Fri, 18 Jul 2008 13:14:43 +0000 (13:14 +0000)
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@1496 38d2e660-2303-0410-9eaa-f027e97ec537

bertos/cpu/avr/drv/flash_avr.c
bertos/cpu/avr/drv/flash_avr.h

index 73075cde5c080bb7dec1fbea8d13605731d3669a..de1aab39fa3709f0c8cda104acbd17ea69557f88 100644 (file)
@@ -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");
 }
index bb7698aba42bb9072f9b1457d332edb7c5d60519..db6152a9244d5934b5eff0d5703094082e2d3346 100644 (file)
@@ -68,7 +68,7 @@ typedef struct KFileFlashAvr
        /**
        * Flag for checking if current page is modified.
        */
-       bool page_modified;
+       bool page_dirty;
 
 } KFileFlashAvr;