1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-06-06 05:21:22 +03:00

increase SD Card SPI Speed

This commit is contained in:
ficeto 2015-05-08 13:22:49 +03:00
parent 85aac8af89
commit 8ce762db16

View File

@ -28,9 +28,9 @@
#ifdef ESP8266 #ifdef ESP8266
#include "SPI.h" #include "SPI.h"
uint32_t const SPI_FULL_SPEED = 4000000; uint32_t const SPI_FULL_SPEED = 8000000;
uint32_t const SPI_HALF_SPEED = 2000000; uint32_t const SPI_HALF_SPEED = 4000000;
uint32_t const SPI_QUARTER_SPEED = 1000000; uint32_t const SPI_QUARTER_SPEED = 2000000;
#else #else
/** Set SCK to max rate of F_CPU/2. See Sd2Card::setSckRate(). */ /** Set SCK to max rate of F_CPU/2. See Sd2Card::setSckRate(). */
uint8_t const SPI_FULL_SPEED = 0; uint8_t const SPI_FULL_SPEED = 0;