Mbed Cloud Connect for Ethernet Platforms
Fork of example-Ethernet-mbed-Cloud-connect by
Diff: main.cpp
- Revision:
- 2:dac7d642d711
- Parent:
- 0:e9c53d5f59e3
- Child:
- 3:b35ad81a2d6a
diff -r bf80b1306d22 -r dac7d642d711 main.cpp
--- 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().
