diff --git a/easyflash/inc/easyflash.h b/easyflash/inc/easyflash.h index cc7f374..84ca247 100644 --- a/easyflash/inc/easyflash.h +++ b/easyflash/inc/easyflash.h @@ -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; diff --git a/easyflash/src/easyflash.c b/easyflash/src/easyflash.c index c4fdfd5..62ba994 100644 --- a/easyflash/src/easyflash.c +++ b/easyflash/src/easyflash.c @@ -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 * |----------------------------| diff --git a/easyflash/src/ef_log.c b/easyflash/src/ef_log.c index 44f00c8..187df82 100644 --- a/easyflash/src/ef_log.c +++ b/easyflash/src/ef_log.c @@ -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 |