1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-26 01:35:41 +03:00

F7 spi rework

This commit is contained in:
Sami Korhonen 2016-11-01 20:35:29 +02:00
parent ac45a4687a
commit b3a48c1a01
3 changed files with 63 additions and 96 deletions

View file

@ -79,6 +79,11 @@ typedef struct SPIDevice_s {
uint8_t af;
volatile uint16_t errorCount;
bool leadingEdge;
#if defined(STM32F7)
SPI_HandleTypeDef hspi;
DMA_HandleTypeDef hdma;
uint8_t dmaIrqHandler;
#endif
} spiDevice_t;
bool spiInit(SPIDevice device);