Commit Graph

9 Commits (2568725d4726d20cf97dd83f4b395851db5c64ef)

Author SHA1 Message Date
Oren Cohen b9fb265690 Fix owner restoration and discard across nvstore init 2018-08-07 17:56:22 +03:00
Cruz Monrreal db73ed0751
Merge pull request #6480 from davidsaada/david_nvstore_alloc_key
NVStore: add the allocate_key API (instead of set_alloc_key)
2018-05-21 17:32:00 -05:00
Janne Kiiskila 16a27a2602 NVStore - remove Thread.h include
As this include is not actually needed. Having it will cause issues
with the bootloader, as this will cause a need to get the full
CMSIS/RTOS package etc., which would bloat the bootloader size.
2018-05-17 13:07:59 +03:00
David Saada c90182a02c NVStore: add the allocate_key API (instead of set_alloc_key)
Add the allocate_key API. This replaces the previously added set_alloc_key API
(which allocates a key and sets the value at the same time).
Reason for the change: Key allocation will typically be used by other storage
features (like StorageLite), keeping the allocated keys in another location.
Previous API created problems in the case key allocation and value setting
couldn't be done at the same time (for instance, if the set value was
derived from the allocated key, such as hash or CMAC).
2018-05-14 19:00:46 +03:00
ccli8 d52b502fea Fix typo with NVStore 2018-04-11 14:34:54 +08:00
David Saada b7bb29a301 NVStore: key management enhancements
- Define an enum for predefined keys (later filled by internal users of NVStore)
- Add the set_alloc_key API, allocating a free key from the non predefined keys
2018-03-19 12:00:47 +02:00
David Saada e891d6abf0 NVStore: Use wait_ms to delay instead of Thread::wait. 2018-02-27 12:33:27 +02:00
David Saada f43e7b1301 NVStore: Calling thread wait doesn't depend on RTOS being defined any more. 2018-02-26 23:17:59 +02:00
David Saada 2b7766a73b Add NVStore (A.K.A SOTP) feature 2018-02-26 15:57:32 +02:00