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_utility_incbin) 23# Add set(CONFIG_USE_utility_incbin true) in config.cmake to use this component 24 25message("utility_incbin 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_incbin.S 30 ) 31endif() 32 33 34endif() 35 36 37if (CONFIG_USE_utilities_misc_utilities) 38# Add set(CONFIG_USE_utilities_misc_utilities true) in config.cmake to use this component 39 40message("utilities_misc_utilities component is included from ${CMAKE_CURRENT_LIST_FILE}.") 41 42if(CONFIG_TOOLCHAIN STREQUAL armgcc) 43 target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 44 ${CMAKE_CURRENT_LIST_DIR}/../../utilities/misc_utilities/fsl_sbrk.c 45 ${CMAKE_CURRENT_LIST_DIR}/../../utilities/misc_utilities/fsl_syscall_stub.c 46 ) 47endif() 48 49if((CONFIG_CORE STREQUAL cm4f OR CONFIG_CORE STREQUAL cm7f) AND (CONFIG_TOOLCHAIN STREQUAL armgcc OR CONFIG_TOOLCHAIN STREQUAL mcux)) 50 target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 51 ${CMAKE_CURRENT_LIST_DIR}/../../utilities/misc_utilities/fsl_memcpy.S 52 ) 53endif() 54 55 56endif() 57 58 59if (CONFIG_USE_driver_nand_flash-common) 60# Add set(CONFIG_USE_driver_nand_flash-common true) in config.cmake to use this component 61 62message("driver_nand_flash-common component is included from ${CMAKE_CURRENT_LIST_FILE}.") 63 64target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 65 ${CMAKE_CURRENT_LIST_DIR}/../../components/flash/nand/. 66) 67 68 69endif() 70 71 72if (CONFIG_USE_driver_nor_flash-common) 73# Add set(CONFIG_USE_driver_nor_flash-common true) in config.cmake to use this component 74 75message("driver_nor_flash-common component is included from ${CMAKE_CURRENT_LIST_FILE}.") 76 77target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 78 ${CMAKE_CURRENT_LIST_DIR}/../../components/flash/nor/. 79) 80 81 82endif() 83 84 85if (CONFIG_USE_component_mflash_common) 86# Add set(CONFIG_USE_component_mflash_common true) in config.cmake to use this component 87 88message("component_mflash_common component is included from ${CMAKE_CURRENT_LIST_FILE}.") 89 90target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 91 ${CMAKE_CURRENT_LIST_DIR}/../../components/flash/mflash/. 92) 93 94 95endif() 96 97 98if (CONFIG_USE_driver_mx25r_flash) 99# Add set(CONFIG_USE_driver_mx25r_flash true) in config.cmake to use this component 100 101message("driver_mx25r_flash component is included from ${CMAKE_CURRENT_LIST_FILE}.") 102 103target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 104 ${CMAKE_CURRENT_LIST_DIR}/../../components/mx25r_flash/mx25r_flash.c 105) 106 107target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 108 ${CMAKE_CURRENT_LIST_DIR}/../../components/mx25r_flash/. 109) 110 111 112endif() 113 114 115if (CONFIG_USE_driver_pf1550) 116# Add set(CONFIG_USE_driver_pf1550 true) in config.cmake to use this component 117 118message("driver_pf1550 component is included from ${CMAKE_CURRENT_LIST_FILE}.") 119 120target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 121 ${CMAKE_CURRENT_LIST_DIR}/../../components/pf1550/fsl_pf1550.c 122 ${CMAKE_CURRENT_LIST_DIR}/../../components/pf1550/fsl_pf1550_charger.c 123) 124 125target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 126 ${CMAKE_CURRENT_LIST_DIR}/../../components/pf1550/. 127) 128 129 130endif() 131 132 133if (CONFIG_USE_driver_pf3000) 134# Add set(CONFIG_USE_driver_pf3000 true) in config.cmake to use this component 135 136message("driver_pf3000 component is included from ${CMAKE_CURRENT_LIST_FILE}.") 137 138target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 139 ${CMAKE_CURRENT_LIST_DIR}/../../components/pf3000/fsl_pf3000.c 140) 141 142target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 143 ${CMAKE_CURRENT_LIST_DIR}/../../components/pf3000/. 144) 145 146 147endif() 148 149 150if (CONFIG_USE_driver_pf5020) 151# Add set(CONFIG_USE_driver_pf5020 true) in config.cmake to use this component 152 153message("driver_pf5020 component is included from ${CMAKE_CURRENT_LIST_FILE}.") 154 155target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 156 ${CMAKE_CURRENT_LIST_DIR}/../../components/pf5020/fsl_pf5020.c 157) 158 159target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 160 ${CMAKE_CURRENT_LIST_DIR}/../../components/pf5020/. 161) 162 163 164endif() 165 166 167if (CONFIG_USE_driver_phy-common) 168# Add set(CONFIG_USE_driver_phy-common true) in config.cmake to use this component 169 170message("driver_phy-common component is included from ${CMAKE_CURRENT_LIST_FILE}.") 171 172target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 173 ${CMAKE_CURRENT_LIST_DIR}/../../components/phy/. 174) 175 176 177endif() 178 179 180if (CONFIG_USE_component_wifi_bt_module_tx_pwr_limits) 181# Add set(CONFIG_USE_component_wifi_bt_module_tx_pwr_limits true) in config.cmake to use this component 182 183message("component_wifi_bt_module_tx_pwr_limits component is included from ${CMAKE_CURRENT_LIST_FILE}.") 184 185target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 186 ${CMAKE_CURRENT_LIST_DIR}/../../components/wifi_bt_module/AzureWave/tx_pwr_limits 187 ${CMAKE_CURRENT_LIST_DIR}/../../components/wifi_bt_module/Murata/tx_pwr_limits 188) 189 190 191endif() 192 193 194if (CONFIG_USE_DEVICES_Project_Template_MIMXRT1176) 195# Add set(CONFIG_USE_DEVICES_Project_Template_MIMXRT1176 true) in config.cmake to use this component 196 197message("DEVICES_Project_Template_MIMXRT1176 component is included from ${CMAKE_CURRENT_LIST_FILE}.") 198 199if((CONFIG_DEVICE_ID STREQUAL MIMXRT1176xxxxx) AND CONFIG_USE_device_MIMXRT1176_startup AND CONFIG_USE_driver_common AND CONFIG_USE_driver_clock AND CONFIG_USE_driver_igpio AND CONFIG_USE_driver_iomuxc AND CONFIG_USE_driver_lpuart AND CONFIG_USE_component_lpuart_adapter AND CONFIG_USE_driver_pmu_1 AND CONFIG_USE_driver_dcdc_soc AND CONFIG_USE_driver_nic301 AND ((CONFIG_USE_utility_debug_console AND CONFIG_USE_utility_assert AND CONFIG_USE_component_serial_manager) OR (CONFIG_USE_utility_debug_console_lite AND CONFIG_USE_utility_assert_lite))) 200 201add_config_file(${CMAKE_CURRENT_LIST_DIR}/project_template/board.h "" DEVICES_Project_Template_MIMXRT1176.MIMXRT1176) 202add_config_file(${CMAKE_CURRENT_LIST_DIR}/project_template/board.c "" DEVICES_Project_Template_MIMXRT1176.MIMXRT1176) 203add_config_file(${CMAKE_CURRENT_LIST_DIR}/project_template/clock_config.h "" DEVICES_Project_Template_MIMXRT1176.MIMXRT1176) 204add_config_file(${CMAKE_CURRENT_LIST_DIR}/project_template/clock_config.c "" DEVICES_Project_Template_MIMXRT1176.MIMXRT1176) 205add_config_file(${CMAKE_CURRENT_LIST_DIR}/project_template/pin_mux.h "" DEVICES_Project_Template_MIMXRT1176.MIMXRT1176) 206add_config_file(${CMAKE_CURRENT_LIST_DIR}/project_template/pin_mux.c "" DEVICES_Project_Template_MIMXRT1176.MIMXRT1176) 207add_config_file(${CMAKE_CURRENT_LIST_DIR}/project_template/peripherals.h "" DEVICES_Project_Template_MIMXRT1176.MIMXRT1176) 208add_config_file(${CMAKE_CURRENT_LIST_DIR}/project_template/peripherals.c "" DEVICES_Project_Template_MIMXRT1176.MIMXRT1176) 209 210target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 211 ${CMAKE_CURRENT_LIST_DIR}/project_template/. 212) 213 214else() 215 216message(SEND_ERROR "DEVICES_Project_Template_MIMXRT1176.MIMXRT1176 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 217 218endif() 219 220endif() 221 222 223if (CONFIG_USE_device_MIMXRT1176_startup) 224# Add set(CONFIG_USE_device_MIMXRT1176_startup true) in config.cmake to use this component 225 226message("device_MIMXRT1176_startup component is included from ${CMAKE_CURRENT_LIST_FILE}.") 227 228if(CONFIG_USE_device_MIMXRT1176_system) 229 230if(CONFIG_TOOLCHAIN STREQUAL armgcc AND CONFIG_CORE STREQUAL cm7f) 231 target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 232 ${CMAKE_CURRENT_LIST_DIR}/./gcc/startup_MIMXRT1176_cm7.S 233 ) 234endif() 235 236if(CONFIG_TOOLCHAIN STREQUAL armgcc AND CONFIG_CORE STREQUAL cm4f) 237 target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 238 ${CMAKE_CURRENT_LIST_DIR}/./gcc/startup_MIMXRT1176_cm4.S 239 ) 240endif() 241 242if(CONFIG_TOOLCHAIN STREQUAL mcux AND CONFIG_CORE STREQUAL cm7f) 243 target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 244 ${CMAKE_CURRENT_LIST_DIR}/./mcuxpresso/startup_mimxrt1176_cm7.c 245 ${CMAKE_CURRENT_LIST_DIR}/./mcuxpresso/startup_mimxrt1176_cm7.cpp 246 ) 247endif() 248 249if(CONFIG_TOOLCHAIN STREQUAL mcux AND CONFIG_CORE STREQUAL cm4f) 250 target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 251 ${CMAKE_CURRENT_LIST_DIR}/./mcuxpresso/startup_mimxrt1176_cm4.c 252 ${CMAKE_CURRENT_LIST_DIR}/./mcuxpresso/startup_mimxrt1176_cm4.cpp 253 ) 254endif() 255 256if(CONFIG_TOOLCHAIN STREQUAL mcux) 257 target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 258 ${CMAKE_CURRENT_LIST_DIR}/./mcuxpresso/boot_multicore_slave.c 259 ) 260endif() 261 262if(CONFIG_TOOLCHAIN STREQUAL mcux) 263target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 264 ${CMAKE_CURRENT_LIST_DIR}/./mcuxpresso 265) 266endif() 267 268else() 269 270message(SEND_ERROR "device_MIMXRT1176_startup.MIMXRT1176 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 271 272endif() 273 274endif() 275 276 277if (CONFIG_USE_device_MIMXRT1176_system) 278# Add set(CONFIG_USE_device_MIMXRT1176_system true) in config.cmake to use this component 279 280message("device_MIMXRT1176_system component is included from ${CMAKE_CURRENT_LIST_FILE}.") 281 282if(CONFIG_USE_device_MIMXRT1176_CMSIS) 283 284if(CONFIG_CORE STREQUAL cm4f) 285 target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 286 ${CMAKE_CURRENT_LIST_DIR}/./system_MIMXRT1176_cm4.c 287 ) 288endif() 289 290if(CONFIG_CORE STREQUAL cm7f) 291 target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 292 ${CMAKE_CURRENT_LIST_DIR}/./system_MIMXRT1176_cm7.c 293 ) 294endif() 295 296if(CONFIG_CORE STREQUAL cm4f) 297target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 298 ${CMAKE_CURRENT_LIST_DIR}/./. 299) 300endif() 301 302if(CONFIG_CORE STREQUAL cm7f) 303target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 304 ${CMAKE_CURRENT_LIST_DIR}/./. 305) 306endif() 307 308else() 309 310message(SEND_ERROR "device_MIMXRT1176_system.MIMXRT1176 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 311 312endif() 313 314endif() 315 316 317if (CONFIG_USE_device_MIMXRT1176_CMSIS) 318# Add set(CONFIG_USE_device_MIMXRT1176_CMSIS true) in config.cmake to use this component 319 320message("device_MIMXRT1176_CMSIS component is included from ${CMAKE_CURRENT_LIST_FILE}.") 321 322if(CONFIG_USE_CMSIS_Include_core_cm) 323 324target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 325 ${CMAKE_CURRENT_LIST_DIR}/./. 326) 327 328if(CONFIG_CORE STREQUAL cm4f) 329target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 330 ${CMAKE_CURRENT_LIST_DIR}/./. 331) 332endif() 333 334if(CONFIG_CORE STREQUAL cm7f) 335target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 336 ${CMAKE_CURRENT_LIST_DIR}/./. 337) 338endif() 339 340else() 341 342message(SEND_ERROR "device_MIMXRT1176_CMSIS.MIMXRT1176 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 343 344endif() 345 346endif() 347 348 349if (CONFIG_USE_RTE_Device) 350# Add set(CONFIG_USE_RTE_Device true) in config.cmake to use this component 351 352message("RTE_Device component is included from ${CMAKE_CURRENT_LIST_FILE}.") 353 354if(CONFIG_USE_driver_edma AND (CONFIG_DEVICE_ID STREQUAL MIMXRT1176xxxxx)) 355 356add_config_file(${CMAKE_CURRENT_LIST_DIR}/template/RTE_Device.h "" RTE_Device.MIMXRT1176) 357 358target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 359 ${CMAKE_CURRENT_LIST_DIR}/template/. 360) 361 362else() 363 364message(SEND_ERROR "RTE_Device.MIMXRT1176 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 365 366endif() 367 368endif() 369 370 371if (CONFIG_USE_driver_sai_edma) 372# Add set(CONFIG_USE_driver_sai_edma true) in config.cmake to use this component 373 374message("driver_sai_edma component is included from ${CMAKE_CURRENT_LIST_FILE}.") 375 376if(CONFIG_USE_driver_edma AND CONFIG_USE_driver_sai AND (CONFIG_DEVICE_ID STREQUAL MIMXRT1176xxxxx)) 377 378target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 379 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/sai/fsl_sai_edma.c 380) 381 382target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 383 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/sai/. 384) 385 386else() 387 388message(SEND_ERROR "driver_sai_edma.MIMXRT1176 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 389 390endif() 391 392endif() 393 394 395if (CONFIG_USE_driver_lpi2c_edma) 396# Add set(CONFIG_USE_driver_lpi2c_edma true) in config.cmake to use this component 397 398message("driver_lpi2c_edma component is included from ${CMAKE_CURRENT_LIST_FILE}.") 399 400if(CONFIG_USE_driver_edma AND CONFIG_USE_driver_lpi2c AND (CONFIG_DEVICE_ID STREQUAL MIMXRT1176xxxxx)) 401 402target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 403 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/lpi2c/fsl_lpi2c_edma.c 404) 405 406target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 407 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/lpi2c/. 408) 409 410else() 411 412message(SEND_ERROR "driver_lpi2c_edma.MIMXRT1176 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 413 414endif() 415 416endif() 417 418 419if (CONFIG_USE_driver_cmsis_lpi2c) 420# Add set(CONFIG_USE_driver_cmsis_lpi2c true) in config.cmake to use this component 421 422message("driver_cmsis_lpi2c component is included from ${CMAKE_CURRENT_LIST_FILE}.") 423 424if(CONFIG_USE_driver_lpi2c_edma AND (CONFIG_DEVICE_ID STREQUAL MIMXRT1176xxxxx) AND CONFIG_USE_driver_lpi2c AND CONFIG_USE_CMSIS_Driver_Include_I2C AND CONFIG_USE_RTE_Device) 425 426target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 427 ${CMAKE_CURRENT_LIST_DIR}/../../cmsis_drivers/lpi2c/fsl_lpi2c_cmsis.c 428) 429 430target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 431 ${CMAKE_CURRENT_LIST_DIR}/../../cmsis_drivers/lpi2c/. 432) 433 434else() 435 436message(SEND_ERROR "driver_cmsis_lpi2c.MIMXRT1176 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 437 438endif() 439 440endif() 441 442 443if (CONFIG_USE_driver_lpspi_edma) 444# Add set(CONFIG_USE_driver_lpspi_edma true) in config.cmake to use this component 445 446message("driver_lpspi_edma component is included from ${CMAKE_CURRENT_LIST_FILE}.") 447 448if(CONFIG_USE_driver_edma AND CONFIG_USE_driver_lpspi AND (CONFIG_DEVICE_ID STREQUAL MIMXRT1176xxxxx)) 449 450target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 451 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/lpspi/fsl_lpspi_edma.c 452) 453 454target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 455 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/lpspi/. 456) 457 458else() 459 460message(SEND_ERROR "driver_lpspi_edma.MIMXRT1176 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 461 462endif() 463 464endif() 465 466 467if (CONFIG_USE_driver_cmsis_lpspi) 468# Add set(CONFIG_USE_driver_cmsis_lpspi true) in config.cmake to use this component 469 470message("driver_cmsis_lpspi component is included from ${CMAKE_CURRENT_LIST_FILE}.") 471 472if(CONFIG_USE_driver_lpspi_edma AND (CONFIG_DEVICE_ID STREQUAL MIMXRT1176xxxxx) AND CONFIG_USE_driver_lpspi AND CONFIG_USE_CMSIS_Driver_Include_SPI AND CONFIG_USE_RTE_Device) 473 474target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 475 ${CMAKE_CURRENT_LIST_DIR}/../../cmsis_drivers/lpspi/fsl_lpspi_cmsis.c 476) 477 478target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 479 ${CMAKE_CURRENT_LIST_DIR}/../../cmsis_drivers/lpspi/. 480) 481 482else() 483 484message(SEND_ERROR "driver_cmsis_lpspi.MIMXRT1176 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 485 486endif() 487 488endif() 489 490 491if (CONFIG_USE_driver_lpuart_edma) 492# Add set(CONFIG_USE_driver_lpuart_edma true) in config.cmake to use this component 493 494message("driver_lpuart_edma component is included from ${CMAKE_CURRENT_LIST_FILE}.") 495 496if(CONFIG_USE_driver_edma AND CONFIG_USE_driver_lpuart AND (CONFIG_DEVICE_ID STREQUAL MIMXRT1176xxxxx)) 497 498target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 499 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/lpuart/fsl_lpuart_edma.c 500) 501 502target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 503 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/lpuart/. 504) 505 506else() 507 508message(SEND_ERROR "driver_lpuart_edma.MIMXRT1176 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 509 510endif() 511 512endif() 513 514 515if (CONFIG_USE_driver_cmsis_lpuart) 516# Add set(CONFIG_USE_driver_cmsis_lpuart true) in config.cmake to use this component 517 518message("driver_cmsis_lpuart component is included from ${CMAKE_CURRENT_LIST_FILE}.") 519 520if(CONFIG_USE_driver_lpuart_edma AND (CONFIG_DEVICE_ID STREQUAL MIMXRT1176xxxxx) AND CONFIG_USE_driver_lpuart AND CONFIG_USE_CMSIS_Driver_Include_USART AND CONFIG_USE_RTE_Device) 521 522target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 523 ${CMAKE_CURRENT_LIST_DIR}/../../cmsis_drivers/lpuart/fsl_lpuart_cmsis.c 524) 525 526target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 527 ${CMAKE_CURRENT_LIST_DIR}/../../cmsis_drivers/lpuart/. 528) 529 530else() 531 532message(SEND_ERROR "driver_cmsis_lpuart.MIMXRT1176 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 533 534endif() 535 536endif() 537 538 539if (CONFIG_USE_driver_cache_armv7_m7) 540# Add set(CONFIG_USE_driver_cache_armv7_m7 true) in config.cmake to use this component 541 542message("driver_cache_armv7_m7 component is included from ${CMAKE_CURRENT_LIST_FILE}.") 543 544if((CONFIG_CORE STREQUAL cm7f) AND CONFIG_USE_driver_common) 545 546target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 547 ${CMAKE_CURRENT_LIST_DIR}/drivers/cm7/fsl_cache.c 548) 549 550target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 551 ${CMAKE_CURRENT_LIST_DIR}/drivers/cm7/. 552) 553 554else() 555 556message(SEND_ERROR "driver_cache_armv7_m7.MIMXRT1176 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 557 558endif() 559 560endif() 561 562 563if (CONFIG_USE_driver_cache_lmem) 564# Add set(CONFIG_USE_driver_cache_lmem true) in config.cmake to use this component 565 566message("driver_cache_lmem component is included from ${CMAKE_CURRENT_LIST_FILE}.") 567 568if((CONFIG_CORE STREQUAL cm4f) AND (CONFIG_DEVICE_ID STREQUAL MIMXRT1176xxxxx) AND CONFIG_USE_driver_common) 569 570target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 571 ${CMAKE_CURRENT_LIST_DIR}/drivers/cm4/fsl_cache.c 572) 573 574target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 575 ${CMAKE_CURRENT_LIST_DIR}/drivers/cm4/. 576) 577 578else() 579 580message(SEND_ERROR "driver_cache_lmem.MIMXRT1176 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 581 582endif() 583 584endif() 585 586 587if (CONFIG_USE_component_serial_manager_uart) 588# Add set(CONFIG_USE_component_serial_manager_uart true) in config.cmake to use this component 589 590message("component_serial_manager_uart component is included from ${CMAKE_CURRENT_LIST_FILE}.") 591 592if(CONFIG_USE_component_lpuart_adapter AND CONFIG_USE_component_serial_manager AND (CONFIG_USE_driver_lpuart)) 593 594target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 595 ${CMAKE_CURRENT_LIST_DIR}/../../components/serial_manager/fsl_component_serial_port_uart.c 596) 597 598target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 599 ${CMAKE_CURRENT_LIST_DIR}/../../components/serial_manager/. 600) 601 602if(CONFIG_USE_COMPONENT_CONFIGURATION) 603 message("===>Import configuration from ${CMAKE_CURRENT_LIST_FILE}") 604 605 target_compile_definitions(${MCUX_SDK_PROJECT_NAME} PUBLIC 606 -DSERIAL_PORT_TYPE_UART=1 607 ) 608 609endif() 610 611else() 612 613message(SEND_ERROR "component_serial_manager_uart.MIMXRT1176 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 614 615endif() 616 617endif() 618 619 620if (CONFIG_USE_utility_debug_console_lite) 621# Add set(CONFIG_USE_utility_debug_console_lite true) in config.cmake to use this component 622 623message("utility_debug_console_lite component is included from ${CMAKE_CURRENT_LIST_FILE}.") 624 625if(CONFIG_USE_component_lpuart_adapter AND (CONFIG_DEVICE_ID STREQUAL MIMXRT1176xxxxx) AND CONFIG_USE_driver_common) 626 627target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 628 ${CMAKE_CURRENT_LIST_DIR}/../../utilities/str/fsl_str.c 629 ${CMAKE_CURRENT_LIST_DIR}/../../utilities/debug_console_lite/fsl_debug_console.c 630) 631 632target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 633 ${CMAKE_CURRENT_LIST_DIR}/../../utilities/str 634 ${CMAKE_CURRENT_LIST_DIR}/../../utilities/debug_console_lite 635) 636 637else() 638 639message(SEND_ERROR "utility_debug_console_lite.MIMXRT1176 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 640 641endif() 642 643endif() 644 645 646if (CONFIG_USE_driver_csi) 647# Add set(CONFIG_USE_driver_csi true) in config.cmake to use this component 648 649message("driver_csi component is included from ${CMAKE_CURRENT_LIST_FILE}.") 650 651if(CONFIG_USE_driver_memory AND (CONFIG_DEVICE_ID STREQUAL MIMXRT1176xxxxx) AND CONFIG_USE_driver_common) 652 653target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 654 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/csi/fsl_csi.c 655) 656 657target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 658 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/csi/. 659) 660 661else() 662 663message(SEND_ERROR "driver_csi.MIMXRT1176 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 664 665endif() 666 667endif() 668 669 670if (CONFIG_USE_driver_lcdifv2) 671# Add set(CONFIG_USE_driver_lcdifv2 true) in config.cmake to use this component 672 673message("driver_lcdifv2 component is included from ${CMAKE_CURRENT_LIST_FILE}.") 674 675if(CONFIG_USE_driver_memory AND (CONFIG_DEVICE_ID STREQUAL MIMXRT1176xxxxx) AND CONFIG_USE_driver_common) 676 677target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 678 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/lcdifv2/fsl_lcdifv2.c 679) 680 681target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 682 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/lcdifv2/. 683) 684 685else() 686 687message(SEND_ERROR "driver_lcdifv2.MIMXRT1176 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 688 689endif() 690 691endif() 692 693 694if (CONFIG_USE_driver_pxp) 695# Add set(CONFIG_USE_driver_pxp true) in config.cmake to use this component 696 697message("driver_pxp component is included from ${CMAKE_CURRENT_LIST_FILE}.") 698 699if(CONFIG_USE_driver_memory AND (CONFIG_DEVICE_ID STREQUAL MIMXRT1176xxxxx) AND CONFIG_USE_driver_common) 700 701target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 702 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/pxp/fsl_pxp.c 703) 704 705target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 706 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/pxp/. 707) 708 709else() 710 711message(SEND_ERROR "driver_pxp.MIMXRT1176 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 712 713endif() 714 715endif() 716 717 718if (CONFIG_USE_driver_elcdif) 719# Add set(CONFIG_USE_driver_elcdif true) in config.cmake to use this component 720 721message("driver_elcdif component is included from ${CMAKE_CURRENT_LIST_FILE}.") 722 723if(CONFIG_USE_driver_memory AND (CONFIG_DEVICE_ID STREQUAL MIMXRT1176xxxxx) AND CONFIG_USE_driver_common) 724 725target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 726 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/elcdif/fsl_elcdif.c 727) 728 729target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 730 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/elcdif/. 731) 732 733else() 734 735message(SEND_ERROR "driver_elcdif.MIMXRT1176 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 736 737endif() 738 739endif() 740 741 742if (CONFIG_USE_driver_enet) 743# Add set(CONFIG_USE_driver_enet true) in config.cmake to use this component 744 745message("driver_enet component is included from ${CMAKE_CURRENT_LIST_FILE}.") 746 747if(CONFIG_USE_driver_memory AND (CONFIG_DEVICE_ID STREQUAL MIMXRT1176xxxxx) AND CONFIG_USE_driver_common) 748 749target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 750 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/enet/fsl_enet.c 751) 752 753target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 754 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/enet/. 755) 756 757else() 758 759message(SEND_ERROR "driver_enet.MIMXRT1176 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 760 761endif() 762 763endif() 764 765 766if (CONFIG_USE_driver_enet_qos) 767# Add set(CONFIG_USE_driver_enet_qos true) in config.cmake to use this component 768 769message("driver_enet_qos component is included from ${CMAKE_CURRENT_LIST_FILE}.") 770 771if(CONFIG_USE_driver_memory AND (CONFIG_DEVICE_ID STREQUAL MIMXRT1176xxxxx) AND CONFIG_USE_driver_common) 772 773target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 774 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/enet_qos/fsl_enet_qos.c 775) 776 777target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 778 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/enet_qos/. 779) 780 781else() 782 783message(SEND_ERROR "driver_enet_qos.MIMXRT1176 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 784 785endif() 786 787endif() 788 789 790if (CONFIG_USE_driver_usdhc) 791# Add set(CONFIG_USE_driver_usdhc true) in config.cmake to use this component 792 793message("driver_usdhc component is included from ${CMAKE_CURRENT_LIST_FILE}.") 794 795if(CONFIG_USE_driver_memory AND (CONFIG_DEVICE_ID STREQUAL MIMXRT1176xxxxx) AND CONFIG_USE_driver_common) 796 797target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 798 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/usdhc/fsl_usdhc.c 799) 800 801target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 802 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/usdhc/. 803) 804 805else() 806 807message(SEND_ERROR "driver_usdhc.MIMXRT1176 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 808 809endif() 810 811endif() 812 813 814if (CONFIG_USE_driver_caam) 815# Add set(CONFIG_USE_driver_caam true) in config.cmake to use this component 816 817message("driver_caam component is included from ${CMAKE_CURRENT_LIST_FILE}.") 818 819if(CONFIG_USE_driver_memory AND (CONFIG_DEVICE_ID STREQUAL MIMXRT1176xxxxx) AND CONFIG_USE_driver_common) 820 821target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 822 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/caam/fsl_caam.c 823) 824 825target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 826 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/caam/. 827) 828 829if(CONFIG_USE_COMPONENT_CONFIGURATION) 830 message("===>Import configuration from ${CMAKE_CURRENT_LIST_FILE}") 831 832 target_compile_definitions(${MCUX_SDK_PROJECT_NAME} PUBLIC 833 -DCACHE_MODE_WRITE_THROUGH=1 834 -DCRYPTO_USE_DRIVER_CAAM 835 ) 836 837endif() 838 839else() 840 841message(SEND_ERROR "driver_caam.MIMXRT1176 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 842 843endif() 844 845endif() 846 847 848if (CONFIG_USE_driver_flexio_camera_edma) 849# Add set(CONFIG_USE_driver_flexio_camera_edma true) in config.cmake to use this component 850 851message("driver_flexio_camera_edma component is included from ${CMAKE_CURRENT_LIST_FILE}.") 852 853if(CONFIG_USE_driver_edma AND CONFIG_USE_driver_flexio_camera AND (CONFIG_DEVICE_ID STREQUAL MIMXRT1176xxxxx)) 854 855target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 856 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/flexio/camera/fsl_flexio_camera_edma.c 857) 858 859target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 860 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/flexio/camera/. 861) 862 863else() 864 865message(SEND_ERROR "driver_flexio_camera_edma.MIMXRT1176 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 866 867endif() 868 869endif() 870 871 872if (CONFIG_USE_driver_flexio_i2s_edma) 873# Add set(CONFIG_USE_driver_flexio_i2s_edma true) in config.cmake to use this component 874 875message("driver_flexio_i2s_edma component is included from ${CMAKE_CURRENT_LIST_FILE}.") 876 877if(CONFIG_USE_driver_edma AND CONFIG_USE_driver_flexio_i2s AND (CONFIG_DEVICE_ID STREQUAL MIMXRT1176xxxxx)) 878 879target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 880 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/flexio/i2s/fsl_flexio_i2s_edma.c 881) 882 883target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 884 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/flexio/i2s/. 885) 886 887else() 888 889message(SEND_ERROR "driver_flexio_i2s_edma.MIMXRT1176 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 890 891endif() 892 893endif() 894 895 896if (CONFIG_USE_driver_flexio_mculcd_edma) 897# Add set(CONFIG_USE_driver_flexio_mculcd_edma true) in config.cmake to use this component 898 899message("driver_flexio_mculcd_edma component is included from ${CMAKE_CURRENT_LIST_FILE}.") 900 901if(CONFIG_USE_driver_edma AND CONFIG_USE_driver_flexio_mculcd AND (CONFIG_DEVICE_ID STREQUAL MIMXRT1176xxxxx)) 902 903target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 904 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/flexio/mculcd/fsl_flexio_mculcd_edma.c 905) 906 907target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 908 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/flexio/mculcd/. 909) 910 911else() 912 913message(SEND_ERROR "driver_flexio_mculcd_edma.MIMXRT1176 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 914 915endif() 916 917endif() 918 919 920if (CONFIG_USE_driver_flexio_spi_edma) 921# Add set(CONFIG_USE_driver_flexio_spi_edma true) in config.cmake to use this component 922 923message("driver_flexio_spi_edma component is included from ${CMAKE_CURRENT_LIST_FILE}.") 924 925if(CONFIG_USE_driver_edma AND CONFIG_USE_driver_flexio_spi AND (CONFIG_DEVICE_ID STREQUAL MIMXRT1176xxxxx)) 926 927target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 928 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/flexio/spi/fsl_flexio_spi_edma.c 929) 930 931target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 932 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/flexio/spi/. 933) 934 935else() 936 937message(SEND_ERROR "driver_flexio_spi_edma.MIMXRT1176 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 938 939endif() 940 941endif() 942 943 944if (CONFIG_USE_driver_flexio_uart_edma) 945# Add set(CONFIG_USE_driver_flexio_uart_edma true) in config.cmake to use this component 946 947message("driver_flexio_uart_edma component is included from ${CMAKE_CURRENT_LIST_FILE}.") 948 949if(CONFIG_USE_driver_edma AND CONFIG_USE_driver_flexio_uart AND (CONFIG_DEVICE_ID STREQUAL MIMXRT1176xxxxx)) 950 951target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 952 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/flexio/uart/fsl_flexio_uart_edma.c 953) 954 955target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 956 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/flexio/uart/. 957) 958 959else() 960 961message(SEND_ERROR "driver_flexio_uart_edma.MIMXRT1176 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 962 963endif() 964 965endif() 966 967 968if (CONFIG_USE_driver_pdm_edma) 969# Add set(CONFIG_USE_driver_pdm_edma true) in config.cmake to use this component 970 971message("driver_pdm_edma component is included from ${CMAKE_CURRENT_LIST_FILE}.") 972 973if(CONFIG_USE_driver_edma AND CONFIG_USE_driver_pdm AND (CONFIG_DEVICE_ID STREQUAL MIMXRT1176xxxxx)) 974 975target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 976 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/pdm/fsl_pdm_edma.c 977) 978 979target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 980 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/pdm/. 981) 982 983else() 984 985message(SEND_ERROR "driver_pdm_edma.MIMXRT1176 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 986 987endif() 988 989endif() 990 991 992if (CONFIG_USE_driver_edma) 993# Add set(CONFIG_USE_driver_edma true) in config.cmake to use this component 994 995message("driver_edma component is included from ${CMAKE_CURRENT_LIST_FILE}.") 996 997if(CONFIG_USE_driver_memory AND (CONFIG_DEVICE_ID STREQUAL MIMXRT1176xxxxx) AND CONFIG_USE_driver_common AND CONFIG_USE_driver_dmamux) 998 999target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 1000 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/edma/fsl_edma.c 1001) 1002 1003target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 1004 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/edma/. 1005) 1006 1007else() 1008 1009message(SEND_ERROR "driver_edma.MIMXRT1176 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 1010 1011endif() 1012 1013endif() 1014 1015 1016if (CONFIG_USE_driver_flexcan_edma) 1017# Add set(CONFIG_USE_driver_flexcan_edma true) in config.cmake to use this component 1018 1019message("driver_flexcan_edma component is included from ${CMAKE_CURRENT_LIST_FILE}.") 1020 1021if(CONFIG_USE_driver_edma AND CONFIG_USE_driver_flexcan AND (CONFIG_DEVICE_ID STREQUAL MIMXRT1176xxxxx)) 1022 1023target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 1024 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/flexcan/fsl_flexcan_edma.c 1025) 1026 1027target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 1028 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/flexcan/. 1029) 1030 1031else() 1032 1033message(SEND_ERROR "driver_flexcan_edma.MIMXRT1176 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 1034 1035endif() 1036 1037endif() 1038 1039 1040if (CONFIG_USE_driver_asrc_edma) 1041# Add set(CONFIG_USE_driver_asrc_edma true) in config.cmake to use this component 1042 1043message("driver_asrc_edma component is included from ${CMAKE_CURRENT_LIST_FILE}.") 1044 1045if(CONFIG_USE_driver_edma AND (CONFIG_DEVICE_ID STREQUAL MIMXRT1176xxxxx) AND CONFIG_USE_driver_common AND CONFIG_USE_driver_asrc) 1046 1047target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 1048 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/asrc/fsl_asrc_edma.c 1049) 1050 1051target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 1052 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/asrc/. 1053) 1054 1055else() 1056 1057message(SEND_ERROR "driver_asrc_edma.MIMXRT1176 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 1058 1059endif() 1060 1061endif() 1062 1063 1064if (CONFIG_USE_driver_flexspi_edma) 1065# Add set(CONFIG_USE_driver_flexspi_edma true) in config.cmake to use this component 1066 1067message("driver_flexspi_edma component is included from ${CMAKE_CURRENT_LIST_FILE}.") 1068 1069if(CONFIG_USE_driver_edma AND CONFIG_USE_driver_flexspi) 1070 1071target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 1072 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/flexspi/fsl_flexspi_edma.c 1073) 1074 1075target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 1076 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/flexspi/. 1077) 1078 1079else() 1080 1081message(SEND_ERROR "driver_flexspi_edma.MIMXRT1176 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 1082 1083endif() 1084 1085endif() 1086 1087 1088if (CONFIG_USE_driver_spdif_edma) 1089# Add set(CONFIG_USE_driver_spdif_edma true) in config.cmake to use this component 1090 1091message("driver_spdif_edma component is included from ${CMAKE_CURRENT_LIST_FILE}.") 1092 1093if(CONFIG_USE_driver_edma AND CONFIG_USE_driver_spdif) 1094 1095target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 1096 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/spdif/fsl_spdif_edma.c 1097) 1098 1099target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 1100 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/spdif/. 1101) 1102 1103else() 1104 1105message(SEND_ERROR "driver_spdif_edma.MIMXRT1176 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 1106 1107endif() 1108 1109endif() 1110 1111 1112if (CONFIG_USE_utility_notifier) 1113# Add set(CONFIG_USE_utility_notifier true) in config.cmake to use this component 1114 1115message("utility_notifier component is included from ${CMAKE_CURRENT_LIST_FILE}.") 1116 1117if(CONFIG_USE_driver_common) 1118 1119target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 1120 ${CMAKE_CURRENT_LIST_DIR}/../../utilities/notifier/fsl_notifier.c 1121) 1122 1123target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 1124 ${CMAKE_CURRENT_LIST_DIR}/../../utilities/notifier/. 1125) 1126 1127else() 1128 1129message(SEND_ERROR "utility_notifier.MIMXRT1176 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 1130 1131endif() 1132 1133endif() 1134 1135 1136if (CONFIG_USE_utility_assert) 1137# Add set(CONFIG_USE_utility_assert true) in config.cmake to use this component 1138 1139message("utility_assert component is included from ${CMAKE_CURRENT_LIST_FILE}.") 1140 1141if(CONFIG_USE_utility_debug_console) 1142 1143target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 1144 ${CMAKE_CURRENT_LIST_DIR}/../../utilities/assert/fsl_assert.c 1145) 1146 1147else() 1148 1149message(SEND_ERROR "utility_assert.MIMXRT1176 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 1150 1151endif() 1152 1153endif() 1154 1155 1156if (CONFIG_USE_utility_assert_lite) 1157# Add set(CONFIG_USE_utility_assert_lite true) in config.cmake to use this component 1158 1159message("utility_assert_lite component is included from ${CMAKE_CURRENT_LIST_FILE}.") 1160 1161if(CONFIG_USE_utility_debug_console_lite) 1162 1163target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 1164 ${CMAKE_CURRENT_LIST_DIR}/../../utilities/assert/fsl_assert.c 1165) 1166 1167else() 1168 1169message(SEND_ERROR "utility_assert_lite.MIMXRT1176 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 1170 1171endif() 1172 1173endif() 1174 1175 1176if (CONFIG_USE_utility_str) 1177# Add set(CONFIG_USE_utility_str true) in config.cmake to use this component 1178 1179message("utility_str component is included from ${CMAKE_CURRENT_LIST_FILE}.") 1180 1181if(CONFIG_USE_driver_common) 1182 1183target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 1184 ${CMAKE_CURRENT_LIST_DIR}/../../utilities/str/fsl_str.c 1185) 1186 1187target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 1188 ${CMAKE_CURRENT_LIST_DIR}/../../utilities/str 1189) 1190 1191else() 1192 1193message(SEND_ERROR "utility_str.MIMXRT1176 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 1194 1195endif() 1196 1197endif() 1198 1199 1200if (CONFIG_USE_utility_debug_console) 1201# Add set(CONFIG_USE_utility_debug_console true) in config.cmake to use this component 1202 1203message("utility_debug_console component is included from ${CMAKE_CURRENT_LIST_FILE}.") 1204 1205if(CONFIG_USE_component_serial_manager AND CONFIG_USE_driver_common) 1206 1207target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 1208 ${CMAKE_CURRENT_LIST_DIR}/../../utilities/str/fsl_str.c 1209 ${CMAKE_CURRENT_LIST_DIR}/../../utilities/debug_console/fsl_debug_console.c 1210) 1211 1212target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 1213 ${CMAKE_CURRENT_LIST_DIR}/../../utilities/str 1214 ${CMAKE_CURRENT_LIST_DIR}/../../utilities/debug_console 1215) 1216 1217else() 1218 1219message(SEND_ERROR "utility_debug_console.MIMXRT1176 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 1220 1221endif() 1222 1223endif() 1224 1225 1226if (CONFIG_USE_driver_cmsis_enet) 1227# Add set(CONFIG_USE_driver_cmsis_enet true) in config.cmake to use this component 1228 1229message("driver_cmsis_enet component is included from ${CMAKE_CURRENT_LIST_FILE}.") 1230 1231if((CONFIG_DEVICE_ID STREQUAL MIMXRT1176xxxxx) 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) 1232 1233target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 1234 ${CMAKE_CURRENT_LIST_DIR}/../../cmsis_drivers/enet/fsl_enet_cmsis.c 1235 ${CMAKE_CURRENT_LIST_DIR}/../../cmsis_drivers/enet/fsl_enet_phy_cmsis.c 1236) 1237 1238target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 1239 ${CMAKE_CURRENT_LIST_DIR}/../../cmsis_drivers/enet/. 1240) 1241 1242else() 1243 1244message(SEND_ERROR "driver_cmsis_enet.MIMXRT1176 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 1245 1246endif() 1247 1248endif() 1249 1250 1251if (CONFIG_USE_component_power_manager_core) 1252# Add set(CONFIG_USE_component_power_manager_core true) in config.cmake to use this component 1253 1254message("component_power_manager_core component is included from ${CMAKE_CURRENT_LIST_FILE}.") 1255 1256if(CONFIG_USE_driver_common AND CONFIG_USE_component_lists) 1257 1258target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 1259 ${CMAKE_CURRENT_LIST_DIR}/../../components/power_manager/core/fsl_pm_core.c 1260) 1261 1262target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 1263 ${CMAKE_CURRENT_LIST_DIR}/../../components/power_manager/core/. 1264) 1265 1266if(CONFIG_USE_COMPONENT_CONFIGURATION) 1267 message("===>Import configuration from ${CMAKE_CURRENT_LIST_FILE}") 1268 1269 target_compile_definitions(${MCUX_SDK_PROJECT_NAME} PUBLIC 1270 -DGENERIC_LIST_LIGHT=1 1271 ) 1272 1273endif() 1274 1275else() 1276 1277message(SEND_ERROR "component_power_manager_core.MIMXRT1176 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 1278 1279endif() 1280 1281endif() 1282 1283 1284if (CONFIG_USE_component_power_manager_MIMXRT1176) 1285# Add set(CONFIG_USE_component_power_manager_MIMXRT1176 true) in config.cmake to use this component 1286 1287message("component_power_manager_MIMXRT1176 component is included from ${CMAKE_CURRENT_LIST_FILE}.") 1288 1289if(CONFIG_USE_component_power_manager_core AND CONFIG_USE_driver_dcdc_soc AND CONFIG_USE_driver_gpc_3 AND CONFIG_USE_driver_pgmc AND CONFIG_USE_driver_soc_src AND CONFIG_USE_driver_pmu_1 AND CONFIG_USE_driver_ssarc AND (CONFIG_DEVICE_ID STREQUAL MIMXRT1176xxxxx) AND CONFIG_USE_driver_clock) 1290 1291target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 1292 ${CMAKE_CURRENT_LIST_DIR}/../../components/power_manager/devices/MIMXRT1176/fsl_pm_device.c 1293) 1294 1295target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 1296 ${CMAKE_CURRENT_LIST_DIR}/../../components/power_manager/devices/MIMXRT1176/. 1297) 1298 1299else() 1300 1301message(SEND_ERROR "component_power_manager_MIMXRT1176.MIMXRT1176 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 1302 1303endif() 1304 1305endif() 1306 1307 1308if (CONFIG_USE_component_audio_sai_edma_adapter) 1309# Add set(CONFIG_USE_component_audio_sai_edma_adapter true) in config.cmake to use this component 1310 1311message("component_audio_sai_edma_adapter component is included from ${CMAKE_CURRENT_LIST_FILE}.") 1312 1313if(CONFIG_USE_driver_common AND CONFIG_USE_driver_sai_edma) 1314 1315target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 1316 ${CMAKE_CURRENT_LIST_DIR}/../../components/audio/fsl_adapter_sai.c 1317) 1318 1319target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 1320 ${CMAKE_CURRENT_LIST_DIR}/../../components/audio/. 1321) 1322 1323else() 1324 1325message(SEND_ERROR "component_audio_sai_edma_adapter.MIMXRT1176 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 1326 1327endif() 1328 1329endif() 1330 1331 1332if (CONFIG_USE_component_button) 1333# Add set(CONFIG_USE_component_button true) in config.cmake to use this component 1334 1335message("component_button component is included from ${CMAKE_CURRENT_LIST_FILE}.") 1336 1337if(CONFIG_USE_driver_common AND CONFIG_USE_component_timer_manager AND (CONFIG_USE_component_igpio_adapter)) 1338 1339target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 1340 ${CMAKE_CURRENT_LIST_DIR}/../../components/button/fsl_component_button.c 1341) 1342 1343target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 1344 ${CMAKE_CURRENT_LIST_DIR}/../../components/button/. 1345) 1346 1347else() 1348 1349message(SEND_ERROR "component_button.MIMXRT1176 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 1350 1351endif() 1352 1353endif() 1354 1355 1356if (CONFIG_USE_driver_codec) 1357# Add set(CONFIG_USE_driver_codec true) in config.cmake to use this component 1358 1359message("driver_codec component is included from ${CMAKE_CURRENT_LIST_FILE}.") 1360 1361if(CONFIG_USE_driver_common AND (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)) 1362 1363target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 1364 ${CMAKE_CURRENT_LIST_DIR}/../../components/codec/fsl_codec_common.c 1365) 1366 1367target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 1368 ${CMAKE_CURRENT_LIST_DIR}/../../components/codec/. 1369) 1370 1371if(CONFIG_USE_COMPONENT_CONFIGURATION) 1372 message("===>Import configuration from ${CMAKE_CURRENT_LIST_FILE}") 1373 1374 target_compile_definitions(${MCUX_SDK_PROJECT_NAME} PUBLIC 1375 -DSDK_I2C_BASED_COMPONENT_USED=1 1376 ) 1377 1378endif() 1379 1380else() 1381 1382message(SEND_ERROR "driver_codec.MIMXRT1176 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 1383 1384endif() 1385 1386endif() 1387 1388 1389if (CONFIG_USE_component_codec_adapters) 1390# Add set(CONFIG_USE_component_codec_adapters true) in config.cmake to use this component 1391 1392message("component_codec_adapters component is included from ${CMAKE_CURRENT_LIST_FILE}.") 1393 1394if((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)) 1395 1396target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 1397 ${CMAKE_CURRENT_LIST_DIR}/../../components/codec/port/fsl_codec_adapter.c 1398) 1399 1400target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 1401 ${CMAKE_CURRENT_LIST_DIR}/../../components/codec/port 1402) 1403 1404if(CONFIG_USE_COMPONENT_CONFIGURATION) 1405 message("===>Import configuration from ${CMAKE_CURRENT_LIST_FILE}") 1406 1407 target_compile_definitions(${MCUX_SDK_PROJECT_NAME} PUBLIC 1408 -DCODEC_MULTI_ADAPTERS=1 1409 ) 1410 1411endif() 1412 1413else() 1414 1415message(SEND_ERROR "component_codec_adapters.MIMXRT1176 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 1416 1417endif() 1418 1419endif() 1420 1421 1422if (CONFIG_USE_component_wm8960_adapter) 1423# Add set(CONFIG_USE_component_wm8960_adapter true) in config.cmake to use this component 1424 1425message("component_wm8960_adapter component is included from ${CMAKE_CURRENT_LIST_FILE}.") 1426 1427if(CONFIG_USE_driver_wm8960 AND CONFIG_USE_driver_codec) 1428 1429target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 1430 ${CMAKE_CURRENT_LIST_DIR}/../../components/codec/port/wm8960/fsl_codec_wm8960_adapter.c 1431) 1432 1433target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 1434 ${CMAKE_CURRENT_LIST_DIR}/../../components/codec/port/wm8960 1435 ${CMAKE_CURRENT_LIST_DIR}/../../components/codec/port 1436) 1437 1438else() 1439 1440message(SEND_ERROR "component_wm8960_adapter.MIMXRT1176 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 1441 1442endif() 1443 1444endif() 1445 1446 1447if (CONFIG_USE_component_wm8962_adapter) 1448# Add set(CONFIG_USE_component_wm8962_adapter true) in config.cmake to use this component 1449 1450message("component_wm8962_adapter component is included from ${CMAKE_CURRENT_LIST_FILE}.") 1451 1452if(CONFIG_USE_driver_wm8962 AND CONFIG_USE_driver_codec) 1453 1454target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 1455 ${CMAKE_CURRENT_LIST_DIR}/../../components/codec/port/wm8962/fsl_codec_wm8962_adapter.c 1456) 1457 1458target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 1459 ${CMAKE_CURRENT_LIST_DIR}/../../components/codec/port/wm8962 1460 ${CMAKE_CURRENT_LIST_DIR}/../../components/codec/port 1461) 1462 1463else() 1464 1465message(SEND_ERROR "component_wm8962_adapter.MIMXRT1176 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 1466 1467endif() 1468 1469endif() 1470 1471 1472if (CONFIG_USE_component_cs42888_adapter) 1473# Add set(CONFIG_USE_component_cs42888_adapter true) in config.cmake to use this component 1474 1475message("component_cs42888_adapter component is included from ${CMAKE_CURRENT_LIST_FILE}.") 1476 1477if(CONFIG_USE_driver_cs42888 AND CONFIG_USE_driver_codec) 1478 1479target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 1480 ${CMAKE_CURRENT_LIST_DIR}/../../components/codec/port/cs42888/fsl_codec_cs42888_adapter.c 1481) 1482 1483target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 1484 ${CMAKE_CURRENT_LIST_DIR}/../../components/codec/port/cs42888 1485 ${CMAKE_CURRENT_LIST_DIR}/../../components/codec/port 1486) 1487 1488else() 1489 1490message(SEND_ERROR "component_cs42888_adapter.MIMXRT1176 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 1491 1492endif() 1493 1494endif() 1495 1496 1497if (CONFIG_USE_component_cs42448_adapter) 1498# Add set(CONFIG_USE_component_cs42448_adapter true) in config.cmake to use this component 1499 1500message("component_cs42448_adapter component is included from ${CMAKE_CURRENT_LIST_FILE}.") 1501 1502if(CONFIG_USE_driver_cs42448 AND CONFIG_USE_driver_codec) 1503 1504target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 1505 ${CMAKE_CURRENT_LIST_DIR}/../../components/codec/port/cs42448/fsl_codec_cs42448_adapter.c 1506) 1507 1508target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 1509 ${CMAKE_CURRENT_LIST_DIR}/../../components/codec/port/cs42448 1510 ${CMAKE_CURRENT_LIST_DIR}/../../components/codec/port 1511) 1512 1513else() 1514 1515message(SEND_ERROR "component_cs42448_adapter.MIMXRT1176 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 1516 1517endif() 1518 1519endif() 1520 1521 1522if (CONFIG_USE_component_sgtl_adapter) 1523# Add set(CONFIG_USE_component_sgtl_adapter true) in config.cmake to use this component 1524 1525message("component_sgtl_adapter component is included from ${CMAKE_CURRENT_LIST_FILE}.") 1526 1527if(CONFIG_USE_driver_sgtl5000 AND CONFIG_USE_driver_codec) 1528 1529target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 1530 ${CMAKE_CURRENT_LIST_DIR}/../../components/codec/port/sgtl5000/fsl_codec_sgtl_adapter.c 1531) 1532 1533target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 1534 ${CMAKE_CURRENT_LIST_DIR}/../../components/codec/port/sgtl5000 1535 ${CMAKE_CURRENT_LIST_DIR}/../../components/codec/port 1536) 1537 1538else() 1539 1540message(SEND_ERROR "component_sgtl_adapter.MIMXRT1176 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 1541 1542endif() 1543 1544endif() 1545 1546 1547if (CONFIG_USE_component_da7212_adapter) 1548# Add set(CONFIG_USE_component_da7212_adapter true) in config.cmake to use this component 1549 1550message("component_da7212_adapter component is included from ${CMAKE_CURRENT_LIST_FILE}.") 1551 1552if(CONFIG_USE_driver_dialog7212 AND CONFIG_USE_driver_codec) 1553 1554target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 1555 ${CMAKE_CURRENT_LIST_DIR}/../../components/codec/port/da7212/fsl_codec_da7212_adapter.c 1556) 1557 1558target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 1559 ${CMAKE_CURRENT_LIST_DIR}/../../components/codec/port/da7212 1560 ${CMAKE_CURRENT_LIST_DIR}/../../components/codec/port 1561) 1562 1563else() 1564 1565message(SEND_ERROR "component_da7212_adapter.MIMXRT1176 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 1566 1567endif() 1568 1569endif() 1570 1571 1572if (CONFIG_USE_component_codec_i2c) 1573# Add set(CONFIG_USE_component_codec_i2c true) in config.cmake to use this component 1574 1575message("component_codec_i2c component is included from ${CMAKE_CURRENT_LIST_FILE}.") 1576 1577if(CONFIG_USE_driver_common AND (CONFIG_USE_component_lpi2c_adapter)) 1578 1579target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 1580 ${CMAKE_CURRENT_LIST_DIR}/../../components/codec/i2c/fsl_codec_i2c.c 1581) 1582 1583target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 1584 ${CMAKE_CURRENT_LIST_DIR}/../../components/codec/i2c/. 1585) 1586 1587if(CONFIG_USE_COMPONENT_CONFIGURATION) 1588 message("===>Import configuration from ${CMAKE_CURRENT_LIST_FILE}") 1589 1590 target_compile_definitions(${MCUX_SDK_PROJECT_NAME} PUBLIC 1591 -DSDK_I2C_BASED_COMPONENT_USED=1 1592 ) 1593 1594endif() 1595 1596else() 1597 1598message(SEND_ERROR "component_codec_i2c.MIMXRT1176 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 1599 1600endif() 1601 1602endif() 1603 1604 1605if (CONFIG_USE_component_software_crc_adapter) 1606# Add set(CONFIG_USE_component_software_crc_adapter true) in config.cmake to use this component 1607 1608message("component_software_crc_adapter component is included from ${CMAKE_CURRENT_LIST_FILE}.") 1609 1610if(CONFIG_USE_driver_common) 1611 1612target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 1613 ${CMAKE_CURRENT_LIST_DIR}/../../components/crc/fsl_adapter_software_crc.c 1614) 1615 1616target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 1617 ${CMAKE_CURRENT_LIST_DIR}/../../components/crc/. 1618) 1619 1620else() 1621 1622message(SEND_ERROR "component_software_crc_adapter.MIMXRT1176 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 1623 1624endif() 1625 1626endif() 1627 1628 1629if (CONFIG_USE_driver_cs42448) 1630# Add set(CONFIG_USE_driver_cs42448 true) in config.cmake to use this component 1631 1632message("driver_cs42448 component is included from ${CMAKE_CURRENT_LIST_FILE}.") 1633 1634if(CONFIG_USE_driver_common AND CONFIG_USE_component_codec_i2c) 1635 1636target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 1637 ${CMAKE_CURRENT_LIST_DIR}/../../components/codec/cs42448/fsl_cs42448.c 1638) 1639 1640target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 1641 ${CMAKE_CURRENT_LIST_DIR}/../../components/codec/cs42448/. 1642) 1643 1644if(CONFIG_USE_COMPONENT_CONFIGURATION) 1645 message("===>Import configuration from ${CMAKE_CURRENT_LIST_FILE}") 1646 1647 target_compile_definitions(${MCUX_SDK_PROJECT_NAME} PUBLIC 1648 -DSDK_I2C_BASED_COMPONENT_USED=1 1649 -DCODEC_CS42448_ENABLE 1650 ) 1651 1652endif() 1653 1654else() 1655 1656message(SEND_ERROR "driver_cs42448.MIMXRT1176 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 1657 1658endif() 1659 1660endif() 1661 1662 1663if (CONFIG_USE_driver_cs42888) 1664# Add set(CONFIG_USE_driver_cs42888 true) in config.cmake to use this component 1665 1666message("driver_cs42888 component is included from ${CMAKE_CURRENT_LIST_FILE}.") 1667 1668if(CONFIG_USE_driver_common AND CONFIG_USE_component_codec_i2c) 1669 1670target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 1671 ${CMAKE_CURRENT_LIST_DIR}/../../components/codec/cs42888/fsl_cs42888.c 1672) 1673 1674target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 1675 ${CMAKE_CURRENT_LIST_DIR}/../../components/codec/cs42888/. 1676) 1677 1678if(CONFIG_USE_COMPONENT_CONFIGURATION) 1679 message("===>Import configuration from ${CMAKE_CURRENT_LIST_FILE}") 1680 1681 target_compile_definitions(${MCUX_SDK_PROJECT_NAME} PUBLIC 1682 -DSDK_I2C_BASED_COMPONENT_USED=1 1683 -DCODEC_CS42888_ENABLE 1684 ) 1685 1686endif() 1687 1688else() 1689 1690message(SEND_ERROR "driver_cs42888.MIMXRT1176 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 1691 1692endif() 1693 1694endif() 1695 1696 1697if (CONFIG_USE_driver_dialog7212) 1698# Add set(CONFIG_USE_driver_dialog7212 true) in config.cmake to use this component 1699 1700message("driver_dialog7212 component is included from ${CMAKE_CURRENT_LIST_FILE}.") 1701 1702if(CONFIG_USE_driver_common AND CONFIG_USE_component_codec_i2c) 1703 1704target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 1705 ${CMAKE_CURRENT_LIST_DIR}/../../components/codec/da7212/fsl_dialog7212.c 1706) 1707 1708target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 1709 ${CMAKE_CURRENT_LIST_DIR}/../../components/codec/da7212/. 1710) 1711 1712if(CONFIG_USE_COMPONENT_CONFIGURATION) 1713 message("===>Import configuration from ${CMAKE_CURRENT_LIST_FILE}") 1714 1715 target_compile_definitions(${MCUX_SDK_PROJECT_NAME} PUBLIC 1716 -DSDK_I2C_BASED_COMPONENT_USED=1 1717 -DBOARD_USE_CODEC=1 1718 -DCODEC_DA7212_ENABLE 1719 ) 1720 1721endif() 1722 1723else() 1724 1725message(SEND_ERROR "driver_dialog7212.MIMXRT1176 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 1726 1727endif() 1728 1729endif() 1730 1731 1732if (CONFIG_USE_component_exception_handling_cm7) 1733# Add set(CONFIG_USE_component_exception_handling_cm7 true) in config.cmake to use this component 1734 1735message("component_exception_handling_cm7 component is included from ${CMAKE_CURRENT_LIST_FILE}.") 1736 1737if(CONFIG_USE_driver_common AND CONFIG_USE_utility_debug_console) 1738 1739if(CONFIG_CORE STREQUAL cm7f) 1740 target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 1741 ${CMAKE_CURRENT_LIST_DIR}/../../components/exception_handling/cm7/fsl_component_exception_handling.c 1742 ) 1743endif() 1744 1745target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 1746 ${CMAKE_CURRENT_LIST_DIR}/../../components/exception_handling/. 1747) 1748 1749else() 1750 1751message(SEND_ERROR "component_exception_handling_cm7.MIMXRT1176 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 1752 1753endif() 1754 1755endif() 1756 1757 1758if (CONFIG_USE_driver_nand_flash-controller-flexspi) 1759# Add set(CONFIG_USE_driver_nand_flash-controller-flexspi true) in config.cmake to use this component 1760 1761message("driver_nand_flash-controller-flexspi component is included from ${CMAKE_CURRENT_LIST_FILE}.") 1762 1763if(CONFIG_USE_driver_nand_flash-common AND CONFIG_USE_driver_flexspi) 1764 1765target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 1766 ${CMAKE_CURRENT_LIST_DIR}/../../components/flash/nand/flexspi/fsl_flexspi_nand_flash.c 1767) 1768 1769target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 1770 ${CMAKE_CURRENT_LIST_DIR}/../../components/flash/nand/flexspi/. 1771) 1772 1773else() 1774 1775message(SEND_ERROR "driver_nand_flash-controller-flexspi.MIMXRT1176 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 1776 1777endif() 1778 1779endif() 1780 1781 1782if (CONFIG_USE_driver_nand_flash-controller-semc) 1783# Add set(CONFIG_USE_driver_nand_flash-controller-semc true) in config.cmake to use this component 1784 1785message("driver_nand_flash-controller-semc component is included from ${CMAKE_CURRENT_LIST_FILE}.") 1786 1787if(CONFIG_USE_driver_nand_flash-common AND CONFIG_USE_driver_semc) 1788 1789target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 1790 ${CMAKE_CURRENT_LIST_DIR}/../../components/flash/nand/semc/fsl_semc_nand_flash.c 1791) 1792 1793target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 1794 ${CMAKE_CURRENT_LIST_DIR}/../../components/flash/nand/semc/. 1795) 1796 1797else() 1798 1799message(SEND_ERROR "driver_nand_flash-controller-semc.MIMXRT1176 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 1800 1801endif() 1802 1803endif() 1804 1805 1806if (CONFIG_USE_driver_nor_flash-controller-flexspi) 1807# Add set(CONFIG_USE_driver_nor_flash-controller-flexspi true) in config.cmake to use this component 1808 1809message("driver_nor_flash-controller-flexspi component is included from ${CMAKE_CURRENT_LIST_FILE}.") 1810 1811if(CONFIG_USE_driver_nor_flash-common AND CONFIG_USE_driver_flexspi) 1812 1813target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 1814 ${CMAKE_CURRENT_LIST_DIR}/../../components/flash/nor/flexspi/fsl_flexspi_nor_flash.c 1815) 1816 1817target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 1818 ${CMAKE_CURRENT_LIST_DIR}/../../components/flash/nor/flexspi/. 1819) 1820 1821else() 1822 1823message(SEND_ERROR "driver_nor_flash-controller-flexspi.MIMXRT1176 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 1824 1825endif() 1826 1827endif() 1828 1829 1830if (CONFIG_USE_driver_nor_flash-controller-lpspi) 1831# Add set(CONFIG_USE_driver_nor_flash-controller-lpspi true) in config.cmake to use this component 1832 1833message("driver_nor_flash-controller-lpspi component is included from ${CMAKE_CURRENT_LIST_FILE}.") 1834 1835if(CONFIG_USE_driver_nor_flash-common AND CONFIG_USE_driver_lpspi) 1836 1837target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 1838 ${CMAKE_CURRENT_LIST_DIR}/../../components/flash/nor/lpspi/fsl_lpspi_nor_flash.c 1839 ${CMAKE_CURRENT_LIST_DIR}/../../components/flash/nor/lpspi/fsl_lpspi_mem_adapter.c 1840) 1841 1842target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 1843 ${CMAKE_CURRENT_LIST_DIR}/../../components/flash/nor/lpspi/. 1844) 1845 1846else() 1847 1848message(SEND_ERROR "driver_nor_flash-controller-lpspi.MIMXRT1176 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 1849 1850endif() 1851 1852endif() 1853 1854 1855if (CONFIG_USE_driver_ft5406) 1856# Add set(CONFIG_USE_driver_ft5406 true) in config.cmake to use this component 1857 1858message("driver_ft5406 component is included from ${CMAKE_CURRENT_LIST_FILE}.") 1859 1860if(CONFIG_USE_driver_common) 1861 1862target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 1863 ${CMAKE_CURRENT_LIST_DIR}/../../components/ft5406/fsl_ft5406.c 1864) 1865 1866target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 1867 ${CMAKE_CURRENT_LIST_DIR}/../../components/ft5406/. 1868) 1869 1870else() 1871 1872message(SEND_ERROR "driver_ft5406.MIMXRT1176 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 1873 1874endif() 1875 1876endif() 1877 1878 1879if (CONFIG_USE_driver_ft5406_rt) 1880# Add set(CONFIG_USE_driver_ft5406_rt true) in config.cmake to use this component 1881 1882message("driver_ft5406_rt component is included from ${CMAKE_CURRENT_LIST_FILE}.") 1883 1884if(CONFIG_USE_driver_lpi2c) 1885 1886target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 1887 ${CMAKE_CURRENT_LIST_DIR}/../../components/ft5406_rt/fsl_ft5406_rt.c 1888) 1889 1890target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 1891 ${CMAKE_CURRENT_LIST_DIR}/../../components/ft5406_rt/. 1892) 1893 1894else() 1895 1896message(SEND_ERROR "driver_ft5406_rt.MIMXRT1176 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 1897 1898endif() 1899 1900endif() 1901 1902 1903if (CONFIG_USE_driver_ft6x06) 1904# Add set(CONFIG_USE_driver_ft6x06 true) in config.cmake to use this component 1905 1906message("driver_ft6x06 component is included from ${CMAKE_CURRENT_LIST_FILE}.") 1907 1908if(CONFIG_USE_CMSIS_Driver_Include_I2C) 1909 1910target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 1911 ${CMAKE_CURRENT_LIST_DIR}/../../components/ft6x06/fsl_ft6x06.c 1912) 1913 1914target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 1915 ${CMAKE_CURRENT_LIST_DIR}/../../components/ft6x06/. 1916) 1917 1918else() 1919 1920message(SEND_ERROR "driver_ft6x06.MIMXRT1176 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 1921 1922endif() 1923 1924endif() 1925 1926 1927if (CONFIG_USE_driver_fxls8974cf) 1928# Add set(CONFIG_USE_driver_fxls8974cf true) in config.cmake to use this component 1929 1930message("driver_fxls8974cf component is included from ${CMAKE_CURRENT_LIST_FILE}.") 1931 1932if(CONFIG_USE_driver_common) 1933 1934target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 1935 ${CMAKE_CURRENT_LIST_DIR}/../../components/fxls8974cf/fsl_fxls.c 1936) 1937 1938target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 1939 ${CMAKE_CURRENT_LIST_DIR}/../../components/fxls8974cf/. 1940) 1941 1942else() 1943 1944message(SEND_ERROR "driver_fxls8974cf.MIMXRT1176 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 1945 1946endif() 1947 1948endif() 1949 1950 1951if (CONFIG_USE_driver_fxos8700cq) 1952# Add set(CONFIG_USE_driver_fxos8700cq true) in config.cmake to use this component 1953 1954message("driver_fxos8700cq component is included from ${CMAKE_CURRENT_LIST_FILE}.") 1955 1956if(CONFIG_USE_driver_common) 1957 1958target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 1959 ${CMAKE_CURRENT_LIST_DIR}/../../components/fxos8700cq/fsl_fxos.c 1960) 1961 1962target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 1963 ${CMAKE_CURRENT_LIST_DIR}/../../components/fxos8700cq/. 1964) 1965 1966else() 1967 1968message(SEND_ERROR "driver_fxos8700cq.MIMXRT1176 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 1969 1970endif() 1971 1972endif() 1973 1974 1975if (CONFIG_USE_component_igpio_adapter) 1976# Add set(CONFIG_USE_component_igpio_adapter true) in config.cmake to use this component 1977 1978message("component_igpio_adapter component is included from ${CMAKE_CURRENT_LIST_FILE}.") 1979 1980if(CONFIG_USE_driver_igpio) 1981 1982target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 1983 ${CMAKE_CURRENT_LIST_DIR}/../../components/gpio/fsl_adapter_igpio.c 1984) 1985 1986target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 1987 ${CMAKE_CURRENT_LIST_DIR}/../../components/gpio/. 1988) 1989 1990else() 1991 1992message(SEND_ERROR "component_igpio_adapter.MIMXRT1176 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 1993 1994endif() 1995 1996endif() 1997 1998 1999if (CONFIG_USE_driver_gt911) 2000# Add set(CONFIG_USE_driver_gt911 true) in config.cmake to use this component 2001 2002message("driver_gt911 component is included from ${CMAKE_CURRENT_LIST_FILE}.") 2003 2004if(CONFIG_USE_driver_common) 2005 2006target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 2007 ${CMAKE_CURRENT_LIST_DIR}/../../components/gt911/fsl_gt911.c 2008) 2009 2010target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 2011 ${CMAKE_CURRENT_LIST_DIR}/../../components/gt911/. 2012) 2013 2014if(CONFIG_USE_COMPONENT_CONFIGURATION) 2015 message("===>Import configuration from ${CMAKE_CURRENT_LIST_FILE}") 2016 2017 target_compile_definitions(${MCUX_SDK_PROJECT_NAME} PUBLIC 2018 -DSDK_I2C_BASED_COMPONENT_USED=1 2019 ) 2020 2021endif() 2022 2023else() 2024 2025message(SEND_ERROR "driver_gt911.MIMXRT1176 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 2026 2027endif() 2028 2029endif() 2030 2031 2032if (CONFIG_USE_component_lpi2c_adapter) 2033# Add set(CONFIG_USE_component_lpi2c_adapter true) in config.cmake to use this component 2034 2035message("component_lpi2c_adapter component is included from ${CMAKE_CURRENT_LIST_FILE}.") 2036 2037if(CONFIG_USE_driver_common AND CONFIG_USE_driver_lpi2c) 2038 2039target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 2040 ${CMAKE_CURRENT_LIST_DIR}/../../components/i2c/fsl_adapter_lpi2c.c 2041) 2042 2043target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 2044 ${CMAKE_CURRENT_LIST_DIR}/../../components/i2c/. 2045) 2046 2047else() 2048 2049message(SEND_ERROR "component_lpi2c_adapter.MIMXRT1176 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 2050 2051endif() 2052 2053endif() 2054 2055 2056if (CONFIG_USE_driver_ili9341) 2057# Add set(CONFIG_USE_driver_ili9341 true) in config.cmake to use this component 2058 2059message("driver_ili9341 component is included from ${CMAKE_CURRENT_LIST_FILE}.") 2060 2061if(CONFIG_USE_driver_common) 2062 2063target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 2064 ${CMAKE_CURRENT_LIST_DIR}/../../components/ili9341/fsl_ili9341.c 2065) 2066 2067target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 2068 ${CMAKE_CURRENT_LIST_DIR}/../../components/ili9341/. 2069) 2070 2071else() 2072 2073message(SEND_ERROR "driver_ili9341.MIMXRT1176 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 2074 2075endif() 2076 2077endif() 2078 2079 2080if (CONFIG_USE_component_flexspi_nor_flash_adapter_rt1170) 2081# Add set(CONFIG_USE_component_flexspi_nor_flash_adapter_rt1170 true) in config.cmake to use this component 2082 2083message("component_flexspi_nor_flash_adapter_rt1170 component is included from ${CMAKE_CURRENT_LIST_FILE}.") 2084 2085if((CONFIG_BOARD STREQUAL evkmimxrt1170) AND CONFIG_USE_driver_common AND CONFIG_USE_driver_flexspi) 2086 2087target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 2088 ${CMAKE_CURRENT_LIST_DIR}/../../components/internal_flash/fsl_adapter_flexspi_nor_flash.c 2089) 2090 2091target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 2092 ${CMAKE_CURRENT_LIST_DIR}/../../components/internal_flash/. 2093) 2094 2095else() 2096 2097message(SEND_ERROR "component_flexspi_nor_flash_adapter_rt1170.MIMXRT1176 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 2098 2099endif() 2100 2101endif() 2102 2103 2104if (CONFIG_USE_component_flexspi_nor_flash_adapter_rt1170evkb) 2105# Add set(CONFIG_USE_component_flexspi_nor_flash_adapter_rt1170evkb true) in config.cmake to use this component 2106 2107message("component_flexspi_nor_flash_adapter_rt1170evkb component is included from ${CMAKE_CURRENT_LIST_FILE}.") 2108 2109if((CONFIG_BOARD STREQUAL evkbmimxrt1170) AND CONFIG_USE_driver_common AND CONFIG_USE_driver_flexspi) 2110 2111target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 2112 ${CMAKE_CURRENT_LIST_DIR}/../../components/internal_flash/evkbmimxrt1170/fsl_adapter_flexspi_nor_flash.c 2113) 2114 2115target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 2116 ${CMAKE_CURRENT_LIST_DIR}/../../components/internal_flash/. 2117) 2118 2119else() 2120 2121message(SEND_ERROR "component_flexspi_nor_flash_adapter_rt1170evkb.MIMXRT1176 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 2122 2123endif() 2124 2125endif() 2126 2127 2128if (CONFIG_USE_component_led) 2129# Add set(CONFIG_USE_component_led true) in config.cmake to use this component 2130 2131message("component_led component is included from ${CMAKE_CURRENT_LIST_FILE}.") 2132 2133if(CONFIG_USE_driver_common AND CONFIG_USE_component_timer_manager AND (CONFIG_USE_component_igpio_adapter)) 2134 2135target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 2136 ${CMAKE_CURRENT_LIST_DIR}/../../components/led/fsl_component_led.c 2137) 2138 2139target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 2140 ${CMAKE_CURRENT_LIST_DIR}/../../components/led/. 2141) 2142 2143else() 2144 2145message(SEND_ERROR "component_led.MIMXRT1176 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 2146 2147endif() 2148 2149endif() 2150 2151 2152if (CONFIG_USE_component_lists) 2153# Add set(CONFIG_USE_component_lists true) in config.cmake to use this component 2154 2155message("component_lists component is included from ${CMAKE_CURRENT_LIST_FILE}.") 2156 2157if(CONFIG_USE_driver_common) 2158 2159target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 2160 ${CMAKE_CURRENT_LIST_DIR}/../../components/lists/fsl_component_generic_list.c 2161) 2162 2163target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 2164 ${CMAKE_CURRENT_LIST_DIR}/../../components/lists/. 2165) 2166 2167else() 2168 2169message(SEND_ERROR "component_lists.MIMXRT1176 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 2170 2171endif() 2172 2173endif() 2174 2175 2176if (CONFIG_USE_component_log) 2177# Add set(CONFIG_USE_component_log true) in config.cmake to use this component 2178 2179message("component_log component is included from ${CMAKE_CURRENT_LIST_FILE}.") 2180 2181if(CONFIG_USE_driver_common AND CONFIG_USE_utility_str) 2182 2183target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 2184 ${CMAKE_CURRENT_LIST_DIR}/../../components/log/fsl_component_log.c 2185) 2186 2187target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 2188 ${CMAKE_CURRENT_LIST_DIR}/../../components/log/. 2189) 2190 2191else() 2192 2193message(SEND_ERROR "component_log.MIMXRT1176 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 2194 2195endif() 2196 2197endif() 2198 2199 2200if (CONFIG_USE_component_log_backend_debugconsole) 2201# Add set(CONFIG_USE_component_log_backend_debugconsole true) in config.cmake to use this component 2202 2203message("component_log_backend_debugconsole component is included from ${CMAKE_CURRENT_LIST_FILE}.") 2204 2205if(CONFIG_USE_driver_common AND CONFIG_USE_component_log AND CONFIG_USE_utility_debug_console) 2206 2207target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 2208 ${CMAKE_CURRENT_LIST_DIR}/../../components/log/fsl_component_log_backend_debugconsole.c 2209) 2210 2211target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 2212 ${CMAKE_CURRENT_LIST_DIR}/../../components/log/. 2213) 2214 2215else() 2216 2217message(SEND_ERROR "component_log_backend_debugconsole.MIMXRT1176 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 2218 2219endif() 2220 2221endif() 2222 2223 2224if (CONFIG_USE_component_log_backend_debugconsole_lite) 2225# Add set(CONFIG_USE_component_log_backend_debugconsole_lite true) in config.cmake to use this component 2226 2227message("component_log_backend_debugconsole_lite component is included from ${CMAKE_CURRENT_LIST_FILE}.") 2228 2229if(CONFIG_USE_driver_common AND CONFIG_USE_component_log AND CONFIG_USE_utility_debug_console_lite) 2230 2231target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 2232 ${CMAKE_CURRENT_LIST_DIR}/../../components/log/fsl_component_log_backend_debugconsole.c 2233) 2234 2235target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 2236 ${CMAKE_CURRENT_LIST_DIR}/../../components/log/. 2237) 2238 2239else() 2240 2241message(SEND_ERROR "component_log_backend_debugconsole_lite.MIMXRT1176 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 2242 2243endif() 2244 2245endif() 2246 2247 2248if (CONFIG_USE_component_log_backend_ringbuffer) 2249# Add set(CONFIG_USE_component_log_backend_ringbuffer true) in config.cmake to use this component 2250 2251message("component_log_backend_ringbuffer component is included from ${CMAKE_CURRENT_LIST_FILE}.") 2252 2253if(CONFIG_USE_driver_common AND CONFIG_USE_component_log) 2254 2255target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 2256 ${CMAKE_CURRENT_LIST_DIR}/../../components/log/fsl_component_log_backend_ringbuffer.c 2257) 2258 2259target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 2260 ${CMAKE_CURRENT_LIST_DIR}/../../components/log/. 2261) 2262 2263else() 2264 2265message(SEND_ERROR "component_log_backend_ringbuffer.MIMXRT1176 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 2266 2267endif() 2268 2269endif() 2270 2271 2272if (CONFIG_USE_component_mem_manager) 2273# Add set(CONFIG_USE_component_mem_manager true) in config.cmake to use this component 2274 2275message("component_mem_manager component is included from ${CMAKE_CURRENT_LIST_FILE}.") 2276 2277if(CONFIG_USE_driver_common AND CONFIG_USE_component_lists) 2278 2279target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 2280 ${CMAKE_CURRENT_LIST_DIR}/../../components/mem_manager/fsl_component_mem_manager.c 2281) 2282 2283target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 2284 ${CMAKE_CURRENT_LIST_DIR}/../../components/mem_manager/. 2285) 2286 2287else() 2288 2289message(SEND_ERROR "component_mem_manager.MIMXRT1176 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 2290 2291endif() 2292 2293endif() 2294 2295 2296if (CONFIG_USE_component_mem_manager_light) 2297# Add set(CONFIG_USE_component_mem_manager_light true) in config.cmake to use this component 2298 2299message("component_mem_manager_light component is included from ${CMAKE_CURRENT_LIST_FILE}.") 2300 2301if(CONFIG_USE_driver_common AND CONFIG_USE_component_lists) 2302 2303target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 2304 ${CMAKE_CURRENT_LIST_DIR}/../../components/mem_manager/fsl_component_mem_manager_light.c 2305) 2306 2307target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 2308 ${CMAKE_CURRENT_LIST_DIR}/../../components/mem_manager/. 2309) 2310 2311else() 2312 2313message(SEND_ERROR "component_mem_manager_light.MIMXRT1176 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 2314 2315endif() 2316 2317endif() 2318 2319 2320if (CONFIG_USE_component_messaging) 2321# Add set(CONFIG_USE_component_messaging true) in config.cmake to use this component 2322 2323message("component_messaging component is included from ${CMAKE_CURRENT_LIST_FILE}.") 2324 2325if(CONFIG_USE_driver_common AND CONFIG_USE_component_lists AND CONFIG_USE_component_mem_manager_light) 2326 2327target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 2328 ${CMAKE_CURRENT_LIST_DIR}/../../components/messaging/fsl_component_messaging.c 2329) 2330 2331target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 2332 ${CMAKE_CURRENT_LIST_DIR}/../../components/messaging/. 2333) 2334 2335else() 2336 2337message(SEND_ERROR "component_messaging.MIMXRT1176 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 2338 2339endif() 2340 2341endif() 2342 2343 2344if (CONFIG_USE_component_mflash_file) 2345# Add set(CONFIG_USE_component_mflash_file true) in config.cmake to use this component 2346 2347message("component_mflash_file component is included from ${CMAKE_CURRENT_LIST_FILE}.") 2348 2349if(CONFIG_USE_component_mflash_rt1170 OR CONFIG_USE_component_mflash_mimxrt1170evkb) 2350 2351target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 2352 ${CMAKE_CURRENT_LIST_DIR}/../../components/flash/mflash/mflash_file.c 2353) 2354 2355target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 2356 ${CMAKE_CURRENT_LIST_DIR}/../../components/flash/mflash/. 2357) 2358 2359else() 2360 2361message(SEND_ERROR "component_mflash_file.MIMXRT1176 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 2362 2363endif() 2364 2365endif() 2366 2367 2368if (CONFIG_USE_component_mflash_dummy) 2369# Add set(CONFIG_USE_component_mflash_dummy true) in config.cmake to use this component 2370 2371message("component_mflash_dummy component is included from ${CMAKE_CURRENT_LIST_FILE}.") 2372 2373if(CONFIG_USE_component_mflash_file) 2374 2375target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 2376 ${CMAKE_CURRENT_LIST_DIR}/../../components/flash/mflash/mflash_dummy.c 2377) 2378 2379else() 2380 2381message(SEND_ERROR "component_mflash_dummy.MIMXRT1176 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 2382 2383endif() 2384 2385endif() 2386 2387 2388if (CONFIG_USE_component_mflash_rt1170) 2389# Add set(CONFIG_USE_component_mflash_rt1170 true) in config.cmake to use this component 2390 2391message("component_mflash_rt1170 component is included from ${CMAKE_CURRENT_LIST_FILE}.") 2392 2393if(CONFIG_USE_component_mflash_common AND (CONFIG_BOARD STREQUAL evkmimxrt1170) AND CONFIG_USE_driver_flexspi AND (CONFIG_USE_driver_cache_armv7_m7 OR CONFIG_USE_driver_cache_lmem)) 2394 2395target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 2396 ${CMAKE_CURRENT_LIST_DIR}/../../components/flash/mflash/mimxrt1170/mflash_drv.c 2397) 2398 2399target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 2400 ${CMAKE_CURRENT_LIST_DIR}/../../components/flash/mflash/mimxrt1170/. 2401) 2402 2403if(CONFIG_USE_COMPONENT_CONFIGURATION) 2404 message("===>Import configuration from ${CMAKE_CURRENT_LIST_FILE}") 2405 2406 target_compile_definitions(${MCUX_SDK_PROJECT_NAME} PUBLIC 2407 -DMFLASH_FILE_BASEADDR=14221312 2408 ) 2409 2410endif() 2411 2412else() 2413 2414message(SEND_ERROR "component_mflash_rt1170.MIMXRT1176 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 2415 2416endif() 2417 2418endif() 2419 2420 2421if (CONFIG_USE_component_mflash_mimxrt1170evkb) 2422# Add set(CONFIG_USE_component_mflash_mimxrt1170evkb true) in config.cmake to use this component 2423 2424message("component_mflash_mimxrt1170evkb component is included from ${CMAKE_CURRENT_LIST_FILE}.") 2425 2426if(CONFIG_USE_component_mflash_common AND (CONFIG_BOARD STREQUAL evkbmimxrt1170) AND CONFIG_USE_driver_flexspi AND (CONFIG_USE_driver_cache_armv7_m7 OR CONFIG_USE_driver_cache_lmem)) 2427 2428target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 2429 ${CMAKE_CURRENT_LIST_DIR}/../../components/flash/mflash/mimxrt1170evkb/mflash_drv.c 2430) 2431 2432target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 2433 ${CMAKE_CURRENT_LIST_DIR}/../../components/flash/mflash/mimxrt1170evkb/. 2434) 2435 2436if(CONFIG_USE_COMPONENT_CONFIGURATION) 2437 message("===>Import configuration from ${CMAKE_CURRENT_LIST_FILE}") 2438 2439 target_compile_definitions(${MCUX_SDK_PROJECT_NAME} PUBLIC 2440 -DMFLASH_FILE_BASEADDR=14221312 2441 ) 2442 2443endif() 2444 2445else() 2446 2447message(SEND_ERROR "component_mflash_mimxrt1170evkb.MIMXRT1176 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 2448 2449endif() 2450 2451endif() 2452 2453 2454if (CONFIG_USE_driver_mma8451q) 2455# Add set(CONFIG_USE_driver_mma8451q true) in config.cmake to use this component 2456 2457message("driver_mma8451q component is included from ${CMAKE_CURRENT_LIST_FILE}.") 2458 2459if(CONFIG_USE_driver_common) 2460 2461target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 2462 ${CMAKE_CURRENT_LIST_DIR}/../../components/mma8451q/fsl_mma.c 2463) 2464 2465target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 2466 ${CMAKE_CURRENT_LIST_DIR}/../../components/mma8451q/. 2467) 2468 2469else() 2470 2471message(SEND_ERROR "driver_mma8451q.MIMXRT1176 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 2472 2473endif() 2474 2475endif() 2476 2477 2478if (CONFIG_USE_component_panic) 2479# Add set(CONFIG_USE_component_panic true) in config.cmake to use this component 2480 2481message("component_panic component is included from ${CMAKE_CURRENT_LIST_FILE}.") 2482 2483if(CONFIG_USE_driver_common) 2484 2485target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 2486 ${CMAKE_CURRENT_LIST_DIR}/../../components/panic/fsl_component_panic.c 2487) 2488 2489target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 2490 ${CMAKE_CURRENT_LIST_DIR}/../../components/panic/. 2491) 2492 2493else() 2494 2495message(SEND_ERROR "component_panic.MIMXRT1176 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 2496 2497endif() 2498 2499endif() 2500 2501 2502if (CONFIG_USE_driver_phy-device-rtl8211f) 2503# Add set(CONFIG_USE_driver_phy-device-rtl8211f true) in config.cmake to use this component 2504 2505message("driver_phy-device-rtl8211f component is included from ${CMAKE_CURRENT_LIST_FILE}.") 2506 2507if(CONFIG_USE_driver_phy-common) 2508 2509target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 2510 ${CMAKE_CURRENT_LIST_DIR}/../../components/phy/device/phyrtl8211f/fsl_phyrtl8211f.c 2511) 2512 2513target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 2514 ${CMAKE_CURRENT_LIST_DIR}/../../components/phy/device/phyrtl8211f/. 2515) 2516 2517else() 2518 2519message(SEND_ERROR "driver_phy-device-rtl8211f.MIMXRT1176 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 2520 2521endif() 2522 2523endif() 2524 2525 2526if (CONFIG_USE_driver_phy-device-rtl8201) 2527# Add set(CONFIG_USE_driver_phy-device-rtl8201 true) in config.cmake to use this component 2528 2529message("driver_phy-device-rtl8201 component is included from ${CMAKE_CURRENT_LIST_FILE}.") 2530 2531if(CONFIG_USE_driver_phy-common) 2532 2533target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 2534 ${CMAKE_CURRENT_LIST_DIR}/../../components/phy/device/phyrtl8201/fsl_phyrtl8201.c 2535) 2536 2537target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 2538 ${CMAKE_CURRENT_LIST_DIR}/../../components/phy/device/phyrtl8201/. 2539) 2540 2541else() 2542 2543message(SEND_ERROR "driver_phy-device-rtl8201.MIMXRT1176 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 2544 2545endif() 2546 2547endif() 2548 2549 2550if (CONFIG_USE_driver_phy-device-ksz8081) 2551# Add set(CONFIG_USE_driver_phy-device-ksz8081 true) in config.cmake to use this component 2552 2553message("driver_phy-device-ksz8081 component is included from ${CMAKE_CURRENT_LIST_FILE}.") 2554 2555if(CONFIG_USE_driver_phy-common) 2556 2557target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 2558 ${CMAKE_CURRENT_LIST_DIR}/../../components/phy/device/phyksz8081/fsl_phyksz8081.c 2559) 2560 2561target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 2562 ${CMAKE_CURRENT_LIST_DIR}/../../components/phy/device/phyksz8081/. 2563) 2564 2565else() 2566 2567message(SEND_ERROR "driver_phy-device-ksz8081.MIMXRT1176 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 2568 2569endif() 2570 2571endif() 2572 2573 2574if (CONFIG_USE_component_reset_adapter) 2575# Add set(CONFIG_USE_component_reset_adapter true) in config.cmake to use this component 2576 2577message("component_reset_adapter component is included from ${CMAKE_CURRENT_LIST_FILE}.") 2578 2579if(CONFIG_USE_driver_common) 2580 2581target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 2582 ${CMAKE_CURRENT_LIST_DIR}/../../components/reset/fsl_adapter_reset.c 2583) 2584 2585target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 2586 ${CMAKE_CURRENT_LIST_DIR}/../../components/reset/. 2587) 2588 2589else() 2590 2591message(SEND_ERROR "component_reset_adapter.MIMXRT1176 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 2592 2593endif() 2594 2595endif() 2596 2597 2598if (CONFIG_USE_component_software_rng_adapter) 2599# Add set(CONFIG_USE_component_software_rng_adapter true) in config.cmake to use this component 2600 2601message("component_software_rng_adapter component is included from ${CMAKE_CURRENT_LIST_FILE}.") 2602 2603if(CONFIG_USE_driver_common) 2604 2605target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 2606 ${CMAKE_CURRENT_LIST_DIR}/../../components/rng/fsl_adapter_software_rng.c 2607) 2608 2609target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 2610 ${CMAKE_CURRENT_LIST_DIR}/../../components/rng/. 2611) 2612 2613else() 2614 2615message(SEND_ERROR "component_software_rng_adapter.MIMXRT1176 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 2616 2617endif() 2618 2619endif() 2620 2621 2622if (CONFIG_USE_component_serial_manager) 2623# Add set(CONFIG_USE_component_serial_manager true) in config.cmake to use this component 2624 2625message("component_serial_manager component is included from ${CMAKE_CURRENT_LIST_FILE}.") 2626 2627if(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)) 2628 2629target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 2630 ${CMAKE_CURRENT_LIST_DIR}/../../components/serial_manager/fsl_component_serial_manager.c 2631) 2632 2633target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 2634 ${CMAKE_CURRENT_LIST_DIR}/../../components/serial_manager/. 2635) 2636 2637else() 2638 2639message(SEND_ERROR "component_serial_manager.MIMXRT1176 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 2640 2641endif() 2642 2643endif() 2644 2645 2646if (CONFIG_USE_component_serial_manager_spi) 2647# Add set(CONFIG_USE_component_serial_manager_spi true) in config.cmake to use this component 2648 2649message("component_serial_manager_spi component is included from ${CMAKE_CURRENT_LIST_FILE}.") 2650 2651if(CONFIG_USE_component_serial_manager AND ((CONFIG_USE_driver_lpspi AND CONFIG_USE_component_lpspi_adapter))) 2652 2653target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 2654 ${CMAKE_CURRENT_LIST_DIR}/../../components/serial_manager/fsl_component_serial_port_spi.c 2655) 2656 2657target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 2658 ${CMAKE_CURRENT_LIST_DIR}/../../components/serial_manager/. 2659) 2660 2661if(CONFIG_USE_COMPONENT_CONFIGURATION) 2662 message("===>Import configuration from ${CMAKE_CURRENT_LIST_FILE}") 2663 2664 target_compile_definitions(${MCUX_SDK_PROJECT_NAME} PUBLIC 2665 -DSERIAL_PORT_TYPE_SPI=1 2666 -DSERIAL_PORT_TYPE_SPI_MASTER=1 2667 -DSERIAL_PORT_TYPE_SPI_SLAVE=1 2668 -DSERIAL_MANAGER_NON_BLOCKING_MODE=1 2669 ) 2670 2671endif() 2672 2673else() 2674 2675message(SEND_ERROR "component_serial_manager_spi.MIMXRT1176 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 2676 2677endif() 2678 2679endif() 2680 2681 2682if (CONFIG_USE_component_serial_manager_usb_cdc) 2683# Add set(CONFIG_USE_component_serial_manager_usb_cdc true) in config.cmake to use this component 2684 2685message("component_serial_manager_usb_cdc component is included from ${CMAKE_CURRENT_LIST_FILE}.") 2686 2687if(CONFIG_USE_component_serial_manager AND CONFIG_USE_middleware_usb_device_cdc_external AND CONFIG_USE_driver_common) 2688 2689target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 2690 ${CMAKE_CURRENT_LIST_DIR}/../../components/serial_manager/fsl_component_serial_port_usb.c 2691 ${CMAKE_CURRENT_LIST_DIR}/../../components/serial_manager/usb_cdc_adapter/usb_device_descriptor.c 2692) 2693 2694target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 2695 ${CMAKE_CURRENT_LIST_DIR}/../../components/serial_manager/. 2696 ${CMAKE_CURRENT_LIST_DIR}/../../components/serial_manager/usb_cdc_adapter 2697) 2698 2699if(CONFIG_USE_COMPONENT_CONFIGURATION) 2700 message("===>Import configuration from ${CMAKE_CURRENT_LIST_FILE}") 2701 2702 target_compile_definitions(${MCUX_SDK_PROJECT_NAME} PUBLIC 2703 -DSERIAL_PORT_TYPE_USBCDC=1 2704 -DDEBUG_CONSOLE_TRANSFER_NON_BLOCKING 2705 -DUSB_DEVICE_CONFIG_CDC_ACM=1 2706 ) 2707 2708endif() 2709 2710else() 2711 2712message(SEND_ERROR "component_serial_manager_usb_cdc.MIMXRT1176 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 2713 2714endif() 2715 2716endif() 2717 2718 2719if (CONFIG_USE_component_serial_manager_virtual) 2720# Add set(CONFIG_USE_component_serial_manager_virtual true) in config.cmake to use this component 2721 2722message("component_serial_manager_virtual component is included from ${CMAKE_CURRENT_LIST_FILE}.") 2723 2724if(CONFIG_USE_component_serial_manager AND CONFIG_USE_driver_common) 2725 2726target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 2727 ${CMAKE_CURRENT_LIST_DIR}/../../components/serial_manager/fsl_component_serial_port_virtual.c 2728) 2729 2730target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 2731 ${CMAKE_CURRENT_LIST_DIR}/../../components/serial_manager/. 2732) 2733 2734if(CONFIG_USE_COMPONENT_CONFIGURATION) 2735 message("===>Import configuration from ${CMAKE_CURRENT_LIST_FILE}") 2736 2737 target_compile_definitions(${MCUX_SDK_PROJECT_NAME} PUBLIC 2738 -DSERIAL_PORT_TYPE_VIRTUAL=1 2739 -DDEBUG_CONSOLE_TRANSFER_NON_BLOCKING 2740 ) 2741 2742endif() 2743 2744else() 2745 2746message(SEND_ERROR "component_serial_manager_virtual.MIMXRT1176 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 2747 2748endif() 2749 2750endif() 2751 2752 2753if (CONFIG_USE_component_serial_manager_swo) 2754# Add set(CONFIG_USE_component_serial_manager_swo true) in config.cmake to use this component 2755 2756message("component_serial_manager_swo component is included from ${CMAKE_CURRENT_LIST_FILE}.") 2757 2758if((CONFIG_CORE STREQUAL cm4f OR CONFIG_CORE STREQUAL cm7f) AND CONFIG_USE_driver_common AND CONFIG_USE_component_serial_manager) 2759 2760target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 2761 ${CMAKE_CURRENT_LIST_DIR}/../../components/serial_manager/fsl_component_serial_port_swo.c 2762) 2763 2764target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 2765 ${CMAKE_CURRENT_LIST_DIR}/../../components/serial_manager/. 2766) 2767 2768if(CONFIG_USE_COMPONENT_CONFIGURATION) 2769 message("===>Import configuration from ${CMAKE_CURRENT_LIST_FILE}") 2770 2771 target_compile_definitions(${MCUX_SDK_PROJECT_NAME} PUBLIC 2772 -DSERIAL_PORT_TYPE_SWO=1 2773 ) 2774 2775endif() 2776 2777else() 2778 2779message(SEND_ERROR "component_serial_manager_swo.MIMXRT1176 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 2780 2781endif() 2782 2783endif() 2784 2785 2786if (CONFIG_USE_driver_sgtl5000) 2787# Add set(CONFIG_USE_driver_sgtl5000 true) in config.cmake to use this component 2788 2789message("driver_sgtl5000 component is included from ${CMAKE_CURRENT_LIST_FILE}.") 2790 2791if(CONFIG_USE_driver_common AND CONFIG_USE_component_codec_i2c) 2792 2793target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 2794 ${CMAKE_CURRENT_LIST_DIR}/../../components/codec/sgtl5000/fsl_sgtl5000.c 2795) 2796 2797target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 2798 ${CMAKE_CURRENT_LIST_DIR}/../../components/codec/sgtl5000/. 2799) 2800 2801if(CONFIG_USE_COMPONENT_CONFIGURATION) 2802 message("===>Import configuration from ${CMAKE_CURRENT_LIST_FILE}") 2803 2804 target_compile_definitions(${MCUX_SDK_PROJECT_NAME} PUBLIC 2805 -DSDK_I2C_BASED_COMPONENT_USED=1 2806 -DBOARD_USE_CODEC=1 2807 -DCODEC_SGTL5000_ENABLE 2808 ) 2809 2810endif() 2811 2812else() 2813 2814message(SEND_ERROR "driver_sgtl5000.MIMXRT1176 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 2815 2816endif() 2817 2818endif() 2819 2820 2821if (CONFIG_USE_utility_shell) 2822# Add set(CONFIG_USE_utility_shell true) in config.cmake to use this component 2823 2824message("utility_shell component is included from ${CMAKE_CURRENT_LIST_FILE}.") 2825 2826if(CONFIG_USE_utility_str AND CONFIG_USE_component_lists AND CONFIG_USE_driver_common) 2827 2828target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 2829 ${CMAKE_CURRENT_LIST_DIR}/../../utilities/shell/fsl_shell.c 2830) 2831 2832target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 2833 ${CMAKE_CURRENT_LIST_DIR}/../../utilities/shell/. 2834) 2835 2836if(CONFIG_USE_COMPONENT_CONFIGURATION) 2837 message("===>Import configuration from ${CMAKE_CURRENT_LIST_FILE}") 2838 2839 target_compile_definitions(${MCUX_SDK_PROJECT_NAME} PUBLIC 2840 -DDEBUG_CONSOLE_RX_ENABLE=0 2841 ) 2842 2843endif() 2844 2845else() 2846 2847message(SEND_ERROR "utility_shell.MIMXRT1176 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 2848 2849endif() 2850 2851endif() 2852 2853 2854if (CONFIG_USE_component_silicon_id_rt1170) 2855# Add set(CONFIG_USE_component_silicon_id_rt1170 true) in config.cmake to use this component 2856 2857message("component_silicon_id_rt1170 component is included from ${CMAKE_CURRENT_LIST_FILE}.") 2858 2859if((CONFIG_DEVICE_ID STREQUAL MIMXRT1176xxxxx) AND CONFIG_USE_component_silicon_id) 2860 2861target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 2862 ${CMAKE_CURRENT_LIST_DIR}/../../components/silicon_id/socs/imxrt1170/fsl_silicon_id_soc.c 2863) 2864 2865target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 2866 ${CMAKE_CURRENT_LIST_DIR}/../../components/silicon_id/socs/imxrt1170/.. 2867) 2868 2869else() 2870 2871message(SEND_ERROR "component_silicon_id_rt1170.MIMXRT1176 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 2872 2873endif() 2874 2875endif() 2876 2877 2878if (CONFIG_USE_component_silicon_id) 2879# Add set(CONFIG_USE_component_silicon_id true) in config.cmake to use this component 2880 2881message("component_silicon_id component is included from ${CMAKE_CURRENT_LIST_FILE}.") 2882 2883if((CONFIG_USE_driver_common AND CONFIG_USE_component_silicon_id_rt1170)) 2884 2885target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 2886 ${CMAKE_CURRENT_LIST_DIR}/../../components/silicon_id/fsl_silicon_id.c 2887) 2888 2889target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 2890 ${CMAKE_CURRENT_LIST_DIR}/../../components/silicon_id/. 2891) 2892 2893else() 2894 2895message(SEND_ERROR "component_silicon_id.MIMXRT1176 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 2896 2897endif() 2898 2899endif() 2900 2901 2902if (CONFIG_USE_component_lpspi_adapter) 2903# Add set(CONFIG_USE_component_lpspi_adapter true) in config.cmake to use this component 2904 2905message("component_lpspi_adapter component is included from ${CMAKE_CURRENT_LIST_FILE}.") 2906 2907if(CONFIG_USE_driver_common AND CONFIG_USE_driver_lpspi) 2908 2909target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 2910 ${CMAKE_CURRENT_LIST_DIR}/../../components/spi/fsl_adapter_lpspi.c 2911) 2912 2913target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 2914 ${CMAKE_CURRENT_LIST_DIR}/../../components/spi/. 2915) 2916 2917else() 2918 2919message(SEND_ERROR "component_lpspi_adapter.MIMXRT1176 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 2920 2921endif() 2922 2923endif() 2924 2925 2926if (CONFIG_USE_component_gpt_adapter) 2927# Add set(CONFIG_USE_component_gpt_adapter true) in config.cmake to use this component 2928 2929message("component_gpt_adapter component is included from ${CMAKE_CURRENT_LIST_FILE}.") 2930 2931if(CONFIG_USE_driver_common AND CONFIG_USE_driver_gpt) 2932 2933target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 2934 ${CMAKE_CURRENT_LIST_DIR}/../../components/timer/fsl_adapter_gpt.c 2935) 2936 2937target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 2938 ${CMAKE_CURRENT_LIST_DIR}/../../components/timer/. 2939) 2940 2941else() 2942 2943message(SEND_ERROR "component_gpt_adapter.MIMXRT1176 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 2944 2945endif() 2946 2947endif() 2948 2949 2950if (CONFIG_USE_component_pit_adapter) 2951# Add set(CONFIG_USE_component_pit_adapter true) in config.cmake to use this component 2952 2953message("component_pit_adapter component is included from ${CMAKE_CURRENT_LIST_FILE}.") 2954 2955if(CONFIG_USE_driver_common AND CONFIG_USE_driver_pit) 2956 2957target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 2958 ${CMAKE_CURRENT_LIST_DIR}/../../components/timer/fsl_adapter_pit.c 2959) 2960 2961target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 2962 ${CMAKE_CURRENT_LIST_DIR}/../../components/timer/. 2963) 2964 2965else() 2966 2967message(SEND_ERROR "component_pit_adapter.MIMXRT1176 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 2968 2969endif() 2970 2971endif() 2972 2973 2974if (CONFIG_USE_component_timer_manager) 2975# Add set(CONFIG_USE_component_timer_manager true) in config.cmake to use this component 2976 2977message("component_timer_manager component is included from ${CMAKE_CURRENT_LIST_FILE}.") 2978 2979if(CONFIG_USE_driver_common AND CONFIG_USE_component_lists AND (CONFIG_USE_component_gpt_adapter OR CONFIG_USE_component_pit_adapter)) 2980 2981target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 2982 ${CMAKE_CURRENT_LIST_DIR}/../../components/timer_manager/fsl_component_timer_manager.c 2983) 2984 2985target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 2986 ${CMAKE_CURRENT_LIST_DIR}/../../components/timer_manager/. 2987) 2988 2989else() 2990 2991message(SEND_ERROR "component_timer_manager.MIMXRT1176 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 2992 2993endif() 2994 2995endif() 2996 2997 2998if (CONFIG_USE_component_lpuart_adapter) 2999# Add set(CONFIG_USE_component_lpuart_adapter true) in config.cmake to use this component 3000 3001message("component_lpuart_adapter component is included from ${CMAKE_CURRENT_LIST_FILE}.") 3002 3003if(CONFIG_USE_driver_common AND CONFIG_USE_driver_lpuart) 3004 3005target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 3006 ${CMAKE_CURRENT_LIST_DIR}/../../components/uart/fsl_adapter_lpuart.c 3007) 3008 3009target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 3010 ${CMAKE_CURRENT_LIST_DIR}/../../components/uart/. 3011) 3012 3013else() 3014 3015message(SEND_ERROR "component_lpuart_adapter.MIMXRT1176 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 3016 3017endif() 3018 3019endif() 3020 3021 3022if (CONFIG_USE_component_lpuart_dma_adapter) 3023# Add set(CONFIG_USE_component_lpuart_dma_adapter true) in config.cmake to use this component 3024 3025message("component_lpuart_dma_adapter component is included from ${CMAKE_CURRENT_LIST_FILE}.") 3026 3027if(CONFIG_USE_component_lpuart_adapter AND CONFIG_USE_component_timer_manager AND (CONFIG_USE_driver_lpuart_edma)) 3028 3029target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 3030 ${CMAKE_CURRENT_LIST_DIR}/../../components/uart/fsl_adapter_lpuart.c 3031) 3032 3033target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 3034 ${CMAKE_CURRENT_LIST_DIR}/../../components/uart/. 3035) 3036 3037if(CONFIG_USE_COMPONENT_CONFIGURATION) 3038 message("===>Import configuration from ${CMAKE_CURRENT_LIST_FILE}") 3039 3040 target_compile_definitions(${MCUX_SDK_PROJECT_NAME} PUBLIC 3041 -DHAL_UART_DMA_ENABLE=1 3042 ) 3043 3044endif() 3045 3046else() 3047 3048message(SEND_ERROR "component_lpuart_dma_adapter.MIMXRT1176 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 3049 3050endif() 3051 3052endif() 3053 3054 3055if (CONFIG_USE_driver_video-common) 3056# Add set(CONFIG_USE_driver_video-common true) in config.cmake to use this component 3057 3058message("driver_video-common component is included from ${CMAKE_CURRENT_LIST_FILE}.") 3059 3060if(CONFIG_USE_driver_common) 3061 3062target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 3063 ${CMAKE_CURRENT_LIST_DIR}/../../components/video/fsl_video_common.c 3064) 3065 3066target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 3067 ${CMAKE_CURRENT_LIST_DIR}/../../components/video/. 3068) 3069 3070else() 3071 3072message(SEND_ERROR "driver_video-common.MIMXRT1176 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 3073 3074endif() 3075 3076endif() 3077 3078 3079if (CONFIG_USE_driver_wm8960) 3080# Add set(CONFIG_USE_driver_wm8960 true) in config.cmake to use this component 3081 3082message("driver_wm8960 component is included from ${CMAKE_CURRENT_LIST_FILE}.") 3083 3084if(CONFIG_USE_driver_common AND CONFIG_USE_component_codec_i2c) 3085 3086target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 3087 ${CMAKE_CURRENT_LIST_DIR}/../../components/codec/wm8960/fsl_wm8960.c 3088) 3089 3090target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 3091 ${CMAKE_CURRENT_LIST_DIR}/../../components/codec/wm8960/. 3092) 3093 3094if(CONFIG_USE_COMPONENT_CONFIGURATION) 3095 message("===>Import configuration from ${CMAKE_CURRENT_LIST_FILE}") 3096 3097 target_compile_definitions(${MCUX_SDK_PROJECT_NAME} PUBLIC 3098 -DSDK_I2C_BASED_COMPONENT_USED=1 3099 -DBOARD_USE_CODEC=1 3100 -DCODEC_WM8960_ENABLE 3101 ) 3102 3103endif() 3104 3105else() 3106 3107message(SEND_ERROR "driver_wm8960.MIMXRT1176 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 3108 3109endif() 3110 3111endif() 3112 3113 3114if (CONFIG_USE_driver_wm8962) 3115# Add set(CONFIG_USE_driver_wm8962 true) in config.cmake to use this component 3116 3117message("driver_wm8962 component is included from ${CMAKE_CURRENT_LIST_FILE}.") 3118 3119if(CONFIG_USE_driver_common AND CONFIG_USE_component_codec_i2c) 3120 3121target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 3122 ${CMAKE_CURRENT_LIST_DIR}/../../components/codec/wm8962/fsl_wm8962.c 3123) 3124 3125target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 3126 ${CMAKE_CURRENT_LIST_DIR}/../../components/codec/wm8962/. 3127) 3128 3129if(CONFIG_USE_COMPONENT_CONFIGURATION) 3130 message("===>Import configuration from ${CMAKE_CURRENT_LIST_FILE}") 3131 3132 target_compile_definitions(${MCUX_SDK_PROJECT_NAME} PUBLIC 3133 -DSDK_I2C_BASED_COMPONENT_USED=1 3134 -DBOARD_USE_CODEC=1 3135 -DCODEC_WM8962_ENABLE 3136 ) 3137 3138endif() 3139 3140else() 3141 3142message(SEND_ERROR "driver_wm8962.MIMXRT1176 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 3143 3144endif() 3145 3146endif() 3147 3148 3149if (CONFIG_USE_driver_common) 3150# Add set(CONFIG_USE_driver_common true) in config.cmake to use this component 3151 3152message("driver_common component is included from ${CMAKE_CURRENT_LIST_FILE}.") 3153 3154if(CONFIG_USE_driver_clock AND CONFIG_USE_device_MIMXRT1176_CMSIS) 3155 3156target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 3157 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/common/fsl_common.c 3158) 3159 3160if((CONFIG_CORE STREQUAL cm4f OR CONFIG_CORE STREQUAL cm7f)) 3161 target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 3162 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/common/fsl_common_arm.c 3163 ) 3164endif() 3165 3166target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 3167 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/common/. 3168) 3169 3170else() 3171 3172message(SEND_ERROR "driver_common.MIMXRT1176 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 3173 3174endif() 3175 3176endif() 3177 3178 3179if (CONFIG_USE_driver_acmp) 3180# Add set(CONFIG_USE_driver_acmp true) in config.cmake to use this component 3181 3182message("driver_acmp component is included from ${CMAKE_CURRENT_LIST_FILE}.") 3183 3184if((CONFIG_DEVICE_ID STREQUAL MIMXRT1176xxxxx) AND CONFIG_USE_driver_common) 3185 3186target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 3187 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/acmp/fsl_acmp.c 3188) 3189 3190target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 3191 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/acmp/. 3192) 3193 3194else() 3195 3196message(SEND_ERROR "driver_acmp.MIMXRT1176 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 3197 3198endif() 3199 3200endif() 3201 3202 3203if (CONFIG_USE_driver_adc_etc) 3204# Add set(CONFIG_USE_driver_adc_etc true) in config.cmake to use this component 3205 3206message("driver_adc_etc component is included from ${CMAKE_CURRENT_LIST_FILE}.") 3207 3208if((CONFIG_DEVICE_ID STREQUAL MIMXRT1176xxxxx) AND CONFIG_USE_driver_common) 3209 3210target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 3211 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/adc_etc/fsl_adc_etc.c 3212) 3213 3214target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 3215 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/adc_etc/. 3216) 3217 3218else() 3219 3220message(SEND_ERROR "driver_adc_etc.MIMXRT1176 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 3221 3222endif() 3223 3224endif() 3225 3226 3227if (CONFIG_USE_driver_aoi) 3228# Add set(CONFIG_USE_driver_aoi true) in config.cmake to use this component 3229 3230message("driver_aoi component is included from ${CMAKE_CURRENT_LIST_FILE}.") 3231 3232if((CONFIG_DEVICE_ID STREQUAL MIMXRT1176xxxxx) AND CONFIG_USE_driver_common) 3233 3234target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 3235 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/aoi/fsl_aoi.c 3236) 3237 3238target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 3239 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/aoi/. 3240) 3241 3242else() 3243 3244message(SEND_ERROR "driver_aoi.MIMXRT1176 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 3245 3246endif() 3247 3248endif() 3249 3250 3251if (CONFIG_USE_driver_asrc) 3252# Add set(CONFIG_USE_driver_asrc true) in config.cmake to use this component 3253 3254message("driver_asrc component is included from ${CMAKE_CURRENT_LIST_FILE}.") 3255 3256if((CONFIG_DEVICE_ID STREQUAL MIMXRT1176xxxxx) AND CONFIG_USE_driver_common) 3257 3258target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 3259 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/asrc/fsl_asrc.c 3260) 3261 3262target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 3263 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/asrc/. 3264) 3265 3266else() 3267 3268message(SEND_ERROR "driver_asrc.MIMXRT1176 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 3269 3270endif() 3271 3272endif() 3273 3274 3275if (CONFIG_USE_driver_cdog) 3276# Add set(CONFIG_USE_driver_cdog true) in config.cmake to use this component 3277 3278message("driver_cdog component is included from ${CMAKE_CURRENT_LIST_FILE}.") 3279 3280if((CONFIG_DEVICE_ID STREQUAL MIMXRT1176xxxxx) AND CONFIG_USE_driver_common) 3281 3282target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 3283 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/cdog/fsl_cdog.c 3284) 3285 3286target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 3287 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/cdog/. 3288) 3289 3290else() 3291 3292message(SEND_ERROR "driver_cdog.MIMXRT1176 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 3293 3294endif() 3295 3296endif() 3297 3298 3299if (CONFIG_USE_driver_dac12) 3300# Add set(CONFIG_USE_driver_dac12 true) in config.cmake to use this component 3301 3302message("driver_dac12 component is included from ${CMAKE_CURRENT_LIST_FILE}.") 3303 3304if((CONFIG_DEVICE_ID STREQUAL MIMXRT1176xxxxx) AND CONFIG_USE_driver_common) 3305 3306target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 3307 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/dac12/fsl_dac12.c 3308) 3309 3310target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 3311 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/dac12/. 3312) 3313 3314else() 3315 3316message(SEND_ERROR "driver_dac12.MIMXRT1176 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 3317 3318endif() 3319 3320endif() 3321 3322 3323if (CONFIG_USE_driver_dcic) 3324# Add set(CONFIG_USE_driver_dcic true) in config.cmake to use this component 3325 3326message("driver_dcic component is included from ${CMAKE_CURRENT_LIST_FILE}.") 3327 3328if((CONFIG_DEVICE_ID STREQUAL MIMXRT1176xxxxx) AND CONFIG_USE_driver_common) 3329 3330target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 3331 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/dcic/fsl_dcic.c 3332) 3333 3334target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 3335 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/dcic/. 3336) 3337 3338else() 3339 3340message(SEND_ERROR "driver_dcic.MIMXRT1176 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 3341 3342endif() 3343 3344endif() 3345 3346 3347if (CONFIG_USE_driver_dmamux) 3348# Add set(CONFIG_USE_driver_dmamux true) in config.cmake to use this component 3349 3350message("driver_dmamux component is included from ${CMAKE_CURRENT_LIST_FILE}.") 3351 3352if((CONFIG_DEVICE_ID STREQUAL MIMXRT1176xxxxx) AND CONFIG_USE_driver_common) 3353 3354target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 3355 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/dmamux/fsl_dmamux.c 3356) 3357 3358target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 3359 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/dmamux/. 3360) 3361 3362else() 3363 3364message(SEND_ERROR "driver_dmamux.MIMXRT1176 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 3365 3366endif() 3367 3368endif() 3369 3370 3371if (CONFIG_USE_driver_enc) 3372# Add set(CONFIG_USE_driver_enc true) in config.cmake to use this component 3373 3374message("driver_enc component is included from ${CMAKE_CURRENT_LIST_FILE}.") 3375 3376if((CONFIG_DEVICE_ID STREQUAL MIMXRT1176xxxxx) AND CONFIG_USE_driver_common) 3377 3378target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 3379 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/enc/fsl_enc.c 3380) 3381 3382target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 3383 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/enc/. 3384) 3385 3386else() 3387 3388message(SEND_ERROR "driver_enc.MIMXRT1176 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 3389 3390endif() 3391 3392endif() 3393 3394 3395if (CONFIG_USE_driver_ewm) 3396# Add set(CONFIG_USE_driver_ewm true) in config.cmake to use this component 3397 3398message("driver_ewm component is included from ${CMAKE_CURRENT_LIST_FILE}.") 3399 3400if((CONFIG_DEVICE_ID STREQUAL MIMXRT1176xxxxx) AND CONFIG_USE_driver_common) 3401 3402target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 3403 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/ewm/fsl_ewm.c 3404) 3405 3406target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 3407 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/ewm/. 3408) 3409 3410else() 3411 3412message(SEND_ERROR "driver_ewm.MIMXRT1176 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 3413 3414endif() 3415 3416endif() 3417 3418 3419if (CONFIG_USE_driver_flexcan) 3420# Add set(CONFIG_USE_driver_flexcan true) in config.cmake to use this component 3421 3422message("driver_flexcan component is included from ${CMAKE_CURRENT_LIST_FILE}.") 3423 3424if((CONFIG_DEVICE_ID STREQUAL MIMXRT1176xxxxx) AND CONFIG_USE_driver_common) 3425 3426target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 3427 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/flexcan/fsl_flexcan.c 3428) 3429 3430target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 3431 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/flexcan/. 3432) 3433 3434else() 3435 3436message(SEND_ERROR "driver_flexcan.MIMXRT1176 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 3437 3438endif() 3439 3440endif() 3441 3442 3443if (CONFIG_USE_driver_flexio) 3444# Add set(CONFIG_USE_driver_flexio true) in config.cmake to use this component 3445 3446message("driver_flexio component is included from ${CMAKE_CURRENT_LIST_FILE}.") 3447 3448if((CONFIG_DEVICE_ID STREQUAL MIMXRT1176xxxxx) AND CONFIG_USE_driver_common) 3449 3450target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 3451 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/flexio/fsl_flexio.c 3452) 3453 3454target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 3455 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/flexio/. 3456) 3457 3458else() 3459 3460message(SEND_ERROR "driver_flexio.MIMXRT1176 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 3461 3462endif() 3463 3464endif() 3465 3466 3467if (CONFIG_USE_driver_flexio_camera) 3468# Add set(CONFIG_USE_driver_flexio_camera true) in config.cmake to use this component 3469 3470message("driver_flexio_camera component is included from ${CMAKE_CURRENT_LIST_FILE}.") 3471 3472if(CONFIG_USE_driver_flexio AND (CONFIG_DEVICE_ID STREQUAL MIMXRT1176xxxxx)) 3473 3474target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 3475 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/flexio/camera/fsl_flexio_camera.c 3476) 3477 3478target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 3479 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/flexio/camera/. 3480) 3481 3482else() 3483 3484message(SEND_ERROR "driver_flexio_camera.MIMXRT1176 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 3485 3486endif() 3487 3488endif() 3489 3490 3491if (CONFIG_USE_driver_flexio_i2c_master) 3492# Add set(CONFIG_USE_driver_flexio_i2c_master true) in config.cmake to use this component 3493 3494message("driver_flexio_i2c_master component is included from ${CMAKE_CURRENT_LIST_FILE}.") 3495 3496if(CONFIG_USE_driver_flexio) 3497 3498target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 3499 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/flexio/i2c/fsl_flexio_i2c_master.c 3500) 3501 3502target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 3503 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/flexio/i2c/. 3504) 3505 3506else() 3507 3508message(SEND_ERROR "driver_flexio_i2c_master.MIMXRT1176 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 3509 3510endif() 3511 3512endif() 3513 3514 3515if (CONFIG_USE_driver_flexio_i2s) 3516# Add set(CONFIG_USE_driver_flexio_i2s true) in config.cmake to use this component 3517 3518message("driver_flexio_i2s component is included from ${CMAKE_CURRENT_LIST_FILE}.") 3519 3520if(CONFIG_USE_driver_flexio) 3521 3522target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 3523 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/flexio/i2s/fsl_flexio_i2s.c 3524) 3525 3526target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 3527 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/flexio/i2s/. 3528) 3529 3530else() 3531 3532message(SEND_ERROR "driver_flexio_i2s.MIMXRT1176 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 3533 3534endif() 3535 3536endif() 3537 3538 3539if (CONFIG_USE_driver_flexio_mculcd) 3540# Add set(CONFIG_USE_driver_flexio_mculcd true) in config.cmake to use this component 3541 3542message("driver_flexio_mculcd component is included from ${CMAKE_CURRENT_LIST_FILE}.") 3543 3544if(CONFIG_USE_driver_flexio AND (CONFIG_DEVICE_ID STREQUAL MIMXRT1176xxxxx)) 3545 3546target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 3547 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/flexio/mculcd/fsl_flexio_mculcd.c 3548) 3549 3550target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 3551 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/flexio/mculcd/. 3552) 3553 3554else() 3555 3556message(SEND_ERROR "driver_flexio_mculcd.MIMXRT1176 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 3557 3558endif() 3559 3560endif() 3561 3562 3563if (CONFIG_USE_driver_flexio_spi) 3564# Add set(CONFIG_USE_driver_flexio_spi true) in config.cmake to use this component 3565 3566message("driver_flexio_spi component is included from ${CMAKE_CURRENT_LIST_FILE}.") 3567 3568if(CONFIG_USE_driver_flexio) 3569 3570target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 3571 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/flexio/spi/fsl_flexio_spi.c 3572) 3573 3574target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 3575 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/flexio/spi/. 3576) 3577 3578else() 3579 3580message(SEND_ERROR "driver_flexio_spi.MIMXRT1176 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 3581 3582endif() 3583 3584endif() 3585 3586 3587if (CONFIG_USE_driver_flexio_uart) 3588# Add set(CONFIG_USE_driver_flexio_uart true) in config.cmake to use this component 3589 3590message("driver_flexio_uart component is included from ${CMAKE_CURRENT_LIST_FILE}.") 3591 3592if(CONFIG_USE_driver_flexio) 3593 3594target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 3595 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/flexio/uart/fsl_flexio_uart.c 3596) 3597 3598target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 3599 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/flexio/uart/. 3600) 3601 3602else() 3603 3604message(SEND_ERROR "driver_flexio_uart.MIMXRT1176 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 3605 3606endif() 3607 3608endif() 3609 3610 3611if (CONFIG_USE_driver_flexram) 3612# Add set(CONFIG_USE_driver_flexram true) in config.cmake to use this component 3613 3614message("driver_flexram component is included from ${CMAKE_CURRENT_LIST_FILE}.") 3615 3616if((CONFIG_DEVICE_ID STREQUAL MIMXRT1176xxxxx) AND CONFIG_USE_driver_common AND CONFIG_USE_driver_soc_flexram_allocate) 3617 3618target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 3619 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/flexram/fsl_flexram.c 3620) 3621 3622target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 3623 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/flexram/. 3624) 3625 3626else() 3627 3628message(SEND_ERROR "driver_flexram.MIMXRT1176 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 3629 3630endif() 3631 3632endif() 3633 3634 3635if (CONFIG_USE_driver_flexspi) 3636# Add set(CONFIG_USE_driver_flexspi true) in config.cmake to use this component 3637 3638message("driver_flexspi component is included from ${CMAKE_CURRENT_LIST_FILE}.") 3639 3640if((CONFIG_DEVICE_ID STREQUAL MIMXRT1176xxxxx) AND CONFIG_USE_driver_common) 3641 3642target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 3643 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/flexspi/fsl_flexspi.c 3644) 3645 3646target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 3647 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/flexspi/. 3648) 3649 3650else() 3651 3652message(SEND_ERROR "driver_flexspi.MIMXRT1176 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 3653 3654endif() 3655 3656endif() 3657 3658 3659if (CONFIG_USE_driver_gpt) 3660# Add set(CONFIG_USE_driver_gpt true) in config.cmake to use this component 3661 3662message("driver_gpt component is included from ${CMAKE_CURRENT_LIST_FILE}.") 3663 3664if((CONFIG_DEVICE_ID STREQUAL MIMXRT1176xxxxx) AND CONFIG_USE_driver_common) 3665 3666target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 3667 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/gpt/fsl_gpt.c 3668) 3669 3670target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 3671 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/gpt/. 3672) 3673 3674else() 3675 3676message(SEND_ERROR "driver_gpt.MIMXRT1176 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 3677 3678endif() 3679 3680endif() 3681 3682 3683if (CONFIG_USE_driver_iee) 3684# Add set(CONFIG_USE_driver_iee true) in config.cmake to use this component 3685 3686message("driver_iee component is included from ${CMAKE_CURRENT_LIST_FILE}.") 3687 3688if((CONFIG_DEVICE_ID STREQUAL MIMXRT1176xxxxx) AND CONFIG_USE_driver_common) 3689 3690target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 3691 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/iee/fsl_iee.c 3692) 3693 3694target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 3695 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/iee/. 3696) 3697 3698else() 3699 3700message(SEND_ERROR "driver_iee.MIMXRT1176 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 3701 3702endif() 3703 3704endif() 3705 3706 3707if (CONFIG_USE_driver_iee_apc) 3708# Add set(CONFIG_USE_driver_iee_apc true) in config.cmake to use this component 3709 3710message("driver_iee_apc component is included from ${CMAKE_CURRENT_LIST_FILE}.") 3711 3712if((CONFIG_DEVICE_ID STREQUAL MIMXRT1176xxxxx) AND CONFIG_USE_driver_common) 3713 3714target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 3715 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/iee_apc/fsl_iee_apc.c 3716) 3717 3718target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 3719 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/iee_apc/. 3720) 3721 3722else() 3723 3724message(SEND_ERROR "driver_iee_apc.MIMXRT1176 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 3725 3726endif() 3727 3728endif() 3729 3730 3731if (CONFIG_USE_driver_igpio) 3732# Add set(CONFIG_USE_driver_igpio true) in config.cmake to use this component 3733 3734message("driver_igpio component is included from ${CMAKE_CURRENT_LIST_FILE}.") 3735 3736if((CONFIG_DEVICE_ID STREQUAL MIMXRT1176xxxxx) AND CONFIG_USE_driver_common) 3737 3738target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 3739 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/igpio/fsl_gpio.c 3740) 3741 3742target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 3743 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/igpio/. 3744) 3745 3746else() 3747 3748message(SEND_ERROR "driver_igpio.MIMXRT1176 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 3749 3750endif() 3751 3752endif() 3753 3754 3755if (CONFIG_USE_driver_key_manager) 3756# Add set(CONFIG_USE_driver_key_manager true) in config.cmake to use this component 3757 3758message("driver_key_manager component is included from ${CMAKE_CURRENT_LIST_FILE}.") 3759 3760if((CONFIG_DEVICE_ID STREQUAL MIMXRT1176xxxxx) AND CONFIG_USE_driver_common) 3761 3762target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 3763 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/key_manager/fsl_key_manager.c 3764) 3765 3766target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 3767 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/key_manager/. 3768) 3769 3770else() 3771 3772message(SEND_ERROR "driver_key_manager.MIMXRT1176 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 3773 3774endif() 3775 3776endif() 3777 3778 3779if (CONFIG_USE_driver_kpp) 3780# Add set(CONFIG_USE_driver_kpp true) in config.cmake to use this component 3781 3782message("driver_kpp component is included from ${CMAKE_CURRENT_LIST_FILE}.") 3783 3784if((CONFIG_DEVICE_ID STREQUAL MIMXRT1176xxxxx) AND CONFIG_USE_driver_common) 3785 3786target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 3787 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/kpp/fsl_kpp.c 3788) 3789 3790target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 3791 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/kpp/. 3792) 3793 3794else() 3795 3796message(SEND_ERROR "driver_kpp.MIMXRT1176 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 3797 3798endif() 3799 3800endif() 3801 3802 3803if (CONFIG_USE_driver_lpadc) 3804# Add set(CONFIG_USE_driver_lpadc true) in config.cmake to use this component 3805 3806message("driver_lpadc component is included from ${CMAKE_CURRENT_LIST_FILE}.") 3807 3808if((CONFIG_DEVICE_ID STREQUAL MIMXRT1176xxxxx) AND CONFIG_USE_driver_common) 3809 3810target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 3811 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/lpadc/fsl_lpadc.c 3812) 3813 3814target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 3815 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/lpadc/. 3816) 3817 3818else() 3819 3820message(SEND_ERROR "driver_lpadc.MIMXRT1176 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 3821 3822endif() 3823 3824endif() 3825 3826 3827if (CONFIG_USE_driver_lpi2c) 3828# Add set(CONFIG_USE_driver_lpi2c true) in config.cmake to use this component 3829 3830message("driver_lpi2c component is included from ${CMAKE_CURRENT_LIST_FILE}.") 3831 3832if((CONFIG_DEVICE_ID STREQUAL MIMXRT1176xxxxx) AND CONFIG_USE_driver_common) 3833 3834target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 3835 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/lpi2c/fsl_lpi2c.c 3836) 3837 3838target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 3839 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/lpi2c/. 3840) 3841 3842else() 3843 3844message(SEND_ERROR "driver_lpi2c.MIMXRT1176 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 3845 3846endif() 3847 3848endif() 3849 3850 3851if (CONFIG_USE_driver_lpi2c_freertos) 3852# Add set(CONFIG_USE_driver_lpi2c_freertos true) in config.cmake to use this component 3853 3854message("driver_lpi2c_freertos component is included from ${CMAKE_CURRENT_LIST_FILE}.") 3855 3856if(CONFIG_USE_driver_lpi2c AND CONFIG_USE_middleware_freertos-kernel) 3857 3858target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 3859 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/lpi2c/fsl_lpi2c_freertos.c 3860) 3861 3862target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 3863 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/lpi2c/. 3864) 3865 3866else() 3867 3868message(SEND_ERROR "driver_lpi2c_freertos.MIMXRT1176 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 3869 3870endif() 3871 3872endif() 3873 3874 3875if (CONFIG_USE_driver_lpspi) 3876# Add set(CONFIG_USE_driver_lpspi true) in config.cmake to use this component 3877 3878message("driver_lpspi component is included from ${CMAKE_CURRENT_LIST_FILE}.") 3879 3880if((CONFIG_DEVICE_ID STREQUAL MIMXRT1176xxxxx) AND CONFIG_USE_driver_common) 3881 3882target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 3883 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/lpspi/fsl_lpspi.c 3884) 3885 3886target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 3887 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/lpspi/. 3888) 3889 3890else() 3891 3892message(SEND_ERROR "driver_lpspi.MIMXRT1176 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 3893 3894endif() 3895 3896endif() 3897 3898 3899if (CONFIG_USE_driver_lpspi_freertos) 3900# Add set(CONFIG_USE_driver_lpspi_freertos true) in config.cmake to use this component 3901 3902message("driver_lpspi_freertos component is included from ${CMAKE_CURRENT_LIST_FILE}.") 3903 3904if(CONFIG_USE_driver_lpspi AND CONFIG_USE_middleware_freertos-kernel) 3905 3906target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 3907 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/lpspi/fsl_lpspi_freertos.c 3908) 3909 3910target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 3911 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/lpspi/. 3912) 3913 3914else() 3915 3916message(SEND_ERROR "driver_lpspi_freertos.MIMXRT1176 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 3917 3918endif() 3919 3920endif() 3921 3922 3923if (CONFIG_USE_driver_lpuart) 3924# Add set(CONFIG_USE_driver_lpuart true) in config.cmake to use this component 3925 3926message("driver_lpuart component is included from ${CMAKE_CURRENT_LIST_FILE}.") 3927 3928if((CONFIG_DEVICE_ID STREQUAL MIMXRT1176xxxxx) AND CONFIG_USE_driver_common) 3929 3930target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 3931 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/lpuart/fsl_lpuart.c 3932) 3933 3934target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 3935 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/lpuart/. 3936) 3937 3938else() 3939 3940message(SEND_ERROR "driver_lpuart.MIMXRT1176 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 3941 3942endif() 3943 3944endif() 3945 3946 3947if (CONFIG_USE_driver_lpuart_freertos) 3948# Add set(CONFIG_USE_driver_lpuart_freertos true) in config.cmake to use this component 3949 3950message("driver_lpuart_freertos component is included from ${CMAKE_CURRENT_LIST_FILE}.") 3951 3952if(CONFIG_USE_driver_lpuart AND CONFIG_USE_middleware_freertos-kernel) 3953 3954target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 3955 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/lpuart/fsl_lpuart_freertos.c 3956) 3957 3958target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 3959 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/lpuart/. 3960) 3961 3962else() 3963 3964message(SEND_ERROR "driver_lpuart_freertos.MIMXRT1176 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 3965 3966endif() 3967 3968endif() 3969 3970 3971if (CONFIG_USE_driver_mecc) 3972# Add set(CONFIG_USE_driver_mecc true) in config.cmake to use this component 3973 3974message("driver_mecc component is included from ${CMAKE_CURRENT_LIST_FILE}.") 3975 3976if((CONFIG_DEVICE_ID STREQUAL MIMXRT1176xxxxx) AND CONFIG_USE_driver_common) 3977 3978target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 3979 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/mecc/fsl_mecc.c 3980) 3981 3982target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 3983 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/mecc/. 3984) 3985 3986else() 3987 3988message(SEND_ERROR "driver_mecc.MIMXRT1176 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 3989 3990endif() 3991 3992endif() 3993 3994 3995if (CONFIG_USE_driver_mipi_csi2rx) 3996# Add set(CONFIG_USE_driver_mipi_csi2rx true) in config.cmake to use this component 3997 3998message("driver_mipi_csi2rx component is included from ${CMAKE_CURRENT_LIST_FILE}.") 3999 4000if((CONFIG_DEVICE_ID STREQUAL MIMXRT1176xxxxx) AND CONFIG_USE_driver_common AND CONFIG_USE_driver_soc_mipi_csi2rx) 4001 4002target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 4003 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/mipi_csi2rx/fsl_mipi_csi2rx.c 4004) 4005 4006target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 4007 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/mipi_csi2rx/. 4008) 4009 4010else() 4011 4012message(SEND_ERROR "driver_mipi_csi2rx.MIMXRT1176 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 4013 4014endif() 4015 4016endif() 4017 4018 4019if (CONFIG_USE_driver_mipi_dsi_split) 4020# Add set(CONFIG_USE_driver_mipi_dsi_split true) in config.cmake to use this component 4021 4022message("driver_mipi_dsi_split component is included from ${CMAKE_CURRENT_LIST_FILE}.") 4023 4024if((CONFIG_DEVICE_ID STREQUAL MIMXRT1176xxxxx) AND CONFIG_USE_driver_common AND CONFIG_USE_driver_soc_mipi_csi2rx) 4025 4026target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 4027 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/mipi_dsi_split/fsl_mipi_dsi.c 4028) 4029 4030target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 4031 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/mipi_dsi_split/. 4032) 4033 4034else() 4035 4036message(SEND_ERROR "driver_mipi_dsi_split.MIMXRT1176 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 4037 4038endif() 4039 4040endif() 4041 4042 4043if (CONFIG_USE_driver_mu) 4044# Add set(CONFIG_USE_driver_mu true) in config.cmake to use this component 4045 4046message("driver_mu component is included from ${CMAKE_CURRENT_LIST_FILE}.") 4047 4048if((CONFIG_DEVICE_ID STREQUAL MIMXRT1176xxxxx) AND CONFIG_USE_driver_common) 4049 4050target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 4051 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/mu/fsl_mu.c 4052) 4053 4054target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 4055 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/mu/. 4056) 4057 4058else() 4059 4060message(SEND_ERROR "driver_mu.MIMXRT1176 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 4061 4062endif() 4063 4064endif() 4065 4066 4067if (CONFIG_USE_driver_ocotp) 4068# Add set(CONFIG_USE_driver_ocotp true) in config.cmake to use this component 4069 4070message("driver_ocotp component is included from ${CMAKE_CURRENT_LIST_FILE}.") 4071 4072if((CONFIG_DEVICE_ID STREQUAL MIMXRT1176xxxxx) AND CONFIG_USE_driver_common) 4073 4074target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 4075 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/ocotp/fsl_ocotp.c 4076) 4077 4078target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 4079 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/ocotp/. 4080) 4081 4082else() 4083 4084message(SEND_ERROR "driver_ocotp.MIMXRT1176 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 4085 4086endif() 4087 4088endif() 4089 4090 4091if (CONFIG_USE_driver_pdm) 4092# Add set(CONFIG_USE_driver_pdm true) in config.cmake to use this component 4093 4094message("driver_pdm component is included from ${CMAKE_CURRENT_LIST_FILE}.") 4095 4096if((CONFIG_DEVICE_ID STREQUAL MIMXRT1176xxxxx) AND CONFIG_USE_driver_common) 4097 4098target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 4099 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/pdm/fsl_pdm.c 4100) 4101 4102target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 4103 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/pdm/. 4104) 4105 4106else() 4107 4108message(SEND_ERROR "driver_pdm.MIMXRT1176 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 4109 4110endif() 4111 4112endif() 4113 4114 4115if (CONFIG_USE_driver_pit) 4116# Add set(CONFIG_USE_driver_pit true) in config.cmake to use this component 4117 4118message("driver_pit component is included from ${CMAKE_CURRENT_LIST_FILE}.") 4119 4120if((CONFIG_DEVICE_ID STREQUAL MIMXRT1176xxxxx) AND CONFIG_USE_driver_common) 4121 4122target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 4123 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/pit/fsl_pit.c 4124) 4125 4126target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 4127 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/pit/. 4128) 4129 4130else() 4131 4132message(SEND_ERROR "driver_pit.MIMXRT1176 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 4133 4134endif() 4135 4136endif() 4137 4138 4139if (CONFIG_USE_driver_puf) 4140# Add set(CONFIG_USE_driver_puf true) in config.cmake to use this component 4141 4142message("driver_puf component is included from ${CMAKE_CURRENT_LIST_FILE}.") 4143 4144if((CONFIG_DEVICE_ID STREQUAL MIMXRT1176xxxxx) AND CONFIG_USE_driver_common) 4145 4146target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 4147 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/puf/fsl_puf.c 4148) 4149 4150target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 4151 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/puf/. 4152) 4153 4154else() 4155 4156message(SEND_ERROR "driver_puf.MIMXRT1176 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 4157 4158endif() 4159 4160endif() 4161 4162 4163if (CONFIG_USE_driver_pwm) 4164# Add set(CONFIG_USE_driver_pwm true) in config.cmake to use this component 4165 4166message("driver_pwm component is included from ${CMAKE_CURRENT_LIST_FILE}.") 4167 4168if((CONFIG_DEVICE_ID STREQUAL MIMXRT1176xxxxx) AND CONFIG_USE_driver_common) 4169 4170target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 4171 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/pwm/fsl_pwm.c 4172) 4173 4174target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 4175 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/pwm/. 4176) 4177 4178else() 4179 4180message(SEND_ERROR "driver_pwm.MIMXRT1176 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 4181 4182endif() 4183 4184endif() 4185 4186 4187if (CONFIG_USE_driver_qtmr_1) 4188# Add set(CONFIG_USE_driver_qtmr_1 true) in config.cmake to use this component 4189 4190message("driver_qtmr_1 component is included from ${CMAKE_CURRENT_LIST_FILE}.") 4191 4192if((CONFIG_DEVICE_ID STREQUAL MIMXRT1176xxxxx) AND CONFIG_USE_driver_common) 4193 4194target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 4195 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/qtmr_1/fsl_qtmr.c 4196) 4197 4198target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 4199 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/qtmr_1/. 4200) 4201 4202else() 4203 4204message(SEND_ERROR "driver_qtmr_1.MIMXRT1176 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 4205 4206endif() 4207 4208endif() 4209 4210 4211if (CONFIG_USE_driver_rdc) 4212# Add set(CONFIG_USE_driver_rdc true) in config.cmake to use this component 4213 4214message("driver_rdc component is included from ${CMAKE_CURRENT_LIST_FILE}.") 4215 4216if((CONFIG_DEVICE_ID STREQUAL MIMXRT1176xxxxx) AND CONFIG_USE_driver_common) 4217 4218target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 4219 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/rdc/fsl_rdc.c 4220) 4221 4222target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 4223 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/rdc/. 4224) 4225 4226else() 4227 4228message(SEND_ERROR "driver_rdc.MIMXRT1176 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 4229 4230endif() 4231 4232endif() 4233 4234 4235if (CONFIG_USE_driver_rdc_sema42) 4236# Add set(CONFIG_USE_driver_rdc_sema42 true) in config.cmake to use this component 4237 4238message("driver_rdc_sema42 component is included from ${CMAKE_CURRENT_LIST_FILE}.") 4239 4240if((CONFIG_DEVICE_ID STREQUAL MIMXRT1176xxxxx) AND CONFIG_USE_driver_common) 4241 4242target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 4243 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/rdc_sema42/fsl_rdc_sema42.c 4244) 4245 4246target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 4247 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/rdc_sema42/. 4248) 4249 4250else() 4251 4252message(SEND_ERROR "driver_rdc_sema42.MIMXRT1176 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 4253 4254endif() 4255 4256endif() 4257 4258 4259if (CONFIG_USE_driver_rtwdog) 4260# Add set(CONFIG_USE_driver_rtwdog true) in config.cmake to use this component 4261 4262message("driver_rtwdog component is included from ${CMAKE_CURRENT_LIST_FILE}.") 4263 4264if((CONFIG_DEVICE_ID STREQUAL MIMXRT1176xxxxx) AND CONFIG_USE_driver_common) 4265 4266target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 4267 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/rtwdog/fsl_rtwdog.c 4268) 4269 4270target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 4271 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/rtwdog/. 4272) 4273 4274else() 4275 4276message(SEND_ERROR "driver_rtwdog.MIMXRT1176 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 4277 4278endif() 4279 4280endif() 4281 4282 4283if (CONFIG_USE_driver_sai) 4284# Add set(CONFIG_USE_driver_sai true) in config.cmake to use this component 4285 4286message("driver_sai component is included from ${CMAKE_CURRENT_LIST_FILE}.") 4287 4288if((CONFIG_DEVICE_ID STREQUAL MIMXRT1176xxxxx) AND CONFIG_USE_driver_common) 4289 4290target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 4291 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/sai/fsl_sai.c 4292) 4293 4294target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 4295 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/sai/. 4296) 4297 4298else() 4299 4300message(SEND_ERROR "driver_sai.MIMXRT1176 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 4301 4302endif() 4303 4304endif() 4305 4306 4307if (CONFIG_USE_driver_sema4) 4308# Add set(CONFIG_USE_driver_sema4 true) in config.cmake to use this component 4309 4310message("driver_sema4 component is included from ${CMAKE_CURRENT_LIST_FILE}.") 4311 4312if((CONFIG_DEVICE_ID STREQUAL MIMXRT1176xxxxx) AND CONFIG_USE_driver_common) 4313 4314target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 4315 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/sema4/fsl_sema4.c 4316) 4317 4318target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 4319 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/sema4/. 4320) 4321 4322else() 4323 4324message(SEND_ERROR "driver_sema4.MIMXRT1176 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 4325 4326endif() 4327 4328endif() 4329 4330 4331if (CONFIG_USE_driver_semc) 4332# Add set(CONFIG_USE_driver_semc true) in config.cmake to use this component 4333 4334message("driver_semc component is included from ${CMAKE_CURRENT_LIST_FILE}.") 4335 4336if((CONFIG_DEVICE_ID STREQUAL MIMXRT1176xxxxx) AND CONFIG_USE_driver_common) 4337 4338target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 4339 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/semc/fsl_semc.c 4340) 4341 4342target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 4343 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/semc/. 4344) 4345 4346else() 4347 4348message(SEND_ERROR "driver_semc.MIMXRT1176 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 4349 4350endif() 4351 4352endif() 4353 4354 4355if (CONFIG_USE_driver_smartcard_emvsim) 4356# Add set(CONFIG_USE_driver_smartcard_emvsim true) in config.cmake to use this component 4357 4358message("driver_smartcard_emvsim component is included from ${CMAKE_CURRENT_LIST_FILE}.") 4359 4360if((CONFIG_DEVICE_ID STREQUAL MIMXRT1176xxxxx) AND ((CONFIG_BOARD STREQUAL evkmimxrt1170 OR CONFIG_BOARD STREQUAL evkbmimxrt1170)) AND CONFIG_USE_driver_common) 4361 4362target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 4363 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/smartcard/fsl_smartcard_emvsim.c 4364) 4365 4366target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 4367 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/smartcard/. 4368) 4369 4370else() 4371 4372message(SEND_ERROR "driver_smartcard_emvsim.MIMXRT1176 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 4373 4374endif() 4375 4376endif() 4377 4378 4379if (CONFIG_USE_driver_smartcard_phy_emvsim) 4380# Add set(CONFIG_USE_driver_smartcard_phy_emvsim true) in config.cmake to use this component 4381 4382message("driver_smartcard_phy_emvsim component is included from ${CMAKE_CURRENT_LIST_FILE}.") 4383 4384if(CONFIG_USE_driver_smartcard_emvsim AND (CONFIG_DEVICE_ID STREQUAL MIMXRT1176xxxxx) AND ((CONFIG_BOARD STREQUAL evkmimxrt1170 OR CONFIG_BOARD STREQUAL evkbmimxrt1170)) AND CONFIG_USE_driver_common) 4385 4386target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 4387 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/smartcard/fsl_smartcard_phy_emvsim.c 4388) 4389 4390target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 4391 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/smartcard/. 4392) 4393 4394if(CONFIG_USE_COMPONENT_CONFIGURATION) 4395 message("===>Import configuration from ${CMAKE_CURRENT_LIST_FILE}") 4396 4397 target_compile_definitions(${MCUX_SDK_PROJECT_NAME} PUBLIC 4398 -DUSING_PHY_EMVSIM 4399 ) 4400 4401endif() 4402 4403else() 4404 4405message(SEND_ERROR "driver_smartcard_phy_emvsim.MIMXRT1176 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 4406 4407endif() 4408 4409endif() 4410 4411 4412if (CONFIG_USE_driver_snvs_hp) 4413# Add set(CONFIG_USE_driver_snvs_hp true) in config.cmake to use this component 4414 4415message("driver_snvs_hp component is included from ${CMAKE_CURRENT_LIST_FILE}.") 4416 4417if((CONFIG_DEVICE_ID STREQUAL MIMXRT1176xxxxx) AND CONFIG_USE_driver_common) 4418 4419target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 4420 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/snvs_hp/fsl_snvs_hp.c 4421) 4422 4423target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 4424 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/snvs_hp/. 4425) 4426 4427else() 4428 4429message(SEND_ERROR "driver_snvs_hp.MIMXRT1176 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 4430 4431endif() 4432 4433endif() 4434 4435 4436if (CONFIG_USE_driver_snvs_lp) 4437# Add set(CONFIG_USE_driver_snvs_lp true) in config.cmake to use this component 4438 4439message("driver_snvs_lp component is included from ${CMAKE_CURRENT_LIST_FILE}.") 4440 4441if((CONFIG_DEVICE_ID STREQUAL MIMXRT1176xxxxx) AND CONFIG_USE_driver_common) 4442 4443target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 4444 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/snvs_lp/fsl_snvs_lp.c 4445) 4446 4447target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 4448 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/snvs_lp/. 4449) 4450 4451else() 4452 4453message(SEND_ERROR "driver_snvs_lp.MIMXRT1176 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 4454 4455endif() 4456 4457endif() 4458 4459 4460if (CONFIG_USE_driver_spdif) 4461# Add set(CONFIG_USE_driver_spdif true) in config.cmake to use this component 4462 4463message("driver_spdif component is included from ${CMAKE_CURRENT_LIST_FILE}.") 4464 4465if((CONFIG_DEVICE_ID STREQUAL MIMXRT1176xxxxx) AND CONFIG_USE_driver_common) 4466 4467target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 4468 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/spdif/fsl_spdif.c 4469) 4470 4471target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 4472 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/spdif/. 4473) 4474 4475else() 4476 4477message(SEND_ERROR "driver_spdif.MIMXRT1176 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 4478 4479endif() 4480 4481endif() 4482 4483 4484if (CONFIG_USE_driver_ssarc) 4485# Add set(CONFIG_USE_driver_ssarc true) in config.cmake to use this component 4486 4487message("driver_ssarc component is included from ${CMAKE_CURRENT_LIST_FILE}.") 4488 4489if((CONFIG_DEVICE_ID STREQUAL MIMXRT1176xxxxx) AND CONFIG_USE_driver_common) 4490 4491target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 4492 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/ssarc/fsl_ssarc.c 4493) 4494 4495target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 4496 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/ssarc/. 4497) 4498 4499else() 4500 4501message(SEND_ERROR "driver_ssarc.MIMXRT1176 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 4502 4503endif() 4504 4505endif() 4506 4507 4508if (CONFIG_USE_driver_tempsensor) 4509# Add set(CONFIG_USE_driver_tempsensor true) in config.cmake to use this component 4510 4511message("driver_tempsensor component is included from ${CMAKE_CURRENT_LIST_FILE}.") 4512 4513if((CONFIG_DEVICE_ID STREQUAL MIMXRT1176xxxxx) AND CONFIG_USE_driver_common) 4514 4515target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 4516 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/tempsensor/fsl_tempsensor.c 4517) 4518 4519target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 4520 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/tempsensor/. 4521) 4522 4523else() 4524 4525message(SEND_ERROR "driver_tempsensor.MIMXRT1176 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 4526 4527endif() 4528 4529endif() 4530 4531 4532if (CONFIG_USE_driver_wdog01) 4533# Add set(CONFIG_USE_driver_wdog01 true) in config.cmake to use this component 4534 4535message("driver_wdog01 component is included from ${CMAKE_CURRENT_LIST_FILE}.") 4536 4537if((CONFIG_DEVICE_ID STREQUAL MIMXRT1176xxxxx) AND CONFIG_USE_driver_common) 4538 4539target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 4540 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/wdog01/fsl_wdog.c 4541) 4542 4543target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 4544 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/wdog01/. 4545) 4546 4547else() 4548 4549message(SEND_ERROR "driver_wdog01.MIMXRT1176 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 4550 4551endif() 4552 4553endif() 4554 4555 4556if (CONFIG_USE_driver_xbara) 4557# Add set(CONFIG_USE_driver_xbara true) in config.cmake to use this component 4558 4559message("driver_xbara component is included from ${CMAKE_CURRENT_LIST_FILE}.") 4560 4561if((CONFIG_DEVICE_ID STREQUAL MIMXRT1176xxxxx) AND CONFIG_USE_driver_common) 4562 4563target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 4564 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/xbara/fsl_xbara.c 4565) 4566 4567target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 4568 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/xbara/. 4569) 4570 4571else() 4572 4573message(SEND_ERROR "driver_xbara.MIMXRT1176 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 4574 4575endif() 4576 4577endif() 4578 4579 4580if (CONFIG_USE_driver_xbarb) 4581# Add set(CONFIG_USE_driver_xbarb true) in config.cmake to use this component 4582 4583message("driver_xbarb component is included from ${CMAKE_CURRENT_LIST_FILE}.") 4584 4585if((CONFIG_DEVICE_ID STREQUAL MIMXRT1176xxxxx) AND CONFIG_USE_driver_common) 4586 4587target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 4588 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/xbarb/fsl_xbarb.c 4589) 4590 4591target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 4592 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/xbarb/. 4593) 4594 4595else() 4596 4597message(SEND_ERROR "driver_xbarb.MIMXRT1176 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 4598 4599endif() 4600 4601endif() 4602 4603 4604if (CONFIG_USE_driver_xecc) 4605# Add set(CONFIG_USE_driver_xecc true) in config.cmake to use this component 4606 4607message("driver_xecc component is included from ${CMAKE_CURRENT_LIST_FILE}.") 4608 4609if((CONFIG_DEVICE_ID STREQUAL MIMXRT1176xxxxx) AND CONFIG_USE_driver_common) 4610 4611target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 4612 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/xecc/fsl_xecc.c 4613) 4614 4615target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 4616 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/xecc/. 4617) 4618 4619else() 4620 4621message(SEND_ERROR "driver_xecc.MIMXRT1176 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 4622 4623endif() 4624 4625endif() 4626 4627 4628if (CONFIG_USE_driver_xrdc2) 4629# Add set(CONFIG_USE_driver_xrdc2 true) in config.cmake to use this component 4630 4631message("driver_xrdc2 component is included from ${CMAKE_CURRENT_LIST_FILE}.") 4632 4633if((CONFIG_DEVICE_ID STREQUAL MIMXRT1176xxxxx) AND CONFIG_USE_driver_common) 4634 4635target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 4636 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/xrdc2/fsl_xrdc2.c 4637) 4638 4639target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 4640 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/xrdc2/. 4641) 4642 4643else() 4644 4645message(SEND_ERROR "driver_xrdc2.MIMXRT1176 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 4646 4647endif() 4648 4649endif() 4650 4651 4652if (CONFIG_USE_driver_pmu_1) 4653# Add set(CONFIG_USE_driver_pmu_1 true) in config.cmake to use this component 4654 4655message("driver_pmu_1 component is included from ${CMAKE_CURRENT_LIST_FILE}.") 4656 4657if(CONFIG_USE_driver_common AND CONFIG_USE_driver_anatop_ai) 4658 4659target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 4660 ${CMAKE_CURRENT_LIST_DIR}/drivers/fsl_pmu.c 4661) 4662 4663target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 4664 ${CMAKE_CURRENT_LIST_DIR}/drivers/. 4665) 4666 4667else() 4668 4669message(SEND_ERROR "driver_pmu_1.MIMXRT1176 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 4670 4671endif() 4672 4673endif() 4674 4675 4676if (CONFIG_USE_driver_gpc_3) 4677# Add set(CONFIG_USE_driver_gpc_3 true) in config.cmake to use this component 4678 4679message("driver_gpc_3 component is included from ${CMAKE_CURRENT_LIST_FILE}.") 4680 4681if(CONFIG_USE_driver_common) 4682 4683target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 4684 ${CMAKE_CURRENT_LIST_DIR}/drivers/fsl_gpc.c 4685) 4686 4687target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 4688 ${CMAKE_CURRENT_LIST_DIR}/drivers/. 4689) 4690 4691else() 4692 4693message(SEND_ERROR "driver_gpc_3.MIMXRT1176 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 4694 4695endif() 4696 4697endif() 4698 4699 4700if (CONFIG_USE_driver_pgmc) 4701# Add set(CONFIG_USE_driver_pgmc true) in config.cmake to use this component 4702 4703message("driver_pgmc component is included from ${CMAKE_CURRENT_LIST_FILE}.") 4704 4705if(CONFIG_USE_driver_common) 4706 4707target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 4708 ${CMAKE_CURRENT_LIST_DIR}/drivers/fsl_pgmc.c 4709) 4710 4711target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 4712 ${CMAKE_CURRENT_LIST_DIR}/drivers/. 4713) 4714 4715else() 4716 4717message(SEND_ERROR "driver_pgmc.MIMXRT1176 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 4718 4719endif() 4720 4721endif() 4722 4723 4724if (CONFIG_USE_driver_soc_src) 4725# Add set(CONFIG_USE_driver_soc_src true) in config.cmake to use this component 4726 4727message("driver_soc_src component is included from ${CMAKE_CURRENT_LIST_FILE}.") 4728 4729if(CONFIG_USE_driver_common AND (CONFIG_DEVICE_ID STREQUAL MIMXRT1176xxxxx)) 4730 4731target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 4732 ${CMAKE_CURRENT_LIST_DIR}/drivers/fsl_soc_src.c 4733) 4734 4735target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 4736 ${CMAKE_CURRENT_LIST_DIR}/drivers/. 4737) 4738 4739else() 4740 4741message(SEND_ERROR "driver_soc_src.MIMXRT1176 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 4742 4743endif() 4744 4745endif() 4746 4747 4748if (CONFIG_USE_driver_dcdc_soc) 4749# Add set(CONFIG_USE_driver_dcdc_soc true) in config.cmake to use this component 4750 4751message("driver_dcdc_soc component is included from ${CMAKE_CURRENT_LIST_FILE}.") 4752 4753if(CONFIG_USE_driver_common AND (CONFIG_DEVICE_ID STREQUAL MIMXRT1176xxxxx)) 4754 4755target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 4756 ${CMAKE_CURRENT_LIST_DIR}/drivers/fsl_dcdc.c 4757) 4758 4759target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 4760 ${CMAKE_CURRENT_LIST_DIR}/drivers/. 4761) 4762 4763else() 4764 4765message(SEND_ERROR "driver_dcdc_soc.MIMXRT1176 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 4766 4767endif() 4768 4769endif() 4770 4771 4772if (CONFIG_USE_driver_romapi) 4773# Add set(CONFIG_USE_driver_romapi true) in config.cmake to use this component 4774 4775message("driver_romapi component is included from ${CMAKE_CURRENT_LIST_FILE}.") 4776 4777if(CONFIG_USE_driver_common) 4778 4779target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 4780 ${CMAKE_CURRENT_LIST_DIR}/drivers/fsl_romapi.c 4781) 4782 4783target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 4784 ${CMAKE_CURRENT_LIST_DIR}/drivers/. 4785) 4786 4787else() 4788 4789message(SEND_ERROR "driver_romapi.MIMXRT1176 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 4790 4791endif() 4792 4793endif() 4794 4795 4796if (CONFIG_USE_driver_anatop_ai) 4797# Add set(CONFIG_USE_driver_anatop_ai true) in config.cmake to use this component 4798 4799message("driver_anatop_ai component is included from ${CMAKE_CURRENT_LIST_FILE}.") 4800 4801if(CONFIG_USE_driver_common) 4802 4803target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 4804 ${CMAKE_CURRENT_LIST_DIR}/drivers/fsl_anatop_ai.c 4805) 4806 4807target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 4808 ${CMAKE_CURRENT_LIST_DIR}/drivers/. 4809) 4810 4811else() 4812 4813message(SEND_ERROR "driver_anatop_ai.MIMXRT1176 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 4814 4815endif() 4816 4817endif() 4818 4819 4820if (CONFIG_USE_driver_clock) 4821# Add set(CONFIG_USE_driver_clock true) in config.cmake to use this component 4822 4823message("driver_clock component is included from ${CMAKE_CURRENT_LIST_FILE}.") 4824 4825if(CONFIG_USE_driver_common AND CONFIG_USE_driver_anatop_ai AND CONFIG_USE_driver_pmu_1) 4826 4827target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 4828 ${CMAKE_CURRENT_LIST_DIR}/drivers/fsl_clock.c 4829) 4830 4831target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 4832 ${CMAKE_CURRENT_LIST_DIR}/drivers/. 4833) 4834 4835else() 4836 4837message(SEND_ERROR "driver_clock.MIMXRT1176 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 4838 4839endif() 4840 4841endif() 4842 4843 4844if (CONFIG_USE_driver_iomuxc) 4845# Add set(CONFIG_USE_driver_iomuxc true) in config.cmake to use this component 4846 4847message("driver_iomuxc component is included from ${CMAKE_CURRENT_LIST_FILE}.") 4848 4849if(CONFIG_USE_driver_common AND (CONFIG_DEVICE_ID STREQUAL MIMXRT1176xxxxx)) 4850 4851target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 4852 ${CMAKE_CURRENT_LIST_DIR}/drivers/. 4853) 4854 4855else() 4856 4857message(SEND_ERROR "driver_iomuxc.MIMXRT1176 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 4858 4859endif() 4860 4861endif() 4862 4863 4864if (CONFIG_USE_driver_memory) 4865# Add set(CONFIG_USE_driver_memory true) in config.cmake to use this component 4866 4867message("driver_memory component is included from ${CMAKE_CURRENT_LIST_FILE}.") 4868 4869if(CONFIG_USE_driver_common) 4870 4871target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 4872 ${CMAKE_CURRENT_LIST_DIR}/drivers/. 4873) 4874 4875else() 4876 4877message(SEND_ERROR "driver_memory.MIMXRT1176 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 4878 4879endif() 4880 4881endif() 4882 4883 4884if (CONFIG_USE_driver_nic301) 4885# Add set(CONFIG_USE_driver_nic301 true) in config.cmake to use this component 4886 4887message("driver_nic301 component is included from ${CMAKE_CURRENT_LIST_FILE}.") 4888 4889if(CONFIG_USE_driver_common) 4890 4891target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 4892 ${CMAKE_CURRENT_LIST_DIR}/drivers/. 4893) 4894 4895else() 4896 4897message(SEND_ERROR "driver_nic301.MIMXRT1176 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 4898 4899endif() 4900 4901endif() 4902 4903 4904if (CONFIG_USE_driver_soc_flexram_allocate) 4905# Add set(CONFIG_USE_driver_soc_flexram_allocate true) in config.cmake to use this component 4906 4907message("driver_soc_flexram_allocate component is included from ${CMAKE_CURRENT_LIST_FILE}.") 4908 4909if(CONFIG_USE_driver_common) 4910 4911target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 4912 ${CMAKE_CURRENT_LIST_DIR}/drivers/fsl_flexram_allocate.c 4913) 4914 4915target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 4916 ${CMAKE_CURRENT_LIST_DIR}/drivers/. 4917) 4918 4919else() 4920 4921message(SEND_ERROR "driver_soc_flexram_allocate.MIMXRT1176 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 4922 4923endif() 4924 4925endif() 4926 4927 4928if (CONFIG_USE_driver_soc_mipi_csi2rx) 4929# Add set(CONFIG_USE_driver_soc_mipi_csi2rx true) in config.cmake to use this component 4930 4931message("driver_soc_mipi_csi2rx component is included from ${CMAKE_CURRENT_LIST_FILE}.") 4932 4933if(CONFIG_USE_driver_common AND (CONFIG_DEVICE_ID STREQUAL MIMXRT1176xxxxx)) 4934 4935target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 4936 ${CMAKE_CURRENT_LIST_DIR}/drivers/fsl_soc_mipi_csi2rx.c 4937) 4938 4939target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 4940 ${CMAKE_CURRENT_LIST_DIR}/drivers/. 4941) 4942 4943else() 4944 4945message(SEND_ERROR "driver_soc_mipi_csi2rx.MIMXRT1176 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 4946 4947endif() 4948 4949endif() 4950 4951 4952if (CONFIG_USE_driver_xip_device) 4953# Add set(CONFIG_USE_driver_xip_device true) in config.cmake to use this component 4954 4955message("driver_xip_device component is included from ${CMAKE_CURRENT_LIST_FILE}.") 4956 4957if(CONFIG_USE_driver_common) 4958 4959target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 4960 ${CMAKE_CURRENT_LIST_DIR}/xip/fsl_flexspi_nor_boot.c 4961) 4962 4963target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 4964 ${CMAKE_CURRENT_LIST_DIR}/xip/. 4965) 4966 4967else() 4968 4969message(SEND_ERROR "driver_xip_device.MIMXRT1176 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 4970 4971endif() 4972 4973endif() 4974 4975 4976if (CONFIG_USE_driver_fbdev) 4977# Add set(CONFIG_USE_driver_fbdev true) in config.cmake to use this component 4978 4979message("driver_fbdev component is included from ${CMAKE_CURRENT_LIST_FILE}.") 4980 4981if(CONFIG_USE_driver_dc-fb-common AND CONFIG_USE_middleware_freertos-kernel) 4982 4983target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 4984 ${CMAKE_CURRENT_LIST_DIR}/../../components/video/display/fbdev/fsl_fbdev.c 4985) 4986 4987target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 4988 ${CMAKE_CURRENT_LIST_DIR}/../../components/video/display/fbdev/. 4989) 4990 4991else() 4992 4993message(SEND_ERROR "driver_fbdev.MIMXRT1176 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 4994 4995endif() 4996 4997endif() 4998 4999 5000if (CONFIG_USE_driver_display-rm68200) 5001# Add set(CONFIG_USE_driver_display-rm68200 true) in config.cmake to use this component 5002 5003message("driver_display-rm68200 component is included from ${CMAKE_CURRENT_LIST_FILE}.") 5004 5005if(CONFIG_USE_driver_display-common AND CONFIG_USE_driver_display-mipi-dsi-cmd) 5006 5007target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 5008 ${CMAKE_CURRENT_LIST_DIR}/../../components/video/display/rm68200/fsl_rm68200.c 5009) 5010 5011target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 5012 ${CMAKE_CURRENT_LIST_DIR}/../../components/video/display/rm68200/. 5013) 5014 5015else() 5016 5017message(SEND_ERROR "driver_display-rm68200.MIMXRT1176 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 5018 5019endif() 5020 5021endif() 5022 5023 5024if (CONFIG_USE_driver_display-rm68191) 5025# Add set(CONFIG_USE_driver_display-rm68191 true) in config.cmake to use this component 5026 5027message("driver_display-rm68191 component is included from ${CMAKE_CURRENT_LIST_FILE}.") 5028 5029if(CONFIG_USE_driver_display-common AND CONFIG_USE_driver_display-mipi-dsi-cmd) 5030 5031target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 5032 ${CMAKE_CURRENT_LIST_DIR}/../../components/video/display/rm68191/fsl_rm68191.c 5033) 5034 5035target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 5036 ${CMAKE_CURRENT_LIST_DIR}/../../components/video/display/rm68191/. 5037) 5038 5039else() 5040 5041message(SEND_ERROR "driver_display-rm68191.MIMXRT1176 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 5042 5043endif() 5044 5045endif() 5046 5047 5048if (CONFIG_USE_driver_display-mipi-dsi-cmd) 5049# Add set(CONFIG_USE_driver_display-mipi-dsi-cmd true) in config.cmake to use this component 5050 5051message("driver_display-mipi-dsi-cmd component is included from ${CMAKE_CURRENT_LIST_FILE}.") 5052 5053if(CONFIG_USE_driver_common AND (CONFIG_USE_driver_mipi_dsi_split)) 5054 5055target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 5056 ${CMAKE_CURRENT_LIST_DIR}/../../components/video/display/mipi_dsi_cmd/fsl_mipi_dsi_cmd.c 5057) 5058 5059target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 5060 ${CMAKE_CURRENT_LIST_DIR}/../../components/video/display/mipi_dsi_cmd/. 5061) 5062 5063else() 5064 5065message(SEND_ERROR "driver_display-mipi-dsi-cmd.MIMXRT1176 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 5066 5067endif() 5068 5069endif() 5070 5071 5072if (CONFIG_USE_driver_display-hx8394) 5073# Add set(CONFIG_USE_driver_display-hx8394 true) in config.cmake to use this component 5074 5075message("driver_display-hx8394 component is included from ${CMAKE_CURRENT_LIST_FILE}.") 5076 5077if(CONFIG_USE_driver_display-common AND CONFIG_USE_driver_display-mipi-dsi-cmd) 5078 5079target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 5080 ${CMAKE_CURRENT_LIST_DIR}/../../components/video/display/hx8394/fsl_hx8394.c 5081) 5082 5083target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 5084 ${CMAKE_CURRENT_LIST_DIR}/../../components/video/display/hx8394/. 5085) 5086 5087else() 5088 5089message(SEND_ERROR "driver_display-hx8394.MIMXRT1176 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 5090 5091endif() 5092 5093endif() 5094 5095 5096if (CONFIG_USE_driver_dc-fb-lcdifv2) 5097# Add set(CONFIG_USE_driver_dc-fb-lcdifv2 true) in config.cmake to use this component 5098 5099message("driver_dc-fb-lcdifv2 component is included from ${CMAKE_CURRENT_LIST_FILE}.") 5100 5101if(CONFIG_USE_driver_dc-fb-common AND CONFIG_USE_driver_display-common AND CONFIG_USE_driver_lcdifv2) 5102 5103target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 5104 ${CMAKE_CURRENT_LIST_DIR}/../../components/video/display/dc/lcdifv2/fsl_dc_fb_lcdifv2.c 5105) 5106 5107target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 5108 ${CMAKE_CURRENT_LIST_DIR}/../../components/video/display/dc/lcdifv2/. 5109) 5110 5111else() 5112 5113message(SEND_ERROR "driver_dc-fb-lcdifv2.MIMXRT1176 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 5114 5115endif() 5116 5117endif() 5118 5119 5120if (CONFIG_USE_driver_display-common) 5121# Add set(CONFIG_USE_driver_display-common true) in config.cmake to use this component 5122 5123message("driver_display-common component is included from ${CMAKE_CURRENT_LIST_FILE}.") 5124 5125if(CONFIG_USE_driver_video-common) 5126 5127target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 5128 ${CMAKE_CURRENT_LIST_DIR}/../../components/video/display/. 5129) 5130 5131else() 5132 5133message(SEND_ERROR "driver_display-common.MIMXRT1176 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 5134 5135endif() 5136 5137endif() 5138 5139 5140if (CONFIG_USE_driver_dc-fb-common) 5141# Add set(CONFIG_USE_driver_dc-fb-common true) in config.cmake to use this component 5142 5143message("driver_dc-fb-common component is included from ${CMAKE_CURRENT_LIST_FILE}.") 5144 5145if(CONFIG_USE_driver_video-common) 5146 5147target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 5148 ${CMAKE_CURRENT_LIST_DIR}/../../components/video/display/dc/. 5149) 5150 5151else() 5152 5153message(SEND_ERROR "driver_dc-fb-common.MIMXRT1176 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 5154 5155endif() 5156 5157endif() 5158 5159 5160if (CONFIG_USE_driver_dc-fb-elcdif) 5161# Add set(CONFIG_USE_driver_dc-fb-elcdif true) in config.cmake to use this component 5162 5163message("driver_dc-fb-elcdif component is included from ${CMAKE_CURRENT_LIST_FILE}.") 5164 5165if(CONFIG_USE_driver_dc-fb-common AND CONFIG_USE_driver_elcdif) 5166 5167target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 5168 ${CMAKE_CURRENT_LIST_DIR}/../../components/video/display/dc/elcdif/fsl_dc_fb_elcdif.c 5169) 5170 5171target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 5172 ${CMAKE_CURRENT_LIST_DIR}/../../components/video/display/dc/elcdif/. 5173) 5174 5175else() 5176 5177message(SEND_ERROR "driver_dc-fb-elcdif.MIMXRT1176 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 5178 5179endif() 5180 5181endif() 5182 5183 5184if (CONFIG_USE_driver_camera-device-sccb) 5185# Add set(CONFIG_USE_driver_camera-device-sccb true) in config.cmake to use this component 5186 5187message("driver_camera-device-sccb component is included from ${CMAKE_CURRENT_LIST_FILE}.") 5188 5189if(CONFIG_USE_driver_common AND (CONFIG_USE_driver_lpi2c)) 5190 5191target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 5192 ${CMAKE_CURRENT_LIST_DIR}/../../components/video/camera/device/sccb/fsl_sccb.c 5193) 5194 5195target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 5196 ${CMAKE_CURRENT_LIST_DIR}/../../components/video/camera/device/sccb/. 5197) 5198 5199if(CONFIG_USE_COMPONENT_CONFIGURATION) 5200 message("===>Import configuration from ${CMAKE_CURRENT_LIST_FILE}") 5201 5202 target_compile_definitions(${MCUX_SDK_PROJECT_NAME} PUBLIC 5203 -DSDK_I2C_BASED_COMPONENT_USED=1 5204 ) 5205 5206endif() 5207 5208else() 5209 5210message(SEND_ERROR "driver_camera-device-sccb.MIMXRT1176 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 5211 5212endif() 5213 5214endif() 5215 5216 5217if (CONFIG_USE_driver_camera-common) 5218# Add set(CONFIG_USE_driver_camera-common true) in config.cmake to use this component 5219 5220message("driver_camera-common component is included from ${CMAKE_CURRENT_LIST_FILE}.") 5221 5222if(CONFIG_USE_driver_video-common) 5223 5224target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 5225 ${CMAKE_CURRENT_LIST_DIR}/../../components/video/camera/. 5226) 5227 5228else() 5229 5230message(SEND_ERROR "driver_camera-common.MIMXRT1176 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 5231 5232endif() 5233 5234endif() 5235 5236 5237if (CONFIG_USE_driver_camera-device-common) 5238# Add set(CONFIG_USE_driver_camera-device-common true) in config.cmake to use this component 5239 5240message("driver_camera-device-common component is included from ${CMAKE_CURRENT_LIST_FILE}.") 5241 5242if(CONFIG_USE_driver_camera-common AND CONFIG_USE_driver_common) 5243 5244target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 5245 ${CMAKE_CURRENT_LIST_DIR}/../../components/video/camera/device/. 5246) 5247 5248else() 5249 5250message(SEND_ERROR "driver_camera-device-common.MIMXRT1176 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 5251 5252endif() 5253 5254endif() 5255 5256 5257if (CONFIG_USE_driver_camera-device-ov5640) 5258# Add set(CONFIG_USE_driver_camera-device-ov5640 true) in config.cmake to use this component 5259 5260message("driver_camera-device-ov5640 component is included from ${CMAKE_CURRENT_LIST_FILE}.") 5261 5262if(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) 5263 5264target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 5265 ${CMAKE_CURRENT_LIST_DIR}/../../components/video/camera/device/ov5640/fsl_ov5640.c 5266) 5267 5268target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 5269 ${CMAKE_CURRENT_LIST_DIR}/../../components/video/camera/device/ov5640/. 5270) 5271 5272else() 5273 5274message(SEND_ERROR "driver_camera-device-ov5640.MIMXRT1176 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 5275 5276endif() 5277 5278endif() 5279 5280 5281if (CONFIG_USE_driver_camera-receiver-common) 5282# Add set(CONFIG_USE_driver_camera-receiver-common true) in config.cmake to use this component 5283 5284message("driver_camera-receiver-common component is included from ${CMAKE_CURRENT_LIST_FILE}.") 5285 5286if(CONFIG_USE_driver_video-common AND CONFIG_USE_driver_camera-common) 5287 5288target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 5289 ${CMAKE_CURRENT_LIST_DIR}/../../components/video/camera/receiver/. 5290) 5291 5292else() 5293 5294message(SEND_ERROR "driver_camera-receiver-common.MIMXRT1176 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 5295 5296endif() 5297 5298endif() 5299 5300 5301if (CONFIG_USE_driver_camera-receiver-csi) 5302# Add set(CONFIG_USE_driver_camera-receiver-csi true) in config.cmake to use this component 5303 5304message("driver_camera-receiver-csi component is included from ${CMAKE_CURRENT_LIST_FILE}.") 5305 5306if(CONFIG_USE_driver_video-common AND CONFIG_USE_driver_camera-common AND CONFIG_USE_driver_camera-receiver-common AND CONFIG_USE_driver_csi) 5307 5308target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 5309 ${CMAKE_CURRENT_LIST_DIR}/../../components/video/camera/receiver/csi/fsl_csi_camera_adapter.c 5310) 5311 5312target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 5313 ${CMAKE_CURRENT_LIST_DIR}/../../components/video/camera/receiver/csi/. 5314) 5315 5316else() 5317 5318message(SEND_ERROR "driver_camera-receiver-csi.MIMXRT1176 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 5319 5320endif() 5321 5322endif() 5323 5324