Mathew Swabey / SDCard

Dependents:   ELEC350_Project2 SDcard

Files at this revision

API Documentation at this revision

Comitter:
Swabey89
Date:
Wed Nov 07 19:56:55 2018 +0000
Parent:
0:0fc2cf27ff9e
Child:
2:9a5eea2adbf8
Commit message:
SDread will take arguments on how many samples to read.

Changed in this revision

SDCard.cpp Show annotated file Show diff for this revision Revisions of this file
SDCard.hpp Show annotated file Show diff for this revision Revisions of this file
--- a/SDCard.cpp	Wed Nov 07 17:21:24 2018 +0000
+++ b/SDCard.cpp	Wed Nov 07 19:56:55 2018 +0000
@@ -1,12 +1,23 @@
 #include "SDCard.hpp"
 
-void SDcard()
+void SDcard(void)
 {
-    while(true)
-    {
+        
         //puts("SD Card alive");
         //Thread::wait(3000);
         
-        
-    }
+        //Initialisation stuff
+               
+        //printf("SD card queue error, unreachable code");
+        //SDQueue.dispatch();
+}
+
+void SDread(int n)
+{
+    printf("Read %d files\n", n);
+}
+
+void SDalive(void)
+{
+    puts("Im alive\n");   
 }
\ No newline at end of file
--- a/SDCard.hpp	Wed Nov 07 17:21:24 2018 +0000
+++ b/SDCard.hpp	Wed Nov 07 19:56:55 2018 +0000
@@ -1,9 +1,15 @@
-#ifndef __sd_card__
-#define __sd_card__
+#ifndef __SD_CARD__
+#define __SD_CARD__
 
 #include "mbed.h"
 #include "sample_hardware.hpp"
+#include "serial_terminal.hpp"
+#include "mbed_events.h"
+
+extern EventQueue queue;
 
 void SDcard(void);
+void SDread(int n);
+void SDalive(void);
 
 #endif
\ No newline at end of file