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