1#Description: SPI CMSIS Driver; user_visible: True
2include_guard(GLOBAL)
3message("driver_cmsis_spi component is included.")
4
5target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
6    ${CMAKE_CURRENT_LIST_DIR}/fsl_spi_cmsis.c
7)
8
9target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
10    ${CMAKE_CURRENT_LIST_DIR}/.
11)
12
13#OR Logic component
14if(${MCUX_DEVICE} STREQUAL "K32L2B31A")
15    include(driver_spi_dma)
16endif()
17if(${MCUX_DEVICE} STREQUAL "MKM14ZA5")
18    include(driver_spi_dma)
19endif()
20if(${MCUX_DEVICE} STREQUAL "MKM34ZA5")
21    include(driver_spi_dma)
22endif()
23if(${MCUX_DEVICE} STREQUAL "MKE02Z4")
24    include(driver_spi)
25endif()
26if(${MCUX_DEVICE} STREQUAL "K32L2B11A")
27    include(driver_spi_dma)
28endif()
29if(${MCUX_DEVICE} STREQUAL "MKM35Z7")
30    include(driver_spi_dma)
31endif()
32if(${MCUX_DEVICE} STREQUAL "K32L2B21A")
33    include(driver_spi_dma)
34endif()
35if(${MCUX_DEVICE} STREQUAL "MKM34Z7")
36    include(driver_spi_dma)
37endif()
38if(${MCUX_DEVICE} STREQUAL "MKM33ZA5")
39    include(driver_spi_dma)
40endif()
41if(${MCUX_DEVICE} STREQUAL "MKE06Z4")
42    include(driver_spi)
43endif()
44if(${MCUX_DEVICE} STREQUAL "MKE04Z1284")
45    include(driver_spi)
46endif()
47
48include(CMSIS_Driver_Include_SPI)
49