The Mbed OS file system example with sdio-driver for LPC55S69_NS and DISCO_F746NG targets

Dependencies:   sdio-glue

Files at this revision

API Documentation at this revision

Comitter:
elelthvd
Date:
Wed Nov 11 11:22:02 2020 +0800
Parent:
0:5db1517e0856
Commit message:
Add sdio-glue

Changed in this revision

.hgignore Show annotated file Show diff for this revision Revisions of this file
main.cpp Show annotated file Show diff for this revision Revisions of this file
mbed_app.json Show annotated file Show diff for this revision Revisions of this file
sdio-glue.lib Show annotated file Show diff for this revision Revisions of this file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/.hgignore	Wed Nov 11 11:22:02 2020 +0800
@@ -0,0 +1,4 @@
+^BUILD$
+^.mbed$
+^mbed-os$
+^sdio-glue$
--- a/main.cpp	Wed Nov 11 02:58:32 2020 +0000
+++ b/main.cpp	Wed Nov 11 11:22:02 2020 +0800
@@ -19,6 +19,7 @@
 #include <functional>
 
 #include "BlockDevice.h"
+#include "sdio-glue/sdio.h"
 
 // Maximum number of elements in buffer
 #define BUFFER_MAX_LEN 10
--- a/mbed_app.json	Wed Nov 11 02:58:32 2020 +0000
+++ b/mbed_app.json	Wed Nov 11 11:22:02 2020 +0800
@@ -1,7 +1,18 @@
 {
     "target_overrides": {
         "*": {
-            "platform.stdio-convert-newlines": true
+            "platform.stdio-convert-newlines": true,
+            "platform.stdio-baud-rate"       : 115200,
+            "target.components_add"          : ["SDIO"],
+            "target.device_has_add"          : ["SDIO"]
+        },
+        "LPC55S69_NS": {
+            "target.components_remove"       : ["SD"],
+	    "target.macros_add"                  : ["BUTTON1=SW2"]
+        },
+        "DISCO_F746NG": {
+            "target.components_remove"       : ["SD"],
+            "target.device_has_add"          : ["SDIO_ASYNC"]
         }
     }
 }
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sdio-glue.lib	Wed Nov 11 11:22:02 2020 +0800
@@ -0,0 +1,1 @@
+https://os.mbed.com/users/elelthvd/code/sdio-glue/#d90c6c9a7600