1 parent 318f874 commit b614dc7Copy full SHA for b614dc7
1 file changed
ports/stm32/dma.c
@@ -52,7 +52,7 @@ typedef enum {
52
dma_id_15,
53
} dma_id_t;
54
55
-typedef struct _dma_descr_t {
+struct _dma_descr_t {
56
#if defined(STM32F4) || defined(STM32F7) || defined(STM32H7)
57
DMA_Stream_TypeDef *instance;
58
#elif defined(STM32L4)
@@ -64,7 +64,7 @@ typedef struct _dma_descr_t {
64
uint32_t transfer_direction; // periph to memory or vice-versa
65
dma_id_t id;
66
const DMA_InitTypeDef *init;
67
-} dma_descr_t;
+};
68
69
// Default parameters to dma_init() shared by spi and i2c; Channel and Direction
70
// vary depending on the peripheral instance so they get passed separately
0 commit comments