Clean up the code. Manage the reconnection. Use the lwip error, insted
[bertos.git] / bertos / drv / flash25.h
index 96aab7489eacd0b2a6b79c9dc559569686e85298..921e1b5cf6560a12373530baca559d68f1af772d 100644 (file)
@@ -47,7 +47,7 @@
 #include "cfg/cfg_flash25.h"
 #include <cfg/compiler.h>
 
-#include <kern/kfile.h>
+#include <io/kfile.h>
 
 /**
  * Type definition for serial flash memory.
@@ -99,7 +99,7 @@ INLINE Flash25 * FLASH25_CAST(KFile *fd)
        #define FLASH25_SECTOR_SIZE        65536UL // Section size in byte
        #define FLASH25_MEM_SIZE           FLASH25_NUM_SECTOR * FLASH25_SECTOR_SIZE
        #define FLASH25_NUM_PAGE           FLASH25_MEM_SIZE / FLASH25_PAGE_SIZE
-#elif
+#else
        #error Nothing memory defined in CONFIG_FLASH25 are support.
 #endif