Some SD-card work for the ARM board (high level)

This commit is contained in:
bsongis
2012-05-22 18:24:48 +00:00
parent b4e881f1c0
commit b4a3f2038d
8 changed files with 268 additions and 116 deletions
+1 -9
View File
@@ -35,7 +35,7 @@
#include "ff.h"
char g_logFilename[21]; // "/O9XLOGS/M00_000.CSV\0" max required length = 21
FATFS g_FATFS_Obj;
FATFS g_FATFS_Obj; // TODO not here
FIL g_oLogFile;
int8_t g_logState = 0; // 0=closed, >0=opened, <0=error
const pm_char * g_logError = NULL;
@@ -128,14 +128,6 @@ void initLogs()
// g_logFilename should now be set appropriately.
}
const pm_char *SDCARD_ERROR(FRESULT result)
{
if (result == FR_NOT_READY)
return STR_NO_SDCARD;
else
return STR_SDCARD_ERROR;
}
void writeLogs()
{
FRESULT result;