sd
Dependents: a_programme_bts a_programme_bts_bruchet_descroix_duhautois
Revision 7:bb0a603a0f79, committed 2021-05-05
- Comitter:
- valentinbruchet
- Date:
- Wed May 05 08:12:48 2021 +0000
- Parent:
- 6:8db0d3b02cec
- Commit message:
- Programme BTS;
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 bb0a603a0f79 FATFileSystem.lib --- a/FATFileSystem.lib Fri Sep 09 19:35:14 2016 +0000 +++ b/FATFileSystem.lib Wed May 05 08:12:48 2021 +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 bb0a603a0f79 SDFileSystem.cpp --- a/SDFileSystem.cpp Fri Sep 09 19:35:14 2016 +0000 +++ b/SDFileSystem.cpp Wed May 05 08:12:48 2021 +0000 @@ -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("Pas de disque ou impossible de mettre la carte SD en etat d'inactivite SPI\n\r"); return SDCARD_FAIL; } @@ -167,7 +167,7 @@ } else if (r == (R1_IDLE_STATE | R1_ILLEGAL_COMMAND)) { return initialise_card_v1(); } else { - debug("Not in idle state after sending CMD8 (not an SD card?)\n"); + debug("Not in idle state after sending CMD8 (not an SD card?)\n\r"); return SDCARD_FAIL; } } @@ -182,7 +182,7 @@ } } - debug("Timeout waiting for v1.x card\n"); + debug("Timeout waiting for v1.x card\n\r"); return SDCARD_FAIL; } @@ -199,14 +199,14 @@ } } - debug("Timeout waiting for v2.x card\n"); + debug("Timeout waiting for v2.x card\n\r"); return SDCARD_FAIL; } int SDFileSystem::disk_initialize() { _is_initialized = initialise_card(); if (_is_initialized == 0) { - debug("Fail to initialize card\n"); + debug("Echec de l'initialisation de la carte\n\r"); return 1; } debug_if(SD_DBG, "init card = %d\n", _is_initialized); @@ -214,7 +214,7 @@ // Set block length to 512 (CMD16) if (_cmd(16, 512) != 0) { - debug("Set 512-byte block timed out\n"); + debug("Set 512-byte block timed out\n\r"); return 1; }