You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by ma...@apache.org on 2016/03/29 02:41:00 UTC
[15/15] incubator-mynewt-core git commit: Add a routine to report
number of free sectors.
Add a routine to report number of free sectors.
Project: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/commit/9bd0b3a8
Tree: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/tree/9bd0b3a8
Diff: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/diff/9bd0b3a8
Branch: refs/heads/develop
Commit: 9bd0b3a854aa327501fc692c208550ae3f96eb3e
Parents: b4b04c2
Author: Marko Kiiskila <ma...@runtime.io>
Authored: Mon Mar 28 17:33:34 2016 -0700
Committer: Marko Kiiskila <ma...@runtime.io>
Committed: Mon Mar 28 17:37:31 2016 -0700
----------------------------------------------------------------------
sys/fcb/include/fcb/fcb.h | 8 ++++++++
1 file changed, 8 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/blob/9bd0b3a8/sys/fcb/include/fcb/fcb.h
----------------------------------------------------------------------
diff --git a/sys/fcb/include/fcb/fcb.h b/sys/fcb/include/fcb/fcb.h
index c02280a..55332a9 100644
--- a/sys/fcb/include/fcb/fcb.h
+++ b/sys/fcb/include/fcb/fcb.h
@@ -97,6 +97,14 @@ int fcb_getnext(struct fcb *, struct fcb_entry *loc);
*/
int fcb_rotate(struct fcb *);
+/*
+ * Start using the scratch block.
+ */
int fcb_append_to_scratch(struct fcb *);
+/*
+ * How many sectors are unused.
+ */
+int fcb_free_sector_cnt(struct fcb *fcb);
+
#endif /* __SYS_FLASHVAR_H_ */