Refactor lm3s flash module to new kblock api.
[bertos.git] / bertos / cpu / cortex-m3 / drv / flash_lm3s.h
index e70a7919fb3ca0323f680b5541e080f7d70e6675..8c8852fd775a1088a3c9cebaf215bd1cd71974f4 100644 (file)
 #ifndef FLASH_LM3S_H
 #define FLASH_LM3S_H
 
-#include <cpu/types.h>
-#include <io/kfile.h>
-
-/* Flash memory mapping */
-#define FLASH_MEM_SIZE          0x40000 //< 256KiB
-#define FLASH_PAGE_SIZE_BYTES  0x400   //< 1KiB
-
-
-#define FLASH_PAGE_SIZE    FLASH_PAGE_SIZE_BYTES
-
-/**
- * Define data type to manage page and memory address.
- */
-typedef uint32_t page_t;
-
-struct Flash;
-
-void flash_hw_init(struct Flash *fd);
-
 #endif /* FLASH_LM3S_H */