From b5f1efac2381ba2a14397e0343b097e9f87c363d Mon Sep 17 00:00:00 2001 From: asterix Date: Wed, 1 Sep 2010 10:57:43 +0000 Subject: [PATCH] Add open mode flags. git-svn-id: https://src.develer.com/svnoss/bertos/trunk@4214 38d2e660-2303-0410-9eaa-f027e97ec537 --- bertos/io/kblock.h | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/bertos/io/kblock.h b/bertos/io/kblock.h index c0d99c0a..9ac358ce 100644 --- a/bertos/io/kblock.h +++ b/bertos/io/kblock.h @@ -92,9 +92,13 @@ typedef struct KBlockVTable } KBlockVTable; -#define KB_BUFFERED BV(0) ///< Internal flag: true if the KBlock has a buffer -#define KB_CACHE_DIRTY BV(1) ///< Internal flag: true if the cache is dirty -#define KB_PARTIAL_WRITE BV(2) ///< Internal flag: true if the device allows partial block write +#define KB_BUFFERED BV(0) ///< Internal flag: true if the KBlock has a buffer +#define KB_CACHE_DIRTY BV(1) ///< Internal flag: true if the cache is dirty +#define KB_PARTIAL_WRITE BV(2) ///< Internal flag: true if the device allows partial block write + +#define KB_WRITE_ONCE BV(3) ///< Allow only the one write on select block. +#define KB_OPEN_BUFF BV(4) ///< Open flash memory using page caching, allowing the modification and partial write. +#define KB_OPEN_UNBUFF BV(5) ///< Open flash memory whitout memory caching. /** * KBlock private members. -- 2.25.1