projects
/
bertos.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
lm3s1968: implement the IRQ manager.
[bertos.git]
/
bertos
/
fs
/
battfs.h
diff --git
a/bertos/fs/battfs.h
b/bertos/fs/battfs.h
index 846027271b2a484c9f95c915a10bee5ab5828f00..4c7e619d845c69847cb098725dc384351f4c3662 100644
(file)
--- a/
bertos/fs/battfs.h
+++ b/
bertos/fs/battfs.h
@@
-36,6
+36,10
@@
*
* \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.
+ *
+ * $WIZ$ module_name = "battfs"
+ * $WIZ$ module_depends = "rotating_hash", "kfile"
+ * $WIZ$ module_configuration = "bertos/cfg/cfg_battfs.h"
*/
#ifndef FS_BATTFS_H
*/
#ifndef FS_BATTFS_H
@@
-108,13
+112,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)
-
-/**
- * Type interface for disk init function.
- * \return true if all is ok, false otherwise.
- */
-typedef bool (*disk_open_t) (struct BattFsSuper *d);
+#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.
@@
-183,7
+181,7
@@
typedef uint32_t disk_size_t; ///< Type for disk sizes.
*/
typedef struct BattFsSuper
{
*/
typedef struct BattFsSuper
{
-
disk_open_t open; ///< Disk init
.
+
void *disk_ctx; ///< Disk context used by disk access functions
.
disk_page_read_t read; ///< Page read.
disk_page_load_t load; ///< Page load.
disk_buffer_write_t bufferWrite; ///< Buffer write.
disk_page_read_t read; ///< Page read.
disk_page_load_t load; ///< Page load.
disk_buffer_write_t bufferWrite; ///< Buffer write.