SD card functionality

Dependents:   ELEC350_Project2 SDcard

Committer:
Swabey89
Date:
Wed Dec 19 12:02:14 2018 +0000
Revision:
8:ee8f65745141
Parent:
7:393fa8184388
Child:
10:f2b8e3b587d5
on start, attempt to initialize and set initialized state to false is unable to.

Who changed what in which revision?

UserRevisionLine numberNew contents of line
Swabey89 1:c3af0c26ded2 1 #ifndef __SD_CARD__
Swabey89 1:c3af0c26ded2 2 #define __SD_CARD__
Swabey89 0:0fc2cf27ff9e 3
Swabey89 0:0fc2cf27ff9e 4 #include "mbed.h"
Swabey89 0:0fc2cf27ff9e 5 #include "sample_hardware.hpp"
Swabey89 1:c3af0c26ded2 6 #include "serial_terminal.hpp"
Swabey89 1:c3af0c26ded2 7 #include "mbed_events.h"
Swabey89 1:c3af0c26ded2 8
Swabey89 8:ee8f65745141 9 extern bool sd_init;
Swabey89 7:393fa8184388 10 extern time_t seconds;
Swabey89 7:393fa8184388 11 extern tm* timeData;
Swabey89 3:c6e5dd2faa22 12 extern EventQueue SDqueue;
Swabey89 4:dc767b5f917b 13 extern FILE* fp;
Swabey89 4:dc767b5f917b 14 extern FATFileSystem* fs;
Swabey89 0:0fc2cf27ff9e 15
Swabey89 0:0fc2cf27ff9e 16 void SDcard(void);
Swabey89 1:c3af0c26ded2 17 void SDread(int n);
Swabey89 3:c6e5dd2faa22 18 void SDaddSample(double temp, double pressure);
Swabey89 2:9a5eea2adbf8 19 void SDdelete(int n);
Swabey89 1:c3af0c26ded2 20 void SDalive(void);
Swabey89 0:0fc2cf27ff9e 21
Swabey89 0:0fc2cf27ff9e 22 #endif