10Hz GPS, Megasquirt, SD card, ADXL345 20x4 LCD
Dependents: complete_SD_10HzGPS_switch_switchfinal
Fork of SDFileSystem by
Revision 3:0a80ad1a887a, committed 2015-11-28
- Comitter:
- jpnovak
- Date:
- Sat Nov 28 17:04:20 2015 +0000
- Parent:
- 2:c8f66dc765d4
- Commit message:
- GPS datalogger;
Changed in this revision
SDFileSystem.cpp | Show annotated file Show diff for this revision Revisions of this file |
diff -r c8f66dc765d4 -r 0a80ad1a887a SDFileSystem.cpp --- a/SDFileSystem.cpp Thu Nov 29 10:56:21 2012 +0000 +++ b/SDFileSystem.cpp Sat Nov 28 17:04:20 2015 +0000 @@ -144,7 +144,7 @@ int SDFileSystem::initialise_card() { // Set to 100kHz for initialisation, and clock card with cs = 1 - _spi.frequency(100000); + _spi.frequency(1000000); _cs = 1; for (int i = 0; i < 16; i++) { _spi.write(0xFF); @@ -210,7 +210,7 @@ return 1; } - _spi.frequency(1000000); // Set to 1MHz for data transfer + _spi.frequency(10000000); // Set to 1MHz for data transfer return 0; }