projects
/
bertos.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add the new parsing functions and a sample file for test it
[bertos.git]
/
bertos
/
fs
/
battfs.h
diff --git
a/bertos/fs/battfs.h
b/bertos/fs/battfs.h
index bcd5c556229b0a336529c0e1e731681670fa66ed..acd0f974a8e8297775caeaacbbbb58e3f6887d96 100644
(file)
--- a/
bertos/fs/battfs.h
+++ b/
bertos/fs/battfs.h
@@
-36,6
+36,12
@@
*
* \brief BattFS: a filesystem for embedded platforms (interface).
* TODO: Add detailed filesystem description.
*
* \brief BattFS: a filesystem for embedded platforms (interface).
* TODO: Add detailed filesystem description.
+ *
+ * $WIZAR_MODULE = {
+ * "name" : "battfs",
+ * "depends" : ["rotating_hash", "kfile"],
+ * "configuration" : "bertos/cfg/cfg_battfs.h"
+ * }
*/
#ifndef FS_BATTFS_H
*/
#ifndef FS_BATTFS_H
@@
-108,7
+114,7
@@
struct BattFsSuper;
/**
* Sentinel used to keep trace of unset pages in disk->page_array.
*/
/**
* Sentinel used to keep trace of unset pages in disk->page_array.
*/
-#define PAGE_UNSET_SENTINEL ((
1 << (CPU_BITS_PER_CHAR * sizeof(pgcnt_t))) - 1
)
+#define PAGE_UNSET_SENTINEL ((
pgcnt_t)((1L << (CPU_BITS_PER_CHAR * sizeof(pgcnt_t))) - 1)
)
/**
* Type interface for disk page read function.
/**
* Type interface for disk page read function.