projects
/
bertos.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Recode files to unix newlines.
[bertos.git]
/
bertos
/
io
/
kblock_ram.h
diff --git
a/bertos/io/kblock_ram.h
b/bertos/io/kblock_ram.h
index b003a601ba662c10da85bf23d599c55a778e88f9..f913b7662b2d4c2f686669df52ba9f9811263c72 100644
(file)
--- a/
bertos/io/kblock_ram.h
+++ b/
bertos/io/kblock_ram.h
@@
-35,6
+35,8
@@
* \brief KBlock interface
*/
* \brief KBlock interface
*/
+#ifndef KBLOCK_RAM_H
+#define KBLOCK_RAM_H
#include "kblock.h"
#include "kblock.h"
@@
-42,6
+44,7
@@
typedef struct KBlockRam
{
KBlock b;
typedef struct KBlockRam
{
KBlock b;
+ uint8_t *pagebuf;
uint8_t *membuf;
} KBlockRam;
uint8_t *membuf;
} KBlockRam;
@@
-54,3
+57,6
@@
INLINE KBlockRam *KBLOCKRAM_CAST(KBlock *b)
return (KBlockRam *)b;
}
return (KBlockRam *)b;
}
+void kblockram_init(KBlockRam *ram, void *buf, size_t size, size_t block_size);
+
+#endif /* KBLOCK_RAM_H */