X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=bertos%2Fio%2Fkblock.h;h=9ac358ce37e34e01122a924c55018fea8de2b2ca;hb=8e6b1e394127c3e1635dffd1aa424b4971ef8a4f;hp=c0d99c0abf83088772cbcd8c4f3d3c5e88de07d7;hpb=5fd323fa3c1ac486d973338e575b34e9948bfb69;p=bertos.git 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.