Kaynağa Gözat

Fix STM32 for non DMA

main
Bill Greiman 9 yıl önce
ebeveyn
işleme
fdb739093c
2 değiştirilmiş dosya ile 5 ekleme ve 2 silme
  1. +1
    -1
      SdFat/src/SdFat.h
  2. +4
    -1
      SdFat/src/SdSpiCard/SdSpiSTM32F1.cpp

+ 1
- 1
SdFat/src/SdFat.h Dosyayı Görüntüle

#endif // ARDUINO #endif // ARDUINO
//------------------------------------------------------------------------------ //------------------------------------------------------------------------------
/** SdFat version YYYYMMDD */ /** SdFat version YYYYMMDD */
#define SD_FAT_VERSION 20160422
#define SD_FAT_VERSION 20160427
//============================================================================== //==============================================================================
/** /**
* \class SdBaseFile * \class SdBaseFile

+ 4
- 1
SdFat/src/SdSpiCard/SdSpiSTM32F1.cpp Dosyayı Görüntüle

#if USE_STM32F1_DMAC #if USE_STM32F1_DMAC
rtn = SPI.dmaTransfer(0, const_cast<uint8*>(buf), n); rtn = SPI.dmaTransfer(0, const_cast<uint8*>(buf), n);
#else // USE_STM32F1_DMAC #else // USE_STM32F1_DMAC
SPI.read(buf, n);
// SPI.read(buf, n);
for (size_t i = 0; i < n; i++) {
buf[i] = SPI.transfer(0XFF);
}
#endif // USE_STM32F1_DMAC #endif // USE_STM32F1_DMAC
return rtn; return rtn;
} }

Yükleniyor…
İptal
Kaydet