FIL TempLogFile;\r
\r
\r
+/** ISR to handle the 500ms ticks for sampling and data logging */\r
ISR(TIMER1_COMPA_vect, ISR_BLOCK)\r
{\r
uint8_t LEDMask = LEDs_GetLEDs();\r
}\r
}\r
\r
+/** Opens the log file on the Dataflash's FAT formatted partition according to the current date */\r
void OpenLogFile(void)\r
{\r
char LogFileName[12];\r
f_lseek(&TempLogFile, TempLogFile.fsize);\r
}\r
\r
+/** Closes the open data log file on the Dataflash's FAT formatted partition */\r
void CloseLogFile(void)\r
{\r
/* Sync any data waiting to be written, unmount the storage device */\r
DS1307_SetDate(ReportParams->Day, ReportParams->Month, ReportParams->Year);\r
DS1307_SetTime(ReportParams->Hour, ReportParams->Minute, ReportParams->Second);\r
\r
+ /* If the logging interval has changed from its current value, write it to EEPROM */\r
if (LoggingInterval500MS_SRAM != ReportParams->LogInterval500MS)\r
{\r
LoggingInterval500MS_SRAM = ReportParams->LogInterval500MS;\r