Skip to content

Commit

Permalink
drivers: video: Add support for STM32 DCMI
Browse files Browse the repository at this point in the history
Add Kconfig, DCMI driver, Yaml, and CMakeLists files

Signed-off-by: Charles Dias <[email protected]>
  • Loading branch information
CharlesDias committed Apr 17, 2024
1 parent 4a37fc6 commit 12db860
Show file tree
Hide file tree
Showing 5 changed files with 616 additions and 0 deletions.
1 change: 1 addition & 0 deletions drivers/video/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,4 @@ zephyr_library_sources_ifdef(CONFIG_VIDEO_SW_GENERATOR video_sw_generator.c)
zephyr_library_sources_ifdef(CONFIG_VIDEO_MT9M114 mt9m114.c)
zephyr_library_sources_ifdef(CONFIG_VIDEO_OV7725 ov7725.c)
zephyr_library_sources_ifdef(CONFIG_VIDEO_OV2640 ov2640.c)
zephyr_library_sources_ifdef(CONFIG_VIDEO_STM32_DCMI video_stm32_dcmi.c)
2 changes: 2 additions & 0 deletions drivers/video/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -41,4 +41,6 @@ source "drivers/video/Kconfig.ov7725"

source "drivers/video/Kconfig.ov2640"

source "drivers/video/Kconfig.stm32_dcmi"

endif # VIDEO
18 changes: 18 additions & 0 deletions drivers/video/Kconfig.stm32_dcmi
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# STM32 DCMI driver configuration options

# Copyright (c) 2024 Charles Dias <[email protected]>
# SPDX-License-Identifier: Apache-2.0

DT_STM32_DCMI_HAS_DMA := $(dt_nodelabel_has_prop,dcmi,dmas)

config VIDEO_STM32_DCMI
bool "STM32 Digital camera interface (DCMI) driver"
default y
depends on DT_HAS_ST_STM32_DCMI_ENABLED
select USE_STM32_HAL_DCMI
select USE_STM32_HAL_MDMA if SOC_SERIES_STM32H7X
select DMA if $(DT_STM32_DCMI_HAS_DMA)
select USE_STM32_HAL_DMA if $(DT_STM32_DCMI_HAS_DMA)
select USE_STM32_HAL_DMA_EX if $(DT_STM32_DCMI_HAS_DMA)
help
Enable driver for STM32 Digital camera interface periheral.
Loading

0 comments on commit 12db860

Please sign in to comment.