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