Skip to content

Commit 2b5ebfe

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. Note: my handling of these two pins is similar to what OpenCV or was it ME that if the first configuration of the pins (HIGH versus LOW), it tries all of the combinations until one works or it completely fails. 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 8aba2e3 commit 2b5ebfe

File tree

5 files changed

+487
-19
lines changed

5 files changed

+487
-19
lines changed

drivers/video/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,6 @@ zephyr_library_sources_ifdef(CONFIG_VIDEO_ST_MIPID02 video_st_mipid02.c)
2828
zephyr_library_sources_ifdef(CONFIG_VIDEO_STM32_DCMIPP video_stm32_dcmipp.c)
2929
zephyr_library_sources_ifdef(CONFIG_VIDEO_RENESAS_RA_CEU video_renesas_ra_ceu.c)
3030
zephyr_library_sources_ifdef(CONFIG_VIDEO_STM32_JPEG video_stm32_jpeg.c)
31-
zephyr_library_sources_ifdef(CONFIG_VIDEO_HIMAX_HM01B0 hm01b0.c)
31+
zephyr_library_sources_ifdef(CONFIG_VIDEO_HM01B0 hm01b0.c)
3232

3333
zephyr_linker_sources(DATA_SECTIONS video.ld)

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)