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.
Fork of SDFileSystem by
Revision 25:118525dc2659, committed 2016-07-24
- Comitter:
- nameless129
- Date:
- Sun Jul 24 09:16:00 2016 +0000
- Parent:
- 24:a52e682a1ce4
- Commit message:
- first commit
Changed in this revision
| 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/SDFileSystem.cpp Tue May 24 15:50:26 2016 +0000
+++ b/SDFileSystem.cpp Sun Jul 24 09:16:00 2016 +0000
@@ -24,7 +24,7 @@
m_Spi(mosi, miso, sclk),
m_Cs(cs, 1),
m_Cd(cd),
- m_FREQ(hz)
+ m_FREQ(50000000)
{
//Initialize the member variables
m_CardType = CARD_NONE;
--- a/SDFileSystem.h Tue May 24 15:50:26 2016 +0000
+++ b/SDFileSystem.h Sun Jul 24 09:16:00 2016 +0000
@@ -100,7 +100,7 @@
* @param cdtype The type of card detect switch.
* @param hz The SPI bus frequency (defaults to 1MHz).
*/
- SDFileSystem(PinName mosi, PinName miso, PinName sclk, PinName cs, const char* name, PinName cd = NC, SwitchType cdtype = SWITCH_NONE, int hz = 1000000);
+ SDFileSystem(PinName mosi, PinName miso, PinName sclk, PinName cs, const char* name, PinName cd = NC, SwitchType cdtype = SWITCH_NONE, int hz = 20000000);
/** Determine whether or not a card is present
*
