Change SPI clock.
Fork of SDFileSystem by
Revision 4:2209c6e0b703, committed 2013-11-09
- Comitter:
- doctorura
- Date:
- Sat Nov 09 13:40:15 2013 +0000
- Parent:
- 3:65b27e36687f
- Commit message:
- 16MHz > 20MHz
Changed in this revision
SDFileSystem.cpp | Show annotated file Show diff for this revision Revisions of this file |
diff -r 65b27e36687f -r 2209c6e0b703 SDFileSystem.cpp --- a/SDFileSystem.cpp Thu Oct 31 15:06:05 2013 +0000 +++ b/SDFileSystem.cpp Sat Nov 09 13:40:15 2013 +0000 @@ -144,7 +144,7 @@ int SDFileSystem::initialise_card() { // Set to 100kHz for initialisation, and clock card with cs = 1 - _spi.frequency(16000000); + _spi.frequency(20000000); _cs = 1; for (int i = 0; i < 16; i++) { _spi.write(0xFF); @@ -210,7 +210,7 @@ return 1; } - _spi.frequency(16000000); // Set to 1MHz for data transfer + _spi.frequency(20000000); // Set to 1MHz for data transfer return 0; }