Add other error flag. Include platform specific header.
authorasterix <asterix@38d2e660-2303-0410-9eaa-f027e97ec537>
Wed, 11 Aug 2010 14:42:47 +0000 (14:42 +0000)
committerasterix <asterix@38d2e660-2303-0410-9eaa-f027e97ec537>
Wed, 11 Aug 2010 14:42:47 +0000 (14:42 +0000)
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@4167 38d2e660-2303-0410-9eaa-f027e97ec537

bertos/drv/flash.h

index 9119b44dfe37356550bade5576ab4e4ec5548b88..c1844e314b62439b5bf0084d811234d4c8ba88b2 100644 (file)
@@ -45,6 +45,7 @@
 #include "cfg/cfg_emb_flash.h"
 
 #include <cfg/macros.h>
+#include <cfg/compiler.h>
 
 #include <io/kblock.h>
 #include <io/kfile.h>
@@ -56,7 +57,8 @@
 #define FLASH_WR_OK             0     ///< Write ok.
 #define FLASH_NOT_ERASED     BV(1)    ///< Flash memory was not erased before to write it.
 #define FLASH_WR_PROTECT     BV(2)    ///< Write not allowed the flash memory was protected.
-#define FLASH_WR_TIMEOUT     BV(3)    ///<
+#define FLASH_WR_TIMEOUT     BV(3)    ///< Timeout while writing
+#define FLASH_WR_ERR         BV(4)    ///< Invalid command and/or a bad keywords
 
 struct FlashHardware;
 
@@ -108,6 +110,7 @@ INLINE void flash_initUnbuffered(Flash *fls)
        flash_hw_initUnbuffered(fls);
 }
 
+#include CPU_HEADER(flash)
 
 #endif /* DRV_FLASH_H */