1、【修正】一处预编译宏定义书写错误;

2、【完善】部分注释代码。

Signed-off-by: armink <armink.ztl@gmail.com>
pull/7/head
armink 10 years ago
parent 76d65c9042
commit 610d1af242

@ -51,7 +51,7 @@ extern "C" {
#error "Please configure backup area start address (in ef_cfg.h)"
#endif
#if !defined(EF_USING_ENV)
#if !defined(EF_ERASE_MIN_SIZE)
#error "Please configure minimum size of flash erasure (in ef_cfg.h)"
#endif
@ -67,7 +67,7 @@ if (!(EXPR)) \
while (1); \
}
/* EasyFlash software version number */
#define EF_SW_VERSION "1.07.29"
#define EF_SW_VERSION "1.08.27"
typedef struct _eflash_env{
char *key;

@ -31,8 +31,8 @@
* This all Backup Area Flash storage index. All used flash area configure is under here.
* |----------------------------| Storage Size
* | Environment variables area | ENV area size @see ENV_AREA_SIZE
* | 1.system section | ENV_SYSTEM_SIZE
* | 2:data section | ENV_AREA_SIZE - ENV_SYSTEM_SIZE
* | 1.system section | ENV system section size
* | 2:data section | ENV_AREA_SIZE - ENV system section size
* |----------------------------|
* | Saved log area | Log area size @see LOG_AREA_SIZE
* |----------------------------|

@ -73,7 +73,7 @@ EfErrCode ef_log_init(void) {
* Find the log store start address and end address.
* It's like a ring buffer which implement by flash.
* The flash log area has two state when find start address and end address.
* state 1 state 2
* state 1 state 2
* |============| |============|
* log area start--> |############| <-- start address |############| <-- end address
* |############| | empty |

Loading…
Cancel
Save