/**
* FlashAvr KFile context structure.
*/
-typedef struct KFileFlashAvr
+typedef struct FlashAvr
{
/**
* File descriptor.
uint8_t page_buf[SPM_PAGESIZE];
-} KFileFlashAvr;
+} FlashAvr;
#define KFT_FLASHAVR MAKE_ID('F', 'L', 'A', 'V')
/**
- * Convert + ASSERT from generic KFile to KFileFlashAvr.
+ * Convert + ASSERT from generic KFile to FlashAvr.
*/
-INLINE KFileFlashAvr * KFILEFLASHAVR(KFile *fd)
+INLINE FlashAvr * FLASHAVR_CAST(KFile *fd)
{
ASSERT(fd->_type == KFT_FLASHAVR);
- return (KFileFlashAvr *)fd;
+ return (FlashAvr *)fd;
}
-void flash_avr_init(struct KFileFlashAvr *fd);
+void flash_avr_init(struct FlashAvr *fd);