L VD
/
mbed-os-example-filesystem-sdio
The Mbed OS file system example with sdio-driver for LPC55S69_NS and DISCO_F746NG targets
Revision 3:ebff5971c078, committed 2020-11-11
- Comitter:
- elelthvd
- Date:
- Wed Nov 11 11:22:02 2020 +0800
- Parent:
- 0:5db1517e0856
- Commit message:
- Add sdio-glue
Changed in this revision
diff -r 5db1517e0856 -r ebff5971c078 .hgignore --- /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$
diff -r 5db1517e0856 -r ebff5971c078 main.cpp --- 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
diff -r 5db1517e0856 -r ebff5971c078 mbed_app.json --- 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"] } } }
diff -r 5db1517e0856 -r ebff5971c078 sdio-glue.lib --- /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