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