1include_guard(GLOBAL)
2
3
4if (CONFIG_USE_BOARD_Project_Template_evkmimxrt1015)
5# Add set(CONFIG_USE_BOARD_Project_Template_evkmimxrt1015 true) in config.cmake to use this component
6
7message("BOARD_Project_Template_evkmimxrt1015 component is included from ${CMAKE_CURRENT_LIST_FILE}.")
8
9if((CONFIG_BOARD STREQUAL evkmimxrt1015) AND CONFIG_USE_component_lpuart_adapter AND (CONFIG_DEVICE_ID STREQUAL MIMXRT1015xxxxx) AND CONFIG_USE_device_MIMXRT1015_startup AND CONFIG_USE_driver_common AND CONFIG_USE_driver_igpio AND CONFIG_USE_driver_iomuxc AND CONFIG_USE_driver_lpuart AND CONFIG_USE_driver_nic301 AND CONFIG_USE_driver_xip_board_evkmimxrt1015 AND CONFIG_USE_driver_xip_device 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)))
10
11add_config_file(${CMAKE_CURRENT_LIST_DIR}/project_template/board.h "" BOARD_Project_Template_evkmimxrt1015)
12add_config_file(${CMAKE_CURRENT_LIST_DIR}/project_template/board.c "" BOARD_Project_Template_evkmimxrt1015)
13add_config_file(${CMAKE_CURRENT_LIST_DIR}/project_template/clock_config.h ${CMAKE_CURRENT_LIST_DIR}/project_template/. BOARD_Project_Template_evkmimxrt1015)
14add_config_file(${CMAKE_CURRENT_LIST_DIR}/project_template/clock_config.c "" BOARD_Project_Template_evkmimxrt1015)
15add_config_file(${CMAKE_CURRENT_LIST_DIR}/project_template/pin_mux.h ${CMAKE_CURRENT_LIST_DIR}/project_template/. BOARD_Project_Template_evkmimxrt1015)
16add_config_file(${CMAKE_CURRENT_LIST_DIR}/project_template/pin_mux.c "" BOARD_Project_Template_evkmimxrt1015)
17add_config_file(${CMAKE_CURRENT_LIST_DIR}/project_template/peripherals.h ${CMAKE_CURRENT_LIST_DIR}/project_template/. BOARD_Project_Template_evkmimxrt1015)
18add_config_file(${CMAKE_CURRENT_LIST_DIR}/project_template/peripherals.c "" BOARD_Project_Template_evkmimxrt1015)
19
20target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
21  ${CMAKE_CURRENT_LIST_DIR}/project_template/.
22)
23
24if(CONFIG_USE_COMPONENT_CONFIGURATION)
25  message("===>Import configuration from ${CMAKE_CURRENT_LIST_FILE}")
26
27  target_compile_definitions(${MCUX_SDK_PROJECT_NAME} PUBLIC
28    -DXIP_EXTERNAL_FLASH=1
29    -DXIP_BOOT_HEADER_ENABLE=1
30  )
31
32endif()
33
34else()
35
36message(SEND_ERROR "BOARD_Project_Template_evkmimxrt1015 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
37
38endif()
39
40endif()
41
42
43if (CONFIG_USE_driver_xip_board_evkmimxrt1015)
44# Add set(CONFIG_USE_driver_xip_board_evkmimxrt1015 true) in config.cmake to use this component
45
46message("driver_xip_board_evkmimxrt1015 component is included from ${CMAKE_CURRENT_LIST_FILE}.")
47
48if(CONFIG_USE_driver_common AND (CONFIG_BOARD STREQUAL evkmimxrt1015))
49
50target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
51  ${CMAKE_CURRENT_LIST_DIR}/xip/evkmimxrt1015_flexspi_nor_config.c
52)
53
54target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
55  ${CMAKE_CURRENT_LIST_DIR}/xip/.
56)
57
58else()
59
60message(SEND_ERROR "driver_xip_board_evkmimxrt1015 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
61
62endif()
63
64endif()
65
66