drivers: video: sw_generator: convert to use the devicetree
Make the video software generator a devicetree node, which allows enabling
several instances, and select it as chosen { zephyr,camera = &... }; node.
It can be enabled via a `video-sw-generator` snippet.
Signed-off-by: Josuah Demangeon <me@josuah.net>
@ -91,9 +91,16 @@ For :ref:`native_sim`, build this sample application with the following commands
@@ -91,9 +91,16 @@ For :ref:`native_sim`, build this sample application with the following commands
:goals:build
:compact:
For testing purpose without the need of any real video capture and/or display hardwares,
For testing purpose and without the need of any real video capture and/or display hardwares,
a video software pattern generator is supported by the above build commands without
specifying the shields.
specifying the shields, and using :ref:`snippet-video-sw-generator`:
..zephyr-app-commands::
:zephyr-app:samples/drivers/video/capture
:board:native_sim/native/64
:snippets:video-sw-generator
:goals:build
:compact:
For controlling the camera device using shell commands instead of continuously capturing the data,
append ``-DCONFIG_VIDEO_SHELL=y`` to the build command:
@ -37,6 +37,16 @@ For :zephyr:board:`mini_stm32h743`, build this sample application with the follo
@@ -37,6 +37,16 @@ For :zephyr:board:`mini_stm32h743`, build this sample application with the follo
:gen-args:-DCONFIG_BOOT_DELAY=2000
:compact:
For testing purpose and without the need of any real video capture hardware,
a video software pattern generator is supported by using :ref:`snippet-video-sw-generator`:
@ -39,6 +39,16 @@ If a mt9m114 camera shield is missing, video software generator will be used ins
@@ -39,6 +39,16 @@ If a mt9m114 camera shield is missing, video software generator will be used ins
:goals:build
:compact:
For testing purpose and without the need of any real video capture hardware,
a video software pattern generator is supported by using :ref:`snippet-video-sw-generator`: