Mbed Cloud Connect for Ethernet Platforms

Fork of example-Ethernet-mbed-Cloud-connect by ST

Files at this revision

API Documentation at this revision

Comitter:
adustm
Date:
Fri Feb 23 16:27:25 2018 +0100
Parent:
1:bf80b1306d22
Child:
3:b35ad81a2d6a
Commit message:
Upda main.cpp to allow the use of DISCO platforms with SD Card arduino shield

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/main.cpp	Thu Feb 22 11:34:35 2018 +0000
+++ b/main.cpp	Fri Feb 23 16:27:25 2018 +0100
@@ -30,7 +30,11 @@
 Ticker timer;
 
 // Placeholder for storage
+#if (defined(TARGET_NUCLEO_F429ZI) || defined(TARGET_NUCLEO_F767ZI) || defined(TARGET_NUCLEO_F746ZG))
 SDBlockDevice sd(PC_12, PC_11, PC_10, PA_15); // MOSI, MISO, SCLK, CS
+#elif (defined(TARGET_DISCO_F746NG) || defined(TARGET_DISCO_F769NI))
+SDBlockDevice sd(SPI_MOSI, SPI_MISO, SPI_SCK, SPI_CS); // MOSI, MISO, SCLK, CS
+#endif
 FATFileSystem fs("sd");
 
 // Pointers to the resources that will be created in main_application().