![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
sd test code
Fork of SDCardTest by
Diff: main.cpp
- Revision:
- 1:ab8b18769cf3
- Parent:
- 0:cd61eb321578
diff -r cd61eb321578 -r ab8b18769cf3 main.cpp --- a/main.cpp Wed Jul 15 14:46:33 2015 +0000 +++ b/main.cpp Wed May 11 12:48:49 2016 +0000 @@ -1,6 +1,6 @@ #include "mbed.h" #include "mbed_debug.h" - +#include "pin_config.h" #define SD_COMMAND_TIMEOUT 5000 #define SD_DBG 0 @@ -41,8 +41,8 @@ Serial pc(USBTX,USBRX); -SPI spi(PTD6, PTD7, PTD5); // mosi, miso, sclk -DigitalOut cs(D2); +SPI spi(PTE1, PTE3, PTE2); // MOSI,MISO, CLOCK microcontroller(in order) +DigitalOut cs(PTE22); int count; int i; int random[1000];