浏览代码

Improve documentation for storage utilities

Clara Hobbs 7 年前
父节点
当前提交
28cb564032
共有 2 个文件被更改,包括 6 次插入4 次删除
  1. 2
    0
      src/storage.c
  2. 4
    4
      src/storage.h

+ 2
- 0
src/storage.c 查看文件

@@ -23,6 +23,8 @@
23 23
 #include "pd.h"
24 24
 
25 25
 
26
+/* Initialize the location of the configuration array.  PDB_CONFIG_BASE is set
27
+ * in the Makefile. */
26 28
 struct pdb_config *pdb_config_array = (struct pdb_config *) PDB_CONFIG_BASE;
27 29
 
28 30
 

+ 4
- 4
src/storage.h 查看文件

@@ -37,10 +37,10 @@ struct pdb_config {
37 37
     uint16_t _reserved[2];
38 38
 } __attribute__((packed));
39 39
 
40
-/* Status for configuration structures.  The empty status indicates that the
41
- * struct is ready to be written, including an update to the valid status.
42
- * Once the struct is no longer needed, the status is updated to invalid.
43
- * Erasing the flash page resets all structures to the empty status. */
40
+/* Status for configuration structures.  EMPTY indicates that the struct is
41
+ * ready to be written, including a status update to VALID.  Once the struct is
42
+ * no longer needed, the status is updated to INVALID.  Erasing the flash page
43
+ * resets all structures to EMPTY. */
44 44
 #define PDB_CONFIG_STATUS_INVALID 0x0000
45 45
 #define PDB_CONFIG_STATUS_VALID 0xBEEF
46 46
 #define PDB_CONFIG_STATUS_EMPTY 0xFFFF

正在加载...
取消
保存