Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor NVStore code, following PR comments:
- Add missing documentation in shared_lock and flash wrapper include files. - Fix include files (correctness and order). - Move configuration of addresses and sizes from targets.json to mbed_lib.json. - Change function parameters from pointers to references. - Remove unnecessary NVSTORE_THREAD_SAFE and NVSTORE_PROBE_ONLY defines.
- Loading branch information
David Saada
committed
Jan 24, 2018
1 parent
9091f19
commit f9da807
Showing
9 changed files
with
295 additions
and
263 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
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,10 +1,40 @@ | ||
{ | ||
"name": "nvstore", | ||
"config": { | ||
"num_types": { | ||
"macro_name": "NVSTORE_MAX_KEYS", | ||
"value": 16, | ||
"help": "Maximal number of allowed NVStore keys" | ||
} | ||
} | ||
"name": "nvstore", | ||
"config": { | ||
"num_types": { | ||
"macro_name": "NVSTORE_MAX_KEYS", | ||
"value": 16, | ||
"help": "Maximal number of allowed NVStore keys" | ||
}, | ||
"area_1_address": { | ||
"macro_name": "NVSTORE_AREA_1_ADDRESS", | ||
"help": "Area 1 address" | ||
}, | ||
"area_1_size": { | ||
"macro_name": "NVSTORE_AREA_1_SIZE", | ||
"help": "Area 1 size" | ||
}, | ||
"area_2_address": { | ||
"macro_name": "NVSTORE_AREA_2_ADDRESS", | ||
"help": "Area 2 address" | ||
}, | ||
"area_2_size": { | ||
"macro_name": "NVSTORE_AREA_2_SIZE", | ||
"help": "Area 2 size" | ||
} | ||
}, | ||
"target_overrides": { | ||
"K64F": { | ||
"area_1_address": "0xFE000", | ||
"area_1_size" : "0x1000", | ||
"area_2_address": "0xFF000", | ||
"area_2_size" : "0x1000" | ||
}, | ||
"K82F": { | ||
"area_1_address": "0x3E000", | ||
"area_1_size" : "0x1000", | ||
"area_2_address": "0x3F000", | ||
"area_2_size" : "0x1000" | ||
} | ||
} | ||
} |
Oops, something went wrong.