components/nvs: add debugging facilities and runtime checks

Extra runtime sanity checks run when compiled for the host (i.e. with no ESP_PLATFORM define)
This commit is contained in:
Ivan Grokhotkov
2016-08-22 11:46:44 +08:00
parent 3ce433cfd1
commit f04c894123
5 changed files with 72 additions and 3 deletions
+6
View File
@@ -45,6 +45,12 @@ static intrusive_list<HandleEntry> s_nvs_handles;
static uint32_t s_nvs_next_handle = 1;
static nvs::Storage s_nvs_storage;
extern "C" void nvs_dump()
{
Lock lock;
s_nvs_storage.debugDump();
}
extern "C" esp_err_t nvs_flash_init(uint32_t baseSector, uint32_t sectorCount)
{
Lock::init();