29 lines
668 B
C
29 lines
668 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 volatile bool sdAutoStart;
|
|
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);
|
|
bool sdGetAutoStart();
|
|
void sdSetAutoStart(bool enable);
|
|
|
|
#endif
|