1include_guard(GLOBAL)
2
3
4if (CONFIG_USE_BOARD_Project_Template_twrkm34z75m)
5# Add set(CONFIG_USE_BOARD_Project_Template_twrkm34z75m true) in config.cmake to use this component
6
7message("BOARD_Project_Template_twrkm34z75m component is included from ${CMAKE_CURRENT_LIST_FILE}.")
8
9if(CONFIG_USE_component_uart_adapter AND (CONFIG_DEVICE_ID STREQUAL MKM34Z256xxx7) AND CONFIG_USE_device_MKM34Z7_startup AND CONFIG_USE_driver_common AND CONFIG_USE_driver_gpio AND CONFIG_USE_driver_irtc AND CONFIG_USE_driver_port AND CONFIG_USE_driver_smc AND CONFIG_USE_driver_uart AND CONFIG_USE_driver_xbar 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 twrkm34z75m))
10
11add_config_file(${CMAKE_CURRENT_LIST_DIR}/project_template/board.h "" BOARD_Project_Template_twrkm34z75m)
12add_config_file(${CMAKE_CURRENT_LIST_DIR}/project_template/board.c "" BOARD_Project_Template_twrkm34z75m)
13add_config_file(${CMAKE_CURRENT_LIST_DIR}/project_template/clock_config.h ${CMAKE_CURRENT_LIST_DIR}/project_template/. BOARD_Project_Template_twrkm34z75m)
14add_config_file(${CMAKE_CURRENT_LIST_DIR}/project_template/clock_config.c "" BOARD_Project_Template_twrkm34z75m)
15add_config_file(${CMAKE_CURRENT_LIST_DIR}/project_template/pin_mux.h ${CMAKE_CURRENT_LIST_DIR}/project_template/. BOARD_Project_Template_twrkm34z75m)
16add_config_file(${CMAKE_CURRENT_LIST_DIR}/project_template/pin_mux.c "" BOARD_Project_Template_twrkm34z75m)
17add_config_file(${CMAKE_CURRENT_LIST_DIR}/project_template/peripherals.h ${CMAKE_CURRENT_LIST_DIR}/project_template/. BOARD_Project_Template_twrkm34z75m)
18add_config_file(${CMAKE_CURRENT_LIST_DIR}/project_template/peripherals.c "" BOARD_Project_Template_twrkm34z75m)
19
20target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
21  ${CMAKE_CURRENT_LIST_DIR}/project_template/.
22)
23
24else()
25
26message(SEND_ERROR "BOARD_Project_Template_twrkm34z75m dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
27
28endif()
29
30endif()
31
32