diff options
Diffstat (limited to 'lib/chibios-contrib/ext/mcux-sdk/components/codec/cs42888/driver_cs42888.cmake')
-rw-r--r-- | lib/chibios-contrib/ext/mcux-sdk/components/codec/cs42888/driver_cs42888.cmake | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/lib/chibios-contrib/ext/mcux-sdk/components/codec/cs42888/driver_cs42888.cmake b/lib/chibios-contrib/ext/mcux-sdk/components/codec/cs42888/driver_cs42888.cmake new file mode 100644 index 000000000..ad1d6c502 --- /dev/null +++ b/lib/chibios-contrib/ext/mcux-sdk/components/codec/cs42888/driver_cs42888.cmake | |||
@@ -0,0 +1,32 @@ | |||
1 | if(NOT DRIVER_CS42888_INCLUDED) | ||
2 | |||
3 | set(DRIVER_CS42888_INCLUDED true CACHE BOOL "driver_cs42888 component is included.") | ||
4 | |||
5 | target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE | ||
6 | ${CMAKE_CURRENT_LIST_DIR}/fsl_cs42888.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(component_codec_i2c_MIMXRT1052) | ||
16 | endif() | ||
17 | if(${MCUX_DEVICE} STREQUAL "MIMX8QM6_cm4_core0") | ||
18 | include(component_codec_i2c_MIMX8QM6_cm4_core0) | ||
19 | endif() | ||
20 | if(${MCUX_DEVICE} STREQUAL "MIMX8QM6_cm4_core1") | ||
21 | include(component_codec_i2c_MIMX8QM6_cm4_core1) | ||
22 | endif() | ||
23 | if(${MCUX_DEVICE} STREQUAL "MIMX8QX6") | ||
24 | include(component_codec_i2c_MIMX8QX6) | ||
25 | endif() | ||
26 | if(${MCUX_DEVICE} STREQUAL "MIMXRT685S_cm33") | ||
27 | include(component_codec_i2c_MIMXRT685S_cm33) | ||
28 | endif() | ||
29 | |||
30 | include(driver_common) | ||
31 | |||
32 | endif() \ No newline at end of file | ||