kato shunsuke / Mbed 2 deprecated library

Dependencies:   mbed mpu9250_i2c IM920 BMP180 GPS millis

Dependents:   IZU2022

Files at this revision

API Documentation at this revision

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();