Re-Refactor code under new specs. BattFs. Nightlytest passed.
[bertos.git] / bertos / cpu / avr / drv / flash_avr.h
index 11838ebacf466864e28a29d64231a087ed1c0bde..4a0aea73f88eaacb05f61198121333d0c0ee1f8f 100644 (file)
@@ -54,7 +54,7 @@ typedef uint16_t avr_page_t;
 /**
  * FlashAvr KFile context structure.
  */
-typedef struct KFileFlashAvr
+typedef struct FlashAvrKFile
 {
        /**
         * File descriptor.
@@ -78,7 +78,7 @@ typedef struct KFileFlashAvr
        uint8_t page_buf[SPM_PAGESIZE];
 
 
-} KFileFlashAvr;
+} FlashAvrKFile;
 
 
 
@@ -88,16 +88,16 @@ typedef struct KFileFlashAvr
 #define KFT_FLASHAVR MAKE_ID('F', 'L', 'A', 'V')
 
 /**
- * Convert + ASSERT from generic KFile to KFileFlashAvr.
+ * Convert + ASSERT from generic KFile to FlashAvrKFile.
  */
-INLINE KFileFlashAvr * KFILEFLASHAVR(KFile *fd)
+INLINE FlashAvrKFile * FLASHAVRKFILE(KFile *fd)
 {
        ASSERT(fd->_type == KFT_FLASHAVR);
-       return (KFileFlashAvr *)fd;
+       return (FlashAvrKFile *)fd;
 }
 
 
-void flash_avr_init(struct KFileFlashAvr *fd);
+void flash_avr_init(struct FlashAvrKFile *fd);