X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=bertos%2Fcpu%2Favr%2Fdrv%2Fflash_avr.h;h=0897132c358809eb3c024c0c9779a739479a7345;hb=4ceddcf7d53f4ddf8c4bfa78a6183ed256a1d0a5;hp=4a0aea73f88eaacb05f61198121333d0c0ee1f8f;hpb=b59de1faa4a3d4656d9ffe3e2cc513abc55fb6b3;p=bertos.git diff --git a/bertos/cpu/avr/drv/flash_avr.h b/bertos/cpu/avr/drv/flash_avr.h index 4a0aea73..0897132c 100644 --- a/bertos/cpu/avr/drv/flash_avr.h +++ b/bertos/cpu/avr/drv/flash_avr.h @@ -54,7 +54,7 @@ typedef uint16_t avr_page_t; /** * FlashAvr KFile context structure. */ -typedef struct FlashAvrKFile +typedef struct FlashAvr { /** * File descriptor. @@ -78,7 +78,7 @@ typedef struct FlashAvrKFile uint8_t page_buf[SPM_PAGESIZE]; -} FlashAvrKFile; +} FlashAvr; @@ -88,16 +88,16 @@ typedef struct FlashAvrKFile #define KFT_FLASHAVR MAKE_ID('F', 'L', 'A', 'V') /** - * Convert + ASSERT from generic KFile to FlashAvrKFile. + * Convert + ASSERT from generic KFile to FlashAvr. */ -INLINE FlashAvrKFile * FLASHAVRKFILE(KFile *fd) +INLINE FlashAvr * FLASHAVR_CAST(KFile *fd) { ASSERT(fd->_type == KFT_FLASHAVR); - return (FlashAvrKFile *)fd; + return (FlashAvr *)fd; } -void flash_avr_init(struct FlashAvrKFile *fd); +void flash_avr_init(struct FlashAvr *fd);