| 13 | #define SPI_DMA_CHAN 1 |
| 14 | |
| 15 | SPIFFS::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 | |
| 36 | SPIFFS::~SPIFFS() |
| 37 | { |
nothing calls this directly
no outgoing calls
no test coverage detected