Skip to content

Commit d34be47

Browse files
committed
drivers: video: shell: implement frmival/format/ctrl/start/stop
Introduce the video shell and implement some video shell commands. Make use of the various querying API to implement tab-completion, and validiate the data, as well as convert string names into integers. Signed-off-by: Josuah Demangeon <me@josuah.net>
1 parent 88bf76d commit d34be47

File tree

5 files changed

+929
-0
lines changed

5 files changed

+929
-0
lines changed

drivers/video/CMakeLists.txt

+1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ zephyr_library_sources(video_device.c)
88

99
zephyr_library_sources_ifdef(CONFIG_VIDEO_MCUX_CSI video_mcux_csi.c)
1010
zephyr_library_sources_ifdef(CONFIG_VIDEO_MCUX_MIPI_CSI2RX video_mcux_mipi_csi2rx.c)
11+
zephyr_library_sources_ifdef(CONFIG_VIDEO_SHELL video_shell.c)
1112
zephyr_library_sources_ifdef(CONFIG_VIDEO_SW_GENERATOR video_sw_generator.c)
1213
zephyr_library_sources_ifdef(CONFIG_VIDEO_MT9M114 mt9m114.c)
1314
zephyr_library_sources_ifdef(CONFIG_VIDEO_OV7725 ov7725.c)

drivers/video/Kconfig

+2
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,8 @@ source "drivers/video/Kconfig.mcux_csi"
5656

5757
source "drivers/video/Kconfig.mcux_mipi_csi2rx"
5858

59+
source "drivers/video/Kconfig.shell"
60+
5961
source "drivers/video/Kconfig.sw_generator"
6062

6163
source "drivers/video/Kconfig.mt9m114"

drivers/video/Kconfig.shell

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# Copyright (c) 2025 tinyVision.ai Inc.
2+
# SPDX-License-Identifier: Apache-2.0
3+
4+
config VIDEO_SHELL
5+
bool "Video shell"
6+
depends on SHELL
7+
help
8+
This shell provides control and query commands for video drivers.

0 commit comments

Comments
 (0)