mirror of
https://github.com/HendrikRauh/dmx-interface.git
synced 2026-03-09 05:20:21 +00:00
add(storage): implement LittleFS initialization and static file handling
This commit is contained in:
parent
99cb820b0c
commit
cac63b10d7
8 changed files with 189 additions and 38 deletions
29
components/storage/include/storage.h
Normal file
29
components/storage/include/storage.h
Normal 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 */
|
||||
Loading…
Add table
Add a link
Reference in a new issue