Skip to content

Commit ded9e11

Browse files
gautierg-stnashif
authored andcommitted
drivers: dma: stm32 dmamux: fix for c0 hal update
Fix the DMAMUX driver for the STM32C0 HAL update. Typedef used in function is now const. Signed-off-by: Guillaume Gautier <[email protected]>
1 parent 48ba84b commit ded9e11

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

drivers/dma/dmamux_stm32.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,8 @@ uint32_t table_ll_channel[] = {
7070
LISTIFY(DT_INST_PROP(0, dma_channels), DMAMUX_CHANNEL, (,))
7171
};
7272

73-
#if !defined(CONFIG_SOC_SERIES_STM32G0X)
73+
#if !defined(CONFIG_SOC_SERIES_STM32G0X) && \
74+
!defined(CONFIG_SOC_SERIES_STM32C0X)
7475
#define dmamux_channel_typedef DMAMUX_Channel_TypeDef
7576
#else
7677
#define dmamux_channel_typedef const DMAMUX_Channel_TypeDef

0 commit comments

Comments
 (0)