spiffs: convert host tests from Make to CMake

This commit is contained in:
radek.tandler
2022-08-25 15:23:59 +02:00
committed by BOT
parent e27e13b3dd
commit 723adae0ec
19 changed files with 188 additions and 285 deletions
+3 -2
View File
@@ -12,13 +12,14 @@
#include "freertos/task.h"
#include "freertos/semphr.h"
#include "spiffs.h"
#include "esp_vfs.h"
#include "esp_compiler.h"
#ifdef __cplusplus
extern "C" {
#endif
#define ESP_SPIFFS_PATH_MAX 15
/**
* @brief SPIFFS definition structure
*/
@@ -26,7 +27,7 @@ typedef struct {
spiffs *fs; /*!< Handle to the underlying SPIFFS */
SemaphoreHandle_t lock; /*!< FS lock */
const esp_partition_t* partition; /*!< The partition on which SPIFFS is located */
char base_path[ESP_VFS_PATH_MAX+1]; /*!< Mount point */
char base_path[ESP_SPIFFS_PATH_MAX+1]; /*!< Mount point */
bool by_label; /*!< Partition was mounted by label */
spiffs_config cfg; /*!< SPIFFS Mount configuration */
uint8_t *work; /*!< Work Buffer */