MCPcopy Create free account
hub / github.com/atomic14/diy-esp32-epub-reader / SPIFFS

Method SPIFFS

lib/spiffs/src/SPIFFS.cpp:15–34  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

13#define SPI_DMA_CHAN 1
14
15SPIFFS::SPIFFS(const char *mount_point)
16{
17 m_mount_point = mount_point;
18
19 esp_vfs_spiffs_conf_t mount_cofig = {
20 .base_path = mount_point,
21 .partition_label = NULL,
22 .max_files = 5,
23 .format_if_mount_failed = true};
24
25 ESP_LOGI(TAG, "Initializing SPIFFS");
26
27 esp_err_t ret = esp_vfs_spiffs_register(&mount_cofig);
28
29 if (ret != ESP_OK)
30 {
31 ESP_LOGE(TAG, "Failed to initialize SPIFFS");
32 return;
33 }
34}
35
36SPIFFS::~SPIFFS()
37{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected