-#if 0
-/**
- * EmbFlash KFile context structure.
- */
-typedef struct Flash
-{
- /**
- * File descriptor.
- */
- KFile fd;
-
- /**
- * Flag for checking if current page is modified.
- */
- bool page_dirty;
-
- /**
- * Current buffered page.
- */
- page_t curr_page;
-
- /**
- * Temporary buffer cointaing data block to
- * write on flash.
- */
- uint8_t page_buf[FLASH_PAGE_SIZE];
-} Flash;
-
-/**
-* ID for FLASH
-*/
-#define KFT_FLASH MAKE_ID('F', 'L', 'A', 'S')
-
-/**
-* Convert + ASSERT from generic KFile to Flash.
-*/
-INLINE Flash * FLASH_CAST(KFile *fd)
-{
- ASSERT(fd->_type == KFT_FLASH);
- return (Flash *)fd;
-}
-
-
-MOD_DEFINE(flash);
-
-/**
- *
- * Initialize PWM hw.
- */
-INLINE void flash_init(Flash *fd)
-{
- flash_hw_init(fd);
-
- MOD_INIT(flash);
-}
-
-#endif
-