Unina_corse / SDFileSystemFunzionante

Dependencies:   FATFileSystem

Dependents:   Nucleo_rtos_basic_copyProva_Quirino programmaACC

Fork of SDFileSystem by mbed official

Files at this revision

API Documentation at this revision

Comitter:
giuseppe_guida
Date:
Tue Dec 05 18:08:42 2017 +0000
Parent:
6:8db0d3b02cec
Commit message:
Programma

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
SDFileSystem.h Show annotated file Show diff for this revision Revisions of this file
--- a/FATFileSystem.lib	Fri Sep 09 19:35:14 2016 +0000
+++ b/FATFileSystem.lib	Tue Dec 05 18:08:42 2017 +0000
@@ -1,1 +1,1 @@
-https://developer.mbed.org/teams/mbed-official/code/FATFileSystem/#e2ab678eb692
+http://os.mbed.com/teams/mbed-official/code/FATFileSystem/#28e685e5ff7f
--- a/SDFileSystem.cpp	Fri Sep 09 19:35:14 2016 +0000
+++ b/SDFileSystem.cpp	Tue Dec 05 18:08:42 2017 +0000
@@ -124,7 +124,7 @@
     _cs = 1;
 
     // Set default to 100kHz for initialisation and 1MHz for data transfer
-    _init_sck = 100000;
+    _init_sck = 328125; //Ho dovuto settarla a 400000 perché a 100000 non andava.
     _transfer_sck = 1000000;
 }
 
@@ -156,7 +156,7 @@
 
     // send CMD0, should return with all zeros except IDLE STATE set (bit 0)
     if (_cmd(0, 0) != R1_IDLE_STATE) {
-        debug("No disk, or could not put SD card in to SPI idle state\n");
+        debug("No disk, or could not put SD card in to SPI idle state\n\r");
         return SDCARD_FAIL;
     }
 
@@ -206,7 +206,7 @@
 int SDFileSystem::disk_initialize() {
     _is_initialized = initialise_card();
     if (_is_initialized == 0) {
-        debug("Fail to initialize card\n");
+        debug("Fail to initialize card\n\r");
         return 1;
     }
     debug_if(SD_DBG, "init card = %d\n", _is_initialized);
--- a/SDFileSystem.h	Fri Sep 09 19:35:14 2016 +0000
+++ b/SDFileSystem.h	Tue Dec 05 18:08:42 2017 +0000
@@ -58,6 +58,7 @@
     virtual int disk_write(const uint8_t* buffer, uint32_t block_number, uint32_t count);
     virtual int disk_sync();
     virtual uint32_t disk_sectors();
+    
 
 protected: