Skip to content

Commit 467c450

Browse files
authored
revert removing SPI declaration (needed by SdFat lib) + remove unused lines
1 parent 28fa836 commit 467c450

1 file changed

Lines changed: 3 additions & 16 deletions

File tree

  • STM32F4/libraries/SPI/src

STM32F4/libraries/SPI/src/SPI.h

Lines changed: 3 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,8 @@
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

376378
private:
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

0 commit comments

Comments
 (0)