1include_guard(GLOBAL)
2
3
4if (CONFIG_USE_BOARD_Project_Template_frdmk32l3a6)
5# Add set(CONFIG_USE_BOARD_Project_Template_frdmk32l3a6 true) in config.cmake to use this component
6
7message("BOARD_Project_Template_frdmk32l3a6 component is included from ${CMAKE_CURRENT_LIST_FILE}.")
8
9if(CONFIG_USE_component_lpuart_adapter AND (CONFIG_DEVICE_ID STREQUAL K32L3A60xxx) AND CONFIG_USE_device_K32L3A60_startup AND CONFIG_USE_driver_common AND CONFIG_USE_driver_gpio AND CONFIG_USE_driver_lpi2c AND CONFIG_USE_driver_lpuart AND CONFIG_USE_driver_msmc AND CONFIG_USE_driver_port AND ((CONFIG_USE_component_serial_manager AND CONFIG_USE_utility_assert AND CONFIG_USE_utility_debug_console) OR (CONFIG_USE_utility_assert_lite AND CONFIG_USE_utility_debug_console_lite)) AND (CONFIG_BOARD STREQUAL frdmk32l3a6))
10
11target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
12  ${CMAKE_CURRENT_LIST_DIR}/project_template/board.c
13  ${CMAKE_CURRENT_LIST_DIR}/project_template/clock_config.c
14)
15
16if(CONFIG_CORE STREQUAL cm4f)
17  target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
18      ${CMAKE_CURRENT_LIST_DIR}/project_template/cm4/pin_mux.c
19      ${CMAKE_CURRENT_LIST_DIR}/project_template/cm4/peripherals.c
20  )
21endif()
22
23if(CONFIG_CORE STREQUAL cm0p)
24  target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
25      ${CMAKE_CURRENT_LIST_DIR}/project_template/cm0plus/pin_mux.c
26      ${CMAKE_CURRENT_LIST_DIR}/project_template/cm0plus/peripherals.c
27  )
28endif()
29
30target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
31  ${CMAKE_CURRENT_LIST_DIR}/project_template/.
32)
33
34if(CONFIG_CORE STREQUAL cm4f)
35target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
36  ${CMAKE_CURRENT_LIST_DIR}/project_template/cm4
37)
38endif()
39
40if(CONFIG_CORE STREQUAL cm0p)
41target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
42  ${CMAKE_CURRENT_LIST_DIR}/project_template/cm0plus
43)
44endif()
45
46else()
47
48message(SEND_ERROR "BOARD_Project_Template_frdmk32l3a6 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
49
50endif()
51
52endif()
53
54