File tree 12 files changed +36
-44
lines changed
12 files changed +36
-44
lines changed Original file line number Diff line number Diff line change @@ -13,6 +13,10 @@ menuconfig VIDEO
13
13
14
14
if VIDEO
15
15
16
+ module = VIDEO
17
+ module-str = video
18
+ source "subsys/logging/Kconfig.template.log_config"
19
+
16
20
config VIDEO_INIT_PRIORITY
17
21
int "Video initialization priority"
18
22
default 60
Original file line number Diff line number Diff line change @@ -16,7 +16,3 @@ config VIDEO_STM32_DCMI
16
16
select USE_STM32_HAL_DMA_EX if $(DT_STM32_DCMI_HAS_DMA)
17
17
help
18
18
Enable driver for STM32 Digital camera interface periheral.
19
-
20
- module = STM32_DCMI
21
- module-str = stm32_dcmi
22
- source "subsys/logging/Kconfig.template.log_config"
Original file line number Diff line number Diff line change 6
6
*/
7
7
8
8
#define DT_DRV_COMPAT aptina_mt9m114
9
+
9
10
#include <zephyr/kernel.h>
10
11
#include <zephyr/device.h>
11
-
12
+ #include <zephyr/logging/log.h>
12
13
#include <zephyr/sys/byteorder.h>
13
-
14
14
#include <zephyr/drivers/video.h>
15
15
#include <zephyr/drivers/i2c.h>
16
16
17
- #define LOG_LEVEL CONFIG_LOG_DEFAULT_LEVEL
18
- #include <zephyr/logging/log.h>
19
- LOG_MODULE_REGISTER (mt9m114 );
17
+ LOG_MODULE_REGISTER (video_mt9m114 , CONFIG_VIDEO_LOG_LEVEL );
20
18
21
19
#define MT9M114_CHIP_ID_VAL 0x2481
22
20
Original file line number Diff line number Diff line change 5
5
*/
6
6
7
7
#define DT_DRV_COMPAT ovti_ov2640
8
+
8
9
#include <zephyr/kernel.h>
9
10
#include <zephyr/device.h>
10
-
11
+ #include <zephyr/logging/log.h>
11
12
#include <zephyr/drivers/video.h>
12
13
#include <zephyr/drivers/i2c.h>
13
14
#include <zephyr/drivers/gpio.h>
14
15
15
- #define LOG_LEVEL CONFIG_LOG_DEFAULT_LEVEL
16
- #include <zephyr/logging/log.h>
17
- LOG_MODULE_REGISTER (ov2640 );
16
+ LOG_MODULE_REGISTER (video_ov2640 , CONFIG_VIDEO_LOG_LEVEL );
18
17
19
18
/* DSP register bank FF=0x00*/
20
19
#define QS 0x44
Original file line number Diff line number Diff line change 6
6
7
7
#define DT_DRV_COMPAT ovti_ov5640
8
8
9
+ #include <zephyr/kernel.h>
9
10
#include <zephyr/device.h>
11
+ #include <zephyr/logging/log.h>
12
+ #include <zephyr/sys/byteorder.h>
10
13
#include <zephyr/drivers/i2c.h>
11
14
#include <zephyr/drivers/gpio.h>
12
15
#include <zephyr/drivers/video.h>
13
- #include <zephyr/kernel.h>
14
16
15
- #define LOG_LEVEL CONFIG_LOG_DEFAULT_LEVEL
16
- #include <zephyr/logging/log.h>
17
- LOG_MODULE_REGISTER (ov5640 );
18
-
19
- #include <zephyr/sys/byteorder.h>
17
+ LOG_MODULE_REGISTER (video_ov5640 , CONFIG_VIDEO_LOG_LEVEL );
20
18
21
19
#define CHIP_ID_REG 0x300a
22
20
#define CHIP_ID_VAL 0x5640
Original file line number Diff line number Diff line change 9
9
#include <zephyr/drivers/gpio.h>
10
10
#include <zephyr/drivers/i2c.h>
11
11
#include <zephyr/drivers/video.h>
12
-
13
- #define LOG_LEVEL CONFIG_LOG_DEFAULT_LEVEL
14
12
#include <zephyr/logging/log.h>
15
- LOG_MODULE_REGISTER (ov7670 );
13
+
14
+ LOG_MODULE_REGISTER (video_ov7670 , CONFIG_VIDEO_LOG_LEVEL );
16
15
17
16
/* Initialization register structure */
18
17
struct ov7670_reg {
Original file line number Diff line number Diff line change 5
5
*/
6
6
7
7
#define DT_DRV_COMPAT ovti_ov7725
8
+
8
9
#include <zephyr/kernel.h>
9
10
#include <zephyr/device.h>
10
-
11
11
#include <zephyr/sys/byteorder.h>
12
-
12
+ #include <zephyr/logging/log.h>
13
13
#include <zephyr/drivers/video.h>
14
14
#include <zephyr/drivers/i2c.h>
15
15
#include <zephyr/drivers/gpio.h>
16
16
17
- #define LOG_LEVEL CONFIG_LOG_DEFAULT_LEVEL
18
- #include <zephyr/logging/log.h>
19
- LOG_MODULE_REGISTER (ov7725 );
17
+ LOG_MODULE_REGISTER (video_ov7725 , CONFIG_VIDEO_LOG_LEVEL );
20
18
21
19
#define OV7725_REVISION 0x7721U
22
20
Original file line number Diff line number Diff line change 3
3
*
4
4
* SPDX-License-Identifier: Apache-2.0
5
5
*/
6
- #include <zephyr/kernel.h>
7
6
7
+ #include <zephyr/kernel.h>
8
8
#include <zephyr/drivers/video.h>
9
9
10
10
K_HEAP_DEFINE (video_buffer_pool ,
Original file line number Diff line number Diff line change 7
7
#define DT_DRV_COMPAT nxp_imx_csi
8
8
9
9
#include <zephyr/kernel.h>
10
+ #include <zephyr/irq.h>
11
+ #include <zephyr/drivers/video.h>
12
+ #include <zephyr/drivers/pinctrl.h>
10
13
11
14
#include <fsl_csi.h>
12
15
13
16
#ifdef CONFIG_HAS_MCUX_CACHE
14
17
#include <fsl_cache.h>
15
18
#endif
16
19
17
- #include <zephyr/drivers/video.h>
18
- #include <zephyr/drivers/pinctrl.h>
19
- #include <zephyr/irq.h>
20
-
21
20
struct video_mcux_csi_config {
22
21
CSI_Type * base ;
23
22
const struct device * source_dev ;
Original file line number Diff line number Diff line change 6
6
7
7
#define DT_DRV_COMPAT nxp_mipi_csi2rx
8
8
9
- #include <fsl_mipi_csi2rx.h>
10
-
11
9
#include <zephyr/drivers/video.h>
12
10
#include <zephyr/kernel.h>
13
-
14
- #define LOG_LEVEL CONFIG_LOG_DEFAULT_LEVEL
15
11
#include <zephyr/logging/log.h>
16
- LOG_MODULE_REGISTER (mipi_csi );
12
+
13
+ #include <fsl_mipi_csi2rx.h>
14
+
15
+ LOG_MODULE_REGISTER (video_mipi_csi2rx , CONFIG_VIDEO_LOG_LEVEL );
17
16
18
17
/*
19
18
* Two data lanes are set by default as 2-lanes camera sensors are
Original file line number Diff line number Diff line change 7
7
#define DT_DRV_COMPAT st_stm32_dcmi
8
8
9
9
#include <errno.h>
10
+
10
11
#include <zephyr/kernel.h>
12
+ #include <zephyr/irq.h>
13
+ #include <zephyr/logging/log.h>
11
14
#include <zephyr/drivers/video.h>
12
15
#include <zephyr/drivers/pinctrl.h>
13
- #include <zephyr/irq.h>
14
16
#include <zephyr/drivers/clock_control/stm32_clock_control.h>
15
17
#include <zephyr/drivers/clock_control.h>
16
18
#include <zephyr/drivers/dma.h>
17
19
#include <zephyr/drivers/dma/dma_stm32.h>
18
20
19
21
#include <stm32_ll_dma.h>
20
22
21
- #include <zephyr/logging/log.h>
22
- LOG_MODULE_REGISTER (video_stm32_dcmi , CONFIG_STM32_DCMI_LOG_LEVEL );
23
+ LOG_MODULE_REGISTER (video_stm32_dcmi , CONFIG_VIDEO_LOG_LEVEL );
23
24
24
25
K_HEAP_DEFINE (video_stm32_buffer_pool , CONFIG_VIDEO_BUFFER_POOL_SZ_MAX );
25
26
Original file line number Diff line number Diff line change 3
3
*
4
4
* SPDX-License-Identifier: Apache-2.0
5
5
*/
6
- #include <zephyr/kernel.h>
7
6
8
- #include <zephyr/drivers/video.h>
7
+ #define DT_DRV_COMPAT zephyr_sw_generator
9
8
10
- #define LOG_LEVEL CONFIG_LOG_DEFAULT_LEVEL
9
+ #include <zephyr/kernel.h>
10
+ #include <zephyr/drivers/video.h>
11
11
#include <zephyr/logging/log.h>
12
- LOG_MODULE_REGISTER (video_sw_generator );
12
+
13
+ LOG_MODULE_REGISTER (video_sw_generator , CONFIG_VIDEO_LOG_LEVEL );
13
14
14
15
#define VIDEO_PATTERN_COLOR_BAR 0
15
16
#define VIDEO_PATTERN_FPS 30
You can’t perform that action at this time.
0 commit comments