aboutsummaryrefslogtreecommitdiff
path: root/lib/chibios-contrib/ext/mcux-sdk/components/codec/wm8960/driver_wm8960.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'lib/chibios-contrib/ext/mcux-sdk/components/codec/wm8960/driver_wm8960.cmake')
-rw-r--r--lib/chibios-contrib/ext/mcux-sdk/components/codec/wm8960/driver_wm8960.cmake50
1 files changed, 50 insertions, 0 deletions
diff --git a/lib/chibios-contrib/ext/mcux-sdk/components/codec/wm8960/driver_wm8960.cmake b/lib/chibios-contrib/ext/mcux-sdk/components/codec/wm8960/driver_wm8960.cmake
new file mode 100644
index 000000000..b4a1a1eab
--- /dev/null
+++ b/lib/chibios-contrib/ext/mcux-sdk/components/codec/wm8960/driver_wm8960.cmake
@@ -0,0 +1,50 @@
1if(NOT DRIVER_WM8960_INCLUDED)
2
3 set(DRIVER_WM8960_INCLUDED true CACHE BOOL "driver_wm8960 component is included.")
4
5 target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
6 ${CMAKE_CURRENT_LIST_DIR}/fsl_wm8960.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 "MIMXRT1064")
18 include(component_codec_i2c_MIMXRT1064)
19 endif()
20 if(${MCUX_DEVICE} STREQUAL "MIMX8QM6_cm4_core0")
21 include(component_codec_i2c_MIMX8QM6_cm4_core0)
22 endif()
23 if(${MCUX_DEVICE} STREQUAL "MIMX8QM6_cm4_core1")
24 include(component_codec_i2c_MIMX8QM6_cm4_core1)
25 endif()
26 if(${MCUX_DEVICE} STREQUAL "MIMX8QX6")
27 include(component_codec_i2c_MIMX8QX6)
28 endif()
29 if(${MCUX_DEVICE} STREQUAL "MIMXRT1021")
30 include(component_codec_i2c_MIMXRT1021)
31 endif()
32 if(${MCUX_DEVICE} STREQUAL "MIMXRT1062")
33 include(component_codec_i2c_MIMXRT1062)
34 endif()
35 if(${MCUX_DEVICE} STREQUAL "MCIMX7U5")
36 include(component_codec_i2c_MCIMX7U5)
37 endif()
38 if(${MCUX_DEVICE} STREQUAL "MIMXRT1024")
39 include(component_codec_i2c_MIMXRT1024)
40 endif()
41 if(${MCUX_DEVICE} STREQUAL "MIMXRT1011")
42 include(component_codec_i2c_MIMXRT1011)
43 endif()
44 if(${MCUX_DEVICE} STREQUAL "MIMXRT1015")
45 include(component_codec_i2c_MIMXRT1015)
46 endif()
47
48 include(driver_common)
49
50endif() \ No newline at end of file