summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ports/stm32/dma.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ports/stm32/dma.c b/ports/stm32/dma.c
index fde8d678b..499649b36 100644
--- a/ports/stm32/dma.c
+++ b/ports/stm32/dma.c
@@ -52,7 +52,7 @@ typedef enum {
dma_id_15,
} dma_id_t;
-typedef struct _dma_descr_t {
+struct _dma_descr_t {
#if defined(STM32F4) || defined(STM32F7) || defined(STM32H7)
DMA_Stream_TypeDef *instance;
#elif defined(STM32L4)
@@ -64,7 +64,7 @@ typedef struct _dma_descr_t {
uint32_t transfer_direction; // periph to memory or vice-versa
dma_id_t id;
const DMA_InitTypeDef *init;
-} dma_descr_t;
+};
// Default parameters to dma_init() shared by spi and i2c; Channel and Direction
// vary depending on the peripheral instance so they get passed separately