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.MIMXRT1024) 168 169 170endif() 171 172 173if (CONFIG_USE_DEVICES_Project_Template_MIMXRT1024) 174# Add set(CONFIG_USE_DEVICES_Project_Template_MIMXRT1024 true) in config.cmake to use this component 175 176message("DEVICES_Project_Template_MIMXRT1024 component is included from ${CMAKE_CURRENT_LIST_FILE}.") 177 178if(CONFIG_USE_component_lpuart_adapter AND (CONFIG_DEVICE_ID STREQUAL MIMXRT1024xxxxx) AND CONFIG_USE_device_MIMXRT1024_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_MIMXRT1024.MIMXRT1024) 181add_config_file(${CMAKE_CURRENT_LIST_DIR}/project_template/board.c "" DEVICES_Project_Template_MIMXRT1024.MIMXRT1024) 182add_config_file(${CMAKE_CURRENT_LIST_DIR}/project_template/clock_config.h "" DEVICES_Project_Template_MIMXRT1024.MIMXRT1024) 183add_config_file(${CMAKE_CURRENT_LIST_DIR}/project_template/clock_config.c "" DEVICES_Project_Template_MIMXRT1024.MIMXRT1024) 184add_config_file(${CMAKE_CURRENT_LIST_DIR}/project_template/pin_mux.h "" DEVICES_Project_Template_MIMXRT1024.MIMXRT1024) 185add_config_file(${CMAKE_CURRENT_LIST_DIR}/project_template/pin_mux.c "" DEVICES_Project_Template_MIMXRT1024.MIMXRT1024) 186add_config_file(${CMAKE_CURRENT_LIST_DIR}/project_template/peripherals.h "" DEVICES_Project_Template_MIMXRT1024.MIMXRT1024) 187add_config_file(${CMAKE_CURRENT_LIST_DIR}/project_template/peripherals.c "" DEVICES_Project_Template_MIMXRT1024.MIMXRT1024) 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_MIMXRT1024.MIMXRT1024 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 196 197endif() 198 199endif() 200 201 202if (CONFIG_USE_device_MIMXRT1024_startup) 203# Add set(CONFIG_USE_device_MIMXRT1024_startup true) in config.cmake to use this component 204 205message("device_MIMXRT1024_startup component is included from ${CMAKE_CURRENT_LIST_FILE}.") 206 207if(CONFIG_USE_device_MIMXRT1024_system) 208 209if(CONFIG_TOOLCHAIN STREQUAL armgcc) 210 target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 211 ${CMAKE_CURRENT_LIST_DIR}/./gcc/startup_MIMXRT1024.S 212 ) 213endif() 214 215if(CONFIG_TOOLCHAIN STREQUAL mcux) 216 target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 217 ${CMAKE_CURRENT_LIST_DIR}/./mcuxpresso/startup_mimxrt1024.c 218 ${CMAKE_CURRENT_LIST_DIR}/./mcuxpresso/startup_mimxrt1024.cpp 219 ) 220endif() 221 222else() 223 224message(SEND_ERROR "device_MIMXRT1024_startup.MIMXRT1024 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 225 226endif() 227 228endif() 229 230 231if (CONFIG_USE_device_MIMXRT1024_CMSIS) 232# Add set(CONFIG_USE_device_MIMXRT1024_CMSIS true) in config.cmake to use this component 233 234message("device_MIMXRT1024_CMSIS component is included from ${CMAKE_CURRENT_LIST_FILE}.") 235 236if(CONFIG_USE_CMSIS_Include_core_cm AND (CONFIG_DEVICE_ID STREQUAL MIMXRT1024xxxxx)) 237 238target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 239 ${CMAKE_CURRENT_LIST_DIR}/./. 240) 241 242else() 243 244message(SEND_ERROR "device_MIMXRT1024_CMSIS.MIMXRT1024 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 MIMXRT1024xxxxx) AND CONFIG_USE_driver_edma) 257 258add_config_file(${CMAKE_CURRENT_LIST_DIR}/template/RTE_Device.h "" RTE_Device.MIMXRT1024) 259 260target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 261 ${CMAKE_CURRENT_LIST_DIR}/template/. 262) 263 264else() 265 266message(SEND_ERROR "RTE_Device.MIMXRT1024 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 MIMXRT1024xxxxx)) 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.MIMXRT1024 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 MIMXRT1024xxxxx)) 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.MIMXRT1024 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 MIMXRT1024xxxxx)) 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.MIMXRT1024 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 MIMXRT1024xxxxx)) 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.MIMXRT1024 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 MIMXRT1024xxxxx) 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.MIMXRT1024 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.MIMXRT1024 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.MIMXRT1024 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 MIMXRT1024xxxxx) 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.MIMXRT1024 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 MIMXRT1024xxxxx)) 482 483target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 484 ${CMAKE_CURRENT_LIST_DIR}/drivers/. 485) 486 487else() 488 489message(SEND_ERROR "driver_iomuxc.MIMXRT1024 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 MIMXRT1024xxxxx) 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.MIMXRT1024 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 MIMXRT1024xxxxx) 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.MIMXRT1024 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 MIMXRT1024xxxxx) 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.MIMXRT1024 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 MIMXRT1024xxxxx)) 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.MIMXRT1024 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 MIMXRT1024xxxxx)) 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.MIMXRT1024 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 MIMXRT1024xxxxx)) 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.MIMXRT1024 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 MIMXRT1024xxxxx)) 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.MIMXRT1024 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 MIMXRT1024xxxxx)) 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.MIMXRT1024 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.MIMXRT1024 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.MIMXRT1024 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.MIMXRT1024 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 754 755endif() 756 757endif() 758 759 760if (CONFIG_USE_component_cmsis_pack_flash_algo_MIMXRT1024) 761# Add set(CONFIG_USE_component_cmsis_pack_flash_algo_MIMXRT1024 true) in config.cmake to use this component 762 763message("component_cmsis_pack_flash_algo_MIMXRT1024 component is included from ${CMAKE_CURRENT_LIST_FILE}.") 764 765if((CONFIG_DEVICE_ID STREQUAL MIMXRT1024xxxxx)) 766 767target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 768 ${CMAKE_CURRENT_LIST_DIR}/../../boards/evkmimxrt1024/cmsis_pack_flash_algo/Sources/fsl_romapi.c 769 ${CMAKE_CURRENT_LIST_DIR}/../../boards/evkmimxrt1024/cmsis_pack_flash_algo/FlashDev.c 770 ${CMAKE_CURRENT_LIST_DIR}/../../boards/evkmimxrt1024/cmsis_pack_flash_algo/FlashPrg.c 771) 772 773target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 774 ${CMAKE_CURRENT_LIST_DIR}/../../boards/evkmimxrt1024/cmsis_pack_flash_algo/Sources 775 ${CMAKE_CURRENT_LIST_DIR}/../../boards/evkmimxrt1024/cmsis_pack_flash_algo/. 776) 777 778else() 779 780message(SEND_ERROR "component_cmsis_pack_flash_algo_MIMXRT1024.MIMXRT1024 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 781 782endif() 783 784endif() 785 786 787if (CONFIG_USE_device_MIMXRT1024_system) 788# Add set(CONFIG_USE_device_MIMXRT1024_system true) in config.cmake to use this component 789 790message("device_MIMXRT1024_system component is included from ${CMAKE_CURRENT_LIST_FILE}.") 791 792if(CONFIG_USE_device_MIMXRT1024_CMSIS) 793 794target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 795 ${CMAKE_CURRENT_LIST_DIR}/./system_MIMXRT1024.c 796) 797 798target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 799 ${CMAKE_CURRENT_LIST_DIR}/./. 800) 801 802else() 803 804message(SEND_ERROR "device_MIMXRT1024_system.MIMXRT1024 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 805 806endif() 807 808endif() 809 810 811if (CONFIG_USE_utility_assert) 812# Add set(CONFIG_USE_utility_assert true) in config.cmake to use this component 813 814message("utility_assert component is included from ${CMAKE_CURRENT_LIST_FILE}.") 815 816if(CONFIG_USE_utility_debug_console) 817 818target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 819 ${CMAKE_CURRENT_LIST_DIR}/../../utilities/assert/fsl_assert.c 820) 821 822else() 823 824message(SEND_ERROR "utility_assert.MIMXRT1024 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 825 826endif() 827 828endif() 829 830 831if (CONFIG_USE_utility_assert_lite) 832# Add set(CONFIG_USE_utility_assert_lite true) in config.cmake to use this component 833 834message("utility_assert_lite component is included from ${CMAKE_CURRENT_LIST_FILE}.") 835 836if(CONFIG_USE_utility_debug_console_lite) 837 838target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 839 ${CMAKE_CURRENT_LIST_DIR}/../../utilities/assert/fsl_assert.c 840) 841 842else() 843 844message(SEND_ERROR "utility_assert_lite.MIMXRT1024 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 845 846endif() 847 848endif() 849 850 851if (CONFIG_USE_utility_str) 852# Add set(CONFIG_USE_utility_str true) in config.cmake to use this component 853 854message("utility_str component is included from ${CMAKE_CURRENT_LIST_FILE}.") 855 856if(CONFIG_USE_driver_common) 857 858target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 859 ${CMAKE_CURRENT_LIST_DIR}/../../utilities/str/fsl_str.c 860) 861 862target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 863 ${CMAKE_CURRENT_LIST_DIR}/../../utilities/str 864) 865 866else() 867 868message(SEND_ERROR "utility_str.MIMXRT1024 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 869 870endif() 871 872endif() 873 874 875if (CONFIG_USE_utility_debug_console) 876# Add set(CONFIG_USE_utility_debug_console true) in config.cmake to use this component 877 878message("utility_debug_console component is included from ${CMAKE_CURRENT_LIST_FILE}.") 879 880if(CONFIG_USE_component_serial_manager AND CONFIG_USE_driver_common) 881 882target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 883 ${CMAKE_CURRENT_LIST_DIR}/../../utilities/str/fsl_str.c 884 ${CMAKE_CURRENT_LIST_DIR}/../../utilities/debug_console/fsl_debug_console.c 885) 886 887target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 888 ${CMAKE_CURRENT_LIST_DIR}/../../utilities/str 889 ${CMAKE_CURRENT_LIST_DIR}/../../utilities/debug_console 890) 891 892else() 893 894message(SEND_ERROR "utility_debug_console.MIMXRT1024 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 895 896endif() 897 898endif() 899 900 901if (CONFIG_USE_driver_cmsis_enet) 902# Add set(CONFIG_USE_driver_cmsis_enet true) in config.cmake to use this component 903 904message("driver_cmsis_enet component is included from ${CMAKE_CURRENT_LIST_FILE}.") 905 906if((CONFIG_DEVICE_ID STREQUAL MIMXRT1024xxxxx) 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) 907 908target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 909 ${CMAKE_CURRENT_LIST_DIR}/../../cmsis_drivers/enet/fsl_enet_cmsis.c 910 ${CMAKE_CURRENT_LIST_DIR}/../../cmsis_drivers/enet/fsl_enet_phy_cmsis.c 911) 912 913target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 914 ${CMAKE_CURRENT_LIST_DIR}/../../cmsis_drivers/enet/. 915) 916 917else() 918 919message(SEND_ERROR "driver_cmsis_enet.MIMXRT1024 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 920 921endif() 922 923endif() 924 925 926if (CONFIG_USE_component_audio_sai_edma_adapter) 927# Add set(CONFIG_USE_component_audio_sai_edma_adapter true) in config.cmake to use this component 928 929message("component_audio_sai_edma_adapter component is included from ${CMAKE_CURRENT_LIST_FILE}.") 930 931if(CONFIG_USE_driver_common AND CONFIG_USE_driver_sai_edma) 932 933target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 934 ${CMAKE_CURRENT_LIST_DIR}/../../components/audio/fsl_adapter_sai.c 935) 936 937target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 938 ${CMAKE_CURRENT_LIST_DIR}/../../components/audio/. 939) 940 941else() 942 943message(SEND_ERROR "component_audio_sai_edma_adapter.MIMXRT1024 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 944 945endif() 946 947endif() 948 949 950if (CONFIG_USE_component_button) 951# Add set(CONFIG_USE_component_button true) in config.cmake to use this component 952 953message("component_button component is included from ${CMAKE_CURRENT_LIST_FILE}.") 954 955if(CONFIG_USE_driver_common AND CONFIG_USE_component_timer_manager AND (CONFIG_USE_component_igpio_adapter)) 956 957target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 958 ${CMAKE_CURRENT_LIST_DIR}/../../components/button/fsl_component_button.c 959) 960 961target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 962 ${CMAKE_CURRENT_LIST_DIR}/../../components/button/. 963) 964 965else() 966 967message(SEND_ERROR "component_button.MIMXRT1024 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 968 969endif() 970 971endif() 972 973 974if (CONFIG_USE_driver_codec) 975# Add set(CONFIG_USE_driver_codec true) in config.cmake to use this component 976 977message("driver_codec component is included from ${CMAKE_CURRENT_LIST_FILE}.") 978 979if(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_codec_adapters)) 980 981target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 982 ${CMAKE_CURRENT_LIST_DIR}/../../components/codec/fsl_codec_common.c 983) 984 985target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 986 ${CMAKE_CURRENT_LIST_DIR}/../../components/codec/. 987) 988 989if(CONFIG_USE_COMPONENT_CONFIGURATION) 990 message("===>Import configuration from ${CMAKE_CURRENT_LIST_FILE}") 991 992 target_compile_definitions(${MCUX_SDK_PROJECT_NAME} PUBLIC 993 -DSDK_I2C_BASED_COMPONENT_USED=1 994 ) 995 996endif() 997 998else() 999 1000message(SEND_ERROR "driver_codec.MIMXRT1024 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 1001 1002endif() 1003 1004endif() 1005 1006 1007if (CONFIG_USE_component_codec_adapters) 1008# Add set(CONFIG_USE_component_codec_adapters true) in config.cmake to use this component 1009 1010message("component_codec_adapters component is included from ${CMAKE_CURRENT_LIST_FILE}.") 1011 1012if((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)) 1013 1014target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 1015 ${CMAKE_CURRENT_LIST_DIR}/../../components/codec/port/fsl_codec_adapter.c 1016) 1017 1018target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 1019 ${CMAKE_CURRENT_LIST_DIR}/../../components/codec/port 1020) 1021 1022if(CONFIG_USE_COMPONENT_CONFIGURATION) 1023 message("===>Import configuration from ${CMAKE_CURRENT_LIST_FILE}") 1024 1025 target_compile_definitions(${MCUX_SDK_PROJECT_NAME} PUBLIC 1026 -DCODEC_MULTI_ADAPTERS=1 1027 ) 1028 1029endif() 1030 1031else() 1032 1033message(SEND_ERROR "component_codec_adapters.MIMXRT1024 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 1034 1035endif() 1036 1037endif() 1038 1039 1040if (CONFIG_USE_component_wm8904_adapter) 1041# Add set(CONFIG_USE_component_wm8904_adapter true) in config.cmake to use this component 1042 1043message("component_wm8904_adapter component is included from ${CMAKE_CURRENT_LIST_FILE}.") 1044 1045if(CONFIG_USE_driver_wm8904 AND CONFIG_USE_driver_codec) 1046 1047target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 1048 ${CMAKE_CURRENT_LIST_DIR}/../../components/codec/port/wm8904/fsl_codec_wm8904_adapter.c 1049) 1050 1051target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 1052 ${CMAKE_CURRENT_LIST_DIR}/../../components/codec/port/wm8904 1053 ${CMAKE_CURRENT_LIST_DIR}/../../components/codec/port 1054) 1055 1056else() 1057 1058message(SEND_ERROR "component_wm8904_adapter.MIMXRT1024 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 1059 1060endif() 1061 1062endif() 1063 1064 1065if (CONFIG_USE_component_wm8960_adapter) 1066# Add set(CONFIG_USE_component_wm8960_adapter true) in config.cmake to use this component 1067 1068message("component_wm8960_adapter component is included from ${CMAKE_CURRENT_LIST_FILE}.") 1069 1070if(CONFIG_USE_driver_wm8960 AND CONFIG_USE_driver_codec) 1071 1072target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 1073 ${CMAKE_CURRENT_LIST_DIR}/../../components/codec/port/wm8960/fsl_codec_wm8960_adapter.c 1074) 1075 1076target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 1077 ${CMAKE_CURRENT_LIST_DIR}/../../components/codec/port/wm8960 1078 ${CMAKE_CURRENT_LIST_DIR}/../../components/codec/port 1079) 1080 1081else() 1082 1083message(SEND_ERROR "component_wm8960_adapter.MIMXRT1024 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 1084 1085endif() 1086 1087endif() 1088 1089 1090if (CONFIG_USE_component_cs42888_adapter) 1091# Add set(CONFIG_USE_component_cs42888_adapter true) in config.cmake to use this component 1092 1093message("component_cs42888_adapter component is included from ${CMAKE_CURRENT_LIST_FILE}.") 1094 1095if(CONFIG_USE_driver_cs42888 AND CONFIG_USE_driver_codec) 1096 1097target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 1098 ${CMAKE_CURRENT_LIST_DIR}/../../components/codec/port/cs42888/fsl_codec_cs42888_adapter.c 1099) 1100 1101target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 1102 ${CMAKE_CURRENT_LIST_DIR}/../../components/codec/port/cs42888 1103 ${CMAKE_CURRENT_LIST_DIR}/../../components/codec/port 1104) 1105 1106else() 1107 1108message(SEND_ERROR "component_cs42888_adapter.MIMXRT1024 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 1109 1110endif() 1111 1112endif() 1113 1114 1115if (CONFIG_USE_component_sgtl_adapter) 1116# Add set(CONFIG_USE_component_sgtl_adapter true) in config.cmake to use this component 1117 1118message("component_sgtl_adapter component is included from ${CMAKE_CURRENT_LIST_FILE}.") 1119 1120if(CONFIG_USE_driver_sgtl5000 AND CONFIG_USE_driver_codec) 1121 1122target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 1123 ${CMAKE_CURRENT_LIST_DIR}/../../components/codec/port/sgtl5000/fsl_codec_sgtl_adapter.c 1124) 1125 1126target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 1127 ${CMAKE_CURRENT_LIST_DIR}/../../components/codec/port/sgtl5000 1128 ${CMAKE_CURRENT_LIST_DIR}/../../components/codec/port 1129) 1130 1131else() 1132 1133message(SEND_ERROR "component_sgtl_adapter.MIMXRT1024 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 1134 1135endif() 1136 1137endif() 1138 1139 1140if (CONFIG_USE_component_da7212_adapter) 1141# Add set(CONFIG_USE_component_da7212_adapter true) in config.cmake to use this component 1142 1143message("component_da7212_adapter component is included from ${CMAKE_CURRENT_LIST_FILE}.") 1144 1145if(CONFIG_USE_driver_dialog7212 AND CONFIG_USE_driver_codec) 1146 1147target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 1148 ${CMAKE_CURRENT_LIST_DIR}/../../components/codec/port/da7212/fsl_codec_da7212_adapter.c 1149) 1150 1151target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 1152 ${CMAKE_CURRENT_LIST_DIR}/../../components/codec/port/da7212 1153 ${CMAKE_CURRENT_LIST_DIR}/../../components/codec/port 1154) 1155 1156else() 1157 1158message(SEND_ERROR "component_da7212_adapter.MIMXRT1024 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 1159 1160endif() 1161 1162endif() 1163 1164 1165if (CONFIG_USE_component_codec_i2c) 1166# Add set(CONFIG_USE_component_codec_i2c true) in config.cmake to use this component 1167 1168message("component_codec_i2c component is included from ${CMAKE_CURRENT_LIST_FILE}.") 1169 1170if(CONFIG_USE_driver_common AND (CONFIG_USE_component_lpi2c_adapter)) 1171 1172target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 1173 ${CMAKE_CURRENT_LIST_DIR}/../../components/codec/i2c/fsl_codec_i2c.c 1174) 1175 1176target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 1177 ${CMAKE_CURRENT_LIST_DIR}/../../components/codec/i2c/. 1178) 1179 1180if(CONFIG_USE_COMPONENT_CONFIGURATION) 1181 message("===>Import configuration from ${CMAKE_CURRENT_LIST_FILE}") 1182 1183 target_compile_definitions(${MCUX_SDK_PROJECT_NAME} PUBLIC 1184 -DSDK_I2C_BASED_COMPONENT_USED=1 1185 ) 1186 1187endif() 1188 1189else() 1190 1191message(SEND_ERROR "component_codec_i2c.MIMXRT1024 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 1192 1193endif() 1194 1195endif() 1196 1197 1198if (CONFIG_USE_component_software_crc_adapter) 1199# Add set(CONFIG_USE_component_software_crc_adapter true) in config.cmake to use this component 1200 1201message("component_software_crc_adapter component is included from ${CMAKE_CURRENT_LIST_FILE}.") 1202 1203if(CONFIG_USE_driver_common) 1204 1205target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 1206 ${CMAKE_CURRENT_LIST_DIR}/../../components/crc/fsl_adapter_software_crc.c 1207) 1208 1209target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 1210 ${CMAKE_CURRENT_LIST_DIR}/../../components/crc/. 1211) 1212 1213else() 1214 1215message(SEND_ERROR "component_software_crc_adapter.MIMXRT1024 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 1216 1217endif() 1218 1219endif() 1220 1221 1222if (CONFIG_USE_driver_cs42888) 1223# Add set(CONFIG_USE_driver_cs42888 true) in config.cmake to use this component 1224 1225message("driver_cs42888 component is included from ${CMAKE_CURRENT_LIST_FILE}.") 1226 1227if(CONFIG_USE_driver_common AND CONFIG_USE_component_codec_i2c) 1228 1229target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 1230 ${CMAKE_CURRENT_LIST_DIR}/../../components/codec/cs42888/fsl_cs42888.c 1231) 1232 1233target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 1234 ${CMAKE_CURRENT_LIST_DIR}/../../components/codec/cs42888/. 1235) 1236 1237if(CONFIG_USE_COMPONENT_CONFIGURATION) 1238 message("===>Import configuration from ${CMAKE_CURRENT_LIST_FILE}") 1239 1240 target_compile_definitions(${MCUX_SDK_PROJECT_NAME} PUBLIC 1241 -DSDK_I2C_BASED_COMPONENT_USED=1 1242 -DCODEC_CS42888_ENABLE 1243 ) 1244 1245endif() 1246 1247else() 1248 1249message(SEND_ERROR "driver_cs42888.MIMXRT1024 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 1250 1251endif() 1252 1253endif() 1254 1255 1256if (CONFIG_USE_driver_dialog7212) 1257# Add set(CONFIG_USE_driver_dialog7212 true) in config.cmake to use this component 1258 1259message("driver_dialog7212 component is included from ${CMAKE_CURRENT_LIST_FILE}.") 1260 1261if(CONFIG_USE_driver_common AND CONFIG_USE_component_codec_i2c) 1262 1263target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 1264 ${CMAKE_CURRENT_LIST_DIR}/../../components/codec/da7212/fsl_dialog7212.c 1265) 1266 1267target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 1268 ${CMAKE_CURRENT_LIST_DIR}/../../components/codec/da7212/. 1269) 1270 1271if(CONFIG_USE_COMPONENT_CONFIGURATION) 1272 message("===>Import configuration from ${CMAKE_CURRENT_LIST_FILE}") 1273 1274 target_compile_definitions(${MCUX_SDK_PROJECT_NAME} PUBLIC 1275 -DSDK_I2C_BASED_COMPONENT_USED=1 1276 -DBOARD_USE_CODEC=1 1277 -DCODEC_DA7212_ENABLE 1278 ) 1279 1280endif() 1281 1282else() 1283 1284message(SEND_ERROR "driver_dialog7212.MIMXRT1024 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 1285 1286endif() 1287 1288endif() 1289 1290 1291if (CONFIG_USE_component_exception_handling_cm7) 1292# Add set(CONFIG_USE_component_exception_handling_cm7 true) in config.cmake to use this component 1293 1294message("component_exception_handling_cm7 component is included from ${CMAKE_CURRENT_LIST_FILE}.") 1295 1296if(CONFIG_USE_driver_common AND CONFIG_USE_utility_debug_console) 1297 1298if(CONFIG_CORE STREQUAL cm7f) 1299 target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 1300 ${CMAKE_CURRENT_LIST_DIR}/../../components/exception_handling/cm7/fsl_component_exception_handling.c 1301 ) 1302endif() 1303 1304target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 1305 ${CMAKE_CURRENT_LIST_DIR}/../../components/exception_handling/. 1306) 1307 1308else() 1309 1310message(SEND_ERROR "component_exception_handling_cm7.MIMXRT1024 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 1311 1312endif() 1313 1314endif() 1315 1316 1317if (CONFIG_USE_driver_nand_flash-controller-flexspi) 1318# Add set(CONFIG_USE_driver_nand_flash-controller-flexspi true) in config.cmake to use this component 1319 1320message("driver_nand_flash-controller-flexspi component is included from ${CMAKE_CURRENT_LIST_FILE}.") 1321 1322if(CONFIG_USE_driver_nand_flash-common AND CONFIG_USE_driver_flexspi) 1323 1324target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 1325 ${CMAKE_CURRENT_LIST_DIR}/../../components/flash/nand/flexspi/fsl_flexspi_nand_flash.c 1326) 1327 1328target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 1329 ${CMAKE_CURRENT_LIST_DIR}/../../components/flash/nand/flexspi/. 1330) 1331 1332else() 1333 1334message(SEND_ERROR "driver_nand_flash-controller-flexspi.MIMXRT1024 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 1335 1336endif() 1337 1338endif() 1339 1340 1341if (CONFIG_USE_driver_nand_flash-controller-semc) 1342# Add set(CONFIG_USE_driver_nand_flash-controller-semc true) in config.cmake to use this component 1343 1344message("driver_nand_flash-controller-semc component is included from ${CMAKE_CURRENT_LIST_FILE}.") 1345 1346if(CONFIG_USE_driver_nand_flash-common AND CONFIG_USE_driver_semc) 1347 1348target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 1349 ${CMAKE_CURRENT_LIST_DIR}/../../components/flash/nand/semc/fsl_semc_nand_flash.c 1350) 1351 1352target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 1353 ${CMAKE_CURRENT_LIST_DIR}/../../components/flash/nand/semc/. 1354) 1355 1356else() 1357 1358message(SEND_ERROR "driver_nand_flash-controller-semc.MIMXRT1024 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 1359 1360endif() 1361 1362endif() 1363 1364 1365if (CONFIG_USE_driver_nor_flash-controller-flexspi) 1366# Add set(CONFIG_USE_driver_nor_flash-controller-flexspi true) in config.cmake to use this component 1367 1368message("driver_nor_flash-controller-flexspi component is included from ${CMAKE_CURRENT_LIST_FILE}.") 1369 1370if(CONFIG_USE_driver_nor_flash-common AND CONFIG_USE_driver_flexspi) 1371 1372target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 1373 ${CMAKE_CURRENT_LIST_DIR}/../../components/flash/nor/flexspi/fsl_flexspi_nor_flash.c 1374) 1375 1376target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 1377 ${CMAKE_CURRENT_LIST_DIR}/../../components/flash/nor/flexspi/. 1378) 1379 1380else() 1381 1382message(SEND_ERROR "driver_nor_flash-controller-flexspi.MIMXRT1024 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 1383 1384endif() 1385 1386endif() 1387 1388 1389if (CONFIG_USE_driver_nor_flash-controller-lpspi) 1390# Add set(CONFIG_USE_driver_nor_flash-controller-lpspi true) in config.cmake to use this component 1391 1392message("driver_nor_flash-controller-lpspi component is included from ${CMAKE_CURRENT_LIST_FILE}.") 1393 1394if(CONFIG_USE_driver_nor_flash-common AND CONFIG_USE_driver_lpspi) 1395 1396target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 1397 ${CMAKE_CURRENT_LIST_DIR}/../../components/flash/nor/lpspi/fsl_lpspi_nor_flash.c 1398 ${CMAKE_CURRENT_LIST_DIR}/../../components/flash/nor/lpspi/fsl_lpspi_mem_adapter.c 1399) 1400 1401target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 1402 ${CMAKE_CURRENT_LIST_DIR}/../../components/flash/nor/lpspi/. 1403) 1404 1405else() 1406 1407message(SEND_ERROR "driver_nor_flash-controller-lpspi.MIMXRT1024 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 1408 1409endif() 1410 1411endif() 1412 1413 1414if (CONFIG_USE_driver_ft5406) 1415# Add set(CONFIG_USE_driver_ft5406 true) in config.cmake to use this component 1416 1417message("driver_ft5406 component is included from ${CMAKE_CURRENT_LIST_FILE}.") 1418 1419if(CONFIG_USE_driver_common) 1420 1421target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 1422 ${CMAKE_CURRENT_LIST_DIR}/../../components/ft5406/fsl_ft5406.c 1423) 1424 1425target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 1426 ${CMAKE_CURRENT_LIST_DIR}/../../components/ft5406/. 1427) 1428 1429else() 1430 1431message(SEND_ERROR "driver_ft5406.MIMXRT1024 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 1432 1433endif() 1434 1435endif() 1436 1437 1438if (CONFIG_USE_driver_ft5406_rt) 1439# Add set(CONFIG_USE_driver_ft5406_rt true) in config.cmake to use this component 1440 1441message("driver_ft5406_rt component is included from ${CMAKE_CURRENT_LIST_FILE}.") 1442 1443if(CONFIG_USE_driver_lpi2c) 1444 1445target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 1446 ${CMAKE_CURRENT_LIST_DIR}/../../components/ft5406_rt/fsl_ft5406_rt.c 1447) 1448 1449target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 1450 ${CMAKE_CURRENT_LIST_DIR}/../../components/ft5406_rt/. 1451) 1452 1453else() 1454 1455message(SEND_ERROR "driver_ft5406_rt.MIMXRT1024 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 1456 1457endif() 1458 1459endif() 1460 1461 1462if (CONFIG_USE_driver_ft6x06) 1463# Add set(CONFIG_USE_driver_ft6x06 true) in config.cmake to use this component 1464 1465message("driver_ft6x06 component is included from ${CMAKE_CURRENT_LIST_FILE}.") 1466 1467if(CONFIG_USE_CMSIS_Driver_Include_I2C) 1468 1469target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 1470 ${CMAKE_CURRENT_LIST_DIR}/../../components/ft6x06/fsl_ft6x06.c 1471) 1472 1473target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 1474 ${CMAKE_CURRENT_LIST_DIR}/../../components/ft6x06/. 1475) 1476 1477else() 1478 1479message(SEND_ERROR "driver_ft6x06.MIMXRT1024 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 1480 1481endif() 1482 1483endif() 1484 1485 1486if (CONFIG_USE_driver_fxos8700cq) 1487# Add set(CONFIG_USE_driver_fxos8700cq true) in config.cmake to use this component 1488 1489message("driver_fxos8700cq component is included from ${CMAKE_CURRENT_LIST_FILE}.") 1490 1491if(CONFIG_USE_driver_common) 1492 1493target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 1494 ${CMAKE_CURRENT_LIST_DIR}/../../components/fxos8700cq/fsl_fxos.c 1495) 1496 1497target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 1498 ${CMAKE_CURRENT_LIST_DIR}/../../components/fxos8700cq/. 1499) 1500 1501else() 1502 1503message(SEND_ERROR "driver_fxos8700cq.MIMXRT1024 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 1504 1505endif() 1506 1507endif() 1508 1509 1510if (CONFIG_USE_component_igpio_adapter) 1511# Add set(CONFIG_USE_component_igpio_adapter true) in config.cmake to use this component 1512 1513message("component_igpio_adapter component is included from ${CMAKE_CURRENT_LIST_FILE}.") 1514 1515if(CONFIG_USE_driver_igpio) 1516 1517target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 1518 ${CMAKE_CURRENT_LIST_DIR}/../../components/gpio/fsl_adapter_igpio.c 1519) 1520 1521target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 1522 ${CMAKE_CURRENT_LIST_DIR}/../../components/gpio/. 1523) 1524 1525else() 1526 1527message(SEND_ERROR "component_igpio_adapter.MIMXRT1024 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 1528 1529endif() 1530 1531endif() 1532 1533 1534if (CONFIG_USE_component_lpi2c_adapter) 1535# Add set(CONFIG_USE_component_lpi2c_adapter true) in config.cmake to use this component 1536 1537message("component_lpi2c_adapter component is included from ${CMAKE_CURRENT_LIST_FILE}.") 1538 1539if(CONFIG_USE_driver_common AND CONFIG_USE_driver_lpi2c) 1540 1541target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 1542 ${CMAKE_CURRENT_LIST_DIR}/../../components/i2c/fsl_adapter_lpi2c.c 1543) 1544 1545target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 1546 ${CMAKE_CURRENT_LIST_DIR}/../../components/i2c/. 1547) 1548 1549else() 1550 1551message(SEND_ERROR "component_lpi2c_adapter.MIMXRT1024 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 1552 1553endif() 1554 1555endif() 1556 1557 1558if (CONFIG_USE_driver_ili9341) 1559# Add set(CONFIG_USE_driver_ili9341 true) in config.cmake to use this component 1560 1561message("driver_ili9341 component is included from ${CMAKE_CURRENT_LIST_FILE}.") 1562 1563if(CONFIG_USE_driver_common) 1564 1565target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 1566 ${CMAKE_CURRENT_LIST_DIR}/../../components/ili9341/fsl_ili9341.c 1567) 1568 1569target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 1570 ${CMAKE_CURRENT_LIST_DIR}/../../components/ili9341/. 1571) 1572 1573else() 1574 1575message(SEND_ERROR "driver_ili9341.MIMXRT1024 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 1576 1577endif() 1578 1579endif() 1580 1581 1582if (CONFIG_USE_component_led) 1583# Add set(CONFIG_USE_component_led true) in config.cmake to use this component 1584 1585message("component_led component is included from ${CMAKE_CURRENT_LIST_FILE}.") 1586 1587if(CONFIG_USE_driver_common AND CONFIG_USE_component_timer_manager AND (CONFIG_USE_component_igpio_adapter)) 1588 1589target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 1590 ${CMAKE_CURRENT_LIST_DIR}/../../components/led/fsl_component_led.c 1591) 1592 1593target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 1594 ${CMAKE_CURRENT_LIST_DIR}/../../components/led/. 1595) 1596 1597else() 1598 1599message(SEND_ERROR "component_led.MIMXRT1024 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 1600 1601endif() 1602 1603endif() 1604 1605 1606if (CONFIG_USE_component_lists) 1607# Add set(CONFIG_USE_component_lists true) in config.cmake to use this component 1608 1609message("component_lists component is included from ${CMAKE_CURRENT_LIST_FILE}.") 1610 1611if(CONFIG_USE_driver_common) 1612 1613target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 1614 ${CMAKE_CURRENT_LIST_DIR}/../../components/lists/fsl_component_generic_list.c 1615) 1616 1617target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 1618 ${CMAKE_CURRENT_LIST_DIR}/../../components/lists/. 1619) 1620 1621else() 1622 1623message(SEND_ERROR "component_lists.MIMXRT1024 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 1624 1625endif() 1626 1627endif() 1628 1629 1630if (CONFIG_USE_component_log) 1631# Add set(CONFIG_USE_component_log true) in config.cmake to use this component 1632 1633message("component_log component is included from ${CMAKE_CURRENT_LIST_FILE}.") 1634 1635if(CONFIG_USE_driver_common AND CONFIG_USE_utility_str) 1636 1637target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 1638 ${CMAKE_CURRENT_LIST_DIR}/../../components/log/fsl_component_log.c 1639) 1640 1641target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 1642 ${CMAKE_CURRENT_LIST_DIR}/../../components/log/. 1643) 1644 1645else() 1646 1647message(SEND_ERROR "component_log.MIMXRT1024 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 1648 1649endif() 1650 1651endif() 1652 1653 1654if (CONFIG_USE_component_log_backend_debugconsole) 1655# Add set(CONFIG_USE_component_log_backend_debugconsole true) in config.cmake to use this component 1656 1657message("component_log_backend_debugconsole component is included from ${CMAKE_CURRENT_LIST_FILE}.") 1658 1659if(CONFIG_USE_driver_common AND CONFIG_USE_component_log AND CONFIG_USE_utility_debug_console) 1660 1661target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 1662 ${CMAKE_CURRENT_LIST_DIR}/../../components/log/fsl_component_log_backend_debugconsole.c 1663) 1664 1665target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 1666 ${CMAKE_CURRENT_LIST_DIR}/../../components/log/. 1667) 1668 1669else() 1670 1671message(SEND_ERROR "component_log_backend_debugconsole.MIMXRT1024 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 1672 1673endif() 1674 1675endif() 1676 1677 1678if (CONFIG_USE_component_log_backend_debugconsole_lite) 1679# Add set(CONFIG_USE_component_log_backend_debugconsole_lite true) in config.cmake to use this component 1680 1681message("component_log_backend_debugconsole_lite component is included from ${CMAKE_CURRENT_LIST_FILE}.") 1682 1683if(CONFIG_USE_driver_common AND CONFIG_USE_component_log AND CONFIG_USE_utility_debug_console_lite) 1684 1685target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 1686 ${CMAKE_CURRENT_LIST_DIR}/../../components/log/fsl_component_log_backend_debugconsole.c 1687) 1688 1689target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 1690 ${CMAKE_CURRENT_LIST_DIR}/../../components/log/. 1691) 1692 1693else() 1694 1695message(SEND_ERROR "component_log_backend_debugconsole_lite.MIMXRT1024 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 1696 1697endif() 1698 1699endif() 1700 1701 1702if (CONFIG_USE_component_log_backend_ringbuffer) 1703# Add set(CONFIG_USE_component_log_backend_ringbuffer true) in config.cmake to use this component 1704 1705message("component_log_backend_ringbuffer component is included from ${CMAKE_CURRENT_LIST_FILE}.") 1706 1707if(CONFIG_USE_driver_common AND CONFIG_USE_component_log) 1708 1709target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 1710 ${CMAKE_CURRENT_LIST_DIR}/../../components/log/fsl_component_log_backend_ringbuffer.c 1711) 1712 1713target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 1714 ${CMAKE_CURRENT_LIST_DIR}/../../components/log/. 1715) 1716 1717else() 1718 1719message(SEND_ERROR "component_log_backend_ringbuffer.MIMXRT1024 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 1720 1721endif() 1722 1723endif() 1724 1725 1726if (CONFIG_USE_component_mem_manager) 1727# Add set(CONFIG_USE_component_mem_manager true) in config.cmake to use this component 1728 1729message("component_mem_manager component is included from ${CMAKE_CURRENT_LIST_FILE}.") 1730 1731if(CONFIG_USE_driver_common AND CONFIG_USE_component_lists) 1732 1733target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 1734 ${CMAKE_CURRENT_LIST_DIR}/../../components/mem_manager/fsl_component_mem_manager.c 1735) 1736 1737target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 1738 ${CMAKE_CURRENT_LIST_DIR}/../../components/mem_manager/. 1739) 1740 1741else() 1742 1743message(SEND_ERROR "component_mem_manager.MIMXRT1024 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 1744 1745endif() 1746 1747endif() 1748 1749 1750if (CONFIG_USE_component_mem_manager_light) 1751# Add set(CONFIG_USE_component_mem_manager_light true) in config.cmake to use this component 1752 1753message("component_mem_manager_light component is included from ${CMAKE_CURRENT_LIST_FILE}.") 1754 1755if(CONFIG_USE_driver_common AND CONFIG_USE_component_lists) 1756 1757target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 1758 ${CMAKE_CURRENT_LIST_DIR}/../../components/mem_manager/fsl_component_mem_manager_light.c 1759) 1760 1761target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 1762 ${CMAKE_CURRENT_LIST_DIR}/../../components/mem_manager/. 1763) 1764 1765else() 1766 1767message(SEND_ERROR "component_mem_manager_light.MIMXRT1024 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 1768 1769endif() 1770 1771endif() 1772 1773 1774if (CONFIG_USE_component_mflash_file) 1775# Add set(CONFIG_USE_component_mflash_file true) in config.cmake to use this component 1776 1777message("component_mflash_file component is included from ${CMAKE_CURRENT_LIST_FILE}.") 1778 1779if(CONFIG_USE_component_mflash_rt1024) 1780 1781target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 1782 ${CMAKE_CURRENT_LIST_DIR}/../../components/flash/mflash/mflash_file.c 1783) 1784 1785target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 1786 ${CMAKE_CURRENT_LIST_DIR}/../../components/flash/mflash/. 1787) 1788 1789else() 1790 1791message(SEND_ERROR "component_mflash_file.MIMXRT1024 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 1792 1793endif() 1794 1795endif() 1796 1797 1798if (CONFIG_USE_component_mflash_dummy) 1799# Add set(CONFIG_USE_component_mflash_dummy true) in config.cmake to use this component 1800 1801message("component_mflash_dummy component is included from ${CMAKE_CURRENT_LIST_FILE}.") 1802 1803if(CONFIG_USE_component_mflash_file) 1804 1805target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 1806 ${CMAKE_CURRENT_LIST_DIR}/../../components/flash/mflash/mflash_dummy.c 1807) 1808 1809else() 1810 1811message(SEND_ERROR "component_mflash_dummy.MIMXRT1024 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 1812 1813endif() 1814 1815endif() 1816 1817 1818if (CONFIG_USE_component_mflash_rt1024) 1819# Add set(CONFIG_USE_component_mflash_rt1024 true) in config.cmake to use this component 1820 1821message("component_mflash_rt1024 component is included from ${CMAKE_CURRENT_LIST_FILE}.") 1822 1823if(CONFIG_USE_component_mflash_common AND (CONFIG_BOARD STREQUAL evkmimxrt1024) AND CONFIG_USE_driver_flexspi AND CONFIG_USE_driver_cache_armv7_m7) 1824 1825target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 1826 ${CMAKE_CURRENT_LIST_DIR}/../../components/flash/mflash/mimxrt1024/mflash_drv.c 1827) 1828 1829target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 1830 ${CMAKE_CURRENT_LIST_DIR}/../../components/flash/mflash/mimxrt1024/. 1831) 1832 1833if(CONFIG_USE_COMPONENT_CONFIGURATION) 1834 message("===>Import configuration from ${CMAKE_CURRENT_LIST_FILE}") 1835 1836 target_compile_definitions(${MCUX_SDK_PROJECT_NAME} PUBLIC 1837 -DMFLASH_FILE_BASEADDR=1572864 1838 ) 1839 1840endif() 1841 1842else() 1843 1844message(SEND_ERROR "component_mflash_rt1024.MIMXRT1024 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 1845 1846endif() 1847 1848endif() 1849 1850 1851if (CONFIG_USE_driver_mma8451q) 1852# Add set(CONFIG_USE_driver_mma8451q true) in config.cmake to use this component 1853 1854message("driver_mma8451q component is included from ${CMAKE_CURRENT_LIST_FILE}.") 1855 1856if(CONFIG_USE_driver_common) 1857 1858target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 1859 ${CMAKE_CURRENT_LIST_DIR}/../../components/mma8451q/fsl_mma.c 1860) 1861 1862target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 1863 ${CMAKE_CURRENT_LIST_DIR}/../../components/mma8451q/. 1864) 1865 1866else() 1867 1868message(SEND_ERROR "driver_mma8451q.MIMXRT1024 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 1869 1870endif() 1871 1872endif() 1873 1874 1875if (CONFIG_USE_component_panic) 1876# Add set(CONFIG_USE_component_panic true) in config.cmake to use this component 1877 1878message("component_panic component is included from ${CMAKE_CURRENT_LIST_FILE}.") 1879 1880if(CONFIG_USE_driver_common) 1881 1882target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 1883 ${CMAKE_CURRENT_LIST_DIR}/../../components/panic/fsl_component_panic.c 1884) 1885 1886target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 1887 ${CMAKE_CURRENT_LIST_DIR}/../../components/panic/. 1888) 1889 1890else() 1891 1892message(SEND_ERROR "component_panic.MIMXRT1024 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 1893 1894endif() 1895 1896endif() 1897 1898 1899if (CONFIG_USE_driver_phy-device-ksz8081) 1900# Add set(CONFIG_USE_driver_phy-device-ksz8081 true) in config.cmake to use this component 1901 1902message("driver_phy-device-ksz8081 component is included from ${CMAKE_CURRENT_LIST_FILE}.") 1903 1904if(CONFIG_USE_driver_phy-common) 1905 1906target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 1907 ${CMAKE_CURRENT_LIST_DIR}/../../components/phy/device/phyksz8081/fsl_phyksz8081.c 1908) 1909 1910target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 1911 ${CMAKE_CURRENT_LIST_DIR}/../../components/phy/device/phyksz8081/. 1912) 1913 1914else() 1915 1916message(SEND_ERROR "driver_phy-device-ksz8081.MIMXRT1024 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 1917 1918endif() 1919 1920endif() 1921 1922 1923if (CONFIG_USE_component_reset_adapter) 1924# Add set(CONFIG_USE_component_reset_adapter true) in config.cmake to use this component 1925 1926message("component_reset_adapter component is included from ${CMAKE_CURRENT_LIST_FILE}.") 1927 1928if(CONFIG_USE_driver_common) 1929 1930target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 1931 ${CMAKE_CURRENT_LIST_DIR}/../../components/reset/fsl_adapter_reset.c 1932) 1933 1934target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 1935 ${CMAKE_CURRENT_LIST_DIR}/../../components/reset/. 1936) 1937 1938else() 1939 1940message(SEND_ERROR "component_reset_adapter.MIMXRT1024 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 1941 1942endif() 1943 1944endif() 1945 1946 1947if (CONFIG_USE_component_trng_adapter) 1948# Add set(CONFIG_USE_component_trng_adapter true) in config.cmake to use this component 1949 1950message("component_trng_adapter component is included from ${CMAKE_CURRENT_LIST_FILE}.") 1951 1952if(CONFIG_USE_driver_common AND CONFIG_USE_driver_trng) 1953 1954target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 1955 ${CMAKE_CURRENT_LIST_DIR}/../../components/rng/fsl_adapter_trng.c 1956) 1957 1958target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 1959 ${CMAKE_CURRENT_LIST_DIR}/../../components/rng/. 1960) 1961 1962else() 1963 1964message(SEND_ERROR "component_trng_adapter.MIMXRT1024 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 1965 1966endif() 1967 1968endif() 1969 1970 1971if (CONFIG_USE_component_software_rng_adapter) 1972# Add set(CONFIG_USE_component_software_rng_adapter true) in config.cmake to use this component 1973 1974message("component_software_rng_adapter component is included from ${CMAKE_CURRENT_LIST_FILE}.") 1975 1976if(CONFIG_USE_driver_common) 1977 1978target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 1979 ${CMAKE_CURRENT_LIST_DIR}/../../components/rng/fsl_adapter_software_rng.c 1980) 1981 1982target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 1983 ${CMAKE_CURRENT_LIST_DIR}/../../components/rng/. 1984) 1985 1986else() 1987 1988message(SEND_ERROR "component_software_rng_adapter.MIMXRT1024 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 1989 1990endif() 1991 1992endif() 1993 1994 1995if (CONFIG_USE_component_serial_manager) 1996# Add set(CONFIG_USE_component_serial_manager true) in config.cmake to use this component 1997 1998message("component_serial_manager component is included from ${CMAKE_CURRENT_LIST_FILE}.") 1999 2000if(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)) 2001 2002target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 2003 ${CMAKE_CURRENT_LIST_DIR}/../../components/serial_manager/fsl_component_serial_manager.c 2004) 2005 2006target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 2007 ${CMAKE_CURRENT_LIST_DIR}/../../components/serial_manager/. 2008) 2009 2010else() 2011 2012message(SEND_ERROR "component_serial_manager.MIMXRT1024 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 2013 2014endif() 2015 2016endif() 2017 2018 2019if (CONFIG_USE_component_serial_manager_spi) 2020# Add set(CONFIG_USE_component_serial_manager_spi true) in config.cmake to use this component 2021 2022message("component_serial_manager_spi component is included from ${CMAKE_CURRENT_LIST_FILE}.") 2023 2024if(CONFIG_USE_component_serial_manager AND ((CONFIG_USE_driver_lpspi AND CONFIG_USE_component_lpspi_adapter))) 2025 2026target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 2027 ${CMAKE_CURRENT_LIST_DIR}/../../components/serial_manager/fsl_component_serial_port_spi.c 2028) 2029 2030target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 2031 ${CMAKE_CURRENT_LIST_DIR}/../../components/serial_manager/. 2032) 2033 2034if(CONFIG_USE_COMPONENT_CONFIGURATION) 2035 message("===>Import configuration from ${CMAKE_CURRENT_LIST_FILE}") 2036 2037 target_compile_definitions(${MCUX_SDK_PROJECT_NAME} PUBLIC 2038 -DSERIAL_PORT_TYPE_SPI=1 2039 -DSERIAL_PORT_TYPE_SPI_MASTER=1 2040 -DSERIAL_PORT_TYPE_SPI_SLAVE=1 2041 -DSERIAL_MANAGER_NON_BLOCKING_MODE=1 2042 ) 2043 2044endif() 2045 2046else() 2047 2048message(SEND_ERROR "component_serial_manager_spi.MIMXRT1024 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 2049 2050endif() 2051 2052endif() 2053 2054 2055if (CONFIG_USE_component_serial_manager_usb_cdc) 2056# Add set(CONFIG_USE_component_serial_manager_usb_cdc true) in config.cmake to use this component 2057 2058message("component_serial_manager_usb_cdc component is included from ${CMAKE_CURRENT_LIST_FILE}.") 2059 2060if(CONFIG_USE_component_serial_manager AND CONFIG_USE_middleware_usb_device_cdc_external AND CONFIG_USE_driver_common) 2061 2062target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 2063 ${CMAKE_CURRENT_LIST_DIR}/../../components/serial_manager/fsl_component_serial_port_usb.c 2064 ${CMAKE_CURRENT_LIST_DIR}/../../components/serial_manager/usb_cdc_adapter/usb_device_descriptor.c 2065) 2066 2067target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 2068 ${CMAKE_CURRENT_LIST_DIR}/../../components/serial_manager/. 2069 ${CMAKE_CURRENT_LIST_DIR}/../../components/serial_manager/usb_cdc_adapter 2070) 2071 2072if(CONFIG_USE_COMPONENT_CONFIGURATION) 2073 message("===>Import configuration from ${CMAKE_CURRENT_LIST_FILE}") 2074 2075 target_compile_definitions(${MCUX_SDK_PROJECT_NAME} PUBLIC 2076 -DSERIAL_PORT_TYPE_USBCDC=1 2077 -DDEBUG_CONSOLE_TRANSFER_NON_BLOCKING 2078 -DUSB_DEVICE_CONFIG_CDC_ACM=1 2079 ) 2080 2081endif() 2082 2083else() 2084 2085message(SEND_ERROR "component_serial_manager_usb_cdc.MIMXRT1024 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 2086 2087endif() 2088 2089endif() 2090 2091 2092if (CONFIG_USE_component_serial_manager_virtual) 2093# Add set(CONFIG_USE_component_serial_manager_virtual true) in config.cmake to use this component 2094 2095message("component_serial_manager_virtual component is included from ${CMAKE_CURRENT_LIST_FILE}.") 2096 2097if(CONFIG_USE_component_serial_manager AND CONFIG_USE_driver_common) 2098 2099target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 2100 ${CMAKE_CURRENT_LIST_DIR}/../../components/serial_manager/fsl_component_serial_port_virtual.c 2101) 2102 2103target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 2104 ${CMAKE_CURRENT_LIST_DIR}/../../components/serial_manager/. 2105) 2106 2107if(CONFIG_USE_COMPONENT_CONFIGURATION) 2108 message("===>Import configuration from ${CMAKE_CURRENT_LIST_FILE}") 2109 2110 target_compile_definitions(${MCUX_SDK_PROJECT_NAME} PUBLIC 2111 -DSERIAL_PORT_TYPE_VIRTUAL=1 2112 -DDEBUG_CONSOLE_TRANSFER_NON_BLOCKING 2113 ) 2114 2115endif() 2116 2117else() 2118 2119message(SEND_ERROR "component_serial_manager_virtual.MIMXRT1024 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 2120 2121endif() 2122 2123endif() 2124 2125 2126if (CONFIG_USE_component_serial_manager_swo) 2127# Add set(CONFIG_USE_component_serial_manager_swo true) in config.cmake to use this component 2128 2129message("component_serial_manager_swo component is included from ${CMAKE_CURRENT_LIST_FILE}.") 2130 2131if((CONFIG_CORE STREQUAL cm7f) AND CONFIG_USE_driver_common AND CONFIG_USE_component_serial_manager) 2132 2133target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 2134 ${CMAKE_CURRENT_LIST_DIR}/../../components/serial_manager/fsl_component_serial_port_swo.c 2135) 2136 2137target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 2138 ${CMAKE_CURRENT_LIST_DIR}/../../components/serial_manager/. 2139) 2140 2141if(CONFIG_USE_COMPONENT_CONFIGURATION) 2142 message("===>Import configuration from ${CMAKE_CURRENT_LIST_FILE}") 2143 2144 target_compile_definitions(${MCUX_SDK_PROJECT_NAME} PUBLIC 2145 -DSERIAL_PORT_TYPE_SWO=1 2146 ) 2147 2148endif() 2149 2150else() 2151 2152message(SEND_ERROR "component_serial_manager_swo.MIMXRT1024 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 2153 2154endif() 2155 2156endif() 2157 2158 2159if (CONFIG_USE_driver_sgtl5000) 2160# Add set(CONFIG_USE_driver_sgtl5000 true) in config.cmake to use this component 2161 2162message("driver_sgtl5000 component is included from ${CMAKE_CURRENT_LIST_FILE}.") 2163 2164if(CONFIG_USE_driver_common AND CONFIG_USE_component_codec_i2c) 2165 2166target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 2167 ${CMAKE_CURRENT_LIST_DIR}/../../components/codec/sgtl5000/fsl_sgtl5000.c 2168) 2169 2170target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 2171 ${CMAKE_CURRENT_LIST_DIR}/../../components/codec/sgtl5000/. 2172) 2173 2174if(CONFIG_USE_COMPONENT_CONFIGURATION) 2175 message("===>Import configuration from ${CMAKE_CURRENT_LIST_FILE}") 2176 2177 target_compile_definitions(${MCUX_SDK_PROJECT_NAME} PUBLIC 2178 -DSDK_I2C_BASED_COMPONENT_USED=1 2179 -DBOARD_USE_CODEC=1 2180 -DCODEC_SGTL5000_ENABLE 2181 ) 2182 2183endif() 2184 2185else() 2186 2187message(SEND_ERROR "driver_sgtl5000.MIMXRT1024 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 2188 2189endif() 2190 2191endif() 2192 2193 2194if (CONFIG_USE_utility_shell) 2195# Add set(CONFIG_USE_utility_shell true) in config.cmake to use this component 2196 2197message("utility_shell component is included from ${CMAKE_CURRENT_LIST_FILE}.") 2198 2199if(CONFIG_USE_utility_str AND CONFIG_USE_component_lists AND CONFIG_USE_driver_common) 2200 2201target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 2202 ${CMAKE_CURRENT_LIST_DIR}/../../utilities/shell/fsl_shell.c 2203) 2204 2205target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 2206 ${CMAKE_CURRENT_LIST_DIR}/../../utilities/shell/. 2207) 2208 2209if(CONFIG_USE_COMPONENT_CONFIGURATION) 2210 message("===>Import configuration from ${CMAKE_CURRENT_LIST_FILE}") 2211 2212 target_compile_definitions(${MCUX_SDK_PROJECT_NAME} PUBLIC 2213 -DDEBUG_CONSOLE_RX_ENABLE=0 2214 ) 2215 2216endif() 2217 2218else() 2219 2220message(SEND_ERROR "utility_shell.MIMXRT1024 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 2221 2222endif() 2223 2224endif() 2225 2226 2227if (CONFIG_USE_component_silicon_id_rt10xx) 2228# Add set(CONFIG_USE_component_silicon_id_rt10xx true) in config.cmake to use this component 2229 2230message("component_silicon_id_rt10xx component is included from ${CMAKE_CURRENT_LIST_FILE}.") 2231 2232if((CONFIG_DEVICE_ID STREQUAL MIMXRT1024xxxxx) AND CONFIG_USE_component_silicon_id) 2233 2234target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 2235 ${CMAKE_CURRENT_LIST_DIR}/../../components/silicon_id/socs/rt10xx/fsl_silicon_id_soc.c 2236) 2237 2238target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 2239 ${CMAKE_CURRENT_LIST_DIR}/../../components/silicon_id/socs/rt10xx/.. 2240) 2241 2242else() 2243 2244message(SEND_ERROR "component_silicon_id_rt10xx.MIMXRT1024 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 2245 2246endif() 2247 2248endif() 2249 2250 2251if (CONFIG_USE_component_silicon_id) 2252# Add set(CONFIG_USE_component_silicon_id true) in config.cmake to use this component 2253 2254message("component_silicon_id component is included from ${CMAKE_CURRENT_LIST_FILE}.") 2255 2256if((CONFIG_USE_driver_common AND CONFIG_USE_component_silicon_id_rt10xx)) 2257 2258target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 2259 ${CMAKE_CURRENT_LIST_DIR}/../../components/silicon_id/fsl_silicon_id.c 2260) 2261 2262target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 2263 ${CMAKE_CURRENT_LIST_DIR}/../../components/silicon_id/. 2264) 2265 2266else() 2267 2268message(SEND_ERROR "component_silicon_id.MIMXRT1024 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 2269 2270endif() 2271 2272endif() 2273 2274 2275if (CONFIG_USE_component_lpspi_adapter) 2276# Add set(CONFIG_USE_component_lpspi_adapter true) in config.cmake to use this component 2277 2278message("component_lpspi_adapter component is included from ${CMAKE_CURRENT_LIST_FILE}.") 2279 2280if(CONFIG_USE_driver_common AND CONFIG_USE_driver_lpspi) 2281 2282target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 2283 ${CMAKE_CURRENT_LIST_DIR}/../../components/spi/fsl_adapter_lpspi.c 2284) 2285 2286target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 2287 ${CMAKE_CURRENT_LIST_DIR}/../../components/spi/. 2288) 2289 2290else() 2291 2292message(SEND_ERROR "component_lpspi_adapter.MIMXRT1024 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 2293 2294endif() 2295 2296endif() 2297 2298 2299if (CONFIG_USE_component_gpt_adapter) 2300# Add set(CONFIG_USE_component_gpt_adapter true) in config.cmake to use this component 2301 2302message("component_gpt_adapter component is included from ${CMAKE_CURRENT_LIST_FILE}.") 2303 2304if(CONFIG_USE_driver_common AND CONFIG_USE_driver_gpt) 2305 2306target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 2307 ${CMAKE_CURRENT_LIST_DIR}/../../components/timer/fsl_adapter_gpt.c 2308) 2309 2310target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 2311 ${CMAKE_CURRENT_LIST_DIR}/../../components/timer/. 2312) 2313 2314else() 2315 2316message(SEND_ERROR "component_gpt_adapter.MIMXRT1024 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 2317 2318endif() 2319 2320endif() 2321 2322 2323if (CONFIG_USE_component_pit_adapter) 2324# Add set(CONFIG_USE_component_pit_adapter true) in config.cmake to use this component 2325 2326message("component_pit_adapter component is included from ${CMAKE_CURRENT_LIST_FILE}.") 2327 2328if(CONFIG_USE_driver_common AND CONFIG_USE_driver_pit) 2329 2330target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 2331 ${CMAKE_CURRENT_LIST_DIR}/../../components/timer/fsl_adapter_pit.c 2332) 2333 2334target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 2335 ${CMAKE_CURRENT_LIST_DIR}/../../components/timer/. 2336) 2337 2338else() 2339 2340message(SEND_ERROR "component_pit_adapter.MIMXRT1024 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 2341 2342endif() 2343 2344endif() 2345 2346 2347if (CONFIG_USE_component_timer_manager) 2348# Add set(CONFIG_USE_component_timer_manager true) in config.cmake to use this component 2349 2350message("component_timer_manager component is included from ${CMAKE_CURRENT_LIST_FILE}.") 2351 2352if(CONFIG_USE_driver_common AND CONFIG_USE_component_lists AND (CONFIG_USE_component_gpt_adapter OR CONFIG_USE_component_pit_adapter)) 2353 2354target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 2355 ${CMAKE_CURRENT_LIST_DIR}/../../components/timer_manager/fsl_component_timer_manager.c 2356) 2357 2358target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 2359 ${CMAKE_CURRENT_LIST_DIR}/../../components/timer_manager/. 2360) 2361 2362else() 2363 2364message(SEND_ERROR "component_timer_manager.MIMXRT1024 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 2365 2366endif() 2367 2368endif() 2369 2370 2371if (CONFIG_USE_component_lpuart_adapter) 2372# Add set(CONFIG_USE_component_lpuart_adapter true) in config.cmake to use this component 2373 2374message("component_lpuart_adapter component is included from ${CMAKE_CURRENT_LIST_FILE}.") 2375 2376if(CONFIG_USE_driver_common AND CONFIG_USE_driver_lpuart) 2377 2378target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 2379 ${CMAKE_CURRENT_LIST_DIR}/../../components/uart/fsl_adapter_lpuart.c 2380) 2381 2382target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 2383 ${CMAKE_CURRENT_LIST_DIR}/../../components/uart/. 2384) 2385 2386else() 2387 2388message(SEND_ERROR "component_lpuart_adapter.MIMXRT1024 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 2389 2390endif() 2391 2392endif() 2393 2394 2395if (CONFIG_USE_component_lpuart_dma_adapter) 2396# Add set(CONFIG_USE_component_lpuart_dma_adapter true) in config.cmake to use this component 2397 2398message("component_lpuart_dma_adapter component is included from ${CMAKE_CURRENT_LIST_FILE}.") 2399 2400if(CONFIG_USE_component_lpuart_adapter AND CONFIG_USE_component_timer_manager AND (CONFIG_USE_driver_lpuart_edma)) 2401 2402target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 2403 ${CMAKE_CURRENT_LIST_DIR}/../../components/uart/fsl_adapter_lpuart.c 2404) 2405 2406target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 2407 ${CMAKE_CURRENT_LIST_DIR}/../../components/uart/. 2408) 2409 2410if(CONFIG_USE_COMPONENT_CONFIGURATION) 2411 message("===>Import configuration from ${CMAKE_CURRENT_LIST_FILE}") 2412 2413 target_compile_definitions(${MCUX_SDK_PROJECT_NAME} PUBLIC 2414 -DHAL_UART_DMA_ENABLE=1 2415 ) 2416 2417endif() 2418 2419else() 2420 2421message(SEND_ERROR "component_lpuart_dma_adapter.MIMXRT1024 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 2422 2423endif() 2424 2425endif() 2426 2427 2428if (CONFIG_USE_driver_video-common) 2429# Add set(CONFIG_USE_driver_video-common true) in config.cmake to use this component 2430 2431message("driver_video-common component is included from ${CMAKE_CURRENT_LIST_FILE}.") 2432 2433if(CONFIG_USE_driver_common) 2434 2435target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 2436 ${CMAKE_CURRENT_LIST_DIR}/../../components/video/fsl_video_common.c 2437) 2438 2439target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 2440 ${CMAKE_CURRENT_LIST_DIR}/../../components/video/. 2441) 2442 2443else() 2444 2445message(SEND_ERROR "driver_video-common.MIMXRT1024 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 2446 2447endif() 2448 2449endif() 2450 2451 2452if (CONFIG_USE_driver_wm8904) 2453# Add set(CONFIG_USE_driver_wm8904 true) in config.cmake to use this component 2454 2455message("driver_wm8904 component is included from ${CMAKE_CURRENT_LIST_FILE}.") 2456 2457if(CONFIG_USE_driver_common AND CONFIG_USE_component_codec_i2c) 2458 2459target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 2460 ${CMAKE_CURRENT_LIST_DIR}/../../components/codec/wm8904/fsl_wm8904.c 2461) 2462 2463target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 2464 ${CMAKE_CURRENT_LIST_DIR}/../../components/codec/wm8904/. 2465) 2466 2467if(CONFIG_USE_COMPONENT_CONFIGURATION) 2468 message("===>Import configuration from ${CMAKE_CURRENT_LIST_FILE}") 2469 2470 target_compile_definitions(${MCUX_SDK_PROJECT_NAME} PUBLIC 2471 -DSDK_I2C_BASED_COMPONENT_USED=1 2472 -DBOARD_USE_CODEC=1 2473 -DCODEC_WM8904_ENABLE 2474 ) 2475 2476endif() 2477 2478else() 2479 2480message(SEND_ERROR "driver_wm8904.MIMXRT1024 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 2481 2482endif() 2483 2484endif() 2485 2486 2487if (CONFIG_USE_driver_wm8960) 2488# Add set(CONFIG_USE_driver_wm8960 true) in config.cmake to use this component 2489 2490message("driver_wm8960 component is included from ${CMAKE_CURRENT_LIST_FILE}.") 2491 2492if(CONFIG_USE_driver_common AND CONFIG_USE_component_codec_i2c) 2493 2494target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 2495 ${CMAKE_CURRENT_LIST_DIR}/../../components/codec/wm8960/fsl_wm8960.c 2496) 2497 2498target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 2499 ${CMAKE_CURRENT_LIST_DIR}/../../components/codec/wm8960/. 2500) 2501 2502if(CONFIG_USE_COMPONENT_CONFIGURATION) 2503 message("===>Import configuration from ${CMAKE_CURRENT_LIST_FILE}") 2504 2505 target_compile_definitions(${MCUX_SDK_PROJECT_NAME} PUBLIC 2506 -DSDK_I2C_BASED_COMPONENT_USED=1 2507 -DBOARD_USE_CODEC=1 2508 -DCODEC_WM8960_ENABLE 2509 ) 2510 2511endif() 2512 2513else() 2514 2515message(SEND_ERROR "driver_wm8960.MIMXRT1024 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 2516 2517endif() 2518 2519endif() 2520 2521 2522if (CONFIG_USE_driver_common) 2523# Add set(CONFIG_USE_driver_common true) in config.cmake to use this component 2524 2525message("driver_common component is included from ${CMAKE_CURRENT_LIST_FILE}.") 2526 2527if(CONFIG_USE_driver_clock AND CONFIG_USE_device_MIMXRT1024_CMSIS) 2528 2529target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 2530 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/common/fsl_common.c 2531) 2532 2533if(CONFIG_CORE STREQUAL cm7f) 2534 target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 2535 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/common/fsl_common_arm.c 2536 ) 2537endif() 2538 2539target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 2540 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/common/. 2541) 2542 2543else() 2544 2545message(SEND_ERROR "driver_common.MIMXRT1024 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 2546 2547endif() 2548 2549endif() 2550 2551 2552if (CONFIG_USE_driver_adc_12b1msps_sar) 2553# Add set(CONFIG_USE_driver_adc_12b1msps_sar true) in config.cmake to use this component 2554 2555message("driver_adc_12b1msps_sar component is included from ${CMAKE_CURRENT_LIST_FILE}.") 2556 2557if((CONFIG_DEVICE_ID STREQUAL MIMXRT1024xxxxx) AND CONFIG_USE_driver_common) 2558 2559target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 2560 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/adc_12b1msps_sar/fsl_adc.c 2561) 2562 2563target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 2564 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/adc_12b1msps_sar/. 2565) 2566 2567else() 2568 2569message(SEND_ERROR "driver_adc_12b1msps_sar.MIMXRT1024 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 2570 2571endif() 2572 2573endif() 2574 2575 2576if (CONFIG_USE_driver_adc_etc) 2577# Add set(CONFIG_USE_driver_adc_etc true) in config.cmake to use this component 2578 2579message("driver_adc_etc component is included from ${CMAKE_CURRENT_LIST_FILE}.") 2580 2581if((CONFIG_DEVICE_ID STREQUAL MIMXRT1024xxxxx) AND CONFIG_USE_driver_common) 2582 2583target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 2584 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/adc_etc/fsl_adc_etc.c 2585) 2586 2587target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 2588 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/adc_etc/. 2589) 2590 2591else() 2592 2593message(SEND_ERROR "driver_adc_etc.MIMXRT1024 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 2594 2595endif() 2596 2597endif() 2598 2599 2600if (CONFIG_USE_driver_aipstz) 2601# Add set(CONFIG_USE_driver_aipstz true) in config.cmake to use this component 2602 2603message("driver_aipstz component is included from ${CMAKE_CURRENT_LIST_FILE}.") 2604 2605if((CONFIG_DEVICE_ID STREQUAL MIMXRT1024xxxxx) AND CONFIG_USE_driver_common) 2606 2607target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 2608 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/aipstz/fsl_aipstz.c 2609) 2610 2611target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 2612 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/aipstz/. 2613) 2614 2615else() 2616 2617message(SEND_ERROR "driver_aipstz.MIMXRT1024 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 2618 2619endif() 2620 2621endif() 2622 2623 2624if (CONFIG_USE_driver_aoi) 2625# Add set(CONFIG_USE_driver_aoi true) in config.cmake to use this component 2626 2627message("driver_aoi component is included from ${CMAKE_CURRENT_LIST_FILE}.") 2628 2629if((CONFIG_DEVICE_ID STREQUAL MIMXRT1024xxxxx) AND CONFIG_USE_driver_common) 2630 2631target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 2632 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/aoi/fsl_aoi.c 2633) 2634 2635target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 2636 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/aoi/. 2637) 2638 2639else() 2640 2641message(SEND_ERROR "driver_aoi.MIMXRT1024 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 2642 2643endif() 2644 2645endif() 2646 2647 2648if (CONFIG_USE_driver_bee) 2649# Add set(CONFIG_USE_driver_bee true) in config.cmake to use this component 2650 2651message("driver_bee component is included from ${CMAKE_CURRENT_LIST_FILE}.") 2652 2653if((CONFIG_DEVICE_ID STREQUAL MIMXRT1024xxxxx) AND CONFIG_USE_driver_common) 2654 2655target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 2656 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/bee/fsl_bee.c 2657) 2658 2659target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 2660 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/bee/. 2661) 2662 2663else() 2664 2665message(SEND_ERROR "driver_bee.MIMXRT1024 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 2666 2667endif() 2668 2669endif() 2670 2671 2672if (CONFIG_USE_driver_cache_armv7_m7) 2673# Add set(CONFIG_USE_driver_cache_armv7_m7 true) in config.cmake to use this component 2674 2675message("driver_cache_armv7_m7 component is included from ${CMAKE_CURRENT_LIST_FILE}.") 2676 2677if(CONFIG_USE_driver_common) 2678 2679target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 2680 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/cache/armv7-m7/fsl_cache.c 2681) 2682 2683target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 2684 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/cache/armv7-m7/. 2685) 2686 2687else() 2688 2689message(SEND_ERROR "driver_cache_armv7_m7.MIMXRT1024 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 2690 2691endif() 2692 2693endif() 2694 2695 2696if (CONFIG_USE_driver_cmp) 2697# Add set(CONFIG_USE_driver_cmp true) in config.cmake to use this component 2698 2699message("driver_cmp component is included from ${CMAKE_CURRENT_LIST_FILE}.") 2700 2701if((CONFIG_DEVICE_ID STREQUAL MIMXRT1024xxxxx) AND CONFIG_USE_driver_common) 2702 2703target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 2704 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/cmp/fsl_cmp.c 2705) 2706 2707target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 2708 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/cmp/. 2709) 2710 2711else() 2712 2713message(SEND_ERROR "driver_cmp.MIMXRT1024 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 2714 2715endif() 2716 2717endif() 2718 2719 2720if (CONFIG_USE_driver_dcdc_1) 2721# Add set(CONFIG_USE_driver_dcdc_1 true) in config.cmake to use this component 2722 2723message("driver_dcdc_1 component is included from ${CMAKE_CURRENT_LIST_FILE}.") 2724 2725if((CONFIG_DEVICE_ID STREQUAL MIMXRT1024xxxxx) AND CONFIG_USE_driver_common) 2726 2727target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 2728 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/dcdc_1/fsl_dcdc.c 2729) 2730 2731target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 2732 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/dcdc_1/. 2733) 2734 2735else() 2736 2737message(SEND_ERROR "driver_dcdc_1.MIMXRT1024 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 2738 2739endif() 2740 2741endif() 2742 2743 2744if (CONFIG_USE_driver_dmamux) 2745# Add set(CONFIG_USE_driver_dmamux true) in config.cmake to use this component 2746 2747message("driver_dmamux component is included from ${CMAKE_CURRENT_LIST_FILE}.") 2748 2749if((CONFIG_DEVICE_ID STREQUAL MIMXRT1024xxxxx) AND CONFIG_USE_driver_common) 2750 2751target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 2752 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/dmamux/fsl_dmamux.c 2753) 2754 2755target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 2756 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/dmamux/. 2757) 2758 2759else() 2760 2761message(SEND_ERROR "driver_dmamux.MIMXRT1024 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 2762 2763endif() 2764 2765endif() 2766 2767 2768if (CONFIG_USE_driver_edma) 2769# Add set(CONFIG_USE_driver_edma true) in config.cmake to use this component 2770 2771message("driver_edma component is included from ${CMAKE_CURRENT_LIST_FILE}.") 2772 2773if((CONFIG_DEVICE_ID STREQUAL MIMXRT1024xxxxx) AND CONFIG_USE_driver_common AND CONFIG_USE_driver_dmamux) 2774 2775target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 2776 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/edma/fsl_edma.c 2777) 2778 2779target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 2780 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/edma/. 2781) 2782 2783else() 2784 2785message(SEND_ERROR "driver_edma.MIMXRT1024 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 2786 2787endif() 2788 2789endif() 2790 2791 2792if (CONFIG_USE_driver_enc) 2793# Add set(CONFIG_USE_driver_enc true) in config.cmake to use this component 2794 2795message("driver_enc component is included from ${CMAKE_CURRENT_LIST_FILE}.") 2796 2797if((CONFIG_DEVICE_ID STREQUAL MIMXRT1024xxxxx) AND CONFIG_USE_driver_common) 2798 2799target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 2800 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/enc/fsl_enc.c 2801) 2802 2803target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 2804 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/enc/. 2805) 2806 2807else() 2808 2809message(SEND_ERROR "driver_enc.MIMXRT1024 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 2810 2811endif() 2812 2813endif() 2814 2815 2816if (CONFIG_USE_driver_enet) 2817# Add set(CONFIG_USE_driver_enet true) in config.cmake to use this component 2818 2819message("driver_enet component is included from ${CMAKE_CURRENT_LIST_FILE}.") 2820 2821if((CONFIG_DEVICE_ID STREQUAL MIMXRT1024xxxxx) AND CONFIG_USE_driver_common) 2822 2823target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 2824 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/enet/fsl_enet.c 2825) 2826 2827target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 2828 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/enet/. 2829) 2830 2831else() 2832 2833message(SEND_ERROR "driver_enet.MIMXRT1024 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 2834 2835endif() 2836 2837endif() 2838 2839 2840if (CONFIG_USE_driver_ewm) 2841# Add set(CONFIG_USE_driver_ewm true) in config.cmake to use this component 2842 2843message("driver_ewm component is included from ${CMAKE_CURRENT_LIST_FILE}.") 2844 2845if((CONFIG_DEVICE_ID STREQUAL MIMXRT1024xxxxx) AND CONFIG_USE_driver_common) 2846 2847target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 2848 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/ewm/fsl_ewm.c 2849) 2850 2851target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 2852 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/ewm/. 2853) 2854 2855else() 2856 2857message(SEND_ERROR "driver_ewm.MIMXRT1024 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 2858 2859endif() 2860 2861endif() 2862 2863 2864if (CONFIG_USE_driver_flexcan) 2865# Add set(CONFIG_USE_driver_flexcan true) in config.cmake to use this component 2866 2867message("driver_flexcan component is included from ${CMAKE_CURRENT_LIST_FILE}.") 2868 2869if((CONFIG_DEVICE_ID STREQUAL MIMXRT1024xxxxx) AND CONFIG_USE_driver_common) 2870 2871target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 2872 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/flexcan/fsl_flexcan.c 2873) 2874 2875target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 2876 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/flexcan/. 2877) 2878 2879else() 2880 2881message(SEND_ERROR "driver_flexcan.MIMXRT1024 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 2882 2883endif() 2884 2885endif() 2886 2887 2888if (CONFIG_USE_driver_flexio) 2889# Add set(CONFIG_USE_driver_flexio true) in config.cmake to use this component 2890 2891message("driver_flexio component is included from ${CMAKE_CURRENT_LIST_FILE}.") 2892 2893if((CONFIG_DEVICE_ID STREQUAL MIMXRT1024xxxxx) AND CONFIG_USE_driver_common) 2894 2895target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 2896 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/flexio/fsl_flexio.c 2897) 2898 2899target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 2900 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/flexio/. 2901) 2902 2903else() 2904 2905message(SEND_ERROR "driver_flexio.MIMXRT1024 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 2906 2907endif() 2908 2909endif() 2910 2911 2912if (CONFIG_USE_driver_flexio_camera) 2913# Add set(CONFIG_USE_driver_flexio_camera true) in config.cmake to use this component 2914 2915message("driver_flexio_camera component is included from ${CMAKE_CURRENT_LIST_FILE}.") 2916 2917if(CONFIG_USE_driver_flexio AND (CONFIG_DEVICE_ID STREQUAL MIMXRT1024xxxxx)) 2918 2919target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 2920 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/flexio/camera/fsl_flexio_camera.c 2921) 2922 2923target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 2924 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/flexio/camera/. 2925) 2926 2927else() 2928 2929message(SEND_ERROR "driver_flexio_camera.MIMXRT1024 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 2930 2931endif() 2932 2933endif() 2934 2935 2936if (CONFIG_USE_driver_flexio_i2c_master) 2937# Add set(CONFIG_USE_driver_flexio_i2c_master true) in config.cmake to use this component 2938 2939message("driver_flexio_i2c_master component is included from ${CMAKE_CURRENT_LIST_FILE}.") 2940 2941if(CONFIG_USE_driver_flexio) 2942 2943target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 2944 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/flexio/i2c/fsl_flexio_i2c_master.c 2945) 2946 2947target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 2948 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/flexio/i2c/. 2949) 2950 2951else() 2952 2953message(SEND_ERROR "driver_flexio_i2c_master.MIMXRT1024 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 2954 2955endif() 2956 2957endif() 2958 2959 2960if (CONFIG_USE_driver_flexio_i2s) 2961# Add set(CONFIG_USE_driver_flexio_i2s true) in config.cmake to use this component 2962 2963message("driver_flexio_i2s component is included from ${CMAKE_CURRENT_LIST_FILE}.") 2964 2965if(CONFIG_USE_driver_flexio) 2966 2967target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 2968 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/flexio/i2s/fsl_flexio_i2s.c 2969) 2970 2971target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 2972 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/flexio/i2s/. 2973) 2974 2975else() 2976 2977message(SEND_ERROR "driver_flexio_i2s.MIMXRT1024 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 2978 2979endif() 2980 2981endif() 2982 2983 2984if (CONFIG_USE_driver_flexio_mculcd) 2985# Add set(CONFIG_USE_driver_flexio_mculcd true) in config.cmake to use this component 2986 2987message("driver_flexio_mculcd component is included from ${CMAKE_CURRENT_LIST_FILE}.") 2988 2989if(CONFIG_USE_driver_flexio AND (CONFIG_DEVICE_ID STREQUAL MIMXRT1024xxxxx)) 2990 2991target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 2992 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/flexio/mculcd/fsl_flexio_mculcd.c 2993) 2994 2995target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 2996 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/flexio/mculcd/. 2997) 2998 2999else() 3000 3001message(SEND_ERROR "driver_flexio_mculcd.MIMXRT1024 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 3002 3003endif() 3004 3005endif() 3006 3007 3008if (CONFIG_USE_driver_flexio_spi) 3009# Add set(CONFIG_USE_driver_flexio_spi true) in config.cmake to use this component 3010 3011message("driver_flexio_spi component is included from ${CMAKE_CURRENT_LIST_FILE}.") 3012 3013if(CONFIG_USE_driver_flexio) 3014 3015target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 3016 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/flexio/spi/fsl_flexio_spi.c 3017) 3018 3019target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 3020 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/flexio/spi/. 3021) 3022 3023else() 3024 3025message(SEND_ERROR "driver_flexio_spi.MIMXRT1024 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 3026 3027endif() 3028 3029endif() 3030 3031 3032if (CONFIG_USE_driver_flexio_uart) 3033# Add set(CONFIG_USE_driver_flexio_uart true) in config.cmake to use this component 3034 3035message("driver_flexio_uart component is included from ${CMAKE_CURRENT_LIST_FILE}.") 3036 3037if(CONFIG_USE_driver_flexio) 3038 3039target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 3040 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/flexio/uart/fsl_flexio_uart.c 3041) 3042 3043target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 3044 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/flexio/uart/. 3045) 3046 3047else() 3048 3049message(SEND_ERROR "driver_flexio_uart.MIMXRT1024 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 3050 3051endif() 3052 3053endif() 3054 3055 3056if (CONFIG_USE_driver_flexram) 3057# Add set(CONFIG_USE_driver_flexram true) in config.cmake to use this component 3058 3059message("driver_flexram component is included from ${CMAKE_CURRENT_LIST_FILE}.") 3060 3061if((CONFIG_DEVICE_ID STREQUAL MIMXRT1024xxxxx) AND CONFIG_USE_driver_common AND CONFIG_USE_driver_soc_flexram_allocate) 3062 3063target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 3064 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/flexram/fsl_flexram.c 3065) 3066 3067target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 3068 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/flexram/. 3069) 3070 3071else() 3072 3073message(SEND_ERROR "driver_flexram.MIMXRT1024 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 3074 3075endif() 3076 3077endif() 3078 3079 3080if (CONFIG_USE_driver_flexspi) 3081# Add set(CONFIG_USE_driver_flexspi true) in config.cmake to use this component 3082 3083message("driver_flexspi component is included from ${CMAKE_CURRENT_LIST_FILE}.") 3084 3085if((CONFIG_DEVICE_ID STREQUAL MIMXRT1024xxxxx) AND CONFIG_USE_driver_common) 3086 3087target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 3088 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/flexspi/fsl_flexspi.c 3089) 3090 3091target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 3092 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/flexspi/. 3093) 3094 3095else() 3096 3097message(SEND_ERROR "driver_flexspi.MIMXRT1024 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 3098 3099endif() 3100 3101endif() 3102 3103 3104if (CONFIG_USE_driver_gpc_1) 3105# Add set(CONFIG_USE_driver_gpc_1 true) in config.cmake to use this component 3106 3107message("driver_gpc_1 component is included from ${CMAKE_CURRENT_LIST_FILE}.") 3108 3109if((CONFIG_DEVICE_ID STREQUAL MIMXRT1024xxxxx) AND CONFIG_USE_driver_common) 3110 3111target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 3112 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/gpc_1/fsl_gpc.c 3113) 3114 3115target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 3116 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/gpc_1/. 3117) 3118 3119else() 3120 3121message(SEND_ERROR "driver_gpc_1.MIMXRT1024 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 3122 3123endif() 3124 3125endif() 3126 3127 3128if (CONFIG_USE_driver_gpt) 3129# Add set(CONFIG_USE_driver_gpt true) in config.cmake to use this component 3130 3131message("driver_gpt component is included from ${CMAKE_CURRENT_LIST_FILE}.") 3132 3133if((CONFIG_DEVICE_ID STREQUAL MIMXRT1024xxxxx) AND CONFIG_USE_driver_common) 3134 3135target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 3136 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/gpt/fsl_gpt.c 3137) 3138 3139target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 3140 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/gpt/. 3141) 3142 3143else() 3144 3145message(SEND_ERROR "driver_gpt.MIMXRT1024 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 3146 3147endif() 3148 3149endif() 3150 3151 3152if (CONFIG_USE_driver_igpio) 3153# Add set(CONFIG_USE_driver_igpio true) in config.cmake to use this component 3154 3155message("driver_igpio component is included from ${CMAKE_CURRENT_LIST_FILE}.") 3156 3157if((CONFIG_DEVICE_ID STREQUAL MIMXRT1024xxxxx) AND CONFIG_USE_driver_common) 3158 3159target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 3160 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/igpio/fsl_gpio.c 3161) 3162 3163target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 3164 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/igpio/. 3165) 3166 3167else() 3168 3169message(SEND_ERROR "driver_igpio.MIMXRT1024 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 3170 3171endif() 3172 3173endif() 3174 3175 3176if (CONFIG_USE_driver_kpp) 3177# Add set(CONFIG_USE_driver_kpp true) in config.cmake to use this component 3178 3179message("driver_kpp component is included from ${CMAKE_CURRENT_LIST_FILE}.") 3180 3181if((CONFIG_DEVICE_ID STREQUAL MIMXRT1024xxxxx) AND CONFIG_USE_driver_common) 3182 3183target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 3184 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/kpp/fsl_kpp.c 3185) 3186 3187target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 3188 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/kpp/. 3189) 3190 3191else() 3192 3193message(SEND_ERROR "driver_kpp.MIMXRT1024 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 3194 3195endif() 3196 3197endif() 3198 3199 3200if (CONFIG_USE_driver_lpi2c) 3201# Add set(CONFIG_USE_driver_lpi2c true) in config.cmake to use this component 3202 3203message("driver_lpi2c component is included from ${CMAKE_CURRENT_LIST_FILE}.") 3204 3205if((CONFIG_DEVICE_ID STREQUAL MIMXRT1024xxxxx) AND CONFIG_USE_driver_common) 3206 3207target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 3208 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/lpi2c/fsl_lpi2c.c 3209) 3210 3211target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 3212 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/lpi2c/. 3213) 3214 3215else() 3216 3217message(SEND_ERROR "driver_lpi2c.MIMXRT1024 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 3218 3219endif() 3220 3221endif() 3222 3223 3224if (CONFIG_USE_driver_lpi2c_freertos) 3225# Add set(CONFIG_USE_driver_lpi2c_freertos true) in config.cmake to use this component 3226 3227message("driver_lpi2c_freertos component is included from ${CMAKE_CURRENT_LIST_FILE}.") 3228 3229if(CONFIG_USE_driver_lpi2c AND CONFIG_USE_middleware_freertos-kernel) 3230 3231target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 3232 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/lpi2c/fsl_lpi2c_freertos.c 3233) 3234 3235target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 3236 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/lpi2c/. 3237) 3238 3239else() 3240 3241message(SEND_ERROR "driver_lpi2c_freertos.MIMXRT1024 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 3242 3243endif() 3244 3245endif() 3246 3247 3248if (CONFIG_USE_driver_lpspi) 3249# Add set(CONFIG_USE_driver_lpspi true) in config.cmake to use this component 3250 3251message("driver_lpspi component is included from ${CMAKE_CURRENT_LIST_FILE}.") 3252 3253if((CONFIG_DEVICE_ID STREQUAL MIMXRT1024xxxxx) AND CONFIG_USE_driver_common) 3254 3255target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 3256 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/lpspi/fsl_lpspi.c 3257) 3258 3259target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 3260 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/lpspi/. 3261) 3262 3263else() 3264 3265message(SEND_ERROR "driver_lpspi.MIMXRT1024 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 3266 3267endif() 3268 3269endif() 3270 3271 3272if (CONFIG_USE_driver_lpspi_freertos) 3273# Add set(CONFIG_USE_driver_lpspi_freertos true) in config.cmake to use this component 3274 3275message("driver_lpspi_freertos component is included from ${CMAKE_CURRENT_LIST_FILE}.") 3276 3277if(CONFIG_USE_driver_lpspi AND CONFIG_USE_middleware_freertos-kernel) 3278 3279target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 3280 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/lpspi/fsl_lpspi_freertos.c 3281) 3282 3283target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 3284 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/lpspi/. 3285) 3286 3287else() 3288 3289message(SEND_ERROR "driver_lpspi_freertos.MIMXRT1024 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 3290 3291endif() 3292 3293endif() 3294 3295 3296if (CONFIG_USE_driver_lpuart) 3297# Add set(CONFIG_USE_driver_lpuart true) in config.cmake to use this component 3298 3299message("driver_lpuart component is included from ${CMAKE_CURRENT_LIST_FILE}.") 3300 3301if((CONFIG_DEVICE_ID STREQUAL MIMXRT1024xxxxx) AND CONFIG_USE_driver_common) 3302 3303target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 3304 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/lpuart/fsl_lpuart.c 3305) 3306 3307target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 3308 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/lpuart/. 3309) 3310 3311else() 3312 3313message(SEND_ERROR "driver_lpuart.MIMXRT1024 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 3314 3315endif() 3316 3317endif() 3318 3319 3320if (CONFIG_USE_driver_lpuart_freertos) 3321# Add set(CONFIG_USE_driver_lpuart_freertos true) in config.cmake to use this component 3322 3323message("driver_lpuart_freertos component is included from ${CMAKE_CURRENT_LIST_FILE}.") 3324 3325if(CONFIG_USE_driver_lpuart AND CONFIG_USE_middleware_freertos-kernel) 3326 3327target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 3328 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/lpuart/fsl_lpuart_freertos.c 3329) 3330 3331target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 3332 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/lpuart/. 3333) 3334 3335else() 3336 3337message(SEND_ERROR "driver_lpuart_freertos.MIMXRT1024 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 3338 3339endif() 3340 3341endif() 3342 3343 3344if (CONFIG_USE_driver_ocotp) 3345# Add set(CONFIG_USE_driver_ocotp true) in config.cmake to use this component 3346 3347message("driver_ocotp component is included from ${CMAKE_CURRENT_LIST_FILE}.") 3348 3349if((CONFIG_DEVICE_ID STREQUAL MIMXRT1024xxxxx) AND CONFIG_USE_driver_common) 3350 3351target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 3352 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/ocotp/fsl_ocotp.c 3353) 3354 3355target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 3356 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/ocotp/. 3357) 3358 3359else() 3360 3361message(SEND_ERROR "driver_ocotp.MIMXRT1024 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 3362 3363endif() 3364 3365endif() 3366 3367 3368if (CONFIG_USE_driver_pit) 3369# Add set(CONFIG_USE_driver_pit true) in config.cmake to use this component 3370 3371message("driver_pit component is included from ${CMAKE_CURRENT_LIST_FILE}.") 3372 3373if((CONFIG_DEVICE_ID STREQUAL MIMXRT1024xxxxx) AND CONFIG_USE_driver_common) 3374 3375target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 3376 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/pit/fsl_pit.c 3377) 3378 3379target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 3380 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/pit/. 3381) 3382 3383else() 3384 3385message(SEND_ERROR "driver_pit.MIMXRT1024 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 3386 3387endif() 3388 3389endif() 3390 3391 3392if (CONFIG_USE_driver_pmu) 3393# Add set(CONFIG_USE_driver_pmu true) in config.cmake to use this component 3394 3395message("driver_pmu component is included from ${CMAKE_CURRENT_LIST_FILE}.") 3396 3397if((CONFIG_DEVICE_ID STREQUAL MIMXRT1024xxxxx) AND CONFIG_USE_driver_common) 3398 3399target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 3400 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/pmu/fsl_pmu.c 3401) 3402 3403target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 3404 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/pmu/. 3405) 3406 3407else() 3408 3409message(SEND_ERROR "driver_pmu.MIMXRT1024 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 3410 3411endif() 3412 3413endif() 3414 3415 3416if (CONFIG_USE_driver_pwm) 3417# Add set(CONFIG_USE_driver_pwm true) in config.cmake to use this component 3418 3419message("driver_pwm component is included from ${CMAKE_CURRENT_LIST_FILE}.") 3420 3421if((CONFIG_DEVICE_ID STREQUAL MIMXRT1024xxxxx) AND CONFIG_USE_driver_common) 3422 3423target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 3424 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/pwm/fsl_pwm.c 3425) 3426 3427target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 3428 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/pwm/. 3429) 3430 3431else() 3432 3433message(SEND_ERROR "driver_pwm.MIMXRT1024 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 3434 3435endif() 3436 3437endif() 3438 3439 3440if (CONFIG_USE_driver_qtmr_1) 3441# Add set(CONFIG_USE_driver_qtmr_1 true) in config.cmake to use this component 3442 3443message("driver_qtmr_1 component is included from ${CMAKE_CURRENT_LIST_FILE}.") 3444 3445if((CONFIG_DEVICE_ID STREQUAL MIMXRT1024xxxxx) AND CONFIG_USE_driver_common) 3446 3447target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 3448 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/qtmr_1/fsl_qtmr.c 3449) 3450 3451target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 3452 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/qtmr_1/. 3453) 3454 3455else() 3456 3457message(SEND_ERROR "driver_qtmr_1.MIMXRT1024 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 3458 3459endif() 3460 3461endif() 3462 3463 3464if (CONFIG_USE_driver_rtwdog) 3465# Add set(CONFIG_USE_driver_rtwdog true) in config.cmake to use this component 3466 3467message("driver_rtwdog component is included from ${CMAKE_CURRENT_LIST_FILE}.") 3468 3469if((CONFIG_DEVICE_ID STREQUAL MIMXRT1024xxxxx) AND CONFIG_USE_driver_common) 3470 3471target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 3472 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/rtwdog/fsl_rtwdog.c 3473) 3474 3475target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 3476 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/rtwdog/. 3477) 3478 3479else() 3480 3481message(SEND_ERROR "driver_rtwdog.MIMXRT1024 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 3482 3483endif() 3484 3485endif() 3486 3487 3488if (CONFIG_USE_driver_sai) 3489# Add set(CONFIG_USE_driver_sai true) in config.cmake to use this component 3490 3491message("driver_sai component is included from ${CMAKE_CURRENT_LIST_FILE}.") 3492 3493if((CONFIG_DEVICE_ID STREQUAL MIMXRT1024xxxxx) AND CONFIG_USE_driver_common) 3494 3495target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 3496 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/sai/fsl_sai.c 3497) 3498 3499target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 3500 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/sai/. 3501) 3502 3503else() 3504 3505message(SEND_ERROR "driver_sai.MIMXRT1024 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 3506 3507endif() 3508 3509endif() 3510 3511 3512if (CONFIG_USE_driver_semc) 3513# Add set(CONFIG_USE_driver_semc true) in config.cmake to use this component 3514 3515message("driver_semc component is included from ${CMAKE_CURRENT_LIST_FILE}.") 3516 3517if((CONFIG_DEVICE_ID STREQUAL MIMXRT1024xxxxx) AND CONFIG_USE_driver_common) 3518 3519target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 3520 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/semc/fsl_semc.c 3521) 3522 3523target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 3524 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/semc/. 3525) 3526 3527else() 3528 3529message(SEND_ERROR "driver_semc.MIMXRT1024 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 3530 3531endif() 3532 3533endif() 3534 3535 3536if (CONFIG_USE_driver_snvs_hp) 3537# Add set(CONFIG_USE_driver_snvs_hp true) in config.cmake to use this component 3538 3539message("driver_snvs_hp component is included from ${CMAKE_CURRENT_LIST_FILE}.") 3540 3541if((CONFIG_DEVICE_ID STREQUAL MIMXRT1024xxxxx) AND CONFIG_USE_driver_common) 3542 3543target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 3544 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/snvs_hp/fsl_snvs_hp.c 3545) 3546 3547target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 3548 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/snvs_hp/. 3549) 3550 3551else() 3552 3553message(SEND_ERROR "driver_snvs_hp.MIMXRT1024 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 3554 3555endif() 3556 3557endif() 3558 3559 3560if (CONFIG_USE_driver_snvs_lp) 3561# Add set(CONFIG_USE_driver_snvs_lp true) in config.cmake to use this component 3562 3563message("driver_snvs_lp component is included from ${CMAKE_CURRENT_LIST_FILE}.") 3564 3565if((CONFIG_DEVICE_ID STREQUAL MIMXRT1024xxxxx) AND CONFIG_USE_driver_common) 3566 3567target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 3568 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/snvs_lp/fsl_snvs_lp.c 3569) 3570 3571target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 3572 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/snvs_lp/. 3573) 3574 3575else() 3576 3577message(SEND_ERROR "driver_snvs_lp.MIMXRT1024 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 3578 3579endif() 3580 3581endif() 3582 3583 3584if (CONFIG_USE_driver_spdif) 3585# Add set(CONFIG_USE_driver_spdif true) in config.cmake to use this component 3586 3587message("driver_spdif component is included from ${CMAKE_CURRENT_LIST_FILE}.") 3588 3589if((CONFIG_DEVICE_ID STREQUAL MIMXRT1024xxxxx) AND CONFIG_USE_driver_common) 3590 3591target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 3592 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/spdif/fsl_spdif.c 3593) 3594 3595target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 3596 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/spdif/. 3597) 3598 3599else() 3600 3601message(SEND_ERROR "driver_spdif.MIMXRT1024 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 3602 3603endif() 3604 3605endif() 3606 3607 3608if (CONFIG_USE_driver_src) 3609# Add set(CONFIG_USE_driver_src true) in config.cmake to use this component 3610 3611message("driver_src component is included from ${CMAKE_CURRENT_LIST_FILE}.") 3612 3613if((CONFIG_DEVICE_ID STREQUAL MIMXRT1024xxxxx) AND CONFIG_USE_driver_common) 3614 3615target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 3616 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/src/fsl_src.c 3617) 3618 3619target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 3620 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/src/. 3621) 3622 3623else() 3624 3625message(SEND_ERROR "driver_src.MIMXRT1024 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 3626 3627endif() 3628 3629endif() 3630 3631 3632if (CONFIG_USE_driver_tempmon) 3633# Add set(CONFIG_USE_driver_tempmon true) in config.cmake to use this component 3634 3635message("driver_tempmon component is included from ${CMAKE_CURRENT_LIST_FILE}.") 3636 3637if((CONFIG_DEVICE_ID STREQUAL MIMXRT1024xxxxx) AND CONFIG_USE_driver_common) 3638 3639target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 3640 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/tempmon/fsl_tempmon.c 3641) 3642 3643target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 3644 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/tempmon/. 3645) 3646 3647else() 3648 3649message(SEND_ERROR "driver_tempmon.MIMXRT1024 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 3650 3651endif() 3652 3653endif() 3654 3655 3656if (CONFIG_USE_driver_trng) 3657# Add set(CONFIG_USE_driver_trng true) in config.cmake to use this component 3658 3659message("driver_trng component is included from ${CMAKE_CURRENT_LIST_FILE}.") 3660 3661if((CONFIG_DEVICE_ID STREQUAL MIMXRT1024xxxxx) AND CONFIG_USE_driver_common) 3662 3663target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 3664 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/trng/fsl_trng.c 3665) 3666 3667target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 3668 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/trng/. 3669) 3670 3671else() 3672 3673message(SEND_ERROR "driver_trng.MIMXRT1024 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 3674 3675endif() 3676 3677endif() 3678 3679 3680if (CONFIG_USE_driver_usdhc) 3681# Add set(CONFIG_USE_driver_usdhc true) in config.cmake to use this component 3682 3683message("driver_usdhc component is included from ${CMAKE_CURRENT_LIST_FILE}.") 3684 3685if((CONFIG_DEVICE_ID STREQUAL MIMXRT1024xxxxx) AND CONFIG_USE_driver_common) 3686 3687target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 3688 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/usdhc/fsl_usdhc.c 3689) 3690 3691target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 3692 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/usdhc/. 3693) 3694 3695else() 3696 3697message(SEND_ERROR "driver_usdhc.MIMXRT1024 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 3698 3699endif() 3700 3701endif() 3702 3703 3704if (CONFIG_USE_driver_wdog01) 3705# Add set(CONFIG_USE_driver_wdog01 true) in config.cmake to use this component 3706 3707message("driver_wdog01 component is included from ${CMAKE_CURRENT_LIST_FILE}.") 3708 3709if((CONFIG_DEVICE_ID STREQUAL MIMXRT1024xxxxx) AND CONFIG_USE_driver_common) 3710 3711target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 3712 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/wdog01/fsl_wdog.c 3713) 3714 3715target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 3716 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/wdog01/. 3717) 3718 3719else() 3720 3721message(SEND_ERROR "driver_wdog01.MIMXRT1024 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 3722 3723endif() 3724 3725endif() 3726 3727 3728if (CONFIG_USE_driver_xbara) 3729# Add set(CONFIG_USE_driver_xbara true) in config.cmake to use this component 3730 3731message("driver_xbara component is included from ${CMAKE_CURRENT_LIST_FILE}.") 3732 3733if((CONFIG_DEVICE_ID STREQUAL MIMXRT1024xxxxx) AND CONFIG_USE_driver_common) 3734 3735target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 3736 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/xbara/fsl_xbara.c 3737) 3738 3739target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 3740 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/xbara/. 3741) 3742 3743else() 3744 3745message(SEND_ERROR "driver_xbara.MIMXRT1024 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 3746 3747endif() 3748 3749endif() 3750 3751 3752if (CONFIG_USE_driver_xbarb) 3753# Add set(CONFIG_USE_driver_xbarb true) in config.cmake to use this component 3754 3755message("driver_xbarb component is included from ${CMAKE_CURRENT_LIST_FILE}.") 3756 3757if((CONFIG_DEVICE_ID STREQUAL MIMXRT1024xxxxx) AND CONFIG_USE_driver_common) 3758 3759target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 3760 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/xbarb/fsl_xbarb.c 3761) 3762 3763target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 3764 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/xbarb/. 3765) 3766 3767else() 3768 3769message(SEND_ERROR "driver_xbarb.MIMXRT1024 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 3770 3771endif() 3772 3773endif() 3774 3775 3776if (CONFIG_USE_driver_romapi) 3777# Add set(CONFIG_USE_driver_romapi true) in config.cmake to use this component 3778 3779message("driver_romapi component is included from ${CMAKE_CURRENT_LIST_FILE}.") 3780 3781if(CONFIG_USE_driver_common) 3782 3783target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 3784 ${CMAKE_CURRENT_LIST_DIR}/drivers/fsl_romapi.c 3785) 3786 3787target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 3788 ${CMAKE_CURRENT_LIST_DIR}/drivers/. 3789) 3790 3791else() 3792 3793message(SEND_ERROR "driver_romapi.MIMXRT1024 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 3794 3795endif() 3796 3797endif() 3798 3799 3800if (CONFIG_USE_driver_nic301) 3801# Add set(CONFIG_USE_driver_nic301 true) in config.cmake to use this component 3802 3803message("driver_nic301 component is included from ${CMAKE_CURRENT_LIST_FILE}.") 3804 3805if(CONFIG_USE_driver_common) 3806 3807target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 3808 ${CMAKE_CURRENT_LIST_DIR}/drivers/. 3809) 3810 3811else() 3812 3813message(SEND_ERROR "driver_nic301.MIMXRT1024 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 3814 3815endif() 3816 3817endif() 3818 3819 3820if (CONFIG_USE_driver_soc_flexram_allocate) 3821# Add set(CONFIG_USE_driver_soc_flexram_allocate true) in config.cmake to use this component 3822 3823message("driver_soc_flexram_allocate component is included from ${CMAKE_CURRENT_LIST_FILE}.") 3824 3825if(CONFIG_USE_driver_common) 3826 3827target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 3828 ${CMAKE_CURRENT_LIST_DIR}/drivers/fsl_flexram_allocate.c 3829) 3830 3831target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 3832 ${CMAKE_CURRENT_LIST_DIR}/drivers/. 3833) 3834 3835else() 3836 3837message(SEND_ERROR "driver_soc_flexram_allocate.MIMXRT1024 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 3838 3839endif() 3840 3841endif() 3842 3843 3844if (CONFIG_USE_driver_xip_device) 3845# Add set(CONFIG_USE_driver_xip_device true) in config.cmake to use this component 3846 3847message("driver_xip_device component is included from ${CMAKE_CURRENT_LIST_FILE}.") 3848 3849if(CONFIG_USE_driver_common) 3850 3851target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 3852 ${CMAKE_CURRENT_LIST_DIR}/xip/fsl_flexspi_nor_boot.c 3853) 3854 3855target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 3856 ${CMAKE_CURRENT_LIST_DIR}/xip/. 3857) 3858 3859else() 3860 3861message(SEND_ERROR "driver_xip_device.MIMXRT1024 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 3862 3863endif() 3864 3865endif() 3866 3867 3868if (CONFIG_USE_driver_rtt) 3869# Add set(CONFIG_USE_driver_rtt true) in config.cmake to use this component 3870 3871message("driver_rtt component is included from ${CMAKE_CURRENT_LIST_FILE}.") 3872 3873if(CONFIG_USE_driver_rtt_template) 3874 3875target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 3876 ${CMAKE_CURRENT_LIST_DIR}/../../components/rtt/RTT/SEGGER_RTT.c 3877 ${CMAKE_CURRENT_LIST_DIR}/../../components/rtt/RTT/SEGGER_RTT_printf.c 3878) 3879 3880if(CONFIG_CORE STREQUAL cm7f) 3881 target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 3882 ${CMAKE_CURRENT_LIST_DIR}/../../components/rtt/RTT/SEGGER_RTT_ASM_ARMv7M.S 3883 ) 3884endif() 3885 3886if((CONFIG_TOOLCHAIN STREQUAL armgcc OR CONFIG_TOOLCHAIN STREQUAL mcux)) 3887 target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 3888 ${CMAKE_CURRENT_LIST_DIR}/../../components/rtt/Syscalls/SEGGER_RTT_Syscalls_GCC.c 3889 ) 3890endif() 3891 3892target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 3893 ${CMAKE_CURRENT_LIST_DIR}/../../components/rtt/RTT 3894) 3895 3896else() 3897 3898message(SEND_ERROR "driver_rtt.MIMXRT1024 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 3899 3900endif() 3901 3902endif() 3903 3904