Skip to content

Commit 44eafdb

Browse files
committed
drivers: dma: stm32: update function prototype after hal update
New HAL update changed the prototype of the check DMA flag functions. C0 use a const parameter for these functions. Signed-off-by: Fabrice DJIATSA <fabrice.djiatsa-ext@st.com>
1 parent d301d00 commit 44eafdb

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

drivers/dma/dma_stm32.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,8 @@ uint32_t dma_stm32_slot_to_channel(uint32_t id);
5454
typedef void (*dma_stm32_clear_flag_func)(DMA_TypeDef *DMAx);
5555
#if !defined(CONFIG_SOC_SERIES_STM32G0X) && \
5656
!defined(CONFIG_SOC_SERIES_STM32H7X) && \
57-
!defined(CONFIG_SOC_SERIES_STM32U0X)
57+
!defined(CONFIG_SOC_SERIES_STM32U0X) && \
58+
!defined(CONFIG_SOC_SERIES_STM32C0X)
5859
typedef uint32_t (*dma_stm32_check_flag_func)(DMA_TypeDef *DMAx);
5960
#else
6061
typedef uint32_t (*dma_stm32_check_flag_func)(const DMA_TypeDef *DMAx);

0 commit comments

Comments
 (0)