From 06c52c673046e0c9de065a21a9ba22ad78ace7e1 Mon Sep 17 00:00:00 2001
From: asterix <asterix@38d2e660-2303-0410-9eaa-f027e97ec537>
Date: Wed, 11 Aug 2010 14:42:47 +0000
Subject: [PATCH] Add other error flag. Include platform specific header.

git-svn-id: https://src.develer.com/svnoss/bertos/trunk@4167 38d2e660-2303-0410-9eaa-f027e97ec537
---
 bertos/drv/flash.h | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/bertos/drv/flash.h b/bertos/drv/flash.h
index 9119b44d..c1844e31 100644
--- a/bertos/drv/flash.h
+++ b/bertos/drv/flash.h
@@ -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 */
 
-- 
2.34.1