diff options
Diffstat (limited to 'lib/chibios-contrib/ext/mcux-sdk/components/osa/component_osa_bm.cmake')
-rw-r--r-- | lib/chibios-contrib/ext/mcux-sdk/components/osa/component_osa_bm.cmake | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/lib/chibios-contrib/ext/mcux-sdk/components/osa/component_osa_bm.cmake b/lib/chibios-contrib/ext/mcux-sdk/components/osa/component_osa_bm.cmake new file mode 100644 index 000000000..8775338ee --- /dev/null +++ b/lib/chibios-contrib/ext/mcux-sdk/components/osa/component_osa_bm.cmake | |||
@@ -0,0 +1,35 @@ | |||
1 | if(NOT COMPONENT_OSA_BM_INCLUDED) | ||
2 | |||
3 | set(COMPONENT_OSA_BM_INCLUDED true CACHE BOOL "component_osa_bm component is included.") | ||
4 | |||
5 | target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE | ||
6 | ${CMAKE_CURRENT_LIST_DIR}/fsl_os_abstraction_bm.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_lists) | ||
16 | endif() | ||
17 | if(${MCUX_DEVICE} STREQUAL "MIMXRT1064") | ||
18 | include(component_lists) | ||
19 | endif() | ||
20 | if(${MCUX_DEVICE} STREQUAL "MK66F18") | ||
21 | include(component_lists) | ||
22 | endif() | ||
23 | if(${MCUX_DEVICE} STREQUAL "MIMXRT1021") | ||
24 | include(component_lists) | ||
25 | endif() | ||
26 | if(${MCUX_DEVICE} STREQUAL "MIMXRT1062") | ||
27 | include(component_lists) | ||
28 | endif() | ||
29 | if(${MCUX_DEVICE} STREQUAL "MIMXRT1024") | ||
30 | include(component_lists) | ||
31 | endif() | ||
32 | |||
33 | include(driver_common) | ||
34 | |||
35 | endif() \ No newline at end of file | ||