32 lines
577 B
C
32 lines
577 B
C
#ifndef _SPIFFS_H
|
|
#define _SPIFFS_H
|
|
|
|
#include <stdio.h>
|
|
#include <string.h>
|
|
#include <sys/unistd.h>
|
|
#include <sys/stat.h>
|
|
#include "esp_err.h"
|
|
#include "esp_log.h"
|
|
#include "esp_spiffs.h"
|
|
|
|
|
|
#define FILE_TAG "spiffs"
|
|
|
|
|
|
typedef struct
|
|
{
|
|
uint8_t type;
|
|
uint32_t file_size;
|
|
uint16_t buff_size;
|
|
char file_name[20];
|
|
uint8_t buff[256];
|
|
}spiffs_data_t;
|
|
|
|
extern esp_err_t init_spiffs(void);
|
|
extern esp_err_t sdmmc_init(void);
|
|
extern void list_files_in_spiffs();
|
|
// void Read_file(char* filename, Read_data data,uint16_t size);
|
|
|
|
|
|
|
|
#endif |