Skip to content

Commit 5e3db41

Browse files
committed
drivers: video: shell: add first shell commands
Introduction of a video shell command, with subcommands to operate video APIs on a basic level, using a single buffer th be passed to a video device of choice and dumped as hexadecimal or ANSI colors. Signed-off-by: Josuah Demangeon <[email protected]>
1 parent 9a1219b commit 5e3db41

File tree

11 files changed

+776
-0
lines changed

11 files changed

+776
-0
lines changed

drivers/video/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,3 +18,4 @@ zephyr_library_sources_ifdef(CONFIG_VIDEO_ESP32 video_esp32_dvp.c)
1818
zephyr_library_sources_ifdef(CONFIG_VIDEO_MCUX_SDMA video_mcux_smartdma.c)
1919
zephyr_library_sources_ifdef(CONFIG_VIDEO_EMUL_IMAGER video_emul_imager.c)
2020
zephyr_library_sources_ifdef(CONFIG_VIDEO_EMUL_RX video_emul_rx.c)
21+
zephyr_library_sources_ifdef(CONFIG_VIDEO_SHELL video_shell.c)

drivers/video/Kconfig

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,4 +78,6 @@ source "drivers/video/Kconfig.emul_imager"
7878

7979
source "drivers/video/Kconfig.emul_rx"
8080

81+
source "drivers/video/Kconfig.shell"
82+
8183
endif # VIDEO

drivers/video/Kconfig.shell

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# Copyright (c) 2024 tinyVision.ai Inc.
2+
# SPDX-License-Identifier: Apache-2.0
3+
4+
config VIDEO_SHELL
5+
bool "Video shell commands support"
6+
depends on SHELL
7+
help
8+
Enable support for the video shell to perform commands on video devices.

0 commit comments

Comments
 (0)