Skip to content

Commit 0b02688

Browse files
committed
drivers: video: hm01b0 - add missing pieces
Adding some of the missing pieces to the HM01b0 video class. changed the VIDEO define to match all of the other video drivers that I have tried: That is CONFIG_VIDEO_HIMAX_HM01B0 to CONFIG_VIDEO_HM01B0 Added PWDN and RESET pins, to yaml, plus code. Added a few more format sizes: 324x324 to 324x244 164x122 match the spec. Added BAYER format for the color camera (VIDEO_PIX_FMT_SBGGR8) Only for Full, and QVGA, as cameras with BAYER filter do not support the binning mode. Added 4 data bit support, using new format: VIDEO_PIX_FMT_Y4 Support for hflip/vflip controls. Added the frmival set/get/enum functions, to allow us better control of how many frames are generated per second. Used the reset register enumeration similar to other implementions, such as Arduino library, Teensy Library, and OpenME Signed-off-by: Kurt Eckhardt <kurte@rockisland.com>
1 parent 1a6ccd2 commit 0b02688

File tree

4 files changed

+418
-31
lines changed

4 files changed

+418
-31
lines changed

drivers/video/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ zephyr_library_sources_ifdef(CONFIG_VIDEO_EMUL_IMAGER video_emul_imager.c)
1111
zephyr_library_sources_ifdef(CONFIG_VIDEO_EMUL_RX video_emul_rx.c)
1212
zephyr_library_sources_ifdef(CONFIG_VIDEO_ESP32 video_esp32_dvp.c)
1313
zephyr_library_sources_ifdef(CONFIG_VIDEO_GC2145 gc2145.c)
14-
zephyr_library_sources_ifdef(CONFIG_VIDEO_HIMAX_HM01B0 hm01b0.c)
14+
zephyr_library_sources_ifdef(CONFIG_VIDEO_HM01B0 hm01b0.c)
1515
zephyr_library_sources_ifdef(CONFIG_VIDEO_HM0360 hm0360.c)
1616
zephyr_library_sources_ifdef(CONFIG_VIDEO_IMX335 imx335.c)
1717
zephyr_library_sources_ifdef(CONFIG_VIDEO_MCUX_CSI video_mcux_csi.c)

drivers/video/Kconfig.hm01b0

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Copyright The Zephyr Project Contributors
22
# SPDX-License-Identifier: Apache-2.0
3-
config VIDEO_HIMAX_HM01B0
3+
config VIDEO_HM01B0
44
bool "Real-time monochrome camera Himax HM01B0 sensor"
55
depends on DT_HAS_HIMAX_HM01B0_ENABLED
66
select I2C

0 commit comments

Comments
 (0)