Skip to content

Commit 0b77f8e

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 d1f4dc4 commit 0b77f8e

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
@@ -29,6 +29,6 @@ zephyr_library_sources_ifdef(CONFIG_VIDEO_ST_MIPID02 video_st_mipid02.c)
2929
zephyr_library_sources_ifdef(CONFIG_VIDEO_STM32_DCMIPP video_stm32_dcmipp.c)
3030
zephyr_library_sources_ifdef(CONFIG_VIDEO_RENESAS_RA_CEU video_renesas_ra_ceu.c)
3131
zephyr_library_sources_ifdef(CONFIG_VIDEO_STM32_JPEG video_stm32_jpeg.c)
32-
zephyr_library_sources_ifdef(CONFIG_VIDEO_HIMAX_HM01B0 hm01b0.c)
32+
zephyr_library_sources_ifdef(CONFIG_VIDEO_HM01B0 hm01b0.c)
3333

3434
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)