Преглед изворни кода

Default to 24 MHz clock on Teensy 3.x

main
PaulStoffregen пре 10 година
родитељ
комит
841c84dfe6
1 измењених фајлова са 4 додато и 3 уклоњено
  1. +4
    -3
      utility/Sd2Card.cpp

+ 4
- 3
utility/Sd2Card.cpp Прегледај датотеку

@@ -51,9 +51,10 @@ static void spiBegin() {
static void spiInit(uint8_t spiRate) {
switch (spiRate) {
case 0: settings = SPISettings(12000000, MSBFIRST, SPI_MODE0); break;
case 1: settings = SPISettings(8000000, MSBFIRST, SPI_MODE0); break;
case 2: settings = SPISettings(6000000, MSBFIRST, SPI_MODE0); break;
// the top 2 speeds are set to 24 MHz, for the SD library defaults
case 0: settings = SPISettings(24000000, MSBFIRST, SPI_MODE0); break;
case 1: settings = SPISettings(24000000, MSBFIRST, SPI_MODE0); break;
case 2: settings = SPISettings(8000000, MSBFIRST, SPI_MODE0); break;
case 3: settings = SPISettings(4000000, MSBFIRST, SPI_MODE0); break;
case 4: settings = SPISettings(3000000, MSBFIRST, SPI_MODE0); break;
case 5: settings = SPISettings(2000000, MSBFIRST, SPI_MODE0); break;

Loading…
Откажи
Сачувај