refactor(nvs): custom allocator for all objects allocated in NVS

This commit is contained in:
Jakob Hasse
2022-11-23 14:40:38 +01:00
parent f90183adc8
commit 91f04aa877
11 changed files with 115 additions and 85 deletions
+2 -1
View File
@@ -13,6 +13,7 @@
#include "esp_partition.h"
#include <functional>
#include "nvs_handle_simple.hpp"
#include "nvs_memory_management.hpp"
#include "esp_err.h"
#include <esp_rom_crc.h>
#include "nvs_internal.h"
@@ -22,7 +23,7 @@
#include "esp_log.h"
static const char* TAG = "nvs";
class NVSHandleEntry : public intrusive_list_node<NVSHandleEntry> {
class NVSHandleEntry : public intrusive_list_node<NVSHandleEntry>, public ExceptionlessAllocatable {
public:
NVSHandleEntry(nvs::NVSHandleSimple *handle, const char* part_name)
: nvs_handle(handle),