forked from nxp-mcuxpresso/mcuxsdk-middleware-sdmmc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
middleware_sdmmc_mmc.cmake
42 lines (38 loc) · 1.15 KB
/
middleware_sdmmc_mmc.cmake
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
#Description: SDMMC mmc stack; user_visible: True
include_guard(GLOBAL)
message("middleware_sdmmc_mmc component is included.")
target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
${CMAKE_CURRENT_LIST_DIR}/mmc/fsl_mmc.c
)
target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
${CMAKE_CURRENT_LIST_DIR}/mmc
)
#OR Logic component
if(${MCUX_DEVICE} STREQUAL "MIMXRT1052")
include(middleware_sdmmc_host_usdhc)
endif()
if(${MCUX_DEVICE} STREQUAL "MIMXRT1064")
include(middleware_sdmmc_host_usdhc)
endif()
if(${MCUX_DEVICE} STREQUAL "LPC54628")
include(middleware_sdmmc_host_sdif)
endif()
if(${MCUX_DEVICE} STREQUAL "MIMXRT1021")
include(middleware_sdmmc_host_usdhc)
endif()
if(${MCUX_DEVICE} STREQUAL "MIMXRT1062")
include(middleware_sdmmc_host_usdhc)
endif()
if(${MCUX_DEVICE} STREQUAL "LPC54S018")
include(middleware_sdmmc_host_sdif)
endif()
if(${MCUX_DEVICE} STREQUAL "LPC54S018M")
include(middleware_sdmmc_host_sdif)
endif()
if(${MCUX_DEVICE} STREQUAL "MIMXRT1024")
include(middleware_sdmmc_host_usdhc)
endif()
if(${MCUX_DEVICE} STREQUAL "MIMXRT595S_cm33")
include(middleware_sdmmc_host_usdhc)
endif()
include(middleware_sdmmc_common)