flash_lm3s.h
Go to the documentation of this file.00001 00038 #ifndef FLASH_LM3S_H 00039 #define FLASH_LM3S_H 00040 00041 #include <cpu/types.h> 00042 #include <kern/kfile.h> 00043 00044 /* Flash memory mapping */ 00045 #define FLASH_MEM_SIZE 0x40000 //< 256KiB 00046 #define FLASH_PAGE_SIZE_BYTES 0x400 //< 1KiB 00047 00048 00049 #define FLASH_PAGE_SIZE FLASH_PAGE_SIZE_BYTES 00050 00054 typedef uint32_t page_t; 00055 00056 struct Flash; 00057 00058 void flash_hw_init(struct Flash *fd); 00059 00060 #endif /* FLASH_LM3S_H */
