-
Notifications
You must be signed in to change notification settings - Fork 770
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
2、【删除】部分冗余断言; 3、【修复】几处单词拼写错误。 Signed-off-by: armink <[email protected]>
- Loading branch information
Showing
7 changed files
with
372 additions
and
178 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
The MIT License (MIT) | ||
|
||
Copyright (c) 2014-2016 Armink ([email protected]) | ||
Copyright (c) 2014-2017 Armink ([email protected]) | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining | ||
a copy of this software and associated documentation files (the | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
/* | ||
* This file is part of the EasyFlash Library. | ||
* | ||
* Copyright (c) 2014-2016, Armink, <[email protected]> | ||
* Copyright (c) 2014-2017, Armink, <[email protected]> | ||
* | ||
* Permission is hereby granted, free of charge, to any person obtaining | ||
* a copy of this software and associated documentation files (the | ||
|
@@ -67,7 +67,7 @@ if (!(EXPR)) \ | |
while (1); \ | ||
} | ||
/* EasyFlash software version number */ | ||
#define EF_SW_VERSION "2.12.08" | ||
#define EF_SW_VERSION "3.0.0" | ||
|
||
typedef struct _ef_env{ | ||
char *key; | ||
|
@@ -128,8 +128,6 @@ size_t ef_log_get_used_size(void); | |
|
||
/* ef_utils.c */ | ||
uint32_t ef_calc_crc32(uint32_t crc, const void *buf, size_t size); | ||
EfSecrorStatus ef_get_sector_status(uint32_t addr, size_t sec_size); | ||
uint32_t ef_find_sec_using_end_addr(uint32_t addr, size_t sec_size); | ||
|
||
/* ef_port.c */ | ||
EfErrCode ef_port_read(uint32_t addr, uint32_t *buf, size_t size); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
/* | ||
* This file is part of the EasyFlash Library. | ||
* | ||
* Copyright (c) 2015-2016, Armink, <[email protected]> | ||
* Copyright (c) 2015-2017, Armink, <[email protected]> | ||
* | ||
* Permission is hereby granted, free of charge, to any person obtaining | ||
* a copy of this software and associated documentation files (the | ||
|
@@ -214,7 +214,6 @@ static uint32_t get_env_start_addr(void) { | |
* @return current using data section address | ||
*/ | ||
static uint32_t get_cur_using_data_addr(void) { | ||
EF_ASSERT(cur_using_data_addr); | ||
return cur_using_data_addr; | ||
} | ||
|
||
|
@@ -233,7 +232,6 @@ static void set_cur_using_data_addr(uint32_t using_data_addr) { | |
* @return detail part start address | ||
*/ | ||
static uint32_t get_env_detail_addr(void) { | ||
EF_ASSERT(cur_using_data_addr); | ||
return get_cur_using_data_addr() + ENV_PARAM_PART_BYTE_SIZE; | ||
} | ||
|
||
|
@@ -348,8 +346,6 @@ static char *find_env(const char *key) { | |
char *env_start, *env_end, *env, *found_env = NULL; | ||
size_t key_len = strlen(key), env_len; | ||
|
||
EF_ASSERT(cur_using_data_addr); | ||
|
||
if (*key == NULL) { | ||
EF_INFO("Flash ENV name must be not empty!\n"); | ||
return NULL; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
/* | ||
* This file is part of the EasyFlash Library. | ||
* | ||
* Copyright (c) 2015-2016, Armink, <[email protected]> | ||
* Copyright (c) 2015-2017, Armink, <[email protected]> | ||
* | ||
* Permission is hereby granted, free of charge, to any person obtaining | ||
* a copy of this software and associated documentation files (the | ||
|
@@ -258,7 +258,6 @@ EfErrCode ef_copy_bl_from_bak(uint32_t bl_addr, size_t bl_size) { | |
* @return size | ||
*/ | ||
static uint32_t get_bak_app_start_addr(void) { | ||
EF_ASSERT(bak_app_start_addr); | ||
return bak_app_start_addr; | ||
} | ||
|
||
|
Oops, something went wrong.