Files
esp32-Serial-Logger/sdcard_task.h
2026-02-24 20:19:38 +00:00

26 lines
577 B
C

#ifndef SDCARD_TASK_H
#define SDCARD_TASK_H
#include <Arduino.h>
#include <SPI.h>
#include <SD.h>
#include <freertos/FreeRTOS.h>
#include <freertos/task.h>
#include "config.h"
extern volatile bool sdLoggingActive;
extern char currentLogFileName[64];
void sdTaskInit();
void sdLoggingTask(void *param);
bool sdCreateNewLogFile();
void sdStopLogging();
void sdStartLogging();
String sdGetFileList();
bool sdDeleteFile(const char *filename);
bool sdCardPresent();
String sdGetComment(const char *filename);
bool sdSetComment(const char *filename, const char *comment);
#endif