Skip to content

Commit 6401c47

Browse files
gautierg-stkartben
authored andcommitted
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 <[email protected]>
1 parent 62f134e commit 6401c47

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

drivers/dma/dma_stm32.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,9 @@ uint32_t dma_stm32_slot_to_channel(uint32_t id);
5252
#endif
5353

5454
typedef void (*dma_stm32_clear_flag_func)(DMA_TypeDef *DMAx);
55-
#if !defined(CONFIG_SOC_SERIES_STM32G0X)
55+
#if !defined(CONFIG_SOC_SERIES_STM32G0X) && \
56+
!defined(CONFIG_SOC_SERIES_STM32H7X) && \
57+
!defined(CONFIG_SOC_SERIES_STM32U0X)
5658
typedef uint32_t (*dma_stm32_check_flag_func)(DMA_TypeDef *DMAx);
5759
#else
5860
typedef uint32_t (*dma_stm32_check_flag_func)(const DMA_TypeDef *DMAx);

drivers/dma/dma_stm32_bdma.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ uint32_t bdma_stm32_slot_to_channel(uint32_t id);
5353
#endif
5454

5555
typedef void (*bdma_stm32_clear_flag_func)(BDMA_TypeDef *DMAx);
56-
typedef uint32_t (*bdma_stm32_check_flag_func)(BDMA_TypeDef *DMAx);
56+
typedef uint32_t (*bdma_stm32_check_flag_func)(const BDMA_TypeDef *DMAx);
5757

5858
bool bdma_stm32_is_gi_active(BDMA_TypeDef *DMAx, uint32_t id);
5959
void bdma_stm32_clear_gi(BDMA_TypeDef *DMAx, uint32_t id);

0 commit comments

Comments
 (0)