Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: ELEC350_Project2 SDcard
Revision 1:c3af0c26ded2, committed 2018-11-07
- 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
