add(storage): implement LittleFS initialization and static file handling

This commit is contained in:
HendrikRauh 2026-03-05 19:50:59 +01:00
parent 99cb820b0c
commit cac63b10d7
8 changed files with 189 additions and 38 deletions

View file

@ -0,0 +1,29 @@
#ifndef STORAGE_H
#define STORAGE_H
#include "esp_err.h"
#ifdef __cplusplus
extern "C"
{
#endif
/**
* @brief Initialize and mount LittleFS filesystem
*
* @return ESP_OK on success, error code otherwise
*/
esp_err_t storage_init(void);
/**
* @brief Get the mount point for the LittleFS filesystem
*
* @return Pointer to the mount point string (e.g., "/data")
*/
const char *storage_get_mount_point(void);
#ifdef __cplusplus
}
#endif
#endif /* STORAGE_H */