final groupe 1

Dependencies:   FATFileSystem

Files at this revision

API Documentation at this revision

Comitter:
GrandDiego
Date:
Sun Feb 03 19:36:27 2019 +0000
Parent:
6:8db0d3b02cec
Commit message:
final groupe 1

Changed in this revision

FATFileSystem.lib Show annotated file Show diff for this revision Revisions of this file
SDFileSystem.cpp Show annotated file Show diff for this revision Revisions of this file
diff -r 8db0d3b02cec -r 26d6008d75fc FATFileSystem.lib
--- a/FATFileSystem.lib	Fri Sep 09 19:35:14 2016 +0000
+++ b/FATFileSystem.lib	Sun Feb 03 19:36:27 2019 +0000
@@ -1,1 +1,1 @@
-https://developer.mbed.org/teams/mbed-official/code/FATFileSystem/#e2ab678eb692
+https://developer.mbed.org/teams/mbed-official/code/FATFileSystem/#28e685e5ff7f
diff -r 8db0d3b02cec -r 26d6008d75fc SDFileSystem.cpp
--- a/SDFileSystem.cpp	Fri Sep 09 19:35:14 2016 +0000
+++ b/SDFileSystem.cpp	Sun Feb 03 19:36:27 2019 +0000
@@ -124,8 +124,8 @@
     _cs = 1;
 
     // Set default to 100kHz for initialisation and 1MHz for data transfer
-    _init_sck = 100000;
-    _transfer_sck = 1000000;
+    _init_sck       = 125000;
+    _transfer_sck   = 1000000;
 }
 
 #define R1_IDLE_STATE           (1 << 0)
@@ -148,6 +148,9 @@
 
 int SDFileSystem::initialise_card() {
     // Set to SCK for initialisation, and clock card with cs = 1
+    
+    _spi.format(8,3);    //DEBUG
+    
     _spi.frequency(_init_sck);
     _cs = 1;
     for (int i = 0; i < 16; i++) {
@@ -220,6 +223,9 @@
 
     // Set SCK for data transfer
     _spi.frequency(_transfer_sck);
+    
+    _spi.format(8,3);    //DEBUG
+    
     return 0;
 }