Read/Write the SD card(using SSP)

Dependencies:   SDFileSystem mbed

Fork of SDFileSystem_HelloWorld by eunkyoung kim

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() {