diff options
Diffstat (limited to 'lib/chibios-contrib/ext/mcux-sdk/components/video/camera/receiver/csi/driver_camera-receiver-csi.cmake')
-rw-r--r-- | lib/chibios-contrib/ext/mcux-sdk/components/video/camera/receiver/csi/driver_camera-receiver-csi.cmake | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/lib/chibios-contrib/ext/mcux-sdk/components/video/camera/receiver/csi/driver_camera-receiver-csi.cmake b/lib/chibios-contrib/ext/mcux-sdk/components/video/camera/receiver/csi/driver_camera-receiver-csi.cmake new file mode 100644 index 000000000..4f41247db --- /dev/null +++ b/lib/chibios-contrib/ext/mcux-sdk/components/video/camera/receiver/csi/driver_camera-receiver-csi.cmake | |||
@@ -0,0 +1,28 @@ | |||
1 | if(NOT DRIVER_CAMERA-RECEIVER-CSI_INCLUDED) | ||
2 | |||
3 | set(DRIVER_CAMERA-RECEIVER-CSI_INCLUDED true CACHE BOOL "driver_camera-receiver-csi component is included.") | ||
4 | |||
5 | target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE | ||
6 | ${CMAKE_CURRENT_LIST_DIR}/fsl_csi_camera_adapter.c | ||
7 | ) | ||
8 | |||
9 | target_include_directories(${MCUX_SDK_PROJECT_NAME} PRIVATE | ||
10 | ${CMAKE_CURRENT_LIST_DIR}/. | ||
11 | ) | ||
12 | |||
13 | #OR Logic component | ||
14 | if(${MCUX_DEVICE} STREQUAL "MIMXRT1052") | ||
15 | include(driver_camera-receiver-common) | ||
16 | endif() | ||
17 | if(${MCUX_DEVICE} STREQUAL "MIMXRT1064") | ||
18 | include(driver_camera-receiver-common) | ||
19 | endif() | ||
20 | if(${MCUX_DEVICE} STREQUAL "MIMXRT1062") | ||
21 | include(driver_camera-receiver-common) | ||
22 | endif() | ||
23 | |||
24 | include(driver_camera-common) | ||
25 | include(driver_video-common) | ||
26 | include(driver_csi) | ||
27 | |||
28 | endif() \ No newline at end of file | ||