Skip to content

Commit a1ef239

Browse files
josuahdanieldegrasse
authored andcommitted
drivers: video: dcmi: fix DMA channel configuration
Commit 64149e4 added an "#if defined()" for configuring DMA channels differently depending on SOC family of the STM32 HAL, but did not include the STM32H7 family in the same group as STM32F7. Fix it by adding the STM32H7 in the same #ifdef filter. Fixes #92015 Signed-off-by: Josuah Demangeon <me@josuah.net>
1 parent 3c47f91 commit a1ef239

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/video/video_stm32_dcmi.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -155,11 +155,11 @@ static int stm32_dma_init(const struct device *dev)
155155
hdma.Init.MemDataAlignment = DMA_MDATAALIGN_WORD;
156156
hdma.Init.Mode = DMA_CIRCULAR;
157157
hdma.Init.Priority = DMA_PRIORITY_HIGH;
158-
#if defined(CONFIG_SOC_SERIES_STM32F7X)
158+
#if defined(CONFIG_SOC_SERIES_STM32F7X) || defined(CONFIG_SOC_SERIES_STM32H7X)
159159
hdma.Init.FIFOMode = DMA_FIFOMODE_DISABLE;
160160
#endif
161161

162-
#if defined(CONFIG_SOC_SERIES_STM32F7X)
162+
#if defined(CONFIG_SOC_SERIES_STM32F7X) || defined(CONFIG_SOC_SERIES_STM32H7X)
163163
hdma.Instance = __LL_DMA_GET_STREAM_INSTANCE(config->dma.reg,
164164
config->dma.channel);
165165
#elif defined(CONFIG_SOC_SERIES_STM32L4X)

0 commit comments

Comments
 (0)