-/**
- * FlashAvr KFile context structure.
- * DEPREACTED STRUCTURE!
- * Use Flash instead
- *
- * \{
- */
-typedef struct FlashAvr
-{
- /**
- * 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[SPM_PAGESIZE];
-} FlashAvr;
-/* \} */
-
-void flash_hw_init(struct Flash *fd);
-
-/**
- * WARNING!
- * This function is DEPRECADED!
- * use the flash module instead.
- */
-INLINE void flash_avr_init(struct FlashAvr *fd)
-{
- flash_hw_init((struct Flash *)fd);
-}
+#if !CONFIG_FLASH_DISABLE_OLD_API
+ /* For backwards compatibility */
+ #define FlashAvr Flash
+#endif /* !CONFIG_FLASH_DISABLE_OLD_API */