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.
Dependencies: SDFileSystem mbed
Fork of SSP_SDcard_Helloworld_WIZwiki-W7500 by
Diff: main.cpp
- Revision:
- 3:017b99069995
- Parent:
- 2:343b407cf6aa
- Child:
- 4:68cb56ba60c6
--- a/main.cpp Mon Jun 29 02:18:54 2015 +0000
+++ b/main.cpp Mon Jun 29 03:38:40 2015 +0000
@@ -1,8 +1,14 @@
#include "mbed.h"
#include "SDFileSystem.h"
+#if defined(TARGET_WIZwiki_W7500)
+#define MOSI PB_3
+#define MISO PB_2
+#define CLK PB_1
+#define SEL PB_0
+#endif
#define MAX_SIZE 100
-SDFileSystem sd(PB_3, PB_2, PB_1, PB_0, "sd"); // the pinout on the mbed Cool Components workshop board
+SDFileSystem sd(MOSI, MISO, CLK, SEL, "sd"); // the pinout on the mbed Cool Components workshop board
char sdread[MAX_SIZE];
int main() {
