1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-25 17:25:20 +03:00

G4 SPI DMA support

This commit is contained in:
Steve Evans 2021-08-09 22:24:18 +01:00 committed by Michael Keller
parent c283981d54
commit ab66795eeb
10 changed files with 75 additions and 289 deletions

View file

@ -49,9 +49,10 @@ typedef void (*dmaCallbackHandlerFuncPtr)(struct dmaChannelDescriptor_s *channel
typedef struct dmaChannelDescriptor_s {
DMA_TypeDef* dma;
dmaResource_t *ref;
#if defined(STM32F4) || defined(STM32F7) || defined(STM32H7) || defined(STM32G4)
#if defined(STM32F4) || defined(STM32F7) || defined(STM32G4) || defined(STM32H7)
uint8_t stream;
#endif
uint32_t channel;
dmaCallbackHandlerFuncPtr irqHandlerCallback;
uint8_t flagsShift;
IRQn_Type irqN;