#ifndef SDCARD_COMPONENT
#define SDCARD_COMPONENT

#include <string.h>
#include <sys/unistd.h>
#include <sys/stat.h>
#include "esp_vfs_fat.h"
#include "sdmmc_cmd.h"
#include "../hw/buscfg.h"

#define TAGSD "SDSubsys"

#define COUNTER_FILE "cnt.txt"

#define MOUNT_POINT "/sdcard"

void writeFile(FILE *f, const void *data, size_t size);

extern FILE *csvFile;
extern FILE *sensFile;

#define MAX_PATH 80

void initSD(void);

#endif