1include_guard(GLOBAL) 2 3 4if (CONFIG_USE_middleware_baremetal) 5# Add set(CONFIG_USE_middleware_baremetal true) in config.cmake to use this component 6 7message("middleware_baremetal component is included from ${CMAKE_CURRENT_LIST_FILE}.") 8 9if(CONFIG_USE_COMPONENT_CONFIGURATION) 10 message("===>Import configuration from ${CMAKE_CURRENT_LIST_FILE}") 11 12 target_compile_definitions(${MCUX_SDK_PROJECT_NAME} PUBLIC 13 -DSDK_OS_BAREMETAL 14 ) 15 16endif() 17 18 19endif() 20 21 22if (CONFIG_USE_utilities_misc_utilities) 23# Add set(CONFIG_USE_utilities_misc_utilities true) in config.cmake to use this component 24 25message("utilities_misc_utilities component is included from ${CMAKE_CURRENT_LIST_FILE}.") 26 27if(CONFIG_TOOLCHAIN STREQUAL armgcc) 28 target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 29 ${CMAKE_CURRENT_LIST_DIR}/../../utilities/misc_utilities/fsl_sbrk.c 30 ${CMAKE_CURRENT_LIST_DIR}/../../utilities/misc_utilities/fsl_syscall_stub.c 31 ) 32endif() 33 34if(CONFIG_CORE STREQUAL cm7f AND (CONFIG_TOOLCHAIN STREQUAL armgcc OR CONFIG_TOOLCHAIN STREQUAL mcux)) 35 target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 36 ${CMAKE_CURRENT_LIST_DIR}/../../utilities/misc_utilities/fsl_memcpy.S 37 ) 38endif() 39 40 41endif() 42 43 44if (CONFIG_USE_driver_nand_flash-common) 45# Add set(CONFIG_USE_driver_nand_flash-common true) in config.cmake to use this component 46 47message("driver_nand_flash-common component is included from ${CMAKE_CURRENT_LIST_FILE}.") 48 49target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 50 ${CMAKE_CURRENT_LIST_DIR}/../../components/flash/nand/. 51) 52 53 54endif() 55 56 57if (CONFIG_USE_driver_nor_flash-common) 58# Add set(CONFIG_USE_driver_nor_flash-common true) in config.cmake to use this component 59 60message("driver_nor_flash-common component is included from ${CMAKE_CURRENT_LIST_FILE}.") 61 62target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 63 ${CMAKE_CURRENT_LIST_DIR}/../../components/flash/nor/. 64) 65 66 67endif() 68 69 70if (CONFIG_USE_component_mflash_common) 71# Add set(CONFIG_USE_component_mflash_common true) in config.cmake to use this component 72 73message("component_mflash_common component is included from ${CMAKE_CURRENT_LIST_FILE}.") 74 75target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 76 ${CMAKE_CURRENT_LIST_DIR}/../../components/flash/mflash/. 77) 78 79 80endif() 81 82 83if (CONFIG_USE_driver_mx25r_flash) 84# Add set(CONFIG_USE_driver_mx25r_flash true) in config.cmake to use this component 85 86message("driver_mx25r_flash component is included from ${CMAKE_CURRENT_LIST_FILE}.") 87 88target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 89 ${CMAKE_CURRENT_LIST_DIR}/../../components/mx25r_flash/mx25r_flash.c 90) 91 92target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 93 ${CMAKE_CURRENT_LIST_DIR}/../../components/mx25r_flash/. 94) 95 96 97endif() 98 99 100if (CONFIG_USE_driver_pf1550) 101# Add set(CONFIG_USE_driver_pf1550 true) in config.cmake to use this component 102 103message("driver_pf1550 component is included from ${CMAKE_CURRENT_LIST_FILE}.") 104 105target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 106 ${CMAKE_CURRENT_LIST_DIR}/../../components/pf1550/fsl_pf1550.c 107 ${CMAKE_CURRENT_LIST_DIR}/../../components/pf1550/fsl_pf1550_charger.c 108) 109 110target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 111 ${CMAKE_CURRENT_LIST_DIR}/../../components/pf1550/. 112) 113 114 115endif() 116 117 118if (CONFIG_USE_driver_pf3000) 119# Add set(CONFIG_USE_driver_pf3000 true) in config.cmake to use this component 120 121message("driver_pf3000 component is included from ${CMAKE_CURRENT_LIST_FILE}.") 122 123target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 124 ${CMAKE_CURRENT_LIST_DIR}/../../components/pf3000/fsl_pf3000.c 125) 126 127target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 128 ${CMAKE_CURRENT_LIST_DIR}/../../components/pf3000/. 129) 130 131 132endif() 133 134 135if (CONFIG_USE_driver_phy-common) 136# Add set(CONFIG_USE_driver_phy-common true) in config.cmake to use this component 137 138message("driver_phy-common component is included from ${CMAKE_CURRENT_LIST_FILE}.") 139 140target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 141 ${CMAKE_CURRENT_LIST_DIR}/../../components/phy/. 142) 143 144 145endif() 146 147 148if (CONFIG_USE_component_wifi_bt_module_tx_pwr_limits) 149# Add set(CONFIG_USE_component_wifi_bt_module_tx_pwr_limits true) in config.cmake to use this component 150 151message("component_wifi_bt_module_tx_pwr_limits component is included from ${CMAKE_CURRENT_LIST_FILE}.") 152 153target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 154 ${CMAKE_CURRENT_LIST_DIR}/../../components/wifi_bt_module/AzureWave/tx_pwr_limits 155 ${CMAKE_CURRENT_LIST_DIR}/../../components/wifi_bt_module/Murata/tx_pwr_limits 156) 157 158 159endif() 160 161 162if (CONFIG_USE_driver_rtt_template) 163# Add set(CONFIG_USE_driver_rtt_template true) in config.cmake to use this component 164 165message("driver_rtt_template component is included from ${CMAKE_CURRENT_LIST_FILE}.") 166 167add_config_file(${CMAKE_CURRENT_LIST_DIR}/../../components/rtt/template/SEGGER_RTT_Conf.h ${CMAKE_CURRENT_LIST_DIR}/../../components/rtt/template driver_rtt_template.MIMXRT1052) 168 169 170endif() 171 172 173if (CONFIG_USE_DEVICES_Project_Template_MIMXRT1052) 174# Add set(CONFIG_USE_DEVICES_Project_Template_MIMXRT1052 true) in config.cmake to use this component 175 176message("DEVICES_Project_Template_MIMXRT1052 component is included from ${CMAKE_CURRENT_LIST_FILE}.") 177 178if(CONFIG_USE_component_lpuart_adapter AND (CONFIG_DEVICE_ID STREQUAL MIMXRT1052xxxxB) AND CONFIG_USE_device_MIMXRT1052_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_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))) 179 180add_config_file(${CMAKE_CURRENT_LIST_DIR}/project_template/board.h "" DEVICES_Project_Template_MIMXRT1052.MIMXRT1052) 181add_config_file(${CMAKE_CURRENT_LIST_DIR}/project_template/board.c "" DEVICES_Project_Template_MIMXRT1052.MIMXRT1052) 182add_config_file(${CMAKE_CURRENT_LIST_DIR}/project_template/clock_config.h "" DEVICES_Project_Template_MIMXRT1052.MIMXRT1052) 183add_config_file(${CMAKE_CURRENT_LIST_DIR}/project_template/clock_config.c "" DEVICES_Project_Template_MIMXRT1052.MIMXRT1052) 184add_config_file(${CMAKE_CURRENT_LIST_DIR}/project_template/pin_mux.h "" DEVICES_Project_Template_MIMXRT1052.MIMXRT1052) 185add_config_file(${CMAKE_CURRENT_LIST_DIR}/project_template/pin_mux.c "" DEVICES_Project_Template_MIMXRT1052.MIMXRT1052) 186add_config_file(${CMAKE_CURRENT_LIST_DIR}/project_template/peripherals.h "" DEVICES_Project_Template_MIMXRT1052.MIMXRT1052) 187add_config_file(${CMAKE_CURRENT_LIST_DIR}/project_template/peripherals.c "" DEVICES_Project_Template_MIMXRT1052.MIMXRT1052) 188 189target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 190 ${CMAKE_CURRENT_LIST_DIR}/project_template/. 191) 192 193else() 194 195message(SEND_ERROR "DEVICES_Project_Template_MIMXRT1052.MIMXRT1052 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 196 197endif() 198 199endif() 200 201 202if (CONFIG_USE_device_MIMXRT1052_startup) 203# Add set(CONFIG_USE_device_MIMXRT1052_startup true) in config.cmake to use this component 204 205message("device_MIMXRT1052_startup component is included from ${CMAKE_CURRENT_LIST_FILE}.") 206 207if(CONFIG_USE_device_MIMXRT1052_system) 208 209if(CONFIG_TOOLCHAIN STREQUAL armgcc) 210 target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 211 ${CMAKE_CURRENT_LIST_DIR}/./gcc/startup_MIMXRT1052.S 212 ) 213endif() 214 215if(CONFIG_TOOLCHAIN STREQUAL mcux) 216 target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 217 ${CMAKE_CURRENT_LIST_DIR}/./mcuxpresso/startup_mimxrt1052.c 218 ${CMAKE_CURRENT_LIST_DIR}/./mcuxpresso/startup_mimxrt1052.cpp 219 ) 220endif() 221 222else() 223 224message(SEND_ERROR "device_MIMXRT1052_startup.MIMXRT1052 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 225 226endif() 227 228endif() 229 230 231if (CONFIG_USE_device_MIMXRT1052_CMSIS) 232# Add set(CONFIG_USE_device_MIMXRT1052_CMSIS true) in config.cmake to use this component 233 234message("device_MIMXRT1052_CMSIS component is included from ${CMAKE_CURRENT_LIST_FILE}.") 235 236if(CONFIG_USE_CMSIS_Include_core_cm AND (CONFIG_DEVICE_ID STREQUAL MIMXRT1052xxxxB)) 237 238target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 239 ${CMAKE_CURRENT_LIST_DIR}/./. 240) 241 242else() 243 244message(SEND_ERROR "device_MIMXRT1052_CMSIS.MIMXRT1052 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 245 246endif() 247 248endif() 249 250 251if (CONFIG_USE_RTE_Device) 252# Add set(CONFIG_USE_RTE_Device true) in config.cmake to use this component 253 254message("RTE_Device component is included from ${CMAKE_CURRENT_LIST_FILE}.") 255 256if((CONFIG_DEVICE_ID STREQUAL MIMXRT1052xxxxB) AND CONFIG_USE_driver_edma) 257 258add_config_file(${CMAKE_CURRENT_LIST_DIR}/template/RTE_Device.h "" RTE_Device.MIMXRT1052) 259 260target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 261 ${CMAKE_CURRENT_LIST_DIR}/template/. 262) 263 264else() 265 266message(SEND_ERROR "RTE_Device.MIMXRT1052 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 267 268endif() 269 270endif() 271 272 273if (CONFIG_USE_driver_sai_edma) 274# Add set(CONFIG_USE_driver_sai_edma true) in config.cmake to use this component 275 276message("driver_sai_edma component is included from ${CMAKE_CURRENT_LIST_FILE}.") 277 278if(CONFIG_USE_driver_edma AND CONFIG_USE_driver_sai AND (CONFIG_DEVICE_ID STREQUAL MIMXRT1052xxxxB)) 279 280target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 281 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/sai/fsl_sai_edma.c 282) 283 284target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 285 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/sai/. 286) 287 288else() 289 290message(SEND_ERROR "driver_sai_edma.MIMXRT1052 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 291 292endif() 293 294endif() 295 296 297if (CONFIG_USE_driver_lpi2c_edma) 298# Add set(CONFIG_USE_driver_lpi2c_edma true) in config.cmake to use this component 299 300message("driver_lpi2c_edma component is included from ${CMAKE_CURRENT_LIST_FILE}.") 301 302if(CONFIG_USE_driver_edma AND CONFIG_USE_driver_lpi2c AND (CONFIG_DEVICE_ID STREQUAL MIMXRT1052xxxxB)) 303 304target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 305 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/lpi2c/fsl_lpi2c_edma.c 306) 307 308target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 309 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/lpi2c/. 310) 311 312else() 313 314message(SEND_ERROR "driver_lpi2c_edma.MIMXRT1052 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 315 316endif() 317 318endif() 319 320 321if (CONFIG_USE_driver_lpspi_edma) 322# Add set(CONFIG_USE_driver_lpspi_edma true) in config.cmake to use this component 323 324message("driver_lpspi_edma component is included from ${CMAKE_CURRENT_LIST_FILE}.") 325 326if(CONFIG_USE_driver_edma AND CONFIG_USE_driver_lpspi AND (CONFIG_DEVICE_ID STREQUAL MIMXRT1052xxxxB)) 327 328target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 329 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/lpspi/fsl_lpspi_edma.c 330) 331 332target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 333 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/lpspi/. 334) 335 336else() 337 338message(SEND_ERROR "driver_lpspi_edma.MIMXRT1052 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 339 340endif() 341 342endif() 343 344 345if (CONFIG_USE_driver_lpuart_edma) 346# Add set(CONFIG_USE_driver_lpuart_edma true) in config.cmake to use this component 347 348message("driver_lpuart_edma component is included from ${CMAKE_CURRENT_LIST_FILE}.") 349 350if(CONFIG_USE_driver_edma AND CONFIG_USE_driver_lpuart AND (CONFIG_DEVICE_ID STREQUAL MIMXRT1052xxxxB)) 351 352target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 353 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/lpuart/fsl_lpuart_edma.c 354) 355 356target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 357 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/lpuart/. 358) 359 360else() 361 362message(SEND_ERROR "driver_lpuart_edma.MIMXRT1052 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 363 364endif() 365 366endif() 367 368 369if (CONFIG_USE_driver_dcp) 370# Add set(CONFIG_USE_driver_dcp true) in config.cmake to use this component 371 372message("driver_dcp component is included from ${CMAKE_CURRENT_LIST_FILE}.") 373 374if(CONFIG_USE_driver_cache_armv7_m7 AND (CONFIG_DEVICE_ID STREQUAL MIMXRT1052xxxxB) AND CONFIG_USE_driver_common) 375 376target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 377 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/dcp/fsl_dcp.c 378) 379 380target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 381 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/dcp/. 382) 383 384else() 385 386message(SEND_ERROR "driver_dcp.MIMXRT1052 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 387 388endif() 389 390endif() 391 392 393if (CONFIG_USE_driver_clock) 394# Add set(CONFIG_USE_driver_clock true) in config.cmake to use this component 395 396message("driver_clock component is included from ${CMAKE_CURRENT_LIST_FILE}.") 397 398if(CONFIG_USE_driver_common) 399 400target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 401 ${CMAKE_CURRENT_LIST_DIR}/drivers/fsl_clock.c 402) 403 404target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 405 ${CMAKE_CURRENT_LIST_DIR}/drivers/. 406) 407 408else() 409 410message(SEND_ERROR "driver_clock.MIMXRT1052 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 411 412endif() 413 414endif() 415 416 417if (CONFIG_USE_component_serial_manager_uart) 418# Add set(CONFIG_USE_component_serial_manager_uart true) in config.cmake to use this component 419 420message("component_serial_manager_uart component is included from ${CMAKE_CURRENT_LIST_FILE}.") 421 422if(CONFIG_USE_component_lpuart_adapter AND CONFIG_USE_component_serial_manager AND (CONFIG_USE_driver_lpuart)) 423 424target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 425 ${CMAKE_CURRENT_LIST_DIR}/../../components/serial_manager/fsl_component_serial_port_uart.c 426) 427 428target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 429 ${CMAKE_CURRENT_LIST_DIR}/../../components/serial_manager/. 430) 431 432if(CONFIG_USE_COMPONENT_CONFIGURATION) 433 message("===>Import configuration from ${CMAKE_CURRENT_LIST_FILE}") 434 435 target_compile_definitions(${MCUX_SDK_PROJECT_NAME} PUBLIC 436 -DSERIAL_PORT_TYPE_UART=1 437 ) 438 439endif() 440 441else() 442 443message(SEND_ERROR "component_serial_manager_uart.MIMXRT1052 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 444 445endif() 446 447endif() 448 449 450if (CONFIG_USE_utility_debug_console_lite) 451# Add set(CONFIG_USE_utility_debug_console_lite true) in config.cmake to use this component 452 453message("utility_debug_console_lite component is included from ${CMAKE_CURRENT_LIST_FILE}.") 454 455if(CONFIG_USE_component_lpuart_adapter AND (CONFIG_DEVICE_ID STREQUAL MIMXRT1052xxxxB) AND CONFIG_USE_driver_common) 456 457target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 458 ${CMAKE_CURRENT_LIST_DIR}/../../utilities/str/fsl_str.c 459 ${CMAKE_CURRENT_LIST_DIR}/../../utilities/debug_console_lite/fsl_debug_console.c 460) 461 462target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 463 ${CMAKE_CURRENT_LIST_DIR}/../../utilities/str 464 ${CMAKE_CURRENT_LIST_DIR}/../../utilities/debug_console_lite 465) 466 467else() 468 469message(SEND_ERROR "utility_debug_console_lite.MIMXRT1052 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 470 471endif() 472 473endif() 474 475 476if (CONFIG_USE_driver_iomuxc) 477# Add set(CONFIG_USE_driver_iomuxc true) in config.cmake to use this component 478 479message("driver_iomuxc component is included from ${CMAKE_CURRENT_LIST_FILE}.") 480 481if(CONFIG_USE_driver_common AND (CONFIG_DEVICE_ID STREQUAL MIMXRT1052xxxxB)) 482 483target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 484 ${CMAKE_CURRENT_LIST_DIR}/drivers/. 485) 486 487else() 488 489message(SEND_ERROR "driver_iomuxc.MIMXRT1052 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 490 491endif() 492 493endif() 494 495 496if (CONFIG_USE_driver_cmsis_lpspi) 497# Add set(CONFIG_USE_driver_cmsis_lpspi true) in config.cmake to use this component 498 499message("driver_cmsis_lpspi component is included from ${CMAKE_CURRENT_LIST_FILE}.") 500 501if(CONFIG_USE_driver_lpspi_edma AND (CONFIG_DEVICE_ID STREQUAL MIMXRT1052xxxxB) AND CONFIG_USE_driver_lpspi AND CONFIG_USE_CMSIS_Driver_Include_SPI AND CONFIG_USE_RTE_Device) 502 503target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 504 ${CMAKE_CURRENT_LIST_DIR}/../../cmsis_drivers/lpspi/fsl_lpspi_cmsis.c 505) 506 507target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 508 ${CMAKE_CURRENT_LIST_DIR}/../../cmsis_drivers/lpspi/. 509) 510 511else() 512 513message(SEND_ERROR "driver_cmsis_lpspi.MIMXRT1052 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 514 515endif() 516 517endif() 518 519 520if (CONFIG_USE_driver_cmsis_lpi2c) 521# Add set(CONFIG_USE_driver_cmsis_lpi2c true) in config.cmake to use this component 522 523message("driver_cmsis_lpi2c component is included from ${CMAKE_CURRENT_LIST_FILE}.") 524 525if(CONFIG_USE_driver_lpi2c_edma AND (CONFIG_DEVICE_ID STREQUAL MIMXRT1052xxxxB) AND CONFIG_USE_driver_lpi2c AND CONFIG_USE_CMSIS_Driver_Include_I2C AND CONFIG_USE_RTE_Device) 526 527target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 528 ${CMAKE_CURRENT_LIST_DIR}/../../cmsis_drivers/lpi2c/fsl_lpi2c_cmsis.c 529) 530 531target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 532 ${CMAKE_CURRENT_LIST_DIR}/../../cmsis_drivers/lpi2c/. 533) 534 535else() 536 537message(SEND_ERROR "driver_cmsis_lpi2c.MIMXRT1052 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 538 539endif() 540 541endif() 542 543 544if (CONFIG_USE_driver_cmsis_lpuart) 545# Add set(CONFIG_USE_driver_cmsis_lpuart true) in config.cmake to use this component 546 547message("driver_cmsis_lpuart component is included from ${CMAKE_CURRENT_LIST_FILE}.") 548 549if(CONFIG_USE_driver_lpuart_edma AND (CONFIG_DEVICE_ID STREQUAL MIMXRT1052xxxxB) AND CONFIG_USE_driver_lpuart AND CONFIG_USE_CMSIS_Driver_Include_USART AND CONFIG_USE_RTE_Device) 550 551target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 552 ${CMAKE_CURRENT_LIST_DIR}/../../cmsis_drivers/lpuart/fsl_lpuart_cmsis.c 553) 554 555target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 556 ${CMAKE_CURRENT_LIST_DIR}/../../cmsis_drivers/lpuart/. 557) 558 559else() 560 561message(SEND_ERROR "driver_cmsis_lpuart.MIMXRT1052 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 562 563endif() 564 565endif() 566 567 568if (CONFIG_USE_driver_flexio_camera_edma) 569# Add set(CONFIG_USE_driver_flexio_camera_edma true) in config.cmake to use this component 570 571message("driver_flexio_camera_edma component is included from ${CMAKE_CURRENT_LIST_FILE}.") 572 573if(CONFIG_USE_driver_edma AND CONFIG_USE_driver_flexio_camera AND (CONFIG_DEVICE_ID STREQUAL MIMXRT1052xxxxB)) 574 575target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 576 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/flexio/camera/fsl_flexio_camera_edma.c 577) 578 579target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 580 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/flexio/camera/. 581) 582 583else() 584 585message(SEND_ERROR "driver_flexio_camera_edma.MIMXRT1052 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 586 587endif() 588 589endif() 590 591 592if (CONFIG_USE_driver_flexio_i2s_edma) 593# Add set(CONFIG_USE_driver_flexio_i2s_edma true) in config.cmake to use this component 594 595message("driver_flexio_i2s_edma component is included from ${CMAKE_CURRENT_LIST_FILE}.") 596 597if(CONFIG_USE_driver_edma AND CONFIG_USE_driver_flexio_i2s AND (CONFIG_DEVICE_ID STREQUAL MIMXRT1052xxxxB)) 598 599target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 600 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/flexio/i2s/fsl_flexio_i2s_edma.c 601) 602 603target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 604 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/flexio/i2s/. 605) 606 607else() 608 609message(SEND_ERROR "driver_flexio_i2s_edma.MIMXRT1052 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 610 611endif() 612 613endif() 614 615 616if (CONFIG_USE_driver_flexio_mculcd_edma) 617# Add set(CONFIG_USE_driver_flexio_mculcd_edma true) in config.cmake to use this component 618 619message("driver_flexio_mculcd_edma component is included from ${CMAKE_CURRENT_LIST_FILE}.") 620 621if(CONFIG_USE_driver_edma AND CONFIG_USE_driver_flexio_mculcd AND (CONFIG_DEVICE_ID STREQUAL MIMXRT1052xxxxB)) 622 623target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 624 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/flexio/mculcd/fsl_flexio_mculcd_edma.c 625) 626 627target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 628 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/flexio/mculcd/. 629) 630 631else() 632 633message(SEND_ERROR "driver_flexio_mculcd_edma.MIMXRT1052 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 634 635endif() 636 637endif() 638 639 640if (CONFIG_USE_driver_flexio_spi_edma) 641# Add set(CONFIG_USE_driver_flexio_spi_edma true) in config.cmake to use this component 642 643message("driver_flexio_spi_edma component is included from ${CMAKE_CURRENT_LIST_FILE}.") 644 645if(CONFIG_USE_driver_edma AND CONFIG_USE_driver_flexio_spi AND (CONFIG_DEVICE_ID STREQUAL MIMXRT1052xxxxB)) 646 647target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 648 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/flexio/spi/fsl_flexio_spi_edma.c 649) 650 651target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 652 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/flexio/spi/. 653) 654 655else() 656 657message(SEND_ERROR "driver_flexio_spi_edma.MIMXRT1052 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 658 659endif() 660 661endif() 662 663 664if (CONFIG_USE_driver_flexio_uart_edma) 665# Add set(CONFIG_USE_driver_flexio_uart_edma true) in config.cmake to use this component 666 667message("driver_flexio_uart_edma component is included from ${CMAKE_CURRENT_LIST_FILE}.") 668 669if(CONFIG_USE_driver_edma AND CONFIG_USE_driver_flexio_uart AND (CONFIG_DEVICE_ID STREQUAL MIMXRT1052xxxxB)) 670 671target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 672 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/flexio/uart/fsl_flexio_uart_edma.c 673) 674 675target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 676 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/flexio/uart/. 677) 678 679else() 680 681message(SEND_ERROR "driver_flexio_uart_edma.MIMXRT1052 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 682 683endif() 684 685endif() 686 687 688if (CONFIG_USE_driver_flexspi_edma) 689# Add set(CONFIG_USE_driver_flexspi_edma true) in config.cmake to use this component 690 691message("driver_flexspi_edma component is included from ${CMAKE_CURRENT_LIST_FILE}.") 692 693if(CONFIG_USE_driver_edma AND CONFIG_USE_driver_flexspi) 694 695target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 696 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/flexspi/fsl_flexspi_edma.c 697) 698 699target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 700 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/flexspi/. 701) 702 703else() 704 705message(SEND_ERROR "driver_flexspi_edma.MIMXRT1052 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 706 707endif() 708 709endif() 710 711 712if (CONFIG_USE_driver_spdif_edma) 713# Add set(CONFIG_USE_driver_spdif_edma true) in config.cmake to use this component 714 715message("driver_spdif_edma component is included from ${CMAKE_CURRENT_LIST_FILE}.") 716 717if(CONFIG_USE_driver_edma AND CONFIG_USE_driver_spdif) 718 719target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 720 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/spdif/fsl_spdif_edma.c 721) 722 723target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 724 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/spdif/. 725) 726 727else() 728 729message(SEND_ERROR "driver_spdif_edma.MIMXRT1052 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 730 731endif() 732 733endif() 734 735 736if (CONFIG_USE_utility_notifier) 737# Add set(CONFIG_USE_utility_notifier true) in config.cmake to use this component 738 739message("utility_notifier component is included from ${CMAKE_CURRENT_LIST_FILE}.") 740 741if(CONFIG_USE_driver_common) 742 743target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 744 ${CMAKE_CURRENT_LIST_DIR}/../../utilities/notifier/fsl_notifier.c 745) 746 747target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 748 ${CMAKE_CURRENT_LIST_DIR}/../../utilities/notifier/. 749) 750 751else() 752 753message(SEND_ERROR "utility_notifier.MIMXRT1052 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 754 755endif() 756 757endif() 758 759 760if (CONFIG_USE_device_MIMXRT1052_system) 761# Add set(CONFIG_USE_device_MIMXRT1052_system true) in config.cmake to use this component 762 763message("device_MIMXRT1052_system component is included from ${CMAKE_CURRENT_LIST_FILE}.") 764 765if(CONFIG_USE_device_MIMXRT1052_CMSIS) 766 767target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 768 ${CMAKE_CURRENT_LIST_DIR}/./system_MIMXRT1052.c 769) 770 771target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 772 ${CMAKE_CURRENT_LIST_DIR}/./. 773) 774 775else() 776 777message(SEND_ERROR "device_MIMXRT1052_system.MIMXRT1052 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 778 779endif() 780 781endif() 782 783 784if (CONFIG_USE_utility_assert) 785# Add set(CONFIG_USE_utility_assert true) in config.cmake to use this component 786 787message("utility_assert component is included from ${CMAKE_CURRENT_LIST_FILE}.") 788 789if(CONFIG_USE_utility_debug_console) 790 791target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 792 ${CMAKE_CURRENT_LIST_DIR}/../../utilities/assert/fsl_assert.c 793) 794 795else() 796 797message(SEND_ERROR "utility_assert.MIMXRT1052 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 798 799endif() 800 801endif() 802 803 804if (CONFIG_USE_utility_assert_lite) 805# Add set(CONFIG_USE_utility_assert_lite true) in config.cmake to use this component 806 807message("utility_assert_lite component is included from ${CMAKE_CURRENT_LIST_FILE}.") 808 809if(CONFIG_USE_utility_debug_console_lite) 810 811target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 812 ${CMAKE_CURRENT_LIST_DIR}/../../utilities/assert/fsl_assert.c 813) 814 815else() 816 817message(SEND_ERROR "utility_assert_lite.MIMXRT1052 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 818 819endif() 820 821endif() 822 823 824if (CONFIG_USE_utility_str) 825# Add set(CONFIG_USE_utility_str true) in config.cmake to use this component 826 827message("utility_str component is included from ${CMAKE_CURRENT_LIST_FILE}.") 828 829if(CONFIG_USE_driver_common) 830 831target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 832 ${CMAKE_CURRENT_LIST_DIR}/../../utilities/str/fsl_str.c 833) 834 835target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 836 ${CMAKE_CURRENT_LIST_DIR}/../../utilities/str 837) 838 839else() 840 841message(SEND_ERROR "utility_str.MIMXRT1052 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 842 843endif() 844 845endif() 846 847 848if (CONFIG_USE_utility_debug_console) 849# Add set(CONFIG_USE_utility_debug_console true) in config.cmake to use this component 850 851message("utility_debug_console component is included from ${CMAKE_CURRENT_LIST_FILE}.") 852 853if(CONFIG_USE_component_serial_manager AND CONFIG_USE_driver_common) 854 855target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 856 ${CMAKE_CURRENT_LIST_DIR}/../../utilities/str/fsl_str.c 857 ${CMAKE_CURRENT_LIST_DIR}/../../utilities/debug_console/fsl_debug_console.c 858) 859 860target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 861 ${CMAKE_CURRENT_LIST_DIR}/../../utilities/str 862 ${CMAKE_CURRENT_LIST_DIR}/../../utilities/debug_console 863) 864 865else() 866 867message(SEND_ERROR "utility_debug_console.MIMXRT1052 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 868 869endif() 870 871endif() 872 873 874if (CONFIG_USE_driver_cmsis_enet) 875# Add set(CONFIG_USE_driver_cmsis_enet true) in config.cmake to use this component 876 877message("driver_cmsis_enet component is included from ${CMAKE_CURRENT_LIST_FILE}.") 878 879if((CONFIG_DEVICE_ID STREQUAL MIMXRT1052xxxxB) AND CONFIG_USE_driver_enet AND CONFIG_USE_CMSIS_Driver_Include_Ethernet_MAC AND CONFIG_USE_CMSIS_Driver_Include_Ethernet_PHY AND CONFIG_USE_CMSIS_Driver_Include_Ethernet AND CONFIG_USE_RTE_Device AND CONFIG_USE_driver_phy-common) 880 881target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 882 ${CMAKE_CURRENT_LIST_DIR}/../../cmsis_drivers/enet/fsl_enet_cmsis.c 883 ${CMAKE_CURRENT_LIST_DIR}/../../cmsis_drivers/enet/fsl_enet_phy_cmsis.c 884) 885 886target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 887 ${CMAKE_CURRENT_LIST_DIR}/../../cmsis_drivers/enet/. 888) 889 890else() 891 892message(SEND_ERROR "driver_cmsis_enet.MIMXRT1052 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 893 894endif() 895 896endif() 897 898 899if (CONFIG_USE_component_audio_sai_edma_adapter) 900# Add set(CONFIG_USE_component_audio_sai_edma_adapter true) in config.cmake to use this component 901 902message("component_audio_sai_edma_adapter component is included from ${CMAKE_CURRENT_LIST_FILE}.") 903 904if(CONFIG_USE_driver_common AND CONFIG_USE_driver_sai_edma) 905 906target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 907 ${CMAKE_CURRENT_LIST_DIR}/../../components/audio/fsl_adapter_sai.c 908) 909 910target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 911 ${CMAKE_CURRENT_LIST_DIR}/../../components/audio/. 912) 913 914else() 915 916message(SEND_ERROR "component_audio_sai_edma_adapter.MIMXRT1052 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 917 918endif() 919 920endif() 921 922 923if (CONFIG_USE_component_button) 924# Add set(CONFIG_USE_component_button true) in config.cmake to use this component 925 926message("component_button component is included from ${CMAKE_CURRENT_LIST_FILE}.") 927 928if(CONFIG_USE_driver_common AND CONFIG_USE_component_timer_manager AND (CONFIG_USE_component_igpio_adapter)) 929 930target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 931 ${CMAKE_CURRENT_LIST_DIR}/../../components/button/fsl_component_button.c 932) 933 934target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 935 ${CMAKE_CURRENT_LIST_DIR}/../../components/button/. 936) 937 938else() 939 940message(SEND_ERROR "component_button.MIMXRT1052 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 941 942endif() 943 944endif() 945 946 947if (CONFIG_USE_driver_codec) 948# Add set(CONFIG_USE_driver_codec true) in config.cmake to use this component 949 950message("driver_codec component is included from ${CMAKE_CURRENT_LIST_FILE}.") 951 952if(CONFIG_USE_driver_common AND (CONFIG_USE_component_wm8904_adapter OR CONFIG_USE_component_wm8960_adapter OR CONFIG_USE_component_sgtl_adapter OR CONFIG_USE_component_da7212_adapter OR CONFIG_USE_component_cs42888_adapter OR CONFIG_USE_component_cs42448_adapter OR CONFIG_USE_component_codec_adapters)) 953 954target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 955 ${CMAKE_CURRENT_LIST_DIR}/../../components/codec/fsl_codec_common.c 956) 957 958target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 959 ${CMAKE_CURRENT_LIST_DIR}/../../components/codec/. 960) 961 962if(CONFIG_USE_COMPONENT_CONFIGURATION) 963 message("===>Import configuration from ${CMAKE_CURRENT_LIST_FILE}") 964 965 target_compile_definitions(${MCUX_SDK_PROJECT_NAME} PUBLIC 966 -DSDK_I2C_BASED_COMPONENT_USED=1 967 ) 968 969endif() 970 971else() 972 973message(SEND_ERROR "driver_codec.MIMXRT1052 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 974 975endif() 976 977endif() 978 979 980if (CONFIG_USE_component_codec_adapters) 981# Add set(CONFIG_USE_component_codec_adapters true) in config.cmake to use this component 982 983message("component_codec_adapters component is included from ${CMAKE_CURRENT_LIST_FILE}.") 984 985if((CONFIG_USE_driver_codec AND CONFIG_USE_component_wm8904_adapter) OR (CONFIG_USE_driver_codec AND CONFIG_USE_component_wm8960_adapter) OR (CONFIG_USE_driver_codec AND CONFIG_USE_component_sgtl_adapter) OR (CONFIG_USE_driver_codec AND CONFIG_USE_component_da7212_adapter) OR (CONFIG_USE_driver_codec AND CONFIG_USE_component_cs42888_adapter) OR (CONFIG_USE_driver_common AND CONFIG_USE_component_cs42448_adapter)) 986 987target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 988 ${CMAKE_CURRENT_LIST_DIR}/../../components/codec/port/fsl_codec_adapter.c 989) 990 991target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 992 ${CMAKE_CURRENT_LIST_DIR}/../../components/codec/port 993) 994 995if(CONFIG_USE_COMPONENT_CONFIGURATION) 996 message("===>Import configuration from ${CMAKE_CURRENT_LIST_FILE}") 997 998 target_compile_definitions(${MCUX_SDK_PROJECT_NAME} PUBLIC 999 -DCODEC_MULTI_ADAPTERS=1 1000 ) 1001 1002endif() 1003 1004else() 1005 1006message(SEND_ERROR "component_codec_adapters.MIMXRT1052 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 1007 1008endif() 1009 1010endif() 1011 1012 1013if (CONFIG_USE_component_wm8904_adapter) 1014# Add set(CONFIG_USE_component_wm8904_adapter true) in config.cmake to use this component 1015 1016message("component_wm8904_adapter component is included from ${CMAKE_CURRENT_LIST_FILE}.") 1017 1018if(CONFIG_USE_driver_wm8904 AND CONFIG_USE_driver_codec) 1019 1020target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 1021 ${CMAKE_CURRENT_LIST_DIR}/../../components/codec/port/wm8904/fsl_codec_wm8904_adapter.c 1022) 1023 1024target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 1025 ${CMAKE_CURRENT_LIST_DIR}/../../components/codec/port/wm8904 1026 ${CMAKE_CURRENT_LIST_DIR}/../../components/codec/port 1027) 1028 1029else() 1030 1031message(SEND_ERROR "component_wm8904_adapter.MIMXRT1052 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 1032 1033endif() 1034 1035endif() 1036 1037 1038if (CONFIG_USE_component_wm8960_adapter) 1039# Add set(CONFIG_USE_component_wm8960_adapter true) in config.cmake to use this component 1040 1041message("component_wm8960_adapter component is included from ${CMAKE_CURRENT_LIST_FILE}.") 1042 1043if(CONFIG_USE_driver_wm8960 AND CONFIG_USE_driver_codec) 1044 1045target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 1046 ${CMAKE_CURRENT_LIST_DIR}/../../components/codec/port/wm8960/fsl_codec_wm8960_adapter.c 1047) 1048 1049target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 1050 ${CMAKE_CURRENT_LIST_DIR}/../../components/codec/port/wm8960 1051 ${CMAKE_CURRENT_LIST_DIR}/../../components/codec/port 1052) 1053 1054else() 1055 1056message(SEND_ERROR "component_wm8960_adapter.MIMXRT1052 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 1057 1058endif() 1059 1060endif() 1061 1062 1063if (CONFIG_USE_component_cs42888_adapter) 1064# Add set(CONFIG_USE_component_cs42888_adapter true) in config.cmake to use this component 1065 1066message("component_cs42888_adapter component is included from ${CMAKE_CURRENT_LIST_FILE}.") 1067 1068if(CONFIG_USE_driver_cs42888 AND CONFIG_USE_driver_codec) 1069 1070target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 1071 ${CMAKE_CURRENT_LIST_DIR}/../../components/codec/port/cs42888/fsl_codec_cs42888_adapter.c 1072) 1073 1074target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 1075 ${CMAKE_CURRENT_LIST_DIR}/../../components/codec/port/cs42888 1076 ${CMAKE_CURRENT_LIST_DIR}/../../components/codec/port 1077) 1078 1079else() 1080 1081message(SEND_ERROR "component_cs42888_adapter.MIMXRT1052 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 1082 1083endif() 1084 1085endif() 1086 1087 1088if (CONFIG_USE_component_cs42448_adapter) 1089# Add set(CONFIG_USE_component_cs42448_adapter true) in config.cmake to use this component 1090 1091message("component_cs42448_adapter component is included from ${CMAKE_CURRENT_LIST_FILE}.") 1092 1093if(CONFIG_USE_driver_cs42448 AND CONFIG_USE_driver_codec) 1094 1095target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 1096 ${CMAKE_CURRENT_LIST_DIR}/../../components/codec/port/cs42448/fsl_codec_cs42448_adapter.c 1097) 1098 1099target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 1100 ${CMAKE_CURRENT_LIST_DIR}/../../components/codec/port/cs42448 1101 ${CMAKE_CURRENT_LIST_DIR}/../../components/codec/port 1102) 1103 1104else() 1105 1106message(SEND_ERROR "component_cs42448_adapter.MIMXRT1052 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 1107 1108endif() 1109 1110endif() 1111 1112 1113if (CONFIG_USE_component_sgtl_adapter) 1114# Add set(CONFIG_USE_component_sgtl_adapter true) in config.cmake to use this component 1115 1116message("component_sgtl_adapter component is included from ${CMAKE_CURRENT_LIST_FILE}.") 1117 1118if(CONFIG_USE_driver_sgtl5000 AND CONFIG_USE_driver_codec) 1119 1120target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 1121 ${CMAKE_CURRENT_LIST_DIR}/../../components/codec/port/sgtl5000/fsl_codec_sgtl_adapter.c 1122) 1123 1124target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 1125 ${CMAKE_CURRENT_LIST_DIR}/../../components/codec/port/sgtl5000 1126 ${CMAKE_CURRENT_LIST_DIR}/../../components/codec/port 1127) 1128 1129else() 1130 1131message(SEND_ERROR "component_sgtl_adapter.MIMXRT1052 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 1132 1133endif() 1134 1135endif() 1136 1137 1138if (CONFIG_USE_component_da7212_adapter) 1139# Add set(CONFIG_USE_component_da7212_adapter true) in config.cmake to use this component 1140 1141message("component_da7212_adapter component is included from ${CMAKE_CURRENT_LIST_FILE}.") 1142 1143if(CONFIG_USE_driver_dialog7212 AND CONFIG_USE_driver_codec) 1144 1145target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 1146 ${CMAKE_CURRENT_LIST_DIR}/../../components/codec/port/da7212/fsl_codec_da7212_adapter.c 1147) 1148 1149target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 1150 ${CMAKE_CURRENT_LIST_DIR}/../../components/codec/port/da7212 1151 ${CMAKE_CURRENT_LIST_DIR}/../../components/codec/port 1152) 1153 1154else() 1155 1156message(SEND_ERROR "component_da7212_adapter.MIMXRT1052 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 1157 1158endif() 1159 1160endif() 1161 1162 1163if (CONFIG_USE_component_codec_i2c) 1164# Add set(CONFIG_USE_component_codec_i2c true) in config.cmake to use this component 1165 1166message("component_codec_i2c component is included from ${CMAKE_CURRENT_LIST_FILE}.") 1167 1168if(CONFIG_USE_driver_common AND (CONFIG_USE_component_lpi2c_adapter)) 1169 1170target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 1171 ${CMAKE_CURRENT_LIST_DIR}/../../components/codec/i2c/fsl_codec_i2c.c 1172) 1173 1174target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 1175 ${CMAKE_CURRENT_LIST_DIR}/../../components/codec/i2c/. 1176) 1177 1178if(CONFIG_USE_COMPONENT_CONFIGURATION) 1179 message("===>Import configuration from ${CMAKE_CURRENT_LIST_FILE}") 1180 1181 target_compile_definitions(${MCUX_SDK_PROJECT_NAME} PUBLIC 1182 -DSDK_I2C_BASED_COMPONENT_USED=1 1183 ) 1184 1185endif() 1186 1187else() 1188 1189message(SEND_ERROR "component_codec_i2c.MIMXRT1052 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 1190 1191endif() 1192 1193endif() 1194 1195 1196if (CONFIG_USE_component_software_crc_adapter) 1197# Add set(CONFIG_USE_component_software_crc_adapter true) in config.cmake to use this component 1198 1199message("component_software_crc_adapter component is included from ${CMAKE_CURRENT_LIST_FILE}.") 1200 1201if(CONFIG_USE_driver_common) 1202 1203target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 1204 ${CMAKE_CURRENT_LIST_DIR}/../../components/crc/fsl_adapter_software_crc.c 1205) 1206 1207target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 1208 ${CMAKE_CURRENT_LIST_DIR}/../../components/crc/. 1209) 1210 1211else() 1212 1213message(SEND_ERROR "component_software_crc_adapter.MIMXRT1052 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 1214 1215endif() 1216 1217endif() 1218 1219 1220if (CONFIG_USE_driver_cs42448) 1221# Add set(CONFIG_USE_driver_cs42448 true) in config.cmake to use this component 1222 1223message("driver_cs42448 component is included from ${CMAKE_CURRENT_LIST_FILE}.") 1224 1225if(CONFIG_USE_driver_common AND CONFIG_USE_component_codec_i2c) 1226 1227target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 1228 ${CMAKE_CURRENT_LIST_DIR}/../../components/codec/cs42448/fsl_cs42448.c 1229) 1230 1231target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 1232 ${CMAKE_CURRENT_LIST_DIR}/../../components/codec/cs42448/. 1233) 1234 1235if(CONFIG_USE_COMPONENT_CONFIGURATION) 1236 message("===>Import configuration from ${CMAKE_CURRENT_LIST_FILE}") 1237 1238 target_compile_definitions(${MCUX_SDK_PROJECT_NAME} PUBLIC 1239 -DSDK_I2C_BASED_COMPONENT_USED=1 1240 -DCODEC_CS42448_ENABLE 1241 ) 1242 1243endif() 1244 1245else() 1246 1247message(SEND_ERROR "driver_cs42448.MIMXRT1052 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 1248 1249endif() 1250 1251endif() 1252 1253 1254if (CONFIG_USE_driver_cs42888) 1255# Add set(CONFIG_USE_driver_cs42888 true) in config.cmake to use this component 1256 1257message("driver_cs42888 component is included from ${CMAKE_CURRENT_LIST_FILE}.") 1258 1259if(CONFIG_USE_driver_common AND CONFIG_USE_component_codec_i2c) 1260 1261target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 1262 ${CMAKE_CURRENT_LIST_DIR}/../../components/codec/cs42888/fsl_cs42888.c 1263) 1264 1265target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 1266 ${CMAKE_CURRENT_LIST_DIR}/../../components/codec/cs42888/. 1267) 1268 1269if(CONFIG_USE_COMPONENT_CONFIGURATION) 1270 message("===>Import configuration from ${CMAKE_CURRENT_LIST_FILE}") 1271 1272 target_compile_definitions(${MCUX_SDK_PROJECT_NAME} PUBLIC 1273 -DSDK_I2C_BASED_COMPONENT_USED=1 1274 -DCODEC_CS42888_ENABLE 1275 ) 1276 1277endif() 1278 1279else() 1280 1281message(SEND_ERROR "driver_cs42888.MIMXRT1052 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 1282 1283endif() 1284 1285endif() 1286 1287 1288if (CONFIG_USE_driver_dialog7212) 1289# Add set(CONFIG_USE_driver_dialog7212 true) in config.cmake to use this component 1290 1291message("driver_dialog7212 component is included from ${CMAKE_CURRENT_LIST_FILE}.") 1292 1293if(CONFIG_USE_driver_common AND CONFIG_USE_component_codec_i2c) 1294 1295target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 1296 ${CMAKE_CURRENT_LIST_DIR}/../../components/codec/da7212/fsl_dialog7212.c 1297) 1298 1299target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 1300 ${CMAKE_CURRENT_LIST_DIR}/../../components/codec/da7212/. 1301) 1302 1303if(CONFIG_USE_COMPONENT_CONFIGURATION) 1304 message("===>Import configuration from ${CMAKE_CURRENT_LIST_FILE}") 1305 1306 target_compile_definitions(${MCUX_SDK_PROJECT_NAME} PUBLIC 1307 -DSDK_I2C_BASED_COMPONENT_USED=1 1308 -DBOARD_USE_CODEC=1 1309 -DCODEC_DA7212_ENABLE 1310 ) 1311 1312endif() 1313 1314else() 1315 1316message(SEND_ERROR "driver_dialog7212.MIMXRT1052 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 1317 1318endif() 1319 1320endif() 1321 1322 1323if (CONFIG_USE_component_exception_handling_cm7) 1324# Add set(CONFIG_USE_component_exception_handling_cm7 true) in config.cmake to use this component 1325 1326message("component_exception_handling_cm7 component is included from ${CMAKE_CURRENT_LIST_FILE}.") 1327 1328if(CONFIG_USE_driver_common AND CONFIG_USE_utility_debug_console) 1329 1330if(CONFIG_CORE STREQUAL cm7f) 1331 target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 1332 ${CMAKE_CURRENT_LIST_DIR}/../../components/exception_handling/cm7/fsl_component_exception_handling.c 1333 ) 1334endif() 1335 1336target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 1337 ${CMAKE_CURRENT_LIST_DIR}/../../components/exception_handling/. 1338) 1339 1340else() 1341 1342message(SEND_ERROR "component_exception_handling_cm7.MIMXRT1052 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 1343 1344endif() 1345 1346endif() 1347 1348 1349if (CONFIG_USE_driver_nand_flash-controller-flexspi) 1350# Add set(CONFIG_USE_driver_nand_flash-controller-flexspi true) in config.cmake to use this component 1351 1352message("driver_nand_flash-controller-flexspi component is included from ${CMAKE_CURRENT_LIST_FILE}.") 1353 1354if(CONFIG_USE_driver_nand_flash-common AND CONFIG_USE_driver_flexspi) 1355 1356target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 1357 ${CMAKE_CURRENT_LIST_DIR}/../../components/flash/nand/flexspi/fsl_flexspi_nand_flash.c 1358) 1359 1360target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 1361 ${CMAKE_CURRENT_LIST_DIR}/../../components/flash/nand/flexspi/. 1362) 1363 1364else() 1365 1366message(SEND_ERROR "driver_nand_flash-controller-flexspi.MIMXRT1052 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 1367 1368endif() 1369 1370endif() 1371 1372 1373if (CONFIG_USE_driver_nand_flash-controller-semc) 1374# Add set(CONFIG_USE_driver_nand_flash-controller-semc true) in config.cmake to use this component 1375 1376message("driver_nand_flash-controller-semc component is included from ${CMAKE_CURRENT_LIST_FILE}.") 1377 1378if(CONFIG_USE_driver_nand_flash-common AND CONFIG_USE_driver_semc) 1379 1380target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 1381 ${CMAKE_CURRENT_LIST_DIR}/../../components/flash/nand/semc/fsl_semc_nand_flash.c 1382) 1383 1384target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 1385 ${CMAKE_CURRENT_LIST_DIR}/../../components/flash/nand/semc/. 1386) 1387 1388else() 1389 1390message(SEND_ERROR "driver_nand_flash-controller-semc.MIMXRT1052 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 1391 1392endif() 1393 1394endif() 1395 1396 1397if (CONFIG_USE_driver_nor_flash-controller-flexspi) 1398# Add set(CONFIG_USE_driver_nor_flash-controller-flexspi true) in config.cmake to use this component 1399 1400message("driver_nor_flash-controller-flexspi component is included from ${CMAKE_CURRENT_LIST_FILE}.") 1401 1402if(CONFIG_USE_driver_nor_flash-common AND CONFIG_USE_driver_flexspi) 1403 1404target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 1405 ${CMAKE_CURRENT_LIST_DIR}/../../components/flash/nor/flexspi/fsl_flexspi_nor_flash.c 1406) 1407 1408target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 1409 ${CMAKE_CURRENT_LIST_DIR}/../../components/flash/nor/flexspi/. 1410) 1411 1412else() 1413 1414message(SEND_ERROR "driver_nor_flash-controller-flexspi.MIMXRT1052 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 1415 1416endif() 1417 1418endif() 1419 1420 1421if (CONFIG_USE_driver_nor_flash-controller-lpspi) 1422# Add set(CONFIG_USE_driver_nor_flash-controller-lpspi true) in config.cmake to use this component 1423 1424message("driver_nor_flash-controller-lpspi component is included from ${CMAKE_CURRENT_LIST_FILE}.") 1425 1426if(CONFIG_USE_driver_nor_flash-common AND CONFIG_USE_driver_lpspi) 1427 1428target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 1429 ${CMAKE_CURRENT_LIST_DIR}/../../components/flash/nor/lpspi/fsl_lpspi_nor_flash.c 1430 ${CMAKE_CURRENT_LIST_DIR}/../../components/flash/nor/lpspi/fsl_lpspi_mem_adapter.c 1431) 1432 1433target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 1434 ${CMAKE_CURRENT_LIST_DIR}/../../components/flash/nor/lpspi/. 1435) 1436 1437else() 1438 1439message(SEND_ERROR "driver_nor_flash-controller-lpspi.MIMXRT1052 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 1440 1441endif() 1442 1443endif() 1444 1445 1446if (CONFIG_USE_driver_ft5406) 1447# Add set(CONFIG_USE_driver_ft5406 true) in config.cmake to use this component 1448 1449message("driver_ft5406 component is included from ${CMAKE_CURRENT_LIST_FILE}.") 1450 1451if(CONFIG_USE_driver_common) 1452 1453target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 1454 ${CMAKE_CURRENT_LIST_DIR}/../../components/ft5406/fsl_ft5406.c 1455) 1456 1457target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 1458 ${CMAKE_CURRENT_LIST_DIR}/../../components/ft5406/. 1459) 1460 1461else() 1462 1463message(SEND_ERROR "driver_ft5406.MIMXRT1052 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 1464 1465endif() 1466 1467endif() 1468 1469 1470if (CONFIG_USE_driver_ft5406_rt) 1471# Add set(CONFIG_USE_driver_ft5406_rt true) in config.cmake to use this component 1472 1473message("driver_ft5406_rt component is included from ${CMAKE_CURRENT_LIST_FILE}.") 1474 1475if(CONFIG_USE_driver_lpi2c) 1476 1477target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 1478 ${CMAKE_CURRENT_LIST_DIR}/../../components/ft5406_rt/fsl_ft5406_rt.c 1479) 1480 1481target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 1482 ${CMAKE_CURRENT_LIST_DIR}/../../components/ft5406_rt/. 1483) 1484 1485else() 1486 1487message(SEND_ERROR "driver_ft5406_rt.MIMXRT1052 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 1488 1489endif() 1490 1491endif() 1492 1493 1494if (CONFIG_USE_driver_ft6x06) 1495# Add set(CONFIG_USE_driver_ft6x06 true) in config.cmake to use this component 1496 1497message("driver_ft6x06 component is included from ${CMAKE_CURRENT_LIST_FILE}.") 1498 1499if(CONFIG_USE_CMSIS_Driver_Include_I2C) 1500 1501target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 1502 ${CMAKE_CURRENT_LIST_DIR}/../../components/ft6x06/fsl_ft6x06.c 1503) 1504 1505target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 1506 ${CMAKE_CURRENT_LIST_DIR}/../../components/ft6x06/. 1507) 1508 1509else() 1510 1511message(SEND_ERROR "driver_ft6x06.MIMXRT1052 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 1512 1513endif() 1514 1515endif() 1516 1517 1518if (CONFIG_USE_driver_fxos8700cq) 1519# Add set(CONFIG_USE_driver_fxos8700cq true) in config.cmake to use this component 1520 1521message("driver_fxos8700cq component is included from ${CMAKE_CURRENT_LIST_FILE}.") 1522 1523if(CONFIG_USE_driver_common) 1524 1525target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 1526 ${CMAKE_CURRENT_LIST_DIR}/../../components/fxos8700cq/fsl_fxos.c 1527) 1528 1529target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 1530 ${CMAKE_CURRENT_LIST_DIR}/../../components/fxos8700cq/. 1531) 1532 1533else() 1534 1535message(SEND_ERROR "driver_fxos8700cq.MIMXRT1052 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 1536 1537endif() 1538 1539endif() 1540 1541 1542if (CONFIG_USE_component_igpio_adapter) 1543# Add set(CONFIG_USE_component_igpio_adapter true) in config.cmake to use this component 1544 1545message("component_igpio_adapter component is included from ${CMAKE_CURRENT_LIST_FILE}.") 1546 1547if(CONFIG_USE_driver_igpio) 1548 1549target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 1550 ${CMAKE_CURRENT_LIST_DIR}/../../components/gpio/fsl_adapter_igpio.c 1551) 1552 1553target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 1554 ${CMAKE_CURRENT_LIST_DIR}/../../components/gpio/. 1555) 1556 1557else() 1558 1559message(SEND_ERROR "component_igpio_adapter.MIMXRT1052 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 1560 1561endif() 1562 1563endif() 1564 1565 1566if (CONFIG_USE_driver_gt911) 1567# Add set(CONFIG_USE_driver_gt911 true) in config.cmake to use this component 1568 1569message("driver_gt911 component is included from ${CMAKE_CURRENT_LIST_FILE}.") 1570 1571if(CONFIG_USE_driver_common) 1572 1573target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 1574 ${CMAKE_CURRENT_LIST_DIR}/../../components/gt911/fsl_gt911.c 1575) 1576 1577target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 1578 ${CMAKE_CURRENT_LIST_DIR}/../../components/gt911/. 1579) 1580 1581if(CONFIG_USE_COMPONENT_CONFIGURATION) 1582 message("===>Import configuration from ${CMAKE_CURRENT_LIST_FILE}") 1583 1584 target_compile_definitions(${MCUX_SDK_PROJECT_NAME} PUBLIC 1585 -DSDK_I2C_BASED_COMPONENT_USED=1 1586 ) 1587 1588endif() 1589 1590else() 1591 1592message(SEND_ERROR "driver_gt911.MIMXRT1052 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 1593 1594endif() 1595 1596endif() 1597 1598 1599if (CONFIG_USE_component_lpi2c_adapter) 1600# Add set(CONFIG_USE_component_lpi2c_adapter true) in config.cmake to use this component 1601 1602message("component_lpi2c_adapter component is included from ${CMAKE_CURRENT_LIST_FILE}.") 1603 1604if(CONFIG_USE_driver_common AND CONFIG_USE_driver_lpi2c) 1605 1606target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 1607 ${CMAKE_CURRENT_LIST_DIR}/../../components/i2c/fsl_adapter_lpi2c.c 1608) 1609 1610target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 1611 ${CMAKE_CURRENT_LIST_DIR}/../../components/i2c/. 1612) 1613 1614else() 1615 1616message(SEND_ERROR "component_lpi2c_adapter.MIMXRT1052 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 1617 1618endif() 1619 1620endif() 1621 1622 1623if (CONFIG_USE_driver_ili9341) 1624# Add set(CONFIG_USE_driver_ili9341 true) in config.cmake to use this component 1625 1626message("driver_ili9341 component is included from ${CMAKE_CURRENT_LIST_FILE}.") 1627 1628if(CONFIG_USE_driver_common) 1629 1630target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 1631 ${CMAKE_CURRENT_LIST_DIR}/../../components/ili9341/fsl_ili9341.c 1632) 1633 1634target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 1635 ${CMAKE_CURRENT_LIST_DIR}/../../components/ili9341/. 1636) 1637 1638else() 1639 1640message(SEND_ERROR "driver_ili9341.MIMXRT1052 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 1641 1642endif() 1643 1644endif() 1645 1646 1647if (CONFIG_USE_component_flexspi_hyper_flash_adapter_rt1050) 1648# Add set(CONFIG_USE_component_flexspi_hyper_flash_adapter_rt1050 true) in config.cmake to use this component 1649 1650message("component_flexspi_hyper_flash_adapter_rt1050 component is included from ${CMAKE_CURRENT_LIST_FILE}.") 1651 1652if((CONFIG_BOARD STREQUAL evkbimxrt1050) AND CONFIG_USE_driver_common AND CONFIG_USE_driver_flexspi) 1653 1654target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 1655 ${CMAKE_CURRENT_LIST_DIR}/../../components/internal_flash/hyper_flash/fsl_adapter_flexspi_hyper_nor_flash.c 1656 ${CMAKE_CURRENT_LIST_DIR}/../../components/internal_flash/hyper_flash/RT1050/fsl_adapter_flexspi_hyper_flash_config.c 1657) 1658 1659target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 1660 ${CMAKE_CURRENT_LIST_DIR}/../../components/internal_flash/. 1661 ${CMAKE_CURRENT_LIST_DIR}/../../components/internal_flash/hyper_flash/RT1050 1662) 1663 1664else() 1665 1666message(SEND_ERROR "component_flexspi_hyper_flash_adapter_rt1050.MIMXRT1052 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 1667 1668endif() 1669 1670endif() 1671 1672 1673if (CONFIG_USE_component_led) 1674# Add set(CONFIG_USE_component_led true) in config.cmake to use this component 1675 1676message("component_led component is included from ${CMAKE_CURRENT_LIST_FILE}.") 1677 1678if(CONFIG_USE_driver_common AND CONFIG_USE_component_timer_manager AND (CONFIG_USE_component_igpio_adapter)) 1679 1680target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 1681 ${CMAKE_CURRENT_LIST_DIR}/../../components/led/fsl_component_led.c 1682) 1683 1684target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 1685 ${CMAKE_CURRENT_LIST_DIR}/../../components/led/. 1686) 1687 1688else() 1689 1690message(SEND_ERROR "component_led.MIMXRT1052 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 1691 1692endif() 1693 1694endif() 1695 1696 1697if (CONFIG_USE_component_lists) 1698# Add set(CONFIG_USE_component_lists true) in config.cmake to use this component 1699 1700message("component_lists component is included from ${CMAKE_CURRENT_LIST_FILE}.") 1701 1702if(CONFIG_USE_driver_common) 1703 1704target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 1705 ${CMAKE_CURRENT_LIST_DIR}/../../components/lists/fsl_component_generic_list.c 1706) 1707 1708target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 1709 ${CMAKE_CURRENT_LIST_DIR}/../../components/lists/. 1710) 1711 1712else() 1713 1714message(SEND_ERROR "component_lists.MIMXRT1052 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 1715 1716endif() 1717 1718endif() 1719 1720 1721if (CONFIG_USE_component_log) 1722# Add set(CONFIG_USE_component_log true) in config.cmake to use this component 1723 1724message("component_log component is included from ${CMAKE_CURRENT_LIST_FILE}.") 1725 1726if(CONFIG_USE_driver_common AND CONFIG_USE_utility_str) 1727 1728target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 1729 ${CMAKE_CURRENT_LIST_DIR}/../../components/log/fsl_component_log.c 1730) 1731 1732target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 1733 ${CMAKE_CURRENT_LIST_DIR}/../../components/log/. 1734) 1735 1736else() 1737 1738message(SEND_ERROR "component_log.MIMXRT1052 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 1739 1740endif() 1741 1742endif() 1743 1744 1745if (CONFIG_USE_component_log_backend_debugconsole) 1746# Add set(CONFIG_USE_component_log_backend_debugconsole true) in config.cmake to use this component 1747 1748message("component_log_backend_debugconsole component is included from ${CMAKE_CURRENT_LIST_FILE}.") 1749 1750if(CONFIG_USE_driver_common AND CONFIG_USE_component_log AND CONFIG_USE_utility_debug_console) 1751 1752target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 1753 ${CMAKE_CURRENT_LIST_DIR}/../../components/log/fsl_component_log_backend_debugconsole.c 1754) 1755 1756target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 1757 ${CMAKE_CURRENT_LIST_DIR}/../../components/log/. 1758) 1759 1760else() 1761 1762message(SEND_ERROR "component_log_backend_debugconsole.MIMXRT1052 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 1763 1764endif() 1765 1766endif() 1767 1768 1769if (CONFIG_USE_component_log_backend_debugconsole_lite) 1770# Add set(CONFIG_USE_component_log_backend_debugconsole_lite true) in config.cmake to use this component 1771 1772message("component_log_backend_debugconsole_lite component is included from ${CMAKE_CURRENT_LIST_FILE}.") 1773 1774if(CONFIG_USE_driver_common AND CONFIG_USE_component_log AND CONFIG_USE_utility_debug_console_lite) 1775 1776target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 1777 ${CMAKE_CURRENT_LIST_DIR}/../../components/log/fsl_component_log_backend_debugconsole.c 1778) 1779 1780target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 1781 ${CMAKE_CURRENT_LIST_DIR}/../../components/log/. 1782) 1783 1784else() 1785 1786message(SEND_ERROR "component_log_backend_debugconsole_lite.MIMXRT1052 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 1787 1788endif() 1789 1790endif() 1791 1792 1793if (CONFIG_USE_component_log_backend_ringbuffer) 1794# Add set(CONFIG_USE_component_log_backend_ringbuffer true) in config.cmake to use this component 1795 1796message("component_log_backend_ringbuffer component is included from ${CMAKE_CURRENT_LIST_FILE}.") 1797 1798if(CONFIG_USE_driver_common AND CONFIG_USE_component_log) 1799 1800target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 1801 ${CMAKE_CURRENT_LIST_DIR}/../../components/log/fsl_component_log_backend_ringbuffer.c 1802) 1803 1804target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 1805 ${CMAKE_CURRENT_LIST_DIR}/../../components/log/. 1806) 1807 1808else() 1809 1810message(SEND_ERROR "component_log_backend_ringbuffer.MIMXRT1052 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 1811 1812endif() 1813 1814endif() 1815 1816 1817if (CONFIG_USE_component_mem_manager) 1818# Add set(CONFIG_USE_component_mem_manager true) in config.cmake to use this component 1819 1820message("component_mem_manager component is included from ${CMAKE_CURRENT_LIST_FILE}.") 1821 1822if(CONFIG_USE_driver_common AND CONFIG_USE_component_lists) 1823 1824target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 1825 ${CMAKE_CURRENT_LIST_DIR}/../../components/mem_manager/fsl_component_mem_manager.c 1826) 1827 1828target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 1829 ${CMAKE_CURRENT_LIST_DIR}/../../components/mem_manager/. 1830) 1831 1832else() 1833 1834message(SEND_ERROR "component_mem_manager.MIMXRT1052 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 1835 1836endif() 1837 1838endif() 1839 1840 1841if (CONFIG_USE_component_mem_manager_light) 1842# Add set(CONFIG_USE_component_mem_manager_light true) in config.cmake to use this component 1843 1844message("component_mem_manager_light component is included from ${CMAKE_CURRENT_LIST_FILE}.") 1845 1846if(CONFIG_USE_driver_common AND CONFIG_USE_component_lists) 1847 1848target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 1849 ${CMAKE_CURRENT_LIST_DIR}/../../components/mem_manager/fsl_component_mem_manager_light.c 1850) 1851 1852target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 1853 ${CMAKE_CURRENT_LIST_DIR}/../../components/mem_manager/. 1854) 1855 1856else() 1857 1858message(SEND_ERROR "component_mem_manager_light.MIMXRT1052 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 1859 1860endif() 1861 1862endif() 1863 1864 1865if (CONFIG_USE_component_messaging) 1866# Add set(CONFIG_USE_component_messaging true) in config.cmake to use this component 1867 1868message("component_messaging component is included from ${CMAKE_CURRENT_LIST_FILE}.") 1869 1870if(CONFIG_USE_driver_common AND CONFIG_USE_component_lists AND CONFIG_USE_component_mem_manager_light) 1871 1872target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 1873 ${CMAKE_CURRENT_LIST_DIR}/../../components/messaging/fsl_component_messaging.c 1874) 1875 1876target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 1877 ${CMAKE_CURRENT_LIST_DIR}/../../components/messaging/. 1878) 1879 1880else() 1881 1882message(SEND_ERROR "component_messaging.MIMXRT1052 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 1883 1884endif() 1885 1886endif() 1887 1888 1889if (CONFIG_USE_component_mflash_file) 1890# Add set(CONFIG_USE_component_mflash_file true) in config.cmake to use this component 1891 1892message("component_mflash_file component is included from ${CMAKE_CURRENT_LIST_FILE}.") 1893 1894if(CONFIG_USE_component_mflash_rt1050) 1895 1896target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 1897 ${CMAKE_CURRENT_LIST_DIR}/../../components/flash/mflash/mflash_file.c 1898) 1899 1900target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 1901 ${CMAKE_CURRENT_LIST_DIR}/../../components/flash/mflash/. 1902) 1903 1904else() 1905 1906message(SEND_ERROR "component_mflash_file.MIMXRT1052 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 1907 1908endif() 1909 1910endif() 1911 1912 1913if (CONFIG_USE_component_mflash_dummy) 1914# Add set(CONFIG_USE_component_mflash_dummy true) in config.cmake to use this component 1915 1916message("component_mflash_dummy component is included from ${CMAKE_CURRENT_LIST_FILE}.") 1917 1918if(CONFIG_USE_component_mflash_file) 1919 1920target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 1921 ${CMAKE_CURRENT_LIST_DIR}/../../components/flash/mflash/mflash_dummy.c 1922) 1923 1924else() 1925 1926message(SEND_ERROR "component_mflash_dummy.MIMXRT1052 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 1927 1928endif() 1929 1930endif() 1931 1932 1933if (CONFIG_USE_component_mflash_rt1050) 1934# Add set(CONFIG_USE_component_mflash_rt1050 true) in config.cmake to use this component 1935 1936message("component_mflash_rt1050 component is included from ${CMAKE_CURRENT_LIST_FILE}.") 1937 1938if(CONFIG_USE_component_mflash_common AND (CONFIG_BOARD STREQUAL evkbimxrt1050) AND CONFIG_USE_driver_flexspi AND CONFIG_USE_driver_cache_armv7_m7) 1939 1940target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 1941 ${CMAKE_CURRENT_LIST_DIR}/../../components/flash/mflash/mimxrt1052/mflash_drv.c 1942) 1943 1944target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 1945 ${CMAKE_CURRENT_LIST_DIR}/../../components/flash/mflash/mimxrt1052/. 1946) 1947 1948if(CONFIG_USE_COMPONENT_CONFIGURATION) 1949 message("===>Import configuration from ${CMAKE_CURRENT_LIST_FILE}") 1950 1951 target_compile_definitions(${MCUX_SDK_PROJECT_NAME} PUBLIC 1952 -DMFLASH_FILE_BASEADDR=64487424 1953 ) 1954 1955endif() 1956 1957else() 1958 1959message(SEND_ERROR "component_mflash_rt1050.MIMXRT1052 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 1960 1961endif() 1962 1963endif() 1964 1965 1966if (CONFIG_USE_driver_mma8451q) 1967# Add set(CONFIG_USE_driver_mma8451q true) in config.cmake to use this component 1968 1969message("driver_mma8451q component is included from ${CMAKE_CURRENT_LIST_FILE}.") 1970 1971if(CONFIG_USE_driver_common) 1972 1973target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 1974 ${CMAKE_CURRENT_LIST_DIR}/../../components/mma8451q/fsl_mma.c 1975) 1976 1977target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 1978 ${CMAKE_CURRENT_LIST_DIR}/../../components/mma8451q/. 1979) 1980 1981else() 1982 1983message(SEND_ERROR "driver_mma8451q.MIMXRT1052 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 1984 1985endif() 1986 1987endif() 1988 1989 1990if (CONFIG_USE_component_panic) 1991# Add set(CONFIG_USE_component_panic true) in config.cmake to use this component 1992 1993message("component_panic component is included from ${CMAKE_CURRENT_LIST_FILE}.") 1994 1995if(CONFIG_USE_driver_common) 1996 1997target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 1998 ${CMAKE_CURRENT_LIST_DIR}/../../components/panic/fsl_component_panic.c 1999) 2000 2001target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 2002 ${CMAKE_CURRENT_LIST_DIR}/../../components/panic/. 2003) 2004 2005else() 2006 2007message(SEND_ERROR "component_panic.MIMXRT1052 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 2008 2009endif() 2010 2011endif() 2012 2013 2014if (CONFIG_USE_driver_phy-device-ksz8081) 2015# Add set(CONFIG_USE_driver_phy-device-ksz8081 true) in config.cmake to use this component 2016 2017message("driver_phy-device-ksz8081 component is included from ${CMAKE_CURRENT_LIST_FILE}.") 2018 2019if(CONFIG_USE_driver_phy-common) 2020 2021target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 2022 ${CMAKE_CURRENT_LIST_DIR}/../../components/phy/device/phyksz8081/fsl_phyksz8081.c 2023) 2024 2025target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 2026 ${CMAKE_CURRENT_LIST_DIR}/../../components/phy/device/phyksz8081/. 2027) 2028 2029else() 2030 2031message(SEND_ERROR "driver_phy-device-ksz8081.MIMXRT1052 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 2032 2033endif() 2034 2035endif() 2036 2037 2038if (CONFIG_USE_component_reset_adapter) 2039# Add set(CONFIG_USE_component_reset_adapter true) in config.cmake to use this component 2040 2041message("component_reset_adapter component is included from ${CMAKE_CURRENT_LIST_FILE}.") 2042 2043if(CONFIG_USE_driver_common) 2044 2045target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 2046 ${CMAKE_CURRENT_LIST_DIR}/../../components/reset/fsl_adapter_reset.c 2047) 2048 2049target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 2050 ${CMAKE_CURRENT_LIST_DIR}/../../components/reset/. 2051) 2052 2053else() 2054 2055message(SEND_ERROR "component_reset_adapter.MIMXRT1052 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 2056 2057endif() 2058 2059endif() 2060 2061 2062if (CONFIG_USE_component_trng_adapter) 2063# Add set(CONFIG_USE_component_trng_adapter true) in config.cmake to use this component 2064 2065message("component_trng_adapter component is included from ${CMAKE_CURRENT_LIST_FILE}.") 2066 2067if(CONFIG_USE_driver_common AND CONFIG_USE_driver_trng) 2068 2069target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 2070 ${CMAKE_CURRENT_LIST_DIR}/../../components/rng/fsl_adapter_trng.c 2071) 2072 2073target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 2074 ${CMAKE_CURRENT_LIST_DIR}/../../components/rng/. 2075) 2076 2077else() 2078 2079message(SEND_ERROR "component_trng_adapter.MIMXRT1052 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 2080 2081endif() 2082 2083endif() 2084 2085 2086if (CONFIG_USE_component_software_rng_adapter) 2087# Add set(CONFIG_USE_component_software_rng_adapter true) in config.cmake to use this component 2088 2089message("component_software_rng_adapter component is included from ${CMAKE_CURRENT_LIST_FILE}.") 2090 2091if(CONFIG_USE_driver_common) 2092 2093target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 2094 ${CMAKE_CURRENT_LIST_DIR}/../../components/rng/fsl_adapter_software_rng.c 2095) 2096 2097target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 2098 ${CMAKE_CURRENT_LIST_DIR}/../../components/rng/. 2099) 2100 2101else() 2102 2103message(SEND_ERROR "component_software_rng_adapter.MIMXRT1052 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 2104 2105endif() 2106 2107endif() 2108 2109 2110if (CONFIG_USE_component_serial_manager) 2111# Add set(CONFIG_USE_component_serial_manager true) in config.cmake to use this component 2112 2113message("component_serial_manager component is included from ${CMAKE_CURRENT_LIST_FILE}.") 2114 2115if(CONFIG_USE_driver_common AND CONFIG_USE_component_lists AND (CONFIG_USE_component_serial_manager_uart OR CONFIG_USE_component_serial_manager_usb_cdc OR CONFIG_USE_component_serial_manager_virtual OR CONFIG_USE_component_serial_manager_swo OR CONFIG_USE_component_serial_manager_spi)) 2116 2117target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 2118 ${CMAKE_CURRENT_LIST_DIR}/../../components/serial_manager/fsl_component_serial_manager.c 2119) 2120 2121target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 2122 ${CMAKE_CURRENT_LIST_DIR}/../../components/serial_manager/. 2123) 2124 2125else() 2126 2127message(SEND_ERROR "component_serial_manager.MIMXRT1052 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 2128 2129endif() 2130 2131endif() 2132 2133 2134if (CONFIG_USE_component_serial_manager_spi) 2135# Add set(CONFIG_USE_component_serial_manager_spi true) in config.cmake to use this component 2136 2137message("component_serial_manager_spi component is included from ${CMAKE_CURRENT_LIST_FILE}.") 2138 2139if(CONFIG_USE_component_serial_manager AND ((CONFIG_USE_driver_lpspi AND CONFIG_USE_component_lpspi_adapter))) 2140 2141target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 2142 ${CMAKE_CURRENT_LIST_DIR}/../../components/serial_manager/fsl_component_serial_port_spi.c 2143) 2144 2145target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 2146 ${CMAKE_CURRENT_LIST_DIR}/../../components/serial_manager/. 2147) 2148 2149if(CONFIG_USE_COMPONENT_CONFIGURATION) 2150 message("===>Import configuration from ${CMAKE_CURRENT_LIST_FILE}") 2151 2152 target_compile_definitions(${MCUX_SDK_PROJECT_NAME} PUBLIC 2153 -DSERIAL_PORT_TYPE_SPI=1 2154 -DSERIAL_PORT_TYPE_SPI_MASTER=1 2155 -DSERIAL_PORT_TYPE_SPI_SLAVE=1 2156 -DSERIAL_MANAGER_NON_BLOCKING_MODE=1 2157 ) 2158 2159endif() 2160 2161else() 2162 2163message(SEND_ERROR "component_serial_manager_spi.MIMXRT1052 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 2164 2165endif() 2166 2167endif() 2168 2169 2170if (CONFIG_USE_component_serial_manager_usb_cdc) 2171# Add set(CONFIG_USE_component_serial_manager_usb_cdc true) in config.cmake to use this component 2172 2173message("component_serial_manager_usb_cdc component is included from ${CMAKE_CURRENT_LIST_FILE}.") 2174 2175if(CONFIG_USE_component_serial_manager AND CONFIG_USE_middleware_usb_device_cdc_external AND CONFIG_USE_driver_common) 2176 2177target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 2178 ${CMAKE_CURRENT_LIST_DIR}/../../components/serial_manager/fsl_component_serial_port_usb.c 2179 ${CMAKE_CURRENT_LIST_DIR}/../../components/serial_manager/usb_cdc_adapter/usb_device_descriptor.c 2180) 2181 2182target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 2183 ${CMAKE_CURRENT_LIST_DIR}/../../components/serial_manager/. 2184 ${CMAKE_CURRENT_LIST_DIR}/../../components/serial_manager/usb_cdc_adapter 2185) 2186 2187if(CONFIG_USE_COMPONENT_CONFIGURATION) 2188 message("===>Import configuration from ${CMAKE_CURRENT_LIST_FILE}") 2189 2190 target_compile_definitions(${MCUX_SDK_PROJECT_NAME} PUBLIC 2191 -DSERIAL_PORT_TYPE_USBCDC=1 2192 -DDEBUG_CONSOLE_TRANSFER_NON_BLOCKING 2193 -DUSB_DEVICE_CONFIG_CDC_ACM=1 2194 ) 2195 2196endif() 2197 2198else() 2199 2200message(SEND_ERROR "component_serial_manager_usb_cdc.MIMXRT1052 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 2201 2202endif() 2203 2204endif() 2205 2206 2207if (CONFIG_USE_component_serial_manager_virtual) 2208# Add set(CONFIG_USE_component_serial_manager_virtual true) in config.cmake to use this component 2209 2210message("component_serial_manager_virtual component is included from ${CMAKE_CURRENT_LIST_FILE}.") 2211 2212if(CONFIG_USE_component_serial_manager AND CONFIG_USE_driver_common) 2213 2214target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 2215 ${CMAKE_CURRENT_LIST_DIR}/../../components/serial_manager/fsl_component_serial_port_virtual.c 2216) 2217 2218target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 2219 ${CMAKE_CURRENT_LIST_DIR}/../../components/serial_manager/. 2220) 2221 2222if(CONFIG_USE_COMPONENT_CONFIGURATION) 2223 message("===>Import configuration from ${CMAKE_CURRENT_LIST_FILE}") 2224 2225 target_compile_definitions(${MCUX_SDK_PROJECT_NAME} PUBLIC 2226 -DSERIAL_PORT_TYPE_VIRTUAL=1 2227 -DDEBUG_CONSOLE_TRANSFER_NON_BLOCKING 2228 ) 2229 2230endif() 2231 2232else() 2233 2234message(SEND_ERROR "component_serial_manager_virtual.MIMXRT1052 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 2235 2236endif() 2237 2238endif() 2239 2240 2241if (CONFIG_USE_component_serial_manager_swo) 2242# Add set(CONFIG_USE_component_serial_manager_swo true) in config.cmake to use this component 2243 2244message("component_serial_manager_swo component is included from ${CMAKE_CURRENT_LIST_FILE}.") 2245 2246if((CONFIG_CORE STREQUAL cm7f) AND CONFIG_USE_driver_common AND CONFIG_USE_component_serial_manager) 2247 2248target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 2249 ${CMAKE_CURRENT_LIST_DIR}/../../components/serial_manager/fsl_component_serial_port_swo.c 2250) 2251 2252target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 2253 ${CMAKE_CURRENT_LIST_DIR}/../../components/serial_manager/. 2254) 2255 2256if(CONFIG_USE_COMPONENT_CONFIGURATION) 2257 message("===>Import configuration from ${CMAKE_CURRENT_LIST_FILE}") 2258 2259 target_compile_definitions(${MCUX_SDK_PROJECT_NAME} PUBLIC 2260 -DSERIAL_PORT_TYPE_SWO=1 2261 ) 2262 2263endif() 2264 2265else() 2266 2267message(SEND_ERROR "component_serial_manager_swo.MIMXRT1052 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 2268 2269endif() 2270 2271endif() 2272 2273 2274if (CONFIG_USE_driver_sgtl5000) 2275# Add set(CONFIG_USE_driver_sgtl5000 true) in config.cmake to use this component 2276 2277message("driver_sgtl5000 component is included from ${CMAKE_CURRENT_LIST_FILE}.") 2278 2279if(CONFIG_USE_driver_common AND CONFIG_USE_component_codec_i2c) 2280 2281target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 2282 ${CMAKE_CURRENT_LIST_DIR}/../../components/codec/sgtl5000/fsl_sgtl5000.c 2283) 2284 2285target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 2286 ${CMAKE_CURRENT_LIST_DIR}/../../components/codec/sgtl5000/. 2287) 2288 2289if(CONFIG_USE_COMPONENT_CONFIGURATION) 2290 message("===>Import configuration from ${CMAKE_CURRENT_LIST_FILE}") 2291 2292 target_compile_definitions(${MCUX_SDK_PROJECT_NAME} PUBLIC 2293 -DSDK_I2C_BASED_COMPONENT_USED=1 2294 -DBOARD_USE_CODEC=1 2295 -DCODEC_SGTL5000_ENABLE 2296 ) 2297 2298endif() 2299 2300else() 2301 2302message(SEND_ERROR "driver_sgtl5000.MIMXRT1052 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 2303 2304endif() 2305 2306endif() 2307 2308 2309if (CONFIG_USE_utility_shell) 2310# Add set(CONFIG_USE_utility_shell true) in config.cmake to use this component 2311 2312message("utility_shell component is included from ${CMAKE_CURRENT_LIST_FILE}.") 2313 2314if(CONFIG_USE_utility_str AND CONFIG_USE_component_lists AND CONFIG_USE_driver_common) 2315 2316target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 2317 ${CMAKE_CURRENT_LIST_DIR}/../../utilities/shell/fsl_shell.c 2318) 2319 2320target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 2321 ${CMAKE_CURRENT_LIST_DIR}/../../utilities/shell/. 2322) 2323 2324if(CONFIG_USE_COMPONENT_CONFIGURATION) 2325 message("===>Import configuration from ${CMAKE_CURRENT_LIST_FILE}") 2326 2327 target_compile_definitions(${MCUX_SDK_PROJECT_NAME} PUBLIC 2328 -DDEBUG_CONSOLE_RX_ENABLE=0 2329 ) 2330 2331endif() 2332 2333else() 2334 2335message(SEND_ERROR "utility_shell.MIMXRT1052 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 2336 2337endif() 2338 2339endif() 2340 2341 2342if (CONFIG_USE_component_silicon_id_rt10xx) 2343# Add set(CONFIG_USE_component_silicon_id_rt10xx true) in config.cmake to use this component 2344 2345message("component_silicon_id_rt10xx component is included from ${CMAKE_CURRENT_LIST_FILE}.") 2346 2347if((CONFIG_DEVICE_ID STREQUAL MIMXRT1052xxxxB) AND CONFIG_USE_component_silicon_id) 2348 2349target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 2350 ${CMAKE_CURRENT_LIST_DIR}/../../components/silicon_id/socs/rt10xx/fsl_silicon_id_soc.c 2351) 2352 2353target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 2354 ${CMAKE_CURRENT_LIST_DIR}/../../components/silicon_id/socs/rt10xx/.. 2355) 2356 2357else() 2358 2359message(SEND_ERROR "component_silicon_id_rt10xx.MIMXRT1052 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 2360 2361endif() 2362 2363endif() 2364 2365 2366if (CONFIG_USE_component_silicon_id) 2367# Add set(CONFIG_USE_component_silicon_id true) in config.cmake to use this component 2368 2369message("component_silicon_id component is included from ${CMAKE_CURRENT_LIST_FILE}.") 2370 2371if((CONFIG_USE_driver_common AND CONFIG_USE_component_silicon_id_rt10xx)) 2372 2373target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 2374 ${CMAKE_CURRENT_LIST_DIR}/../../components/silicon_id/fsl_silicon_id.c 2375) 2376 2377target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 2378 ${CMAKE_CURRENT_LIST_DIR}/../../components/silicon_id/. 2379) 2380 2381else() 2382 2383message(SEND_ERROR "component_silicon_id.MIMXRT1052 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 2384 2385endif() 2386 2387endif() 2388 2389 2390if (CONFIG_USE_component_lpspi_adapter) 2391# Add set(CONFIG_USE_component_lpspi_adapter true) in config.cmake to use this component 2392 2393message("component_lpspi_adapter component is included from ${CMAKE_CURRENT_LIST_FILE}.") 2394 2395if(CONFIG_USE_driver_common AND CONFIG_USE_driver_lpspi) 2396 2397target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 2398 ${CMAKE_CURRENT_LIST_DIR}/../../components/spi/fsl_adapter_lpspi.c 2399) 2400 2401target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 2402 ${CMAKE_CURRENT_LIST_DIR}/../../components/spi/. 2403) 2404 2405else() 2406 2407message(SEND_ERROR "component_lpspi_adapter.MIMXRT1052 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 2408 2409endif() 2410 2411endif() 2412 2413 2414if (CONFIG_USE_component_gpt_adapter) 2415# Add set(CONFIG_USE_component_gpt_adapter true) in config.cmake to use this component 2416 2417message("component_gpt_adapter component is included from ${CMAKE_CURRENT_LIST_FILE}.") 2418 2419if(CONFIG_USE_driver_common AND CONFIG_USE_driver_gpt) 2420 2421target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 2422 ${CMAKE_CURRENT_LIST_DIR}/../../components/timer/fsl_adapter_gpt.c 2423) 2424 2425target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 2426 ${CMAKE_CURRENT_LIST_DIR}/../../components/timer/. 2427) 2428 2429else() 2430 2431message(SEND_ERROR "component_gpt_adapter.MIMXRT1052 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 2432 2433endif() 2434 2435endif() 2436 2437 2438if (CONFIG_USE_component_pit_adapter) 2439# Add set(CONFIG_USE_component_pit_adapter true) in config.cmake to use this component 2440 2441message("component_pit_adapter component is included from ${CMAKE_CURRENT_LIST_FILE}.") 2442 2443if(CONFIG_USE_driver_common AND CONFIG_USE_driver_pit) 2444 2445target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 2446 ${CMAKE_CURRENT_LIST_DIR}/../../components/timer/fsl_adapter_pit.c 2447) 2448 2449target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 2450 ${CMAKE_CURRENT_LIST_DIR}/../../components/timer/. 2451) 2452 2453else() 2454 2455message(SEND_ERROR "component_pit_adapter.MIMXRT1052 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 2456 2457endif() 2458 2459endif() 2460 2461 2462if (CONFIG_USE_component_timer_manager) 2463# Add set(CONFIG_USE_component_timer_manager true) in config.cmake to use this component 2464 2465message("component_timer_manager component is included from ${CMAKE_CURRENT_LIST_FILE}.") 2466 2467if(CONFIG_USE_driver_common AND CONFIG_USE_component_lists AND (CONFIG_USE_component_gpt_adapter OR CONFIG_USE_component_pit_adapter)) 2468 2469target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 2470 ${CMAKE_CURRENT_LIST_DIR}/../../components/timer_manager/fsl_component_timer_manager.c 2471) 2472 2473target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 2474 ${CMAKE_CURRENT_LIST_DIR}/../../components/timer_manager/. 2475) 2476 2477else() 2478 2479message(SEND_ERROR "component_timer_manager.MIMXRT1052 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 2480 2481endif() 2482 2483endif() 2484 2485 2486if (CONFIG_USE_component_lpuart_adapter) 2487# Add set(CONFIG_USE_component_lpuart_adapter true) in config.cmake to use this component 2488 2489message("component_lpuart_adapter component is included from ${CMAKE_CURRENT_LIST_FILE}.") 2490 2491if(CONFIG_USE_driver_common AND CONFIG_USE_driver_lpuart) 2492 2493target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 2494 ${CMAKE_CURRENT_LIST_DIR}/../../components/uart/fsl_adapter_lpuart.c 2495) 2496 2497target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 2498 ${CMAKE_CURRENT_LIST_DIR}/../../components/uart/. 2499) 2500 2501else() 2502 2503message(SEND_ERROR "component_lpuart_adapter.MIMXRT1052 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 2504 2505endif() 2506 2507endif() 2508 2509 2510if (CONFIG_USE_component_lpuart_dma_adapter) 2511# Add set(CONFIG_USE_component_lpuart_dma_adapter true) in config.cmake to use this component 2512 2513message("component_lpuart_dma_adapter component is included from ${CMAKE_CURRENT_LIST_FILE}.") 2514 2515if(CONFIG_USE_component_lpuart_adapter AND CONFIG_USE_component_timer_manager AND (CONFIG_USE_driver_lpuart_edma)) 2516 2517target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 2518 ${CMAKE_CURRENT_LIST_DIR}/../../components/uart/fsl_adapter_lpuart.c 2519) 2520 2521target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 2522 ${CMAKE_CURRENT_LIST_DIR}/../../components/uart/. 2523) 2524 2525if(CONFIG_USE_COMPONENT_CONFIGURATION) 2526 message("===>Import configuration from ${CMAKE_CURRENT_LIST_FILE}") 2527 2528 target_compile_definitions(${MCUX_SDK_PROJECT_NAME} PUBLIC 2529 -DHAL_UART_DMA_ENABLE=1 2530 ) 2531 2532endif() 2533 2534else() 2535 2536message(SEND_ERROR "component_lpuart_dma_adapter.MIMXRT1052 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 2537 2538endif() 2539 2540endif() 2541 2542 2543if (CONFIG_USE_driver_video-common) 2544# Add set(CONFIG_USE_driver_video-common true) in config.cmake to use this component 2545 2546message("driver_video-common component is included from ${CMAKE_CURRENT_LIST_FILE}.") 2547 2548if(CONFIG_USE_driver_common) 2549 2550target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 2551 ${CMAKE_CURRENT_LIST_DIR}/../../components/video/fsl_video_common.c 2552) 2553 2554target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 2555 ${CMAKE_CURRENT_LIST_DIR}/../../components/video/. 2556) 2557 2558else() 2559 2560message(SEND_ERROR "driver_video-common.MIMXRT1052 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 2561 2562endif() 2563 2564endif() 2565 2566 2567if (CONFIG_USE_driver_wm8904) 2568# Add set(CONFIG_USE_driver_wm8904 true) in config.cmake to use this component 2569 2570message("driver_wm8904 component is included from ${CMAKE_CURRENT_LIST_FILE}.") 2571 2572if(CONFIG_USE_driver_common AND CONFIG_USE_component_codec_i2c) 2573 2574target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 2575 ${CMAKE_CURRENT_LIST_DIR}/../../components/codec/wm8904/fsl_wm8904.c 2576) 2577 2578target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 2579 ${CMAKE_CURRENT_LIST_DIR}/../../components/codec/wm8904/. 2580) 2581 2582if(CONFIG_USE_COMPONENT_CONFIGURATION) 2583 message("===>Import configuration from ${CMAKE_CURRENT_LIST_FILE}") 2584 2585 target_compile_definitions(${MCUX_SDK_PROJECT_NAME} PUBLIC 2586 -DSDK_I2C_BASED_COMPONENT_USED=1 2587 -DBOARD_USE_CODEC=1 2588 -DCODEC_WM8904_ENABLE 2589 ) 2590 2591endif() 2592 2593else() 2594 2595message(SEND_ERROR "driver_wm8904.MIMXRT1052 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 2596 2597endif() 2598 2599endif() 2600 2601 2602if (CONFIG_USE_driver_wm8960) 2603# Add set(CONFIG_USE_driver_wm8960 true) in config.cmake to use this component 2604 2605message("driver_wm8960 component is included from ${CMAKE_CURRENT_LIST_FILE}.") 2606 2607if(CONFIG_USE_driver_common AND CONFIG_USE_component_codec_i2c) 2608 2609target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 2610 ${CMAKE_CURRENT_LIST_DIR}/../../components/codec/wm8960/fsl_wm8960.c 2611) 2612 2613target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 2614 ${CMAKE_CURRENT_LIST_DIR}/../../components/codec/wm8960/. 2615) 2616 2617if(CONFIG_USE_COMPONENT_CONFIGURATION) 2618 message("===>Import configuration from ${CMAKE_CURRENT_LIST_FILE}") 2619 2620 target_compile_definitions(${MCUX_SDK_PROJECT_NAME} PUBLIC 2621 -DSDK_I2C_BASED_COMPONENT_USED=1 2622 -DBOARD_USE_CODEC=1 2623 -DCODEC_WM8960_ENABLE 2624 ) 2625 2626endif() 2627 2628else() 2629 2630message(SEND_ERROR "driver_wm8960.MIMXRT1052 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 2631 2632endif() 2633 2634endif() 2635 2636 2637if (CONFIG_USE_driver_common) 2638# Add set(CONFIG_USE_driver_common true) in config.cmake to use this component 2639 2640message("driver_common component is included from ${CMAKE_CURRENT_LIST_FILE}.") 2641 2642if(CONFIG_USE_driver_clock AND CONFIG_USE_device_MIMXRT1052_CMSIS) 2643 2644target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 2645 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/common/fsl_common.c 2646) 2647 2648if(CONFIG_CORE STREQUAL cm7f) 2649 target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 2650 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/common/fsl_common_arm.c 2651 ) 2652endif() 2653 2654target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 2655 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/common/. 2656) 2657 2658else() 2659 2660message(SEND_ERROR "driver_common.MIMXRT1052 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 2661 2662endif() 2663 2664endif() 2665 2666 2667if (CONFIG_USE_driver_adc_12b1msps_sar) 2668# Add set(CONFIG_USE_driver_adc_12b1msps_sar true) in config.cmake to use this component 2669 2670message("driver_adc_12b1msps_sar component is included from ${CMAKE_CURRENT_LIST_FILE}.") 2671 2672if((CONFIG_DEVICE_ID STREQUAL MIMXRT1052xxxxB) AND CONFIG_USE_driver_common) 2673 2674target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 2675 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/adc_12b1msps_sar/fsl_adc.c 2676) 2677 2678target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 2679 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/adc_12b1msps_sar/. 2680) 2681 2682else() 2683 2684message(SEND_ERROR "driver_adc_12b1msps_sar.MIMXRT1052 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 2685 2686endif() 2687 2688endif() 2689 2690 2691if (CONFIG_USE_driver_adc_etc) 2692# Add set(CONFIG_USE_driver_adc_etc true) in config.cmake to use this component 2693 2694message("driver_adc_etc component is included from ${CMAKE_CURRENT_LIST_FILE}.") 2695 2696if((CONFIG_DEVICE_ID STREQUAL MIMXRT1052xxxxB) AND CONFIG_USE_driver_common) 2697 2698target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 2699 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/adc_etc/fsl_adc_etc.c 2700) 2701 2702target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 2703 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/adc_etc/. 2704) 2705 2706else() 2707 2708message(SEND_ERROR "driver_adc_etc.MIMXRT1052 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 2709 2710endif() 2711 2712endif() 2713 2714 2715if (CONFIG_USE_driver_aipstz) 2716# Add set(CONFIG_USE_driver_aipstz true) in config.cmake to use this component 2717 2718message("driver_aipstz component is included from ${CMAKE_CURRENT_LIST_FILE}.") 2719 2720if((CONFIG_DEVICE_ID STREQUAL MIMXRT1052xxxxB) AND CONFIG_USE_driver_common) 2721 2722target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 2723 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/aipstz/fsl_aipstz.c 2724) 2725 2726target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 2727 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/aipstz/. 2728) 2729 2730else() 2731 2732message(SEND_ERROR "driver_aipstz.MIMXRT1052 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 2733 2734endif() 2735 2736endif() 2737 2738 2739if (CONFIG_USE_driver_aoi) 2740# Add set(CONFIG_USE_driver_aoi true) in config.cmake to use this component 2741 2742message("driver_aoi component is included from ${CMAKE_CURRENT_LIST_FILE}.") 2743 2744if((CONFIG_DEVICE_ID STREQUAL MIMXRT1052xxxxB) AND CONFIG_USE_driver_common) 2745 2746target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 2747 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/aoi/fsl_aoi.c 2748) 2749 2750target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 2751 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/aoi/. 2752) 2753 2754else() 2755 2756message(SEND_ERROR "driver_aoi.MIMXRT1052 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 2757 2758endif() 2759 2760endif() 2761 2762 2763if (CONFIG_USE_driver_bee) 2764# Add set(CONFIG_USE_driver_bee true) in config.cmake to use this component 2765 2766message("driver_bee component is included from ${CMAKE_CURRENT_LIST_FILE}.") 2767 2768if((CONFIG_DEVICE_ID STREQUAL MIMXRT1052xxxxB) AND CONFIG_USE_driver_common) 2769 2770target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 2771 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/bee/fsl_bee.c 2772) 2773 2774target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 2775 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/bee/. 2776) 2777 2778else() 2779 2780message(SEND_ERROR "driver_bee.MIMXRT1052 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 2781 2782endif() 2783 2784endif() 2785 2786 2787if (CONFIG_USE_driver_cache_armv7_m7) 2788# Add set(CONFIG_USE_driver_cache_armv7_m7 true) in config.cmake to use this component 2789 2790message("driver_cache_armv7_m7 component is included from ${CMAKE_CURRENT_LIST_FILE}.") 2791 2792if(CONFIG_USE_driver_common) 2793 2794target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 2795 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/cache/armv7-m7/fsl_cache.c 2796) 2797 2798target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 2799 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/cache/armv7-m7/. 2800) 2801 2802else() 2803 2804message(SEND_ERROR "driver_cache_armv7_m7.MIMXRT1052 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 2805 2806endif() 2807 2808endif() 2809 2810 2811if (CONFIG_USE_driver_cmp) 2812# Add set(CONFIG_USE_driver_cmp true) in config.cmake to use this component 2813 2814message("driver_cmp component is included from ${CMAKE_CURRENT_LIST_FILE}.") 2815 2816if((CONFIG_DEVICE_ID STREQUAL MIMXRT1052xxxxB) AND CONFIG_USE_driver_common) 2817 2818target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 2819 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/cmp/fsl_cmp.c 2820) 2821 2822target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 2823 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/cmp/. 2824) 2825 2826else() 2827 2828message(SEND_ERROR "driver_cmp.MIMXRT1052 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 2829 2830endif() 2831 2832endif() 2833 2834 2835if (CONFIG_USE_driver_csi) 2836# Add set(CONFIG_USE_driver_csi true) in config.cmake to use this component 2837 2838message("driver_csi component is included from ${CMAKE_CURRENT_LIST_FILE}.") 2839 2840if((CONFIG_DEVICE_ID STREQUAL MIMXRT1052xxxxB) AND CONFIG_USE_driver_common) 2841 2842target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 2843 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/csi/fsl_csi.c 2844) 2845 2846target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 2847 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/csi/. 2848) 2849 2850else() 2851 2852message(SEND_ERROR "driver_csi.MIMXRT1052 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 2853 2854endif() 2855 2856endif() 2857 2858 2859if (CONFIG_USE_driver_dcdc_1) 2860# Add set(CONFIG_USE_driver_dcdc_1 true) in config.cmake to use this component 2861 2862message("driver_dcdc_1 component is included from ${CMAKE_CURRENT_LIST_FILE}.") 2863 2864if((CONFIG_DEVICE_ID STREQUAL MIMXRT1052xxxxB) AND CONFIG_USE_driver_common) 2865 2866target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 2867 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/dcdc_1/fsl_dcdc.c 2868) 2869 2870target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 2871 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/dcdc_1/. 2872) 2873 2874else() 2875 2876message(SEND_ERROR "driver_dcdc_1.MIMXRT1052 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 2877 2878endif() 2879 2880endif() 2881 2882 2883if (CONFIG_USE_driver_dmamux) 2884# Add set(CONFIG_USE_driver_dmamux true) in config.cmake to use this component 2885 2886message("driver_dmamux component is included from ${CMAKE_CURRENT_LIST_FILE}.") 2887 2888if((CONFIG_DEVICE_ID STREQUAL MIMXRT1052xxxxB) AND CONFIG_USE_driver_common) 2889 2890target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 2891 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/dmamux/fsl_dmamux.c 2892) 2893 2894target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 2895 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/dmamux/. 2896) 2897 2898else() 2899 2900message(SEND_ERROR "driver_dmamux.MIMXRT1052 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 2901 2902endif() 2903 2904endif() 2905 2906 2907if (CONFIG_USE_driver_edma) 2908# Add set(CONFIG_USE_driver_edma true) in config.cmake to use this component 2909 2910message("driver_edma component is included from ${CMAKE_CURRENT_LIST_FILE}.") 2911 2912if((CONFIG_DEVICE_ID STREQUAL MIMXRT1052xxxxB) AND CONFIG_USE_driver_common AND CONFIG_USE_driver_dmamux) 2913 2914target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 2915 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/edma/fsl_edma.c 2916) 2917 2918target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 2919 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/edma/. 2920) 2921 2922else() 2923 2924message(SEND_ERROR "driver_edma.MIMXRT1052 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 2925 2926endif() 2927 2928endif() 2929 2930 2931if (CONFIG_USE_driver_elcdif) 2932# Add set(CONFIG_USE_driver_elcdif true) in config.cmake to use this component 2933 2934message("driver_elcdif component is included from ${CMAKE_CURRENT_LIST_FILE}.") 2935 2936if((CONFIG_DEVICE_ID STREQUAL MIMXRT1052xxxxB) AND CONFIG_USE_driver_common) 2937 2938target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 2939 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/elcdif/fsl_elcdif.c 2940) 2941 2942target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 2943 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/elcdif/. 2944) 2945 2946else() 2947 2948message(SEND_ERROR "driver_elcdif.MIMXRT1052 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 2949 2950endif() 2951 2952endif() 2953 2954 2955if (CONFIG_USE_driver_enc) 2956# Add set(CONFIG_USE_driver_enc true) in config.cmake to use this component 2957 2958message("driver_enc component is included from ${CMAKE_CURRENT_LIST_FILE}.") 2959 2960if((CONFIG_DEVICE_ID STREQUAL MIMXRT1052xxxxB) AND CONFIG_USE_driver_common) 2961 2962target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 2963 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/enc/fsl_enc.c 2964) 2965 2966target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 2967 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/enc/. 2968) 2969 2970else() 2971 2972message(SEND_ERROR "driver_enc.MIMXRT1052 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 2973 2974endif() 2975 2976endif() 2977 2978 2979if (CONFIG_USE_driver_enet) 2980# Add set(CONFIG_USE_driver_enet true) in config.cmake to use this component 2981 2982message("driver_enet component is included from ${CMAKE_CURRENT_LIST_FILE}.") 2983 2984if((CONFIG_DEVICE_ID STREQUAL MIMXRT1052xxxxB) AND CONFIG_USE_driver_common) 2985 2986target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 2987 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/enet/fsl_enet.c 2988) 2989 2990target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 2991 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/enet/. 2992) 2993 2994else() 2995 2996message(SEND_ERROR "driver_enet.MIMXRT1052 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 2997 2998endif() 2999 3000endif() 3001 3002 3003if (CONFIG_USE_driver_ewm) 3004# Add set(CONFIG_USE_driver_ewm true) in config.cmake to use this component 3005 3006message("driver_ewm component is included from ${CMAKE_CURRENT_LIST_FILE}.") 3007 3008if((CONFIG_DEVICE_ID STREQUAL MIMXRT1052xxxxB) AND CONFIG_USE_driver_common) 3009 3010target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 3011 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/ewm/fsl_ewm.c 3012) 3013 3014target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 3015 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/ewm/. 3016) 3017 3018else() 3019 3020message(SEND_ERROR "driver_ewm.MIMXRT1052 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 3021 3022endif() 3023 3024endif() 3025 3026 3027if (CONFIG_USE_driver_flexcan) 3028# Add set(CONFIG_USE_driver_flexcan true) in config.cmake to use this component 3029 3030message("driver_flexcan component is included from ${CMAKE_CURRENT_LIST_FILE}.") 3031 3032if((CONFIG_DEVICE_ID STREQUAL MIMXRT1052xxxxB) AND CONFIG_USE_driver_common) 3033 3034target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 3035 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/flexcan/fsl_flexcan.c 3036) 3037 3038target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 3039 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/flexcan/. 3040) 3041 3042else() 3043 3044message(SEND_ERROR "driver_flexcan.MIMXRT1052 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 3045 3046endif() 3047 3048endif() 3049 3050 3051if (CONFIG_USE_driver_flexio) 3052# Add set(CONFIG_USE_driver_flexio true) in config.cmake to use this component 3053 3054message("driver_flexio component is included from ${CMAKE_CURRENT_LIST_FILE}.") 3055 3056if((CONFIG_DEVICE_ID STREQUAL MIMXRT1052xxxxB) AND CONFIG_USE_driver_common) 3057 3058target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 3059 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/flexio/fsl_flexio.c 3060) 3061 3062target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 3063 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/flexio/. 3064) 3065 3066else() 3067 3068message(SEND_ERROR "driver_flexio.MIMXRT1052 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 3069 3070endif() 3071 3072endif() 3073 3074 3075if (CONFIG_USE_driver_flexio_camera) 3076# Add set(CONFIG_USE_driver_flexio_camera true) in config.cmake to use this component 3077 3078message("driver_flexio_camera component is included from ${CMAKE_CURRENT_LIST_FILE}.") 3079 3080if(CONFIG_USE_driver_flexio AND (CONFIG_DEVICE_ID STREQUAL MIMXRT1052xxxxB)) 3081 3082target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 3083 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/flexio/camera/fsl_flexio_camera.c 3084) 3085 3086target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 3087 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/flexio/camera/. 3088) 3089 3090else() 3091 3092message(SEND_ERROR "driver_flexio_camera.MIMXRT1052 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 3093 3094endif() 3095 3096endif() 3097 3098 3099if (CONFIG_USE_driver_flexio_i2c_master) 3100# Add set(CONFIG_USE_driver_flexio_i2c_master true) in config.cmake to use this component 3101 3102message("driver_flexio_i2c_master component is included from ${CMAKE_CURRENT_LIST_FILE}.") 3103 3104if(CONFIG_USE_driver_flexio) 3105 3106target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 3107 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/flexio/i2c/fsl_flexio_i2c_master.c 3108) 3109 3110target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 3111 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/flexio/i2c/. 3112) 3113 3114else() 3115 3116message(SEND_ERROR "driver_flexio_i2c_master.MIMXRT1052 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 3117 3118endif() 3119 3120endif() 3121 3122 3123if (CONFIG_USE_driver_flexio_i2s) 3124# Add set(CONFIG_USE_driver_flexio_i2s true) in config.cmake to use this component 3125 3126message("driver_flexio_i2s component is included from ${CMAKE_CURRENT_LIST_FILE}.") 3127 3128if(CONFIG_USE_driver_flexio) 3129 3130target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 3131 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/flexio/i2s/fsl_flexio_i2s.c 3132) 3133 3134target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 3135 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/flexio/i2s/. 3136) 3137 3138else() 3139 3140message(SEND_ERROR "driver_flexio_i2s.MIMXRT1052 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 3141 3142endif() 3143 3144endif() 3145 3146 3147if (CONFIG_USE_driver_flexio_mculcd) 3148# Add set(CONFIG_USE_driver_flexio_mculcd true) in config.cmake to use this component 3149 3150message("driver_flexio_mculcd component is included from ${CMAKE_CURRENT_LIST_FILE}.") 3151 3152if(CONFIG_USE_driver_flexio AND (CONFIG_DEVICE_ID STREQUAL MIMXRT1052xxxxB)) 3153 3154target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 3155 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/flexio/mculcd/fsl_flexio_mculcd.c 3156) 3157 3158target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 3159 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/flexio/mculcd/. 3160) 3161 3162else() 3163 3164message(SEND_ERROR "driver_flexio_mculcd.MIMXRT1052 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 3165 3166endif() 3167 3168endif() 3169 3170 3171if (CONFIG_USE_driver_flexio_spi) 3172# Add set(CONFIG_USE_driver_flexio_spi true) in config.cmake to use this component 3173 3174message("driver_flexio_spi component is included from ${CMAKE_CURRENT_LIST_FILE}.") 3175 3176if(CONFIG_USE_driver_flexio) 3177 3178target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 3179 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/flexio/spi/fsl_flexio_spi.c 3180) 3181 3182target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 3183 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/flexio/spi/. 3184) 3185 3186else() 3187 3188message(SEND_ERROR "driver_flexio_spi.MIMXRT1052 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 3189 3190endif() 3191 3192endif() 3193 3194 3195if (CONFIG_USE_driver_flexio_uart) 3196# Add set(CONFIG_USE_driver_flexio_uart true) in config.cmake to use this component 3197 3198message("driver_flexio_uart component is included from ${CMAKE_CURRENT_LIST_FILE}.") 3199 3200if(CONFIG_USE_driver_flexio) 3201 3202target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 3203 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/flexio/uart/fsl_flexio_uart.c 3204) 3205 3206target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 3207 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/flexio/uart/. 3208) 3209 3210else() 3211 3212message(SEND_ERROR "driver_flexio_uart.MIMXRT1052 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 3213 3214endif() 3215 3216endif() 3217 3218 3219if (CONFIG_USE_driver_flexram) 3220# Add set(CONFIG_USE_driver_flexram true) in config.cmake to use this component 3221 3222message("driver_flexram component is included from ${CMAKE_CURRENT_LIST_FILE}.") 3223 3224if((CONFIG_DEVICE_ID STREQUAL MIMXRT1052xxxxB) AND CONFIG_USE_driver_common AND CONFIG_USE_driver_soc_flexram_allocate) 3225 3226target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 3227 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/flexram/fsl_flexram.c 3228) 3229 3230target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 3231 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/flexram/. 3232) 3233 3234else() 3235 3236message(SEND_ERROR "driver_flexram.MIMXRT1052 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 3237 3238endif() 3239 3240endif() 3241 3242 3243if (CONFIG_USE_driver_flexspi) 3244# Add set(CONFIG_USE_driver_flexspi true) in config.cmake to use this component 3245 3246message("driver_flexspi component is included from ${CMAKE_CURRENT_LIST_FILE}.") 3247 3248if((CONFIG_DEVICE_ID STREQUAL MIMXRT1052xxxxB) AND CONFIG_USE_driver_common) 3249 3250target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 3251 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/flexspi/fsl_flexspi.c 3252) 3253 3254target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 3255 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/flexspi/. 3256) 3257 3258else() 3259 3260message(SEND_ERROR "driver_flexspi.MIMXRT1052 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 3261 3262endif() 3263 3264endif() 3265 3266 3267if (CONFIG_USE_driver_gpc_1) 3268# Add set(CONFIG_USE_driver_gpc_1 true) in config.cmake to use this component 3269 3270message("driver_gpc_1 component is included from ${CMAKE_CURRENT_LIST_FILE}.") 3271 3272if((CONFIG_DEVICE_ID STREQUAL MIMXRT1052xxxxB) AND CONFIG_USE_driver_common) 3273 3274target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 3275 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/gpc_1/fsl_gpc.c 3276) 3277 3278target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 3279 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/gpc_1/. 3280) 3281 3282else() 3283 3284message(SEND_ERROR "driver_gpc_1.MIMXRT1052 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 3285 3286endif() 3287 3288endif() 3289 3290 3291if (CONFIG_USE_driver_gpt) 3292# Add set(CONFIG_USE_driver_gpt true) in config.cmake to use this component 3293 3294message("driver_gpt component is included from ${CMAKE_CURRENT_LIST_FILE}.") 3295 3296if((CONFIG_DEVICE_ID STREQUAL MIMXRT1052xxxxB) AND CONFIG_USE_driver_common) 3297 3298target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 3299 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/gpt/fsl_gpt.c 3300) 3301 3302target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 3303 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/gpt/. 3304) 3305 3306else() 3307 3308message(SEND_ERROR "driver_gpt.MIMXRT1052 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 3309 3310endif() 3311 3312endif() 3313 3314 3315if (CONFIG_USE_driver_igpio) 3316# Add set(CONFIG_USE_driver_igpio true) in config.cmake to use this component 3317 3318message("driver_igpio component is included from ${CMAKE_CURRENT_LIST_FILE}.") 3319 3320if((CONFIG_DEVICE_ID STREQUAL MIMXRT1052xxxxB) AND CONFIG_USE_driver_common) 3321 3322target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 3323 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/igpio/fsl_gpio.c 3324) 3325 3326target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 3327 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/igpio/. 3328) 3329 3330else() 3331 3332message(SEND_ERROR "driver_igpio.MIMXRT1052 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 3333 3334endif() 3335 3336endif() 3337 3338 3339if (CONFIG_USE_driver_kpp) 3340# Add set(CONFIG_USE_driver_kpp true) in config.cmake to use this component 3341 3342message("driver_kpp component is included from ${CMAKE_CURRENT_LIST_FILE}.") 3343 3344if((CONFIG_DEVICE_ID STREQUAL MIMXRT1052xxxxB) AND CONFIG_USE_driver_common) 3345 3346target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 3347 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/kpp/fsl_kpp.c 3348) 3349 3350target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 3351 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/kpp/. 3352) 3353 3354else() 3355 3356message(SEND_ERROR "driver_kpp.MIMXRT1052 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 3357 3358endif() 3359 3360endif() 3361 3362 3363if (CONFIG_USE_driver_lpi2c) 3364# Add set(CONFIG_USE_driver_lpi2c true) in config.cmake to use this component 3365 3366message("driver_lpi2c component is included from ${CMAKE_CURRENT_LIST_FILE}.") 3367 3368if((CONFIG_DEVICE_ID STREQUAL MIMXRT1052xxxxB) AND CONFIG_USE_driver_common) 3369 3370target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 3371 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/lpi2c/fsl_lpi2c.c 3372) 3373 3374target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 3375 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/lpi2c/. 3376) 3377 3378else() 3379 3380message(SEND_ERROR "driver_lpi2c.MIMXRT1052 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 3381 3382endif() 3383 3384endif() 3385 3386 3387if (CONFIG_USE_driver_lpi2c_freertos) 3388# Add set(CONFIG_USE_driver_lpi2c_freertos true) in config.cmake to use this component 3389 3390message("driver_lpi2c_freertos component is included from ${CMAKE_CURRENT_LIST_FILE}.") 3391 3392if(CONFIG_USE_driver_lpi2c AND CONFIG_USE_middleware_freertos-kernel) 3393 3394target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 3395 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/lpi2c/fsl_lpi2c_freertos.c 3396) 3397 3398target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 3399 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/lpi2c/. 3400) 3401 3402else() 3403 3404message(SEND_ERROR "driver_lpi2c_freertos.MIMXRT1052 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 3405 3406endif() 3407 3408endif() 3409 3410 3411if (CONFIG_USE_driver_lpspi) 3412# Add set(CONFIG_USE_driver_lpspi true) in config.cmake to use this component 3413 3414message("driver_lpspi component is included from ${CMAKE_CURRENT_LIST_FILE}.") 3415 3416if((CONFIG_DEVICE_ID STREQUAL MIMXRT1052xxxxB) AND CONFIG_USE_driver_common) 3417 3418target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 3419 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/lpspi/fsl_lpspi.c 3420) 3421 3422target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 3423 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/lpspi/. 3424) 3425 3426else() 3427 3428message(SEND_ERROR "driver_lpspi.MIMXRT1052 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 3429 3430endif() 3431 3432endif() 3433 3434 3435if (CONFIG_USE_driver_lpspi_freertos) 3436# Add set(CONFIG_USE_driver_lpspi_freertos true) in config.cmake to use this component 3437 3438message("driver_lpspi_freertos component is included from ${CMAKE_CURRENT_LIST_FILE}.") 3439 3440if(CONFIG_USE_driver_lpspi AND CONFIG_USE_middleware_freertos-kernel) 3441 3442target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 3443 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/lpspi/fsl_lpspi_freertos.c 3444) 3445 3446target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 3447 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/lpspi/. 3448) 3449 3450else() 3451 3452message(SEND_ERROR "driver_lpspi_freertos.MIMXRT1052 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 3453 3454endif() 3455 3456endif() 3457 3458 3459if (CONFIG_USE_driver_lpuart) 3460# Add set(CONFIG_USE_driver_lpuart true) in config.cmake to use this component 3461 3462message("driver_lpuart component is included from ${CMAKE_CURRENT_LIST_FILE}.") 3463 3464if((CONFIG_DEVICE_ID STREQUAL MIMXRT1052xxxxB) AND CONFIG_USE_driver_common) 3465 3466target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 3467 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/lpuart/fsl_lpuart.c 3468) 3469 3470target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 3471 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/lpuart/. 3472) 3473 3474else() 3475 3476message(SEND_ERROR "driver_lpuart.MIMXRT1052 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 3477 3478endif() 3479 3480endif() 3481 3482 3483if (CONFIG_USE_driver_lpuart_freertos) 3484# Add set(CONFIG_USE_driver_lpuart_freertos true) in config.cmake to use this component 3485 3486message("driver_lpuart_freertos component is included from ${CMAKE_CURRENT_LIST_FILE}.") 3487 3488if(CONFIG_USE_driver_lpuart AND CONFIG_USE_middleware_freertos-kernel) 3489 3490target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 3491 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/lpuart/fsl_lpuart_freertos.c 3492) 3493 3494target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 3495 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/lpuart/. 3496) 3497 3498else() 3499 3500message(SEND_ERROR "driver_lpuart_freertos.MIMXRT1052 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 3501 3502endif() 3503 3504endif() 3505 3506 3507if (CONFIG_USE_driver_ocotp) 3508# Add set(CONFIG_USE_driver_ocotp true) in config.cmake to use this component 3509 3510message("driver_ocotp component is included from ${CMAKE_CURRENT_LIST_FILE}.") 3511 3512if((CONFIG_DEVICE_ID STREQUAL MIMXRT1052xxxxB) AND CONFIG_USE_driver_common) 3513 3514target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 3515 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/ocotp/fsl_ocotp.c 3516) 3517 3518target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 3519 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/ocotp/. 3520) 3521 3522else() 3523 3524message(SEND_ERROR "driver_ocotp.MIMXRT1052 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 3525 3526endif() 3527 3528endif() 3529 3530 3531if (CONFIG_USE_driver_pit) 3532# Add set(CONFIG_USE_driver_pit true) in config.cmake to use this component 3533 3534message("driver_pit component is included from ${CMAKE_CURRENT_LIST_FILE}.") 3535 3536if((CONFIG_DEVICE_ID STREQUAL MIMXRT1052xxxxB) AND CONFIG_USE_driver_common) 3537 3538target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 3539 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/pit/fsl_pit.c 3540) 3541 3542target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 3543 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/pit/. 3544) 3545 3546else() 3547 3548message(SEND_ERROR "driver_pit.MIMXRT1052 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 3549 3550endif() 3551 3552endif() 3553 3554 3555if (CONFIG_USE_driver_pmu) 3556# Add set(CONFIG_USE_driver_pmu true) in config.cmake to use this component 3557 3558message("driver_pmu component is included from ${CMAKE_CURRENT_LIST_FILE}.") 3559 3560if((CONFIG_DEVICE_ID STREQUAL MIMXRT1052xxxxB) AND CONFIG_USE_driver_common) 3561 3562target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 3563 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/pmu/fsl_pmu.c 3564) 3565 3566target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 3567 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/pmu/. 3568) 3569 3570else() 3571 3572message(SEND_ERROR "driver_pmu.MIMXRT1052 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 3573 3574endif() 3575 3576endif() 3577 3578 3579if (CONFIG_USE_driver_pwm) 3580# Add set(CONFIG_USE_driver_pwm true) in config.cmake to use this component 3581 3582message("driver_pwm component is included from ${CMAKE_CURRENT_LIST_FILE}.") 3583 3584if((CONFIG_DEVICE_ID STREQUAL MIMXRT1052xxxxB) AND CONFIG_USE_driver_common) 3585 3586target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 3587 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/pwm/fsl_pwm.c 3588) 3589 3590target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 3591 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/pwm/. 3592) 3593 3594else() 3595 3596message(SEND_ERROR "driver_pwm.MIMXRT1052 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 3597 3598endif() 3599 3600endif() 3601 3602 3603if (CONFIG_USE_driver_pxp) 3604# Add set(CONFIG_USE_driver_pxp true) in config.cmake to use this component 3605 3606message("driver_pxp component is included from ${CMAKE_CURRENT_LIST_FILE}.") 3607 3608if((CONFIG_DEVICE_ID STREQUAL MIMXRT1052xxxxB) AND CONFIG_USE_driver_common) 3609 3610target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 3611 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/pxp/fsl_pxp.c 3612) 3613 3614target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 3615 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/pxp/. 3616) 3617 3618else() 3619 3620message(SEND_ERROR "driver_pxp.MIMXRT1052 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 3621 3622endif() 3623 3624endif() 3625 3626 3627if (CONFIG_USE_driver_qtmr_1) 3628# Add set(CONFIG_USE_driver_qtmr_1 true) in config.cmake to use this component 3629 3630message("driver_qtmr_1 component is included from ${CMAKE_CURRENT_LIST_FILE}.") 3631 3632if((CONFIG_DEVICE_ID STREQUAL MIMXRT1052xxxxB) AND CONFIG_USE_driver_common) 3633 3634target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 3635 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/qtmr_1/fsl_qtmr.c 3636) 3637 3638target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 3639 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/qtmr_1/. 3640) 3641 3642else() 3643 3644message(SEND_ERROR "driver_qtmr_1.MIMXRT1052 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 3645 3646endif() 3647 3648endif() 3649 3650 3651if (CONFIG_USE_driver_rtwdog) 3652# Add set(CONFIG_USE_driver_rtwdog true) in config.cmake to use this component 3653 3654message("driver_rtwdog component is included from ${CMAKE_CURRENT_LIST_FILE}.") 3655 3656if((CONFIG_DEVICE_ID STREQUAL MIMXRT1052xxxxB) AND CONFIG_USE_driver_common) 3657 3658target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 3659 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/rtwdog/fsl_rtwdog.c 3660) 3661 3662target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 3663 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/rtwdog/. 3664) 3665 3666else() 3667 3668message(SEND_ERROR "driver_rtwdog.MIMXRT1052 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 3669 3670endif() 3671 3672endif() 3673 3674 3675if (CONFIG_USE_driver_sai) 3676# Add set(CONFIG_USE_driver_sai true) in config.cmake to use this component 3677 3678message("driver_sai component is included from ${CMAKE_CURRENT_LIST_FILE}.") 3679 3680if((CONFIG_DEVICE_ID STREQUAL MIMXRT1052xxxxB) AND CONFIG_USE_driver_common) 3681 3682target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 3683 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/sai/fsl_sai.c 3684) 3685 3686target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 3687 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/sai/. 3688) 3689 3690else() 3691 3692message(SEND_ERROR "driver_sai.MIMXRT1052 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 3693 3694endif() 3695 3696endif() 3697 3698 3699if (CONFIG_USE_driver_semc) 3700# Add set(CONFIG_USE_driver_semc true) in config.cmake to use this component 3701 3702message("driver_semc component is included from ${CMAKE_CURRENT_LIST_FILE}.") 3703 3704if((CONFIG_DEVICE_ID STREQUAL MIMXRT1052xxxxB) AND CONFIG_USE_driver_common) 3705 3706target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 3707 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/semc/fsl_semc.c 3708) 3709 3710target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 3711 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/semc/. 3712) 3713 3714else() 3715 3716message(SEND_ERROR "driver_semc.MIMXRT1052 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 3717 3718endif() 3719 3720endif() 3721 3722 3723if (CONFIG_USE_driver_snvs_hp) 3724# Add set(CONFIG_USE_driver_snvs_hp true) in config.cmake to use this component 3725 3726message("driver_snvs_hp component is included from ${CMAKE_CURRENT_LIST_FILE}.") 3727 3728if((CONFIG_DEVICE_ID STREQUAL MIMXRT1052xxxxB) AND CONFIG_USE_driver_common) 3729 3730target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 3731 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/snvs_hp/fsl_snvs_hp.c 3732) 3733 3734target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 3735 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/snvs_hp/. 3736) 3737 3738else() 3739 3740message(SEND_ERROR "driver_snvs_hp.MIMXRT1052 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 3741 3742endif() 3743 3744endif() 3745 3746 3747if (CONFIG_USE_driver_snvs_lp) 3748# Add set(CONFIG_USE_driver_snvs_lp true) in config.cmake to use this component 3749 3750message("driver_snvs_lp component is included from ${CMAKE_CURRENT_LIST_FILE}.") 3751 3752if((CONFIG_DEVICE_ID STREQUAL MIMXRT1052xxxxB) AND CONFIG_USE_driver_common) 3753 3754target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 3755 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/snvs_lp/fsl_snvs_lp.c 3756) 3757 3758target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 3759 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/snvs_lp/. 3760) 3761 3762else() 3763 3764message(SEND_ERROR "driver_snvs_lp.MIMXRT1052 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 3765 3766endif() 3767 3768endif() 3769 3770 3771if (CONFIG_USE_driver_spdif) 3772# Add set(CONFIG_USE_driver_spdif true) in config.cmake to use this component 3773 3774message("driver_spdif component is included from ${CMAKE_CURRENT_LIST_FILE}.") 3775 3776if((CONFIG_DEVICE_ID STREQUAL MIMXRT1052xxxxB) AND CONFIG_USE_driver_common) 3777 3778target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 3779 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/spdif/fsl_spdif.c 3780) 3781 3782target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 3783 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/spdif/. 3784) 3785 3786else() 3787 3788message(SEND_ERROR "driver_spdif.MIMXRT1052 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 3789 3790endif() 3791 3792endif() 3793 3794 3795if (CONFIG_USE_driver_src) 3796# Add set(CONFIG_USE_driver_src true) in config.cmake to use this component 3797 3798message("driver_src component is included from ${CMAKE_CURRENT_LIST_FILE}.") 3799 3800if((CONFIG_DEVICE_ID STREQUAL MIMXRT1052xxxxB) AND CONFIG_USE_driver_common) 3801 3802target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 3803 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/src/fsl_src.c 3804) 3805 3806target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 3807 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/src/. 3808) 3809 3810else() 3811 3812message(SEND_ERROR "driver_src.MIMXRT1052 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 3813 3814endif() 3815 3816endif() 3817 3818 3819if (CONFIG_USE_driver_tempmon) 3820# Add set(CONFIG_USE_driver_tempmon true) in config.cmake to use this component 3821 3822message("driver_tempmon component is included from ${CMAKE_CURRENT_LIST_FILE}.") 3823 3824if((CONFIG_DEVICE_ID STREQUAL MIMXRT1052xxxxB) AND CONFIG_USE_driver_common) 3825 3826target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 3827 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/tempmon/fsl_tempmon.c 3828) 3829 3830target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 3831 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/tempmon/. 3832) 3833 3834else() 3835 3836message(SEND_ERROR "driver_tempmon.MIMXRT1052 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 3837 3838endif() 3839 3840endif() 3841 3842 3843if (CONFIG_USE_driver_trng) 3844# Add set(CONFIG_USE_driver_trng true) in config.cmake to use this component 3845 3846message("driver_trng component is included from ${CMAKE_CURRENT_LIST_FILE}.") 3847 3848if((CONFIG_DEVICE_ID STREQUAL MIMXRT1052xxxxB) AND CONFIG_USE_driver_common) 3849 3850target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 3851 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/trng/fsl_trng.c 3852) 3853 3854target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 3855 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/trng/. 3856) 3857 3858else() 3859 3860message(SEND_ERROR "driver_trng.MIMXRT1052 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 3861 3862endif() 3863 3864endif() 3865 3866 3867if (CONFIG_USE_driver_tsc) 3868# Add set(CONFIG_USE_driver_tsc true) in config.cmake to use this component 3869 3870message("driver_tsc component is included from ${CMAKE_CURRENT_LIST_FILE}.") 3871 3872if((CONFIG_DEVICE_ID STREQUAL MIMXRT1052xxxxB) AND CONFIG_USE_driver_common) 3873 3874target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 3875 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/tsc/fsl_tsc.c 3876) 3877 3878target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 3879 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/tsc/. 3880) 3881 3882else() 3883 3884message(SEND_ERROR "driver_tsc.MIMXRT1052 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 3885 3886endif() 3887 3888endif() 3889 3890 3891if (CONFIG_USE_driver_usdhc) 3892# Add set(CONFIG_USE_driver_usdhc true) in config.cmake to use this component 3893 3894message("driver_usdhc component is included from ${CMAKE_CURRENT_LIST_FILE}.") 3895 3896if((CONFIG_DEVICE_ID STREQUAL MIMXRT1052xxxxB) AND CONFIG_USE_driver_common) 3897 3898target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 3899 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/usdhc/fsl_usdhc.c 3900) 3901 3902target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 3903 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/usdhc/. 3904) 3905 3906else() 3907 3908message(SEND_ERROR "driver_usdhc.MIMXRT1052 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 3909 3910endif() 3911 3912endif() 3913 3914 3915if (CONFIG_USE_driver_wdog01) 3916# Add set(CONFIG_USE_driver_wdog01 true) in config.cmake to use this component 3917 3918message("driver_wdog01 component is included from ${CMAKE_CURRENT_LIST_FILE}.") 3919 3920if((CONFIG_DEVICE_ID STREQUAL MIMXRT1052xxxxB) AND CONFIG_USE_driver_common) 3921 3922target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 3923 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/wdog01/fsl_wdog.c 3924) 3925 3926target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 3927 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/wdog01/. 3928) 3929 3930else() 3931 3932message(SEND_ERROR "driver_wdog01.MIMXRT1052 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 3933 3934endif() 3935 3936endif() 3937 3938 3939if (CONFIG_USE_driver_xbara) 3940# Add set(CONFIG_USE_driver_xbara true) in config.cmake to use this component 3941 3942message("driver_xbara component is included from ${CMAKE_CURRENT_LIST_FILE}.") 3943 3944if((CONFIG_DEVICE_ID STREQUAL MIMXRT1052xxxxB) AND CONFIG_USE_driver_common) 3945 3946target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 3947 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/xbara/fsl_xbara.c 3948) 3949 3950target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 3951 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/xbara/. 3952) 3953 3954else() 3955 3956message(SEND_ERROR "driver_xbara.MIMXRT1052 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 3957 3958endif() 3959 3960endif() 3961 3962 3963if (CONFIG_USE_driver_xbarb) 3964# Add set(CONFIG_USE_driver_xbarb true) in config.cmake to use this component 3965 3966message("driver_xbarb component is included from ${CMAKE_CURRENT_LIST_FILE}.") 3967 3968if((CONFIG_DEVICE_ID STREQUAL MIMXRT1052xxxxB) AND CONFIG_USE_driver_common) 3969 3970target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 3971 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/xbarb/fsl_xbarb.c 3972) 3973 3974target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 3975 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/xbarb/. 3976) 3977 3978else() 3979 3980message(SEND_ERROR "driver_xbarb.MIMXRT1052 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 3981 3982endif() 3983 3984endif() 3985 3986 3987if (CONFIG_USE_driver_romapi) 3988# Add set(CONFIG_USE_driver_romapi true) in config.cmake to use this component 3989 3990message("driver_romapi component is included from ${CMAKE_CURRENT_LIST_FILE}.") 3991 3992if(CONFIG_USE_driver_common) 3993 3994target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 3995 ${CMAKE_CURRENT_LIST_DIR}/drivers/fsl_romapi.c 3996) 3997 3998target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 3999 ${CMAKE_CURRENT_LIST_DIR}/drivers/. 4000) 4001 4002else() 4003 4004message(SEND_ERROR "driver_romapi.MIMXRT1052 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 4005 4006endif() 4007 4008endif() 4009 4010 4011if (CONFIG_USE_driver_nic301) 4012# Add set(CONFIG_USE_driver_nic301 true) in config.cmake to use this component 4013 4014message("driver_nic301 component is included from ${CMAKE_CURRENT_LIST_FILE}.") 4015 4016if(CONFIG_USE_driver_common) 4017 4018target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 4019 ${CMAKE_CURRENT_LIST_DIR}/drivers/. 4020) 4021 4022else() 4023 4024message(SEND_ERROR "driver_nic301.MIMXRT1052 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 4025 4026endif() 4027 4028endif() 4029 4030 4031if (CONFIG_USE_driver_soc_flexram_allocate) 4032# Add set(CONFIG_USE_driver_soc_flexram_allocate true) in config.cmake to use this component 4033 4034message("driver_soc_flexram_allocate component is included from ${CMAKE_CURRENT_LIST_FILE}.") 4035 4036if(CONFIG_USE_driver_common) 4037 4038target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 4039 ${CMAKE_CURRENT_LIST_DIR}/drivers/fsl_flexram_allocate.c 4040) 4041 4042target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 4043 ${CMAKE_CURRENT_LIST_DIR}/drivers/. 4044) 4045 4046else() 4047 4048message(SEND_ERROR "driver_soc_flexram_allocate.MIMXRT1052 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 4049 4050endif() 4051 4052endif() 4053 4054 4055if (CONFIG_USE_driver_xip_device) 4056# Add set(CONFIG_USE_driver_xip_device true) in config.cmake to use this component 4057 4058message("driver_xip_device component is included from ${CMAKE_CURRENT_LIST_FILE}.") 4059 4060if(CONFIG_USE_driver_common) 4061 4062target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 4063 ${CMAKE_CURRENT_LIST_DIR}/xip/fsl_flexspi_nor_boot.c 4064) 4065 4066target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 4067 ${CMAKE_CURRENT_LIST_DIR}/xip/. 4068) 4069 4070else() 4071 4072message(SEND_ERROR "driver_xip_device.MIMXRT1052 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 4073 4074endif() 4075 4076endif() 4077 4078 4079if (CONFIG_USE_driver_display-common) 4080# Add set(CONFIG_USE_driver_display-common true) in config.cmake to use this component 4081 4082message("driver_display-common component is included from ${CMAKE_CURRENT_LIST_FILE}.") 4083 4084if(CONFIG_USE_driver_video-common) 4085 4086target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 4087 ${CMAKE_CURRENT_LIST_DIR}/../../components/video/display/. 4088) 4089 4090else() 4091 4092message(SEND_ERROR "driver_display-common.MIMXRT1052 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 4093 4094endif() 4095 4096endif() 4097 4098 4099if (CONFIG_USE_driver_dc-fb-common) 4100# Add set(CONFIG_USE_driver_dc-fb-common true) in config.cmake to use this component 4101 4102message("driver_dc-fb-common component is included from ${CMAKE_CURRENT_LIST_FILE}.") 4103 4104if(CONFIG_USE_driver_video-common) 4105 4106target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 4107 ${CMAKE_CURRENT_LIST_DIR}/../../components/video/display/dc/. 4108) 4109 4110else() 4111 4112message(SEND_ERROR "driver_dc-fb-common.MIMXRT1052 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 4113 4114endif() 4115 4116endif() 4117 4118 4119if (CONFIG_USE_driver_dc-fb-elcdif) 4120# Add set(CONFIG_USE_driver_dc-fb-elcdif true) in config.cmake to use this component 4121 4122message("driver_dc-fb-elcdif component is included from ${CMAKE_CURRENT_LIST_FILE}.") 4123 4124if(CONFIG_USE_driver_dc-fb-common AND CONFIG_USE_driver_elcdif) 4125 4126target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 4127 ${CMAKE_CURRENT_LIST_DIR}/../../components/video/display/dc/elcdif/fsl_dc_fb_elcdif.c 4128) 4129 4130target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 4131 ${CMAKE_CURRENT_LIST_DIR}/../../components/video/display/dc/elcdif/. 4132) 4133 4134else() 4135 4136message(SEND_ERROR "driver_dc-fb-elcdif.MIMXRT1052 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 4137 4138endif() 4139 4140endif() 4141 4142 4143if (CONFIG_USE_driver_camera-receiver-common) 4144# Add set(CONFIG_USE_driver_camera-receiver-common true) in config.cmake to use this component 4145 4146message("driver_camera-receiver-common component is included from ${CMAKE_CURRENT_LIST_FILE}.") 4147 4148if(CONFIG_USE_driver_video-common AND CONFIG_USE_driver_camera-common) 4149 4150target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 4151 ${CMAKE_CURRENT_LIST_DIR}/../../components/video/camera/receiver/. 4152) 4153 4154else() 4155 4156message(SEND_ERROR "driver_camera-receiver-common.MIMXRT1052 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 4157 4158endif() 4159 4160endif() 4161 4162 4163if (CONFIG_USE_driver_camera-receiver-csi) 4164# Add set(CONFIG_USE_driver_camera-receiver-csi true) in config.cmake to use this component 4165 4166message("driver_camera-receiver-csi component is included from ${CMAKE_CURRENT_LIST_FILE}.") 4167 4168if(CONFIG_USE_driver_video-common AND CONFIG_USE_driver_camera-common AND CONFIG_USE_driver_camera-receiver-common AND CONFIG_USE_driver_csi) 4169 4170target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 4171 ${CMAKE_CURRENT_LIST_DIR}/../../components/video/camera/receiver/csi/fsl_csi_camera_adapter.c 4172) 4173 4174target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 4175 ${CMAKE_CURRENT_LIST_DIR}/../../components/video/camera/receiver/csi/. 4176) 4177 4178else() 4179 4180message(SEND_ERROR "driver_camera-receiver-csi.MIMXRT1052 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 4181 4182endif() 4183 4184endif() 4185 4186 4187if (CONFIG_USE_driver_camera-device-sccb) 4188# Add set(CONFIG_USE_driver_camera-device-sccb true) in config.cmake to use this component 4189 4190message("driver_camera-device-sccb component is included from ${CMAKE_CURRENT_LIST_FILE}.") 4191 4192if(CONFIG_USE_driver_common AND (CONFIG_USE_driver_lpi2c)) 4193 4194target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 4195 ${CMAKE_CURRENT_LIST_DIR}/../../components/video/camera/device/sccb/fsl_sccb.c 4196) 4197 4198target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 4199 ${CMAKE_CURRENT_LIST_DIR}/../../components/video/camera/device/sccb/. 4200) 4201 4202if(CONFIG_USE_COMPONENT_CONFIGURATION) 4203 message("===>Import configuration from ${CMAKE_CURRENT_LIST_FILE}") 4204 4205 target_compile_definitions(${MCUX_SDK_PROJECT_NAME} PUBLIC 4206 -DSDK_I2C_BASED_COMPONENT_USED=1 4207 ) 4208 4209endif() 4210 4211else() 4212 4213message(SEND_ERROR "driver_camera-device-sccb.MIMXRT1052 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 4214 4215endif() 4216 4217endif() 4218 4219 4220if (CONFIG_USE_driver_camera-device-ov7725) 4221# Add set(CONFIG_USE_driver_camera-device-ov7725 true) in config.cmake to use this component 4222 4223message("driver_camera-device-ov7725 component is included from ${CMAKE_CURRENT_LIST_FILE}.") 4224 4225if(CONFIG_USE_driver_video-common AND CONFIG_USE_driver_camera-common AND CONFIG_USE_driver_camera-device-common AND CONFIG_USE_driver_camera-device-sccb) 4226 4227target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 4228 ${CMAKE_CURRENT_LIST_DIR}/../../components/video/camera/device/ov7725/fsl_ov7725.c 4229) 4230 4231target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 4232 ${CMAKE_CURRENT_LIST_DIR}/../../components/video/camera/device/ov7725/. 4233) 4234 4235else() 4236 4237message(SEND_ERROR "driver_camera-device-ov7725.MIMXRT1052 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 4238 4239endif() 4240 4241endif() 4242 4243 4244if (CONFIG_USE_driver_video-i2c) 4245# Add set(CONFIG_USE_driver_video-i2c true) in config.cmake to use this component 4246 4247message("driver_video-i2c component is included from ${CMAKE_CURRENT_LIST_FILE}.") 4248 4249if(CONFIG_USE_driver_common AND (CONFIG_USE_driver_lpi2c)) 4250 4251target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 4252 ${CMAKE_CURRENT_LIST_DIR}/../../components/video/i2c/fsl_video_i2c.c 4253) 4254 4255target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 4256 ${CMAKE_CURRENT_LIST_DIR}/../../components/video/i2c/. 4257) 4258 4259if(CONFIG_USE_COMPONENT_CONFIGURATION) 4260 message("===>Import configuration from ${CMAKE_CURRENT_LIST_FILE}") 4261 4262 target_compile_definitions(${MCUX_SDK_PROJECT_NAME} PUBLIC 4263 -DSDK_I2C_BASED_COMPONENT_USED=1 4264 ) 4265 4266endif() 4267 4268else() 4269 4270message(SEND_ERROR "driver_video-i2c.MIMXRT1052 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 4271 4272endif() 4273 4274endif() 4275 4276 4277if (CONFIG_USE_driver_camera-common) 4278# Add set(CONFIG_USE_driver_camera-common true) in config.cmake to use this component 4279 4280message("driver_camera-common component is included from ${CMAKE_CURRENT_LIST_FILE}.") 4281 4282if(CONFIG_USE_driver_video-common) 4283 4284target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 4285 ${CMAKE_CURRENT_LIST_DIR}/../../components/video/camera/. 4286) 4287 4288else() 4289 4290message(SEND_ERROR "driver_camera-common.MIMXRT1052 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 4291 4292endif() 4293 4294endif() 4295 4296 4297if (CONFIG_USE_driver_camera-device-common) 4298# Add set(CONFIG_USE_driver_camera-device-common true) in config.cmake to use this component 4299 4300message("driver_camera-device-common component is included from ${CMAKE_CURRENT_LIST_FILE}.") 4301 4302if(CONFIG_USE_driver_camera-common AND CONFIG_USE_driver_common) 4303 4304target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 4305 ${CMAKE_CURRENT_LIST_DIR}/../../components/video/camera/device/. 4306) 4307 4308else() 4309 4310message(SEND_ERROR "driver_camera-device-common.MIMXRT1052 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 4311 4312endif() 4313 4314endif() 4315 4316 4317if (CONFIG_USE_driver_camera-device-mt9m114) 4318# Add set(CONFIG_USE_driver_camera-device-mt9m114 true) in config.cmake to use this component 4319 4320message("driver_camera-device-mt9m114 component is included from ${CMAKE_CURRENT_LIST_FILE}.") 4321 4322if(CONFIG_USE_driver_video-common AND CONFIG_USE_driver_camera-common AND CONFIG_USE_driver_camera-device-common AND CONFIG_USE_driver_video-i2c) 4323 4324target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 4325 ${CMAKE_CURRENT_LIST_DIR}/../../components/video/camera/device/mt9m114/fsl_mt9m114.c 4326) 4327 4328target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 4329 ${CMAKE_CURRENT_LIST_DIR}/../../components/video/camera/device/mt9m114/. 4330) 4331 4332else() 4333 4334message(SEND_ERROR "driver_camera-device-mt9m114.MIMXRT1052 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 4335 4336endif() 4337 4338endif() 4339 4340 4341if (CONFIG_USE_driver_fbdev) 4342# Add set(CONFIG_USE_driver_fbdev true) in config.cmake to use this component 4343 4344message("driver_fbdev component is included from ${CMAKE_CURRENT_LIST_FILE}.") 4345 4346if(CONFIG_USE_driver_dc-fb-common AND CONFIG_USE_middleware_freertos-kernel) 4347 4348target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 4349 ${CMAKE_CURRENT_LIST_DIR}/../../components/video/display/fbdev/fsl_fbdev.c 4350) 4351 4352target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 4353 ${CMAKE_CURRENT_LIST_DIR}/../../components/video/display/fbdev/. 4354) 4355 4356else() 4357 4358message(SEND_ERROR "driver_fbdev.MIMXRT1052 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 4359 4360endif() 4361 4362endif() 4363 4364 4365if (CONFIG_USE_driver_rtt) 4366# Add set(CONFIG_USE_driver_rtt true) in config.cmake to use this component 4367 4368message("driver_rtt component is included from ${CMAKE_CURRENT_LIST_FILE}.") 4369 4370if(CONFIG_USE_driver_rtt_template) 4371 4372target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 4373 ${CMAKE_CURRENT_LIST_DIR}/../../components/rtt/RTT/SEGGER_RTT.c 4374 ${CMAKE_CURRENT_LIST_DIR}/../../components/rtt/RTT/SEGGER_RTT_printf.c 4375) 4376 4377if(CONFIG_CORE STREQUAL cm7f) 4378 target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 4379 ${CMAKE_CURRENT_LIST_DIR}/../../components/rtt/RTT/SEGGER_RTT_ASM_ARMv7M.S 4380 ) 4381endif() 4382 4383if((CONFIG_TOOLCHAIN STREQUAL armgcc OR CONFIG_TOOLCHAIN STREQUAL mcux)) 4384 target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 4385 ${CMAKE_CURRENT_LIST_DIR}/../../components/rtt/Syscalls/SEGGER_RTT_Syscalls_GCC.c 4386 ) 4387endif() 4388 4389target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 4390 ${CMAKE_CURRENT_LIST_DIR}/../../components/rtt/RTT 4391) 4392 4393else() 4394 4395message(SEND_ERROR "driver_rtt.MIMXRT1052 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 4396 4397endif() 4398 4399endif() 4400 4401