File tree Expand file tree Collapse file tree
STM32F4/libraries/SPI/src Expand file tree Collapse file tree Original file line number Diff line number Diff line change 3737#ifndef _LIB_SPI_H_
3838#define _LIB_SPI_H_
3939
40+ // #define SPI_DMA // enable this to use DMA for SPI transfers
41+
4042#include < libmaple/libmaple_types.h>
4143#include < libmaple/spi.h>
4244#include < libmaple/dma.h>
@@ -374,27 +376,12 @@ class SPIClass {
374376 uint8 recv (void );
375377
376378private:
377- /*
378- static inline void DMA1_CH3_Event() {
379- dma1_ch3_Active = 0;
380- // dma_disable(DMA1, DMA_CH3);
381- // dma_disable(DMA1, DMA_CH2);
382-
383- // To Do. Need to wait for
384- }
385- */
386379 SPISettings _settings[BOARD_NR_SPI];
387380 SPISettings *_currentSetting;
388381
389382 void updateSettings (void );
390- /*
391- spi_dev *spi_d;
392- uint8_t _SSPin;
393- uint32_t clockDivider;
394- uint8_t dataMode;
395- BitOrder bitOrder;
396- */
397383};
398384
385+ extern SPIClass SPI; // needed bx SdFat(EX) lib
399386
400387#endif
You can’t perform that action at this time.
0 commit comments