blackmagic-esp32-s2/main/nvs.h

16 lines
369 B
C
Raw Normal View History

2021-12-03 00:33:06 +00:00
/**
* @file nvs.h
* @author Sergey Gavrilov (who.just.the.doctor@gmail.com)
* @version 1.0
* @date 2021-12-03
*
* NVS management
*/
2021-10-14 09:30:43 +01:00
#pragma once
2021-10-31 19:59:10 +00:00
#include <m-string.h>
#include <esp_err.h>
2021-10-14 09:30:43 +01:00
2021-10-31 19:59:10 +00:00
void nvs_init(void);
2021-12-03 00:33:06 +00:00
void nvs_erase(void);
2021-10-31 19:59:10 +00:00
esp_err_t nvs_save_string(const char* key, const mstring_t* value);
esp_err_t nvs_load_string(const char* key, mstring_t* value);