Recode files to unix newlines.
[bertos.git] / bertos / io / kblock_ram.h
index b003a601ba662c10da85bf23d599c55a778e88f9..f913b7662b2d4c2f686669df52ba9f9811263c72 100644 (file)
@@ -35,6 +35,8 @@
  * \brief KBlock interface
  */
 
+#ifndef KBLOCK_RAM_H
+#define KBLOCK_RAM_H
 
 #include "kblock.h"
 
@@ -42,6 +44,7 @@
 typedef struct KBlockRam
 {
        KBlock b;
+       uint8_t *pagebuf;
        uint8_t *membuf;
 } KBlockRam;
 
@@ -54,3 +57,6 @@ INLINE KBlockRam *KBLOCKRAM_CAST(KBlock *b)
        return (KBlockRam *)b;
 }
 
+void kblockram_init(KBlockRam *ram, void *buf, size_t size, size_t block_size);
+
+#endif /* KBLOCK_RAM_H */