esp-idf/components/nvs_flash/src/nvs_platform.hpp

25 lines
405 B
C++
Raw Normal View History

/*
* SPDX-FileCopyrightText: 2015-2024 Espressif Systems (Shanghai) CO LTD
*
* SPDX-License-Identifier: Apache-2.0
*/
#pragma once
2016-08-17 23:08:22 +08:00
#include "esp_err.h"
2016-08-17 23:08:22 +08:00
namespace nvs
{
class Lock
2016-08-17 23:08:22 +08:00
{
public:
Lock();
~Lock();
static esp_err_t init();
static void uninit();
#ifndef LINUX_TARGET
private:
static _lock_t mSemaphore;
#endif
};
2016-08-17 23:08:22 +08:00
} // namespace nvs