Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of example-DISCO_L475_IOT-mbed-Cloud-connect by
Diff: main.cpp
- Revision:
- 11:7a66d5cc6a87
- Parent:
- 10:0b85f5df5d99
diff -r 0b85f5df5d99 -r 7a66d5cc6a87 main.cpp
--- a/main.cpp Mon Nov 05 13:57:40 2018 +0000
+++ b/main.cpp Tue Nov 06 07:16:56 2018 +0000
@@ -19,6 +19,7 @@
#include "mbed.h"
#include "simple-mbed-cloud-client.h"
#include "FATFileSystem.h"
+#include "QSPIFBlockDevice.h"
// An event queue is a very useful structure to debounce information between contexts (e.g. ISR and normal threads)
// This is great because things such as network operations are illegal in ISR, so updating a resource in a button's fall() function is not allowed
@@ -28,7 +29,9 @@
NetworkInterface *net;
// Default block device
-BlockDevice* bd = BlockDevice::get_default_instance();
+//BlockDevice* bd = BlockDevice::get_default_instance();
+QSPIFBlockDevice qspif(PE_12, PE_13, PE_14, PE_15, PE_10, PE_11, 0, 8000000);
+BlockDevice* bd = &qspif;
FATFileSystem fs("sd", bd);
// Declaring pointers for access to Pelion Client resources outside of main()
@@ -109,7 +112,7 @@
fs.format(bd);
}
- printf("Starting Simple Pelion Device Management Client example\n");
+ printf("Starting Simple Pelion Device Management Client example (2)\n");
printf("Connecting to the network using Wifi...\n");
// Connect to the internet (DHCP is expected to be on)
