summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2018-05-04 15:35:43 +1000
committerDamien George <damien.p.george@gmail.com>2018-05-04 15:35:43 +1000
commitb614dc73b085c803f465f1c920553e13f52aee00 (patch)
tree6aaf1ca592bc329891716496bda9703747ad79c4
parent318f874cda22567a55bb004434ed0ec891fd7d61 (diff)
stm32/dma: Fix duplicate typedef of struct, it's typedef'd in dma.h.
-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