Skip to content

Commit b614dc7

Browse files
committed
stm32/dma: Fix duplicate typedef of struct, it's typedef'd in dma.h.
1 parent 318f874 commit b614dc7

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

ports/stm32/dma.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ typedef enum {
5252
dma_id_15,
5353
} dma_id_t;
5454

55-
typedef struct _dma_descr_t {
55+
struct _dma_descr_t {
5656
#if defined(STM32F4) || defined(STM32F7) || defined(STM32H7)
5757
DMA_Stream_TypeDef *instance;
5858
#elif defined(STM32L4)
@@ -64,7 +64,7 @@ typedef struct _dma_descr_t {
6464
uint32_t transfer_direction; // periph to memory or vice-versa
6565
dma_id_t id;
6666
const DMA_InitTypeDef *init;
67-
} dma_descr_t;
67+
};
6868

6969
// Default parameters to dma_init() shared by spi and i2c; Channel and Direction
7070
// vary depending on the peripheral instance so they get passed separately

0 commit comments

Comments
 (0)