34
34
#define STM32_DCMIPP_HAS_PIXEL_PIPES
35
35
#endif
36
36
37
+ #if defined(STM32_DCMIPP_HAS_PIXEL_PIPES )
37
38
/* Weak function declaration in order to interface with external ISP handler */
38
39
void __weak stm32_dcmipp_isp_vsync_update (DCMIPP_HandleTypeDef * hdcmipp , uint32_t Pipe )
39
40
{
@@ -53,6 +54,7 @@ int __weak stm32_dcmipp_isp_stop(void)
53
54
{
54
55
return 0 ;
55
56
}
57
+ #endif
56
58
57
59
LOG_MODULE_REGISTER (stm32_dcmipp , CONFIG_VIDEO_LOG_LEVEL );
58
60
@@ -171,11 +173,13 @@ void HAL_DCMIPP_PIPE_VsyncEventCallback(DCMIPP_HandleTypeDef *hdcmipp, uint32_t
171
173
struct stm32_dcmipp_pipe_data * pipe = dcmipp -> pipe [Pipe ];
172
174
int ret ;
173
175
176
+ #if defined(STM32_DCMIPP_HAS_PIXEL_PIPES )
174
177
/*
175
178
* Let the external ISP handler know that a VSYNC happened a new statistics are
176
179
* thus available
177
180
*/
178
181
stm32_dcmipp_isp_vsync_update (hdcmipp , Pipe );
182
+ #endif
179
183
180
184
if (pipe -> state != STM32_DCMIPP_RUNNING ) {
181
185
return ;
@@ -1029,13 +1033,13 @@ static int stm32_dcmipp_stream_enable(const struct device *dev)
1029
1033
goto out ;
1030
1034
}
1031
1035
}
1032
- #endif
1033
1036
1034
1037
/* Initialize the external ISP handling stack */
1035
1038
ret = stm32_dcmipp_isp_init (& dcmipp -> hdcmipp , config -> source_dev );
1036
1039
if (ret < 0 ) {
1037
1040
goto out ;
1038
1041
}
1042
+ #endif
1039
1043
1040
1044
/* Enable the DCMIPP Pipeline */
1041
1045
if (config -> bus_type == VIDEO_BUS_TYPE_PARALLEL ) {
@@ -1082,11 +1086,13 @@ static int stm32_dcmipp_stream_enable(const struct device *dev)
1082
1086
}
1083
1087
}
1084
1088
1089
+ #if defined(STM32_DCMIPP_HAS_PIXEL_PIPES )
1085
1090
/* Start the external ISP handling */
1086
1091
ret = stm32_dcmipp_isp_start ();
1087
1092
if (ret < 0 ) {
1088
1093
goto out ;
1089
1094
}
1095
+ #endif
1090
1096
1091
1097
pipe -> state = STM32_DCMIPP_RUNNING ;
1092
1098
pipe -> is_streaming = true;
@@ -1112,11 +1118,13 @@ static int stm32_dcmipp_stream_disable(const struct device *dev)
1112
1118
goto out ;
1113
1119
}
1114
1120
1121
+ #if defined(STM32_DCMIPP_HAS_PIXEL_PIPES )
1115
1122
/* Stop the external ISP handling */
1116
1123
ret = stm32_dcmipp_isp_stop ();
1117
1124
if (ret < 0 ) {
1118
1125
goto out ;
1119
1126
}
1127
+ #endif
1120
1128
1121
1129
/* Disable the DCMIPP Pipeline */
1122
1130
if (config -> bus_type == VIDEO_BUS_TYPE_PARALLEL ) {
0 commit comments