mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-25 17:25:20 +03:00
[H7] Enable DMA facility
This commit is contained in:
parent
77ef37bad0
commit
c797775cf6
2 changed files with 150 additions and 2 deletions
|
@ -27,7 +27,7 @@ typedef void (*dmaCallbackHandlerFuncPtr)(struct dmaChannelDescriptor_s *channel
|
|||
|
||||
typedef struct dmaChannelDescriptor_s {
|
||||
DMA_TypeDef* dma;
|
||||
#if defined(STM32F4) || defined(STM32F7)
|
||||
#if defined(STM32F4) || defined(STM32F7) || defined(STM32H7)
|
||||
DMA_Stream_TypeDef* ref;
|
||||
uint8_t stream;
|
||||
#else
|
||||
|
@ -50,7 +50,7 @@ typedef struct dmaChannelDescriptor_s {
|
|||
|
||||
#define DMA_IDENTIFIER_TO_INDEX(x) ((x) - 1)
|
||||
|
||||
#if defined(STM32F4) || defined(STM32F7)
|
||||
#if defined(STM32F4) || defined(STM32F7) || defined(STM32H7)
|
||||
|
||||
typedef enum {
|
||||
DMA_NONE = 0,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue