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: FATFileSystem
Fork of SDFileSystem by
Revision 7:23cc0b66f878, committed 2017-11-11
- Comitter:
- rattokiller
- Date:
- Sat Nov 11 11:13:21 2017 +0000
- Parent:
- 6:8db0d3b02cec
- Commit message:
- progetto composto dall' unione della scrittura su sd + lettura imu;
Changed in this revision
SDFileSystem.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/SDFileSystem.cpp Fri Sep 09 19:35:14 2016 +0000 +++ b/SDFileSystem.cpp Sat Nov 11 11:13:21 2017 +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 = 3000000; + _transfer_sck = 3000000; } #define R1_IDLE_STATE (1 << 0) @@ -148,7 +148,9 @@ int SDFileSystem::initialise_card() { // Set to SCK for initialisation, and clock card with cs = 1 + _spi.frequency(_init_sck); + _cs = 1; for (int i = 0; i < 16; i++) { _spi.write(0xFF);