diff options
author | Damien George <damien.p.george@gmail.com> | 2018-05-04 15:35:43 +1000 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2018-05-04 15:35:43 +1000 |
commit | b614dc73b085c803f465f1c920553e13f52aee00 (patch) | |
tree | 6aaf1ca592bc329891716496bda9703747ad79c4 | |
parent | 318f874cda22567a55bb004434ed0ec891fd7d61 (diff) |
stm32/dma: Fix duplicate typedef of struct, it's typedef'd in dma.h.
-rw-r--r-- | ports/stm32/dma.c | 4 |
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 |