Mbed Cloud Connect for Ethernet Platforms
Fork of example-Ethernet-mbed-Cloud-connect by
Revision 3:b35ad81a2d6a, committed 2018-02-23
- Comitter:
- adustm
- Date:
- Fri Feb 23 16:31:00 2018 +0100
- Parent:
- 2:dac7d642d711
- Child:
- 4:53eff875f5d0
- Commit message:
- allow the use of any ethernet + arduino SPI connection
Changed in this revision
| main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/main.cpp Fri Feb 23 16:27:25 2018 +0100
+++ b/main.cpp Fri Feb 23 16:31:00 2018 +0100
@@ -32,7 +32,7 @@
// 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))
+#else // normal arduino SPI connection
SDBlockDevice sd(SPI_MOSI, SPI_MISO, SPI_SCK, SPI_CS); // MOSI, MISO, SCLK, CS
#endif
FATFileSystem fs("sd");
