Browse Source

drivers: dma: stm32: update function prototype after hal update

New HAL update changed the prototype of the check DMA flag functions.
H7 and U0 use a const parameter for these functions.

Signed-off-by: Guillaume Gautier <guillaume.gautier-ext@st.com>
pull/82687/head
Guillaume Gautier 7 months ago committed by Benjamin Cabé
parent
commit
6401c471bd
  1. 4
      drivers/dma/dma_stm32.h
  2. 2
      drivers/dma/dma_stm32_bdma.h

4
drivers/dma/dma_stm32.h

@ -52,7 +52,9 @@ uint32_t dma_stm32_slot_to_channel(uint32_t id); @@ -52,7 +52,9 @@ uint32_t dma_stm32_slot_to_channel(uint32_t id);
#endif
typedef void (*dma_stm32_clear_flag_func)(DMA_TypeDef *DMAx);
#if !defined(CONFIG_SOC_SERIES_STM32G0X)
#if !defined(CONFIG_SOC_SERIES_STM32G0X) && \
!defined(CONFIG_SOC_SERIES_STM32H7X) && \
!defined(CONFIG_SOC_SERIES_STM32U0X)
typedef uint32_t (*dma_stm32_check_flag_func)(DMA_TypeDef *DMAx);
#else
typedef uint32_t (*dma_stm32_check_flag_func)(const DMA_TypeDef *DMAx);

2
drivers/dma/dma_stm32_bdma.h

@ -53,7 +53,7 @@ uint32_t bdma_stm32_slot_to_channel(uint32_t id); @@ -53,7 +53,7 @@ uint32_t bdma_stm32_slot_to_channel(uint32_t id);
#endif
typedef void (*bdma_stm32_clear_flag_func)(BDMA_TypeDef *DMAx);
typedef uint32_t (*bdma_stm32_check_flag_func)(BDMA_TypeDef *DMAx);
typedef uint32_t (*bdma_stm32_check_flag_func)(const BDMA_TypeDef *DMAx);
bool bdma_stm32_is_gi_active(BDMA_TypeDef *DMAx, uint32_t id);
void bdma_stm32_clear_gi(BDMA_TypeDef *DMAx, uint32_t id);

Loading…
Cancel
Save