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 mpu9250_i2c IM920 BMP180 GPS millis
Revision 3:3ce322ac8193, committed 2016-11-22
- Comitter:
- ryood
- Date:
- Tue Nov 22 08:55:44 2016 +0000
- Parent:
- 2:3f286265fade
- Child:
- 4:756dc42397cb
- Commit message:
- Change the speed of SPI to default (1Mhz)
Changed in this revision
| main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/main.cpp Tue Nov 22 08:46:10 2016 +0000
+++ b/main.cpp Tue Nov 22 08:55:44 2016 +0000
@@ -24,7 +24,7 @@
void writeSD(DataT* data)
{
- SDFileSystem sd(PC_12, PC_11, PC_10, PA_14, "sd", NC, SDFileSystem::SWITCH_NONE, 25000000); // SPI3: mosi, miso, sclk, cs
+ SDFileSystem sd(PC_12, PC_11, PC_10, PA_14, "sd"); // SPI3: mosi, miso, sclk, cs
//Mount the filesystem
sd.mount();
@@ -58,7 +58,7 @@
void readSD(DataT* data)
{
- SDFileSystem sd(PC_12, PC_11, PC_10, PA_14, "sd", NC, SDFileSystem::SWITCH_NONE, 25000000); // SPI3: mosi, miso, sclk, cs
+ SDFileSystem sd(PC_12, PC_11, PC_10, PA_14, "sd"); // SPI3: mosi, miso, sclk, cs
//Mount the filesystem
sd.mount();