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.
Dependencies: mbed commands BLE_API nRF51822
Diff: Storage.cpp
- Revision:
- 0:1c5088dae6e1
- Child:
- 1:b44bd62c542f
diff -r 000000000000 -r 1c5088dae6e1 Storage.cpp
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/Storage.cpp Wed May 20 08:44:35 2015 +0000
@@ -0,0 +1,23 @@
+#include "Storage.h"
+
+SPI spi(p20, p22, p25); // mosi, miso, sclk
+DigitalOut cs(p10);
+
+Storage* Storage::instance = new Storage();
+
+Storage::Storage()
+{
+ cs = 1;
+ spi.format(,);
+ spi.frequency(300000);
+}
+
+Storage* Storage::getInstance()
+{
+ return instance;
+}
+
+Storage::setup(){
+
+
+ }
\ No newline at end of file