Files
esp32-Serial-Logger/sdcard_task.h
2026-02-14 23:14:18 +00:00

24 lines
472 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();
#endif