Skip to content

drivers: video: Add the video shell #88566

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
May 20, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions drivers/video/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ zephyr_library_sources(video_device.c)

zephyr_library_sources_ifdef(CONFIG_VIDEO_MCUX_CSI video_mcux_csi.c)
zephyr_library_sources_ifdef(CONFIG_VIDEO_MCUX_MIPI_CSI2RX video_mcux_mipi_csi2rx.c)
zephyr_library_sources_ifdef(CONFIG_VIDEO_SHELL video_shell.c)
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)
Expand Down
2 changes: 2 additions & 0 deletions drivers/video/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,8 @@ source "drivers/video/Kconfig.mcux_csi"

source "drivers/video/Kconfig.mcux_mipi_csi2rx"

source "drivers/video/Kconfig.shell"

source "drivers/video/Kconfig.sw_generator"

source "drivers/video/Kconfig.mt9m114"
Expand Down
20 changes: 20 additions & 0 deletions drivers/video/Kconfig.shell
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# Copyright The Zephyr Project Contributors
# SPDX-License-Identifier: Apache-2.0

config VIDEO_SHELL
bool "Video shell"
depends on SHELL
help
This shell provides control and query commands for video drivers.

if VIDEO_SHELL

config VIDEO_SHELL_CTRL_NAME_SIZE
int "Maximum size for the control string identifier"
default 40
help
Video controls have a human-friendly name that is converted into a string identifier.
This Kconfig controls the maximum size of the string identifier after which the name
would be truncated. The default value is enough for all standard control names.

endif
Loading