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
Storage.cpp
- Committer:
- dkester
- Date:
- 2015-05-20
- Revision:
- 0:1c5088dae6e1
- Child:
- 1:b44bd62c542f
File content as of revision 0:1c5088dae6e1:
#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(){
}