1include_guard(GLOBAL) 2 3 4if (CONFIG_USE_device_MIMXRT685S_startup) 5# Add set(CONFIG_USE_device_MIMXRT685S_startup true) in config.cmake to use this component 6 7message("device_MIMXRT685S_startup component is included from ${CMAKE_CURRENT_LIST_FILE}.") 8 9target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 10 ${CMAKE_CURRENT_LIST_DIR}/./system_MIMXRT685S_cm33.c 11) 12 13if(CONFIG_TOOLCHAIN STREQUAL armgcc) 14 target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 15 ${CMAKE_CURRENT_LIST_DIR}/./gcc/startup_MIMXRT685S_cm33.S 16 ) 17endif() 18 19if(CONFIG_TOOLCHAIN STREQUAL mcux) 20 target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 21 ${CMAKE_CURRENT_LIST_DIR}/./mcuxpresso/startup_mimxrt685s.c 22 ${CMAKE_CURRENT_LIST_DIR}/./mcuxpresso/startup_mimxrt685s.cpp 23 ) 24endif() 25 26target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 27 ${CMAKE_CURRENT_LIST_DIR}/./. 28) 29 30 31endif() 32 33 34if (CONFIG_USE_middleware_baremetal) 35# Add set(CONFIG_USE_middleware_baremetal true) in config.cmake to use this component 36 37message("middleware_baremetal component is included from ${CMAKE_CURRENT_LIST_FILE}.") 38 39if(CONFIG_USE_COMPONENT_CONFIGURATION) 40 message("===>Import configuration from ${CMAKE_CURRENT_LIST_FILE}") 41 42 target_compile_definitions(${MCUX_SDK_PROJECT_NAME} PUBLIC 43 -DSDK_OS_BAREMETAL 44 ) 45 46endif() 47 48 49endif() 50 51 52if (CONFIG_USE_RTE_Device) 53# Add set(CONFIG_USE_RTE_Device true) in config.cmake to use this component 54 55message("RTE_Device component is included from ${CMAKE_CURRENT_LIST_FILE}.") 56 57add_config_file(${CMAKE_CURRENT_LIST_DIR}/template/RTE_Device.h "" RTE_Device.MIMXRT685S) 58 59target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 60 ${CMAKE_CURRENT_LIST_DIR}/template/. 61) 62 63 64endif() 65 66 67if (CONFIG_USE_utilities_misc_utilities) 68# Add set(CONFIG_USE_utilities_misc_utilities true) in config.cmake to use this component 69 70message("utilities_misc_utilities component is included from ${CMAKE_CURRENT_LIST_FILE}.") 71 72if(CONFIG_TOOLCHAIN STREQUAL armgcc) 73 target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 74 ${CMAKE_CURRENT_LIST_DIR}/../../utilities/misc_utilities/fsl_sbrk.c 75 ${CMAKE_CURRENT_LIST_DIR}/../../utilities/misc_utilities/fsl_syscall_stub.c 76 ) 77endif() 78 79if(CONFIG_CORE STREQUAL cm33 AND (CONFIG_TOOLCHAIN STREQUAL armgcc OR CONFIG_TOOLCHAIN STREQUAL mcux)) 80 target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 81 ${CMAKE_CURRENT_LIST_DIR}/../../utilities/misc_utilities/fsl_memcpy.S 82 ) 83endif() 84 85 86endif() 87 88 89if (CONFIG_USE_driver_icm42688p) 90# Add set(CONFIG_USE_driver_icm42688p true) in config.cmake to use this component 91 92message("driver_icm42688p component is included from ${CMAKE_CURRENT_LIST_FILE}.") 93 94target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 95 ${CMAKE_CURRENT_LIST_DIR}/../../components/icm42688p/fsl_icm42688p.c 96) 97 98target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 99 ${CMAKE_CURRENT_LIST_DIR}/../../components/icm42688p/. 100) 101 102 103endif() 104 105 106if (CONFIG_USE_component_mflash_common) 107# Add set(CONFIG_USE_component_mflash_common true) in config.cmake to use this component 108 109message("component_mflash_common component is included from ${CMAKE_CURRENT_LIST_FILE}.") 110 111target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 112 ${CMAKE_CURRENT_LIST_DIR}/../../components/flash/mflash/. 113) 114 115 116endif() 117 118 119if (CONFIG_USE_component_wifi_bt_module_tx_pwr_limits) 120# Add set(CONFIG_USE_component_wifi_bt_module_tx_pwr_limits true) in config.cmake to use this component 121 122message("component_wifi_bt_module_tx_pwr_limits component is included from ${CMAKE_CURRENT_LIST_FILE}.") 123 124target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 125 ${CMAKE_CURRENT_LIST_DIR}/../../components/wifi_bt_module/AzureWave/tx_pwr_limits 126 ${CMAKE_CURRENT_LIST_DIR}/../../components/wifi_bt_module/Murata/tx_pwr_limits 127) 128 129 130endif() 131 132 133if (CONFIG_USE_DEVICES_Project_Template_MIMXRT685S) 134# Add set(CONFIG_USE_DEVICES_Project_Template_MIMXRT685S true) in config.cmake to use this component 135 136message("DEVICES_Project_Template_MIMXRT685S component is included from ${CMAKE_CURRENT_LIST_FILE}.") 137 138if(CONFIG_USE_component_usart_adapter AND (CONFIG_DEVICE_ID STREQUAL MIMXRT685S) AND CONFIG_USE_device_MIMXRT685S_startup AND CONFIG_USE_driver_cache_cache64 AND CONFIG_USE_driver_clock AND CONFIG_USE_driver_common AND CONFIG_USE_driver_flexcomm_usart AND CONFIG_USE_driver_flexspi AND CONFIG_USE_driver_lpc_gpio AND CONFIG_USE_driver_lpc_iopctl AND CONFIG_USE_driver_power AND CONFIG_USE_driver_reset AND ((CONFIG_USE_component_serial_manager AND CONFIG_USE_utility_assert AND CONFIG_USE_utility_debug_console) OR (CONFIG_USE_utility_assert_lite AND CONFIG_USE_utility_debug_console_lite))) 139 140add_config_file(${CMAKE_CURRENT_LIST_DIR}/project_template/board.h "" DEVICES_Project_Template_MIMXRT685S.MIMXRT685S) 141add_config_file(${CMAKE_CURRENT_LIST_DIR}/project_template/board.c "" DEVICES_Project_Template_MIMXRT685S.MIMXRT685S) 142add_config_file(${CMAKE_CURRENT_LIST_DIR}/project_template/clock_config.h "" DEVICES_Project_Template_MIMXRT685S.MIMXRT685S) 143add_config_file(${CMAKE_CURRENT_LIST_DIR}/project_template/clock_config.c "" DEVICES_Project_Template_MIMXRT685S.MIMXRT685S) 144add_config_file(${CMAKE_CURRENT_LIST_DIR}/project_template/pin_mux.h "" DEVICES_Project_Template_MIMXRT685S.MIMXRT685S) 145add_config_file(${CMAKE_CURRENT_LIST_DIR}/project_template/pin_mux.c "" DEVICES_Project_Template_MIMXRT685S.MIMXRT685S) 146add_config_file(${CMAKE_CURRENT_LIST_DIR}/project_template/peripherals.h "" DEVICES_Project_Template_MIMXRT685S.MIMXRT685S) 147add_config_file(${CMAKE_CURRENT_LIST_DIR}/project_template/peripherals.c "" DEVICES_Project_Template_MIMXRT685S.MIMXRT685S) 148 149target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 150 ${CMAKE_CURRENT_LIST_DIR}/project_template/. 151) 152 153else() 154 155message(SEND_ERROR "DEVICES_Project_Template_MIMXRT685S.MIMXRT685S dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 156 157endif() 158 159endif() 160 161 162if (CONFIG_USE_driver_iap) 163# Add set(CONFIG_USE_driver_iap true) in config.cmake to use this component 164 165message("driver_iap component is included from ${CMAKE_CURRENT_LIST_FILE}.") 166 167if(CONFIG_USE_driver_common) 168 169target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 170 ${CMAKE_CURRENT_LIST_DIR}/drivers/fsl_iap.c 171) 172 173target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 174 ${CMAKE_CURRENT_LIST_DIR}/drivers/. 175) 176 177else() 178 179message(SEND_ERROR "driver_iap.MIMXRT685S dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 180 181endif() 182 183endif() 184 185 186if (CONFIG_USE_device_MIMXRT685S_CMSIS) 187# Add set(CONFIG_USE_device_MIMXRT685S_CMSIS true) in config.cmake to use this component 188 189message("device_MIMXRT685S_CMSIS component is included from ${CMAKE_CURRENT_LIST_FILE}.") 190 191if(CONFIG_USE_CMSIS_Include_core_cm AND (CONFIG_DEVICE_ID STREQUAL MIMXRT685S)) 192 193if(CONFIG_TOOLCHAIN STREQUAL xcc) 194 target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 195 ${CMAKE_CURRENT_LIST_DIR}/./system_MIMXRT685S_dsp.c 196 ) 197endif() 198 199if(CONFIG_CORE STREQUAL cm33) 200target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 201 ${CMAKE_CURRENT_LIST_DIR}/./. 202) 203endif() 204 205if(CONFIG_TOOLCHAIN STREQUAL xcc) 206target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 207 ${CMAKE_CURRENT_LIST_DIR}/./. 208) 209endif() 210 211else() 212 213message(SEND_ERROR "device_MIMXRT685S_CMSIS.MIMXRT685S dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 214 215endif() 216 217endif() 218 219 220if (CONFIG_USE_driver_pca9420) 221# Add set(CONFIG_USE_driver_pca9420 true) in config.cmake to use this component 222 223message("driver_pca9420 component is included from ${CMAKE_CURRENT_LIST_FILE}.") 224 225if(CONFIG_USE_driver_power AND CONFIG_USE_driver_common AND (CONFIG_USE_driver_flexcomm_i2c)) 226 227target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 228 ${CMAKE_CURRENT_LIST_DIR}/../../components/pca9420/fsl_pca9420.c 229) 230 231target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 232 ${CMAKE_CURRENT_LIST_DIR}/../../components/pca9420/. 233) 234 235if(CONFIG_USE_COMPONENT_CONFIGURATION) 236 message("===>Import configuration from ${CMAKE_CURRENT_LIST_FILE}") 237 238 target_compile_definitions(${MCUX_SDK_PROJECT_NAME} PUBLIC 239 -DSDK_I2C_BASED_COMPONENT_USED=1 240 ) 241 242endif() 243 244else() 245 246message(SEND_ERROR "driver_pca9420.MIMXRT685S dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 247 248endif() 249 250endif() 251 252 253if (CONFIG_USE_driver_power) 254# Add set(CONFIG_USE_driver_power true) in config.cmake to use this component 255 256message("driver_power component is included from ${CMAKE_CURRENT_LIST_FILE}.") 257 258if(CONFIG_USE_driver_common AND (CONFIG_DEVICE_ID STREQUAL MIMXRT685S)) 259 260target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 261 ${CMAKE_CURRENT_LIST_DIR}/drivers/fsl_power.c 262) 263 264target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 265 ${CMAKE_CURRENT_LIST_DIR}/drivers/. 266) 267 268else() 269 270message(SEND_ERROR "driver_power.MIMXRT685S dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 271 272endif() 273 274endif() 275 276 277if (CONFIG_USE_driver_utick) 278# Add set(CONFIG_USE_driver_utick true) in config.cmake to use this component 279 280message("driver_utick component is included from ${CMAKE_CURRENT_LIST_FILE}.") 281 282if(CONFIG_USE_driver_power AND (CONFIG_DEVICE_ID STREQUAL MIMXRT685S) AND CONFIG_USE_driver_common) 283 284target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 285 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/utick/fsl_utick.c 286) 287 288target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 289 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/utick/. 290) 291 292else() 293 294message(SEND_ERROR "driver_utick.MIMXRT685S dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 295 296endif() 297 298endif() 299 300 301if (CONFIG_USE_driver_dsp) 302# Add set(CONFIG_USE_driver_dsp true) in config.cmake to use this component 303 304message("driver_dsp component is included from ${CMAKE_CURRENT_LIST_FILE}.") 305 306if(CONFIG_USE_driver_power AND CONFIG_USE_driver_common AND (CONFIG_DEVICE_ID STREQUAL MIMXRT685S)) 307 308target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 309 ${CMAKE_CURRENT_LIST_DIR}/drivers/fsl_dsp.c 310) 311 312target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 313 ${CMAKE_CURRENT_LIST_DIR}/drivers/. 314) 315 316else() 317 318message(SEND_ERROR "driver_dsp.MIMXRT685S dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 319 320endif() 321 322endif() 323 324 325if (CONFIG_USE_driver_clock) 326# Add set(CONFIG_USE_driver_clock true) in config.cmake to use this component 327 328message("driver_clock component is included from ${CMAKE_CURRENT_LIST_FILE}.") 329 330if(CONFIG_USE_driver_common) 331 332target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 333 ${CMAKE_CURRENT_LIST_DIR}/drivers/fsl_clock.c 334) 335 336target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 337 ${CMAKE_CURRENT_LIST_DIR}/drivers/. 338) 339 340else() 341 342message(SEND_ERROR "driver_clock.MIMXRT685S dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 343 344endif() 345 346endif() 347 348 349if (CONFIG_USE_component_serial_manager_uart) 350# Add set(CONFIG_USE_component_serial_manager_uart true) in config.cmake to use this component 351 352message("component_serial_manager_uart component is included from ${CMAKE_CURRENT_LIST_FILE}.") 353 354if(CONFIG_USE_component_usart_adapter AND CONFIG_USE_component_serial_manager AND (CONFIG_USE_driver_flexcomm_usart)) 355 356target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 357 ${CMAKE_CURRENT_LIST_DIR}/../../components/serial_manager/fsl_component_serial_port_uart.c 358) 359 360target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 361 ${CMAKE_CURRENT_LIST_DIR}/../../components/serial_manager/. 362) 363 364if(CONFIG_USE_COMPONENT_CONFIGURATION) 365 message("===>Import configuration from ${CMAKE_CURRENT_LIST_FILE}") 366 367 target_compile_definitions(${MCUX_SDK_PROJECT_NAME} PUBLIC 368 -DSERIAL_PORT_TYPE_UART=1 369 ) 370 371endif() 372 373else() 374 375message(SEND_ERROR "component_serial_manager_uart.MIMXRT685S dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 376 377endif() 378 379endif() 380 381 382if (CONFIG_USE_utility_debug_console_lite) 383# Add set(CONFIG_USE_utility_debug_console_lite true) in config.cmake to use this component 384 385message("utility_debug_console_lite component is included from ${CMAKE_CURRENT_LIST_FILE}.") 386 387if(CONFIG_USE_component_usart_adapter AND (CONFIG_DEVICE_ID STREQUAL MIMXRT685S) AND CONFIG_USE_driver_common) 388 389target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 390 ${CMAKE_CURRENT_LIST_DIR}/../../utilities/str/fsl_str.c 391 ${CMAKE_CURRENT_LIST_DIR}/../../utilities/debug_console_lite/fsl_debug_console.c 392) 393 394target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 395 ${CMAKE_CURRENT_LIST_DIR}/../../utilities/str 396 ${CMAKE_CURRENT_LIST_DIR}/../../utilities/debug_console_lite 397) 398 399else() 400 401message(SEND_ERROR "utility_debug_console_lite.MIMXRT685S dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 402 403endif() 404 405endif() 406 407 408if (CONFIG_USE_driver_dmic_dma) 409# Add set(CONFIG_USE_driver_dmic_dma true) in config.cmake to use this component 410 411message("driver_dmic_dma component is included from ${CMAKE_CURRENT_LIST_FILE}.") 412 413if(CONFIG_USE_driver_lpc_dma AND CONFIG_USE_driver_dmic) 414 415target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 416 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/dmic/fsl_dmic_dma.c 417) 418 419target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 420 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/dmic/. 421) 422 423else() 424 425message(SEND_ERROR "driver_dmic_dma.MIMXRT685S dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 426 427endif() 428 429endif() 430 431 432if (CONFIG_USE_driver_flexspi_dma) 433# Add set(CONFIG_USE_driver_flexspi_dma true) in config.cmake to use this component 434 435message("driver_flexspi_dma component is included from ${CMAKE_CURRENT_LIST_FILE}.") 436 437if(CONFIG_USE_driver_lpc_dma AND CONFIG_USE_driver_flexspi) 438 439target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 440 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/flexspi/fsl_flexspi_dma.c 441) 442 443target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 444 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/flexspi/. 445) 446 447else() 448 449message(SEND_ERROR "driver_flexspi_dma.MIMXRT685S dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 450 451endif() 452 453endif() 454 455 456if (CONFIG_USE_driver_flexcomm_i2c_dma) 457# Add set(CONFIG_USE_driver_flexcomm_i2c_dma true) in config.cmake to use this component 458 459message("driver_flexcomm_i2c_dma component is included from ${CMAKE_CURRENT_LIST_FILE}.") 460 461if(CONFIG_USE_driver_lpc_dma AND CONFIG_USE_driver_flexcomm AND CONFIG_USE_driver_common AND CONFIG_USE_driver_flexcomm_i2c) 462 463target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 464 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/flexcomm/i2c/fsl_i2c_dma.c 465) 466 467target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 468 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/flexcomm/i2c/. 469) 470 471else() 472 473message(SEND_ERROR "driver_flexcomm_i2c_dma.MIMXRT685S dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 474 475endif() 476 477endif() 478 479 480if (CONFIG_USE_driver_flexcomm_i2s_dma) 481# Add set(CONFIG_USE_driver_flexcomm_i2s_dma true) in config.cmake to use this component 482 483message("driver_flexcomm_i2s_dma component is included from ${CMAKE_CURRENT_LIST_FILE}.") 484 485if(CONFIG_USE_driver_lpc_dma AND CONFIG_USE_driver_flexcomm_i2s) 486 487target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 488 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/flexcomm/i2s/fsl_i2s_dma.c 489) 490 491target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 492 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/flexcomm/i2s/. 493) 494 495else() 496 497message(SEND_ERROR "driver_flexcomm_i2s_dma.MIMXRT685S dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 498 499endif() 500 501endif() 502 503 504if (CONFIG_USE_driver_flexcomm_spi_dma) 505# Add set(CONFIG_USE_driver_flexcomm_spi_dma true) in config.cmake to use this component 506 507message("driver_flexcomm_spi_dma component is included from ${CMAKE_CURRENT_LIST_FILE}.") 508 509if(CONFIG_USE_driver_lpc_dma AND CONFIG_USE_driver_flexcomm AND CONFIG_USE_driver_flexcomm_spi) 510 511target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 512 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/flexcomm/spi/fsl_spi_dma.c 513) 514 515target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 516 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/flexcomm/spi/. 517) 518 519else() 520 521message(SEND_ERROR "driver_flexcomm_spi_dma.MIMXRT685S dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 522 523endif() 524 525endif() 526 527 528if (CONFIG_USE_driver_flexcomm_usart_dma) 529# Add set(CONFIG_USE_driver_flexcomm_usart_dma true) in config.cmake to use this component 530 531message("driver_flexcomm_usart_dma component is included from ${CMAKE_CURRENT_LIST_FILE}.") 532 533if(CONFIG_USE_driver_lpc_dma AND CONFIG_USE_driver_flexcomm AND CONFIG_USE_driver_flexcomm_usart) 534 535target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 536 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/flexcomm/usart/fsl_usart_dma.c 537) 538 539target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 540 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/flexcomm/usart/. 541) 542 543else() 544 545message(SEND_ERROR "driver_flexcomm_usart_dma.MIMXRT685S dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 546 547endif() 548 549endif() 550 551 552if (CONFIG_USE_driver_inputmux_connections) 553# Add set(CONFIG_USE_driver_inputmux_connections true) in config.cmake to use this component 554 555message("driver_inputmux_connections component is included from ${CMAKE_CURRENT_LIST_FILE}.") 556 557if(CONFIG_USE_driver_common AND (CONFIG_DEVICE_ID STREQUAL MIMXRT685S)) 558 559target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 560 ${CMAKE_CURRENT_LIST_DIR}/drivers/. 561) 562 563else() 564 565message(SEND_ERROR "driver_inputmux_connections.MIMXRT685S dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 566 567endif() 568 569endif() 570 571 572if (CONFIG_USE_driver_common) 573# Add set(CONFIG_USE_driver_common true) in config.cmake to use this component 574 575message("driver_common component is included from ${CMAKE_CURRENT_LIST_FILE}.") 576 577if(CONFIG_USE_driver_reset AND CONFIG_USE_driver_clock AND CONFIG_USE_device_MIMXRT685S_CMSIS) 578 579target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 580 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/common/fsl_common.c 581) 582 583if(CONFIG_CORE STREQUAL cm33) 584 target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 585 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/common/fsl_common_arm.c 586 ) 587endif() 588 589if(CONFIG_CORE STREQUAL dsp) 590 target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 591 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/common/fsl_common_dsp.c 592 ) 593endif() 594 595target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 596 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/common/. 597) 598 599else() 600 601message(SEND_ERROR "driver_common.MIMXRT685S dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 602 603endif() 604 605endif() 606 607 608if (CONFIG_USE_utility_assert) 609# Add set(CONFIG_USE_utility_assert true) in config.cmake to use this component 610 611message("utility_assert component is included from ${CMAKE_CURRENT_LIST_FILE}.") 612 613if(CONFIG_USE_utility_debug_console) 614 615target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 616 ${CMAKE_CURRENT_LIST_DIR}/../../utilities/assert/fsl_assert.c 617) 618 619else() 620 621message(SEND_ERROR "utility_assert.MIMXRT685S dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 622 623endif() 624 625endif() 626 627 628if (CONFIG_USE_utility_assert_lite) 629# Add set(CONFIG_USE_utility_assert_lite true) in config.cmake to use this component 630 631message("utility_assert_lite component is included from ${CMAKE_CURRENT_LIST_FILE}.") 632 633if(CONFIG_USE_utility_debug_console_lite) 634 635target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 636 ${CMAKE_CURRENT_LIST_DIR}/../../utilities/assert/fsl_assert.c 637) 638 639else() 640 641message(SEND_ERROR "utility_assert_lite.MIMXRT685S dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 642 643endif() 644 645endif() 646 647 648if (CONFIG_USE_utility_str) 649# Add set(CONFIG_USE_utility_str true) in config.cmake to use this component 650 651message("utility_str component is included from ${CMAKE_CURRENT_LIST_FILE}.") 652 653if(CONFIG_USE_driver_common) 654 655target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 656 ${CMAKE_CURRENT_LIST_DIR}/../../utilities/str/fsl_str.c 657) 658 659target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 660 ${CMAKE_CURRENT_LIST_DIR}/../../utilities/str 661) 662 663else() 664 665message(SEND_ERROR "utility_str.MIMXRT685S dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 666 667endif() 668 669endif() 670 671 672if (CONFIG_USE_utility_debug_console) 673# Add set(CONFIG_USE_utility_debug_console true) in config.cmake to use this component 674 675message("utility_debug_console component is included from ${CMAKE_CURRENT_LIST_FILE}.") 676 677if(CONFIG_USE_component_serial_manager AND CONFIG_USE_driver_common) 678 679target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 680 ${CMAKE_CURRENT_LIST_DIR}/../../utilities/str/fsl_str.c 681 ${CMAKE_CURRENT_LIST_DIR}/../../utilities/debug_console/fsl_debug_console.c 682) 683 684target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 685 ${CMAKE_CURRENT_LIST_DIR}/../../utilities/str 686 ${CMAKE_CURRENT_LIST_DIR}/../../utilities/debug_console 687) 688 689else() 690 691message(SEND_ERROR "utility_debug_console.MIMXRT685S dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 692 693endif() 694 695endif() 696 697 698if (CONFIG_USE_driver_cmsis_flexcomm_i2c) 699# Add set(CONFIG_USE_driver_cmsis_flexcomm_i2c true) in config.cmake to use this component 700 701message("driver_cmsis_flexcomm_i2c component is included from ${CMAKE_CURRENT_LIST_FILE}.") 702 703if(CONFIG_USE_driver_flexcomm_i2c_dma AND CONFIG_USE_CMSIS_Driver_Include_I2C AND CONFIG_USE_RTE_Device) 704 705target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 706 ${CMAKE_CURRENT_LIST_DIR}/../../cmsis_drivers/flexcomm/fsl_i2c_cmsis.c 707) 708 709target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 710 ${CMAKE_CURRENT_LIST_DIR}/../../cmsis_drivers/flexcomm/. 711) 712 713else() 714 715message(SEND_ERROR "driver_cmsis_flexcomm_i2c.MIMXRT685S dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 716 717endif() 718 719endif() 720 721 722if (CONFIG_USE_driver_cmsis_flexcomm_spi) 723# Add set(CONFIG_USE_driver_cmsis_flexcomm_spi true) in config.cmake to use this component 724 725message("driver_cmsis_flexcomm_spi component is included from ${CMAKE_CURRENT_LIST_FILE}.") 726 727if(CONFIG_USE_driver_flexcomm_spi_dma AND CONFIG_USE_CMSIS_Driver_Include_SPI AND CONFIG_USE_RTE_Device) 728 729target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 730 ${CMAKE_CURRENT_LIST_DIR}/../../cmsis_drivers/flexcomm/fsl_spi_cmsis.c 731) 732 733target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 734 ${CMAKE_CURRENT_LIST_DIR}/../../cmsis_drivers/flexcomm/. 735) 736 737else() 738 739message(SEND_ERROR "driver_cmsis_flexcomm_spi.MIMXRT685S dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 740 741endif() 742 743endif() 744 745 746if (CONFIG_USE_driver_cmsis_flexcomm_usart) 747# Add set(CONFIG_USE_driver_cmsis_flexcomm_usart true) in config.cmake to use this component 748 749message("driver_cmsis_flexcomm_usart component is included from ${CMAKE_CURRENT_LIST_FILE}.") 750 751if(CONFIG_USE_driver_flexcomm_usart_dma AND CONFIG_USE_CMSIS_Driver_Include_USART AND CONFIG_USE_RTE_Device) 752 753target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 754 ${CMAKE_CURRENT_LIST_DIR}/../../cmsis_drivers/flexcomm/fsl_usart_cmsis.c 755) 756 757target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 758 ${CMAKE_CURRENT_LIST_DIR}/../../cmsis_drivers/flexcomm/. 759) 760 761else() 762 763message(SEND_ERROR "driver_cmsis_flexcomm_usart.MIMXRT685S dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 764 765endif() 766 767endif() 768 769 770if (CONFIG_USE_component_power_manager_core) 771# Add set(CONFIG_USE_component_power_manager_core true) in config.cmake to use this component 772 773message("component_power_manager_core component is included from ${CMAKE_CURRENT_LIST_FILE}.") 774 775if(CONFIG_USE_driver_common AND CONFIG_USE_component_lists) 776 777target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 778 ${CMAKE_CURRENT_LIST_DIR}/../../components/power_manager/core/fsl_pm_core.c 779) 780 781target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 782 ${CMAKE_CURRENT_LIST_DIR}/../../components/power_manager/core/. 783) 784 785if(CONFIG_USE_COMPONENT_CONFIGURATION) 786 message("===>Import configuration from ${CMAKE_CURRENT_LIST_FILE}") 787 788 target_compile_definitions(${MCUX_SDK_PROJECT_NAME} PUBLIC 789 -DGENERIC_LIST_LIGHT=1 790 ) 791 792endif() 793 794else() 795 796message(SEND_ERROR "component_power_manager_core.MIMXRT685S dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 797 798endif() 799 800endif() 801 802 803if (CONFIG_USE_component_power_manager_MIMXRT685S) 804# Add set(CONFIG_USE_component_power_manager_MIMXRT685S true) in config.cmake to use this component 805 806message("component_power_manager_MIMXRT685S component is included from ${CMAKE_CURRENT_LIST_FILE}.") 807 808if(CONFIG_USE_component_power_manager_core AND (CONFIG_DEVICE_ID STREQUAL MIMXRT685S)) 809 810target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 811 ${CMAKE_CURRENT_LIST_DIR}/../../components/power_manager/devices/MIMXRT685S/fsl_pm_device.c 812) 813 814target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 815 ${CMAKE_CURRENT_LIST_DIR}/../../components/power_manager/devices/MIMXRT685S/. 816) 817 818else() 819 820message(SEND_ERROR "component_power_manager_MIMXRT685S.MIMXRT685S dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 821 822endif() 823 824endif() 825 826 827if (CONFIG_USE_component_audio_flexcomm_i2s_dma_adapter) 828# Add set(CONFIG_USE_component_audio_flexcomm_i2s_dma_adapter true) in config.cmake to use this component 829 830message("component_audio_flexcomm_i2s_dma_adapter component is included from ${CMAKE_CURRENT_LIST_FILE}.") 831 832if(CONFIG_USE_driver_common AND CONFIG_USE_driver_flexcomm_i2s_dma) 833 834target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 835 ${CMAKE_CURRENT_LIST_DIR}/../../components/audio/fsl_adapter_flexcomm_i2s.c 836) 837 838target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 839 ${CMAKE_CURRENT_LIST_DIR}/../../components/audio/. 840) 841 842else() 843 844message(SEND_ERROR "component_audio_flexcomm_i2s_dma_adapter.MIMXRT685S dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 845 846endif() 847 848endif() 849 850 851if (CONFIG_USE_component_button) 852# Add set(CONFIG_USE_component_button true) in config.cmake to use this component 853 854message("component_button component is included from ${CMAKE_CURRENT_LIST_FILE}.") 855 856if(CONFIG_USE_driver_common AND CONFIG_USE_component_timer_manager AND (CONFIG_USE_component_lpc_gpio_adapter OR CONFIG_USE_component_rt_gpio_adapter)) 857 858target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 859 ${CMAKE_CURRENT_LIST_DIR}/../../components/button/fsl_component_button.c 860) 861 862target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 863 ${CMAKE_CURRENT_LIST_DIR}/../../components/button/. 864) 865 866else() 867 868message(SEND_ERROR "component_button.MIMXRT685S dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 869 870endif() 871 872endif() 873 874 875if (CONFIG_USE_driver_codec) 876# Add set(CONFIG_USE_driver_codec true) in config.cmake to use this component 877 878message("driver_codec component is included from ${CMAKE_CURRENT_LIST_FILE}.") 879 880if(CONFIG_USE_driver_common AND (CONFIG_USE_component_wm8904_adapter OR CONFIG_USE_component_tfa9xxx_adapter OR CONFIG_USE_component_cs42888_adapter OR CONFIG_USE_component_cs42448_adapter OR CONFIG_USE_component_codec_adapters)) 881 882target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 883 ${CMAKE_CURRENT_LIST_DIR}/../../components/codec/fsl_codec_common.c 884) 885 886target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 887 ${CMAKE_CURRENT_LIST_DIR}/../../components/codec/. 888) 889 890if(CONFIG_USE_COMPONENT_CONFIGURATION) 891 message("===>Import configuration from ${CMAKE_CURRENT_LIST_FILE}") 892 893 target_compile_definitions(${MCUX_SDK_PROJECT_NAME} PUBLIC 894 -DSDK_I2C_BASED_COMPONENT_USED=1 895 ) 896 897endif() 898 899else() 900 901message(SEND_ERROR "driver_codec.MIMXRT685S dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 902 903endif() 904 905endif() 906 907 908if (CONFIG_USE_component_codec_adapters) 909# Add set(CONFIG_USE_component_codec_adapters true) in config.cmake to use this component 910 911message("component_codec_adapters component is included from ${CMAKE_CURRENT_LIST_FILE}.") 912 913if((CONFIG_USE_driver_codec AND CONFIG_USE_component_wm8904_adapter) OR (CONFIG_USE_driver_codec AND CONFIG_USE_component_tfa9xxx_adapter) OR (CONFIG_USE_driver_codec AND CONFIG_USE_component_cs42888_adapter) OR (CONFIG_USE_driver_common AND CONFIG_USE_component_cs42448_adapter)) 914 915target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 916 ${CMAKE_CURRENT_LIST_DIR}/../../components/codec/port/fsl_codec_adapter.c 917) 918 919target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 920 ${CMAKE_CURRENT_LIST_DIR}/../../components/codec/port 921) 922 923if(CONFIG_USE_COMPONENT_CONFIGURATION) 924 message("===>Import configuration from ${CMAKE_CURRENT_LIST_FILE}") 925 926 target_compile_definitions(${MCUX_SDK_PROJECT_NAME} PUBLIC 927 -DCODEC_MULTI_ADAPTERS=1 928 ) 929 930endif() 931 932else() 933 934message(SEND_ERROR "component_codec_adapters.MIMXRT685S dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 935 936endif() 937 938endif() 939 940 941if (CONFIG_USE_component_wm8904_adapter) 942# Add set(CONFIG_USE_component_wm8904_adapter true) in config.cmake to use this component 943 944message("component_wm8904_adapter component is included from ${CMAKE_CURRENT_LIST_FILE}.") 945 946if(CONFIG_USE_driver_wm8904 AND CONFIG_USE_driver_codec) 947 948target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 949 ${CMAKE_CURRENT_LIST_DIR}/../../components/codec/port/wm8904/fsl_codec_wm8904_adapter.c 950) 951 952target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 953 ${CMAKE_CURRENT_LIST_DIR}/../../components/codec/port/wm8904 954 ${CMAKE_CURRENT_LIST_DIR}/../../components/codec/port 955) 956 957else() 958 959message(SEND_ERROR "component_wm8904_adapter.MIMXRT685S dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 960 961endif() 962 963endif() 964 965 966if (CONFIG_USE_component_cs42888_adapter) 967# Add set(CONFIG_USE_component_cs42888_adapter true) in config.cmake to use this component 968 969message("component_cs42888_adapter component is included from ${CMAKE_CURRENT_LIST_FILE}.") 970 971if(CONFIG_USE_driver_cs42888 AND CONFIG_USE_driver_codec) 972 973target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 974 ${CMAKE_CURRENT_LIST_DIR}/../../components/codec/port/cs42888/fsl_codec_cs42888_adapter.c 975) 976 977target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 978 ${CMAKE_CURRENT_LIST_DIR}/../../components/codec/port/cs42888 979 ${CMAKE_CURRENT_LIST_DIR}/../../components/codec/port 980) 981 982else() 983 984message(SEND_ERROR "component_cs42888_adapter.MIMXRT685S dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 985 986endif() 987 988endif() 989 990 991if (CONFIG_USE_component_cs42448_adapter) 992# Add set(CONFIG_USE_component_cs42448_adapter true) in config.cmake to use this component 993 994message("component_cs42448_adapter component is included from ${CMAKE_CURRENT_LIST_FILE}.") 995 996if(CONFIG_USE_driver_cs42448 AND CONFIG_USE_driver_codec) 997 998target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 999 ${CMAKE_CURRENT_LIST_DIR}/../../components/codec/port/cs42448/fsl_codec_cs42448_adapter.c 1000) 1001 1002target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 1003 ${CMAKE_CURRENT_LIST_DIR}/../../components/codec/port/cs42448 1004 ${CMAKE_CURRENT_LIST_DIR}/../../components/codec/port 1005) 1006 1007else() 1008 1009message(SEND_ERROR "component_cs42448_adapter.MIMXRT685S dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 1010 1011endif() 1012 1013endif() 1014 1015 1016if (CONFIG_USE_component_tfa9xxx_adapter) 1017# Add set(CONFIG_USE_component_tfa9xxx_adapter true) in config.cmake to use this component 1018 1019message("component_tfa9xxx_adapter component is included from ${CMAKE_CURRENT_LIST_FILE}.") 1020 1021if(CONFIG_USE_driver_tfa9xxx AND CONFIG_USE_driver_codec) 1022 1023target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 1024 ${CMAKE_CURRENT_LIST_DIR}/../../components/codec/port/tfa9xxx/fsl_codec_tfa9xxx_adapter.c 1025) 1026 1027target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 1028 ${CMAKE_CURRENT_LIST_DIR}/../../components/codec/port/tfa9xxx 1029 ${CMAKE_CURRENT_LIST_DIR}/../../components/codec/port 1030) 1031 1032else() 1033 1034message(SEND_ERROR "component_tfa9xxx_adapter.MIMXRT685S dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 1035 1036endif() 1037 1038endif() 1039 1040 1041if (CONFIG_USE_component_codec_i2c) 1042# Add set(CONFIG_USE_component_codec_i2c true) in config.cmake to use this component 1043 1044message("component_codec_i2c component is included from ${CMAKE_CURRENT_LIST_FILE}.") 1045 1046if(CONFIG_USE_driver_common AND (CONFIG_USE_component_flexcomm_i2c_adapter OR CONFIG_USE_component_i3c_adapter)) 1047 1048target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 1049 ${CMAKE_CURRENT_LIST_DIR}/../../components/codec/i2c/fsl_codec_i2c.c 1050) 1051 1052target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 1053 ${CMAKE_CURRENT_LIST_DIR}/../../components/codec/i2c/. 1054) 1055 1056if(CONFIG_USE_COMPONENT_CONFIGURATION) 1057 message("===>Import configuration from ${CMAKE_CURRENT_LIST_FILE}") 1058 1059 target_compile_definitions(${MCUX_SDK_PROJECT_NAME} PUBLIC 1060 -DSDK_I2C_BASED_COMPONENT_USED=1 1061 ) 1062 1063endif() 1064 1065else() 1066 1067message(SEND_ERROR "component_codec_i2c.MIMXRT685S dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 1068 1069endif() 1070 1071endif() 1072 1073 1074if (CONFIG_USE_component_lpc_crc_adapter) 1075# Add set(CONFIG_USE_component_lpc_crc_adapter true) in config.cmake to use this component 1076 1077message("component_lpc_crc_adapter component is included from ${CMAKE_CURRENT_LIST_FILE}.") 1078 1079if(CONFIG_USE_driver_common AND CONFIG_USE_driver_lpc_crc) 1080 1081target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 1082 ${CMAKE_CURRENT_LIST_DIR}/../../components/crc/fsl_adapter_lpc_crc.c 1083) 1084 1085target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 1086 ${CMAKE_CURRENT_LIST_DIR}/../../components/crc/. 1087) 1088 1089else() 1090 1091message(SEND_ERROR "component_lpc_crc_adapter.MIMXRT685S dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 1092 1093endif() 1094 1095endif() 1096 1097 1098if (CONFIG_USE_component_software_crc_adapter) 1099# Add set(CONFIG_USE_component_software_crc_adapter true) in config.cmake to use this component 1100 1101message("component_software_crc_adapter component is included from ${CMAKE_CURRENT_LIST_FILE}.") 1102 1103if(CONFIG_USE_driver_common) 1104 1105target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 1106 ${CMAKE_CURRENT_LIST_DIR}/../../components/crc/fsl_adapter_software_crc.c 1107) 1108 1109target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 1110 ${CMAKE_CURRENT_LIST_DIR}/../../components/crc/. 1111) 1112 1113else() 1114 1115message(SEND_ERROR "component_software_crc_adapter.MIMXRT685S dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 1116 1117endif() 1118 1119endif() 1120 1121 1122if (CONFIG_USE_driver_cs42448) 1123# Add set(CONFIG_USE_driver_cs42448 true) in config.cmake to use this component 1124 1125message("driver_cs42448 component is included from ${CMAKE_CURRENT_LIST_FILE}.") 1126 1127if(CONFIG_USE_driver_common AND CONFIG_USE_component_codec_i2c) 1128 1129target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 1130 ${CMAKE_CURRENT_LIST_DIR}/../../components/codec/cs42448/fsl_cs42448.c 1131) 1132 1133target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 1134 ${CMAKE_CURRENT_LIST_DIR}/../../components/codec/cs42448/. 1135) 1136 1137if(CONFIG_USE_COMPONENT_CONFIGURATION) 1138 message("===>Import configuration from ${CMAKE_CURRENT_LIST_FILE}") 1139 1140 target_compile_definitions(${MCUX_SDK_PROJECT_NAME} PUBLIC 1141 -DSDK_I2C_BASED_COMPONENT_USED=1 1142 -DCODEC_CS42448_ENABLE 1143 ) 1144 1145endif() 1146 1147else() 1148 1149message(SEND_ERROR "driver_cs42448.MIMXRT685S dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 1150 1151endif() 1152 1153endif() 1154 1155 1156if (CONFIG_USE_driver_cs42888) 1157# Add set(CONFIG_USE_driver_cs42888 true) in config.cmake to use this component 1158 1159message("driver_cs42888 component is included from ${CMAKE_CURRENT_LIST_FILE}.") 1160 1161if(CONFIG_USE_driver_common AND CONFIG_USE_component_codec_i2c) 1162 1163target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 1164 ${CMAKE_CURRENT_LIST_DIR}/../../components/codec/cs42888/fsl_cs42888.c 1165) 1166 1167target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 1168 ${CMAKE_CURRENT_LIST_DIR}/../../components/codec/cs42888/. 1169) 1170 1171if(CONFIG_USE_COMPONENT_CONFIGURATION) 1172 message("===>Import configuration from ${CMAKE_CURRENT_LIST_FILE}") 1173 1174 target_compile_definitions(${MCUX_SDK_PROJECT_NAME} PUBLIC 1175 -DSDK_I2C_BASED_COMPONENT_USED=1 1176 -DCODEC_CS42888_ENABLE 1177 ) 1178 1179endif() 1180 1181else() 1182 1183message(SEND_ERROR "driver_cs42888.MIMXRT685S dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 1184 1185endif() 1186 1187endif() 1188 1189 1190if (CONFIG_USE_driver_ft6x06) 1191# Add set(CONFIG_USE_driver_ft6x06 true) in config.cmake to use this component 1192 1193message("driver_ft6x06 component is included from ${CMAKE_CURRENT_LIST_FILE}.") 1194 1195if(CONFIG_USE_CMSIS_Driver_Include_I2C) 1196 1197target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 1198 ${CMAKE_CURRENT_LIST_DIR}/../../components/ft6x06/fsl_ft6x06.c 1199) 1200 1201target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 1202 ${CMAKE_CURRENT_LIST_DIR}/../../components/ft6x06/. 1203) 1204 1205else() 1206 1207message(SEND_ERROR "driver_ft6x06.MIMXRT685S dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 1208 1209endif() 1210 1211endif() 1212 1213 1214if (CONFIG_USE_driver_fxos8700cq) 1215# Add set(CONFIG_USE_driver_fxos8700cq true) in config.cmake to use this component 1216 1217message("driver_fxos8700cq component is included from ${CMAKE_CURRENT_LIST_FILE}.") 1218 1219if(CONFIG_USE_driver_common) 1220 1221target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 1222 ${CMAKE_CURRENT_LIST_DIR}/../../components/fxos8700cq/fsl_fxos.c 1223) 1224 1225target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 1226 ${CMAKE_CURRENT_LIST_DIR}/../../components/fxos8700cq/. 1227) 1228 1229else() 1230 1231message(SEND_ERROR "driver_fxos8700cq.MIMXRT685S dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 1232 1233endif() 1234 1235endif() 1236 1237 1238if (CONFIG_USE_component_lpc_gpio_adapter) 1239# Add set(CONFIG_USE_component_lpc_gpio_adapter true) in config.cmake to use this component 1240 1241message("component_lpc_gpio_adapter component is included from ${CMAKE_CURRENT_LIST_FILE}.") 1242 1243if(CONFIG_USE_driver_lpc_gpio AND CONFIG_USE_driver_inputmux AND CONFIG_USE_driver_pint) 1244 1245target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 1246 ${CMAKE_CURRENT_LIST_DIR}/../../components/gpio/fsl_adapter_lpc_gpio.c 1247) 1248 1249target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 1250 ${CMAKE_CURRENT_LIST_DIR}/../../components/gpio/. 1251) 1252 1253else() 1254 1255message(SEND_ERROR "component_lpc_gpio_adapter.MIMXRT685S dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 1256 1257endif() 1258 1259endif() 1260 1261 1262if (CONFIG_USE_component_rt_gpio_adapter) 1263# Add set(CONFIG_USE_component_rt_gpio_adapter true) in config.cmake to use this component 1264 1265message("component_rt_gpio_adapter component is included from ${CMAKE_CURRENT_LIST_FILE}.") 1266 1267if(CONFIG_USE_driver_lpc_gpio AND (CONFIG_BOARD STREQUAL evkmimxrt685 OR CONFIG_BOARD STREQUAL mimxrt685audevk)) 1268 1269target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 1270 ${CMAKE_CURRENT_LIST_DIR}/../../components/gpio/fsl_adapter_rt_gpio.c 1271) 1272 1273target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 1274 ${CMAKE_CURRENT_LIST_DIR}/../../components/gpio/. 1275) 1276 1277else() 1278 1279message(SEND_ERROR "component_rt_gpio_adapter.MIMXRT685S dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 1280 1281endif() 1282 1283endif() 1284 1285 1286if (CONFIG_USE_component_flexcomm_i2c_adapter) 1287# Add set(CONFIG_USE_component_flexcomm_i2c_adapter true) in config.cmake to use this component 1288 1289message("component_flexcomm_i2c_adapter component is included from ${CMAKE_CURRENT_LIST_FILE}.") 1290 1291if(CONFIG_USE_driver_common AND CONFIG_USE_driver_flexcomm_i2c) 1292 1293target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 1294 ${CMAKE_CURRENT_LIST_DIR}/../../components/i2c/fsl_adapter_flexcomm_i2c.c 1295) 1296 1297target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 1298 ${CMAKE_CURRENT_LIST_DIR}/../../components/i2c/. 1299) 1300 1301else() 1302 1303message(SEND_ERROR "component_flexcomm_i2c_adapter.MIMXRT685S dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 1304 1305endif() 1306 1307endif() 1308 1309 1310if (CONFIG_USE_component_i3c_adapter) 1311# Add set(CONFIG_USE_component_i3c_adapter true) in config.cmake to use this component 1312 1313message("component_i3c_adapter component is included from ${CMAKE_CURRENT_LIST_FILE}.") 1314 1315if(CONFIG_USE_driver_common AND CONFIG_USE_driver_i3c) 1316 1317target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 1318 ${CMAKE_CURRENT_LIST_DIR}/../../components/i2c/fsl_adapter_i3c.c 1319) 1320 1321target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 1322 ${CMAKE_CURRENT_LIST_DIR}/../../components/i2c/. 1323) 1324 1325else() 1326 1327message(SEND_ERROR "component_i3c_adapter.MIMXRT685S dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 1328 1329endif() 1330 1331endif() 1332 1333 1334if (CONFIG_USE_component_i3c_bus) 1335# Add set(CONFIG_USE_component_i3c_bus true) in config.cmake to use this component 1336 1337message("component_i3c_bus component is included from ${CMAKE_CURRENT_LIST_FILE}.") 1338 1339if(CONFIG_USE_driver_common AND CONFIG_USE_component_lists) 1340 1341target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 1342 ${CMAKE_CURRENT_LIST_DIR}/../../components/i3c_bus/fsl_component_i3c.c 1343) 1344 1345target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 1346 ${CMAKE_CURRENT_LIST_DIR}/../../components/i3c_bus/. 1347) 1348 1349else() 1350 1351message(SEND_ERROR "component_i3c_bus.MIMXRT685S dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 1352 1353endif() 1354 1355endif() 1356 1357 1358if (CONFIG_USE_component_i3c_bus_adapter) 1359# Add set(CONFIG_USE_component_i3c_bus_adapter true) in config.cmake to use this component 1360 1361message("component_i3c_bus_adapter component is included from ${CMAKE_CURRENT_LIST_FILE}.") 1362 1363if(CONFIG_USE_driver_i3c AND CONFIG_USE_component_i3c_bus) 1364 1365target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 1366 ${CMAKE_CURRENT_LIST_DIR}/../../components/i3c_bus/fsl_component_i3c_adapter.c 1367) 1368 1369target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 1370 ${CMAKE_CURRENT_LIST_DIR}/../../components/i3c_bus/. 1371) 1372 1373else() 1374 1375message(SEND_ERROR "component_i3c_bus_adapter.MIMXRT685S dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 1376 1377endif() 1378 1379endif() 1380 1381 1382if (CONFIG_USE_driver_ili9341) 1383# Add set(CONFIG_USE_driver_ili9341 true) in config.cmake to use this component 1384 1385message("driver_ili9341 component is included from ${CMAKE_CURRENT_LIST_FILE}.") 1386 1387if(CONFIG_USE_driver_common) 1388 1389target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 1390 ${CMAKE_CURRENT_LIST_DIR}/../../components/ili9341/fsl_ili9341.c 1391) 1392 1393target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 1394 ${CMAKE_CURRENT_LIST_DIR}/../../components/ili9341/. 1395) 1396 1397else() 1398 1399message(SEND_ERROR "driver_ili9341.MIMXRT685S dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 1400 1401endif() 1402 1403endif() 1404 1405 1406if (CONFIG_USE_component_flexspi_nor_flash_adapter_rt685evk) 1407# Add set(CONFIG_USE_component_flexspi_nor_flash_adapter_rt685evk true) in config.cmake to use this component 1408 1409message("component_flexspi_nor_flash_adapter_rt685evk component is included from ${CMAKE_CURRENT_LIST_FILE}.") 1410 1411if((CONFIG_BOARD STREQUAL evkmimxrt685) AND CONFIG_USE_driver_common AND CONFIG_USE_driver_flexspi) 1412 1413target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 1414 ${CMAKE_CURRENT_LIST_DIR}/../../components/internal_flash/octal_flash/fsl_adapter_flexspi_nor_flash.c 1415) 1416 1417target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 1418 ${CMAKE_CURRENT_LIST_DIR}/../../components/internal_flash/. 1419) 1420 1421else() 1422 1423message(SEND_ERROR "component_flexspi_nor_flash_adapter_rt685evk.MIMXRT685S dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 1424 1425endif() 1426 1427endif() 1428 1429 1430if (CONFIG_USE_component_led) 1431# Add set(CONFIG_USE_component_led true) in config.cmake to use this component 1432 1433message("component_led component is included from ${CMAKE_CURRENT_LIST_FILE}.") 1434 1435if(CONFIG_USE_driver_common AND CONFIG_USE_component_timer_manager AND (CONFIG_USE_component_lpc_gpio_adapter)) 1436 1437target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 1438 ${CMAKE_CURRENT_LIST_DIR}/../../components/led/fsl_component_led.c 1439) 1440 1441target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 1442 ${CMAKE_CURRENT_LIST_DIR}/../../components/led/. 1443) 1444 1445else() 1446 1447message(SEND_ERROR "component_led.MIMXRT685S dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 1448 1449endif() 1450 1451endif() 1452 1453 1454if (CONFIG_USE_component_lists) 1455# Add set(CONFIG_USE_component_lists true) in config.cmake to use this component 1456 1457message("component_lists component is included from ${CMAKE_CURRENT_LIST_FILE}.") 1458 1459if(CONFIG_USE_driver_common) 1460 1461target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 1462 ${CMAKE_CURRENT_LIST_DIR}/../../components/lists/fsl_component_generic_list.c 1463) 1464 1465target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 1466 ${CMAKE_CURRENT_LIST_DIR}/../../components/lists/. 1467) 1468 1469else() 1470 1471message(SEND_ERROR "component_lists.MIMXRT685S dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 1472 1473endif() 1474 1475endif() 1476 1477 1478if (CONFIG_USE_component_log) 1479# Add set(CONFIG_USE_component_log true) in config.cmake to use this component 1480 1481message("component_log component is included from ${CMAKE_CURRENT_LIST_FILE}.") 1482 1483if(CONFIG_USE_driver_common AND CONFIG_USE_utility_str) 1484 1485target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 1486 ${CMAKE_CURRENT_LIST_DIR}/../../components/log/fsl_component_log.c 1487) 1488 1489target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 1490 ${CMAKE_CURRENT_LIST_DIR}/../../components/log/. 1491) 1492 1493else() 1494 1495message(SEND_ERROR "component_log.MIMXRT685S dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 1496 1497endif() 1498 1499endif() 1500 1501 1502if (CONFIG_USE_component_log_backend_debugconsole) 1503# Add set(CONFIG_USE_component_log_backend_debugconsole true) in config.cmake to use this component 1504 1505message("component_log_backend_debugconsole component is included from ${CMAKE_CURRENT_LIST_FILE}.") 1506 1507if(CONFIG_USE_driver_common AND CONFIG_USE_component_log AND CONFIG_USE_utility_debug_console) 1508 1509target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 1510 ${CMAKE_CURRENT_LIST_DIR}/../../components/log/fsl_component_log_backend_debugconsole.c 1511) 1512 1513target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 1514 ${CMAKE_CURRENT_LIST_DIR}/../../components/log/. 1515) 1516 1517else() 1518 1519message(SEND_ERROR "component_log_backend_debugconsole.MIMXRT685S dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 1520 1521endif() 1522 1523endif() 1524 1525 1526if (CONFIG_USE_component_log_backend_debugconsole_lite) 1527# Add set(CONFIG_USE_component_log_backend_debugconsole_lite true) in config.cmake to use this component 1528 1529message("component_log_backend_debugconsole_lite component is included from ${CMAKE_CURRENT_LIST_FILE}.") 1530 1531if(CONFIG_USE_driver_common AND CONFIG_USE_component_log AND CONFIG_USE_utility_debug_console_lite) 1532 1533target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 1534 ${CMAKE_CURRENT_LIST_DIR}/../../components/log/fsl_component_log_backend_debugconsole.c 1535) 1536 1537target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 1538 ${CMAKE_CURRENT_LIST_DIR}/../../components/log/. 1539) 1540 1541else() 1542 1543message(SEND_ERROR "component_log_backend_debugconsole_lite.MIMXRT685S dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 1544 1545endif() 1546 1547endif() 1548 1549 1550if (CONFIG_USE_component_log_backend_ringbuffer) 1551# Add set(CONFIG_USE_component_log_backend_ringbuffer true) in config.cmake to use this component 1552 1553message("component_log_backend_ringbuffer component is included from ${CMAKE_CURRENT_LIST_FILE}.") 1554 1555if(CONFIG_USE_driver_common AND CONFIG_USE_component_log) 1556 1557target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 1558 ${CMAKE_CURRENT_LIST_DIR}/../../components/log/fsl_component_log_backend_ringbuffer.c 1559) 1560 1561target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 1562 ${CMAKE_CURRENT_LIST_DIR}/../../components/log/. 1563) 1564 1565else() 1566 1567message(SEND_ERROR "component_log_backend_ringbuffer.MIMXRT685S dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 1568 1569endif() 1570 1571endif() 1572 1573 1574if (CONFIG_USE_component_mem_manager) 1575# Add set(CONFIG_USE_component_mem_manager true) in config.cmake to use this component 1576 1577message("component_mem_manager component is included from ${CMAKE_CURRENT_LIST_FILE}.") 1578 1579if(CONFIG_USE_driver_common AND CONFIG_USE_component_lists) 1580 1581target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 1582 ${CMAKE_CURRENT_LIST_DIR}/../../components/mem_manager/fsl_component_mem_manager.c 1583) 1584 1585target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 1586 ${CMAKE_CURRENT_LIST_DIR}/../../components/mem_manager/. 1587) 1588 1589else() 1590 1591message(SEND_ERROR "component_mem_manager.MIMXRT685S dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 1592 1593endif() 1594 1595endif() 1596 1597 1598if (CONFIG_USE_component_mem_manager_light) 1599# Add set(CONFIG_USE_component_mem_manager_light true) in config.cmake to use this component 1600 1601message("component_mem_manager_light component is included from ${CMAKE_CURRENT_LIST_FILE}.") 1602 1603if(CONFIG_USE_driver_common AND CONFIG_USE_component_lists) 1604 1605target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 1606 ${CMAKE_CURRENT_LIST_DIR}/../../components/mem_manager/fsl_component_mem_manager_light.c 1607) 1608 1609target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 1610 ${CMAKE_CURRENT_LIST_DIR}/../../components/mem_manager/. 1611) 1612 1613else() 1614 1615message(SEND_ERROR "component_mem_manager_light.MIMXRT685S dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 1616 1617endif() 1618 1619endif() 1620 1621 1622if (CONFIG_USE_component_messaging) 1623# Add set(CONFIG_USE_component_messaging true) in config.cmake to use this component 1624 1625message("component_messaging component is included from ${CMAKE_CURRENT_LIST_FILE}.") 1626 1627if(CONFIG_USE_driver_common AND CONFIG_USE_component_lists AND CONFIG_USE_component_mem_manager_light) 1628 1629target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 1630 ${CMAKE_CURRENT_LIST_DIR}/../../components/messaging/fsl_component_messaging.c 1631) 1632 1633target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 1634 ${CMAKE_CURRENT_LIST_DIR}/../../components/messaging/. 1635) 1636 1637else() 1638 1639message(SEND_ERROR "component_messaging.MIMXRT685S dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 1640 1641endif() 1642 1643endif() 1644 1645 1646if (CONFIG_USE_component_mflash_file) 1647# Add set(CONFIG_USE_component_mflash_file true) in config.cmake to use this component 1648 1649message("component_mflash_file component is included from ${CMAKE_CURRENT_LIST_FILE}.") 1650 1651if(CONFIG_USE_component_mflash_rt685 OR CONFIG_USE_component_mflash_mimxrt685audevk) 1652 1653target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 1654 ${CMAKE_CURRENT_LIST_DIR}/../../components/flash/mflash/mflash_file.c 1655) 1656 1657target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 1658 ${CMAKE_CURRENT_LIST_DIR}/../../components/flash/mflash/. 1659) 1660 1661else() 1662 1663message(SEND_ERROR "component_mflash_file.MIMXRT685S dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 1664 1665endif() 1666 1667endif() 1668 1669 1670if (CONFIG_USE_component_mflash_dummy) 1671# Add set(CONFIG_USE_component_mflash_dummy true) in config.cmake to use this component 1672 1673message("component_mflash_dummy component is included from ${CMAKE_CURRENT_LIST_FILE}.") 1674 1675if(CONFIG_USE_component_mflash_file) 1676 1677target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 1678 ${CMAKE_CURRENT_LIST_DIR}/../../components/flash/mflash/mflash_dummy.c 1679) 1680 1681else() 1682 1683message(SEND_ERROR "component_mflash_dummy.MIMXRT685S dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 1684 1685endif() 1686 1687endif() 1688 1689 1690if (CONFIG_USE_component_mflash_rt685) 1691# Add set(CONFIG_USE_component_mflash_rt685 true) in config.cmake to use this component 1692 1693message("component_mflash_rt685 component is included from ${CMAKE_CURRENT_LIST_FILE}.") 1694 1695if(CONFIG_USE_component_mflash_common AND (CONFIG_BOARD STREQUAL evkmimxrt685) AND CONFIG_USE_driver_flexspi AND CONFIG_USE_driver_cache_cache64) 1696 1697target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 1698 ${CMAKE_CURRENT_LIST_DIR}/../../components/flash/mflash/mimxrt685/mflash_drv.c 1699) 1700 1701target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 1702 ${CMAKE_CURRENT_LIST_DIR}/../../components/flash/mflash/mimxrt685/. 1703) 1704 1705if(CONFIG_USE_COMPONENT_CONFIGURATION) 1706 message("===>Import configuration from ${CMAKE_CURRENT_LIST_FILE}") 1707 1708 target_compile_definitions(${MCUX_SDK_PROJECT_NAME} PUBLIC 1709 -DMFLASH_FILE_BASEADDR=7340032 1710 ) 1711 1712endif() 1713 1714else() 1715 1716message(SEND_ERROR "component_mflash_rt685.MIMXRT685S dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 1717 1718endif() 1719 1720endif() 1721 1722 1723if (CONFIG_USE_component_mflash_mimxrt685audevk) 1724# Add set(CONFIG_USE_component_mflash_mimxrt685audevk true) in config.cmake to use this component 1725 1726message("component_mflash_mimxrt685audevk component is included from ${CMAKE_CURRENT_LIST_FILE}.") 1727 1728if(CONFIG_USE_component_mflash_common AND (CONFIG_BOARD STREQUAL mimxrt685audevk) AND CONFIG_USE_driver_flexspi AND CONFIG_USE_driver_cache_cache64) 1729 1730target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 1731 ${CMAKE_CURRENT_LIST_DIR}/../../components/flash/mflash/mimxrt685audevk/mflash_drv.c 1732) 1733 1734target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 1735 ${CMAKE_CURRENT_LIST_DIR}/../../components/flash/mflash/mimxrt685audevk/. 1736) 1737 1738if(CONFIG_USE_COMPONENT_CONFIGURATION) 1739 message("===>Import configuration from ${CMAKE_CURRENT_LIST_FILE}") 1740 1741 target_compile_definitions(${MCUX_SDK_PROJECT_NAME} PUBLIC 1742 -DMFLASH_FILE_BASEADDR=7340032 1743 ) 1744 1745endif() 1746 1747else() 1748 1749message(SEND_ERROR "component_mflash_mimxrt685audevk.MIMXRT685S dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 1750 1751endif() 1752 1753endif() 1754 1755 1756if (CONFIG_USE_driver_mma8652fc) 1757# Add set(CONFIG_USE_driver_mma8652fc true) in config.cmake to use this component 1758 1759message("driver_mma8652fc component is included from ${CMAKE_CURRENT_LIST_FILE}.") 1760 1761if(CONFIG_USE_driver_common) 1762 1763target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 1764 ${CMAKE_CURRENT_LIST_DIR}/../../components/mma8652fc/fsl_mma.c 1765) 1766 1767target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 1768 ${CMAKE_CURRENT_LIST_DIR}/../../components/mma8652fc/. 1769) 1770 1771else() 1772 1773message(SEND_ERROR "driver_mma8652fc.MIMXRT685S dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 1774 1775endif() 1776 1777endif() 1778 1779 1780if (CONFIG_USE_driver_mpi_loader) 1781# Add set(CONFIG_USE_driver_mpi_loader true) in config.cmake to use this component 1782 1783message("driver_mpi_loader component is included from ${CMAKE_CURRENT_LIST_FILE}.") 1784 1785if(CONFIG_USE_driver_common) 1786 1787target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 1788 ${CMAKE_CURRENT_LIST_DIR}/../../components/mpi_loader/fsl_mpi_loader.c 1789) 1790 1791target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 1792 ${CMAKE_CURRENT_LIST_DIR}/../../components/mpi_loader/. 1793) 1794 1795else() 1796 1797message(SEND_ERROR "driver_mpi_loader.MIMXRT685S dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 1798 1799endif() 1800 1801endif() 1802 1803 1804if (CONFIG_USE_component_panic) 1805# Add set(CONFIG_USE_component_panic true) in config.cmake to use this component 1806 1807message("component_panic component is included from ${CMAKE_CURRENT_LIST_FILE}.") 1808 1809if(CONFIG_USE_driver_common) 1810 1811target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 1812 ${CMAKE_CURRENT_LIST_DIR}/../../components/panic/fsl_component_panic.c 1813) 1814 1815target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 1816 ${CMAKE_CURRENT_LIST_DIR}/../../components/panic/. 1817) 1818 1819else() 1820 1821message(SEND_ERROR "component_panic.MIMXRT685S dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 1822 1823endif() 1824 1825endif() 1826 1827 1828if (CONFIG_USE_component_pwm_ctimer_adapter) 1829# Add set(CONFIG_USE_component_pwm_ctimer_adapter true) in config.cmake to use this component 1830 1831message("component_pwm_ctimer_adapter component is included from ${CMAKE_CURRENT_LIST_FILE}.") 1832 1833if(CONFIG_USE_driver_common AND CONFIG_USE_driver_ctimer) 1834 1835target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 1836 ${CMAKE_CURRENT_LIST_DIR}/../../components/pwm/fsl_adapter_pwm_ctimer.c 1837) 1838 1839target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 1840 ${CMAKE_CURRENT_LIST_DIR}/../../components/pwm/. 1841) 1842 1843else() 1844 1845message(SEND_ERROR "component_pwm_ctimer_adapter.MIMXRT685S dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 1846 1847endif() 1848 1849endif() 1850 1851 1852if (CONFIG_USE_component_reset_adapter) 1853# Add set(CONFIG_USE_component_reset_adapter true) in config.cmake to use this component 1854 1855message("component_reset_adapter component is included from ${CMAKE_CURRENT_LIST_FILE}.") 1856 1857if(CONFIG_USE_driver_common) 1858 1859target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 1860 ${CMAKE_CURRENT_LIST_DIR}/../../components/reset/fsl_adapter_reset.c 1861) 1862 1863target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 1864 ${CMAKE_CURRENT_LIST_DIR}/../../components/reset/. 1865) 1866 1867else() 1868 1869message(SEND_ERROR "component_reset_adapter.MIMXRT685S dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 1870 1871endif() 1872 1873endif() 1874 1875 1876if (CONFIG_USE_component_trng_adapter) 1877# Add set(CONFIG_USE_component_trng_adapter true) in config.cmake to use this component 1878 1879message("component_trng_adapter component is included from ${CMAKE_CURRENT_LIST_FILE}.") 1880 1881if(CONFIG_USE_driver_common AND CONFIG_USE_driver_trng) 1882 1883target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 1884 ${CMAKE_CURRENT_LIST_DIR}/../../components/rng/fsl_adapter_trng.c 1885) 1886 1887target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 1888 ${CMAKE_CURRENT_LIST_DIR}/../../components/rng/. 1889) 1890 1891else() 1892 1893message(SEND_ERROR "component_trng_adapter.MIMXRT685S dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 1894 1895endif() 1896 1897endif() 1898 1899 1900if (CONFIG_USE_component_software_rng_adapter) 1901# Add set(CONFIG_USE_component_software_rng_adapter true) in config.cmake to use this component 1902 1903message("component_software_rng_adapter component is included from ${CMAKE_CURRENT_LIST_FILE}.") 1904 1905if(CONFIG_USE_driver_common) 1906 1907target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 1908 ${CMAKE_CURRENT_LIST_DIR}/../../components/rng/fsl_adapter_software_rng.c 1909) 1910 1911target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 1912 ${CMAKE_CURRENT_LIST_DIR}/../../components/rng/. 1913) 1914 1915else() 1916 1917message(SEND_ERROR "component_software_rng_adapter.MIMXRT685S dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 1918 1919endif() 1920 1921endif() 1922 1923 1924if (CONFIG_USE_component_lpcrtc) 1925# Add set(CONFIG_USE_component_lpcrtc true) in config.cmake to use this component 1926 1927message("component_lpcrtc component is included from ${CMAKE_CURRENT_LIST_FILE}.") 1928 1929if(CONFIG_USE_driver_common AND CONFIG_USE_driver_lpc_rtc AND (CONFIG_DEVICE_ID STREQUAL MIMXRT685S)) 1930 1931target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 1932 ${CMAKE_CURRENT_LIST_DIR}/../../components/rtc/fsl_adapter_lpcrtc.c 1933) 1934 1935target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 1936 ${CMAKE_CURRENT_LIST_DIR}/../../components/rtc/. 1937) 1938 1939if(CONFIG_USE_COMPONENT_CONFIGURATION) 1940 message("===>Import configuration from ${CMAKE_CURRENT_LIST_FILE}") 1941 1942 target_compile_definitions(${MCUX_SDK_PROJECT_NAME} PUBLIC 1943 -DRTC_LEGACY_FUNCTION_PROTOTYPE=1 1944 ) 1945 1946endif() 1947 1948else() 1949 1950message(SEND_ERROR "component_lpcrtc.MIMXRT685S dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 1951 1952endif() 1953 1954endif() 1955 1956 1957if (CONFIG_USE_component_serial_manager) 1958# Add set(CONFIG_USE_component_serial_manager true) in config.cmake to use this component 1959 1960message("component_serial_manager component is included from ${CMAKE_CURRENT_LIST_FILE}.") 1961 1962if(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)) 1963 1964target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 1965 ${CMAKE_CURRENT_LIST_DIR}/../../components/serial_manager/fsl_component_serial_manager.c 1966) 1967 1968target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 1969 ${CMAKE_CURRENT_LIST_DIR}/../../components/serial_manager/. 1970) 1971 1972else() 1973 1974message(SEND_ERROR "component_serial_manager.MIMXRT685S dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 1975 1976endif() 1977 1978endif() 1979 1980 1981if (CONFIG_USE_component_serial_manager_spi) 1982# Add set(CONFIG_USE_component_serial_manager_spi true) in config.cmake to use this component 1983 1984message("component_serial_manager_spi component is included from ${CMAKE_CURRENT_LIST_FILE}.") 1985 1986if(CONFIG_USE_component_serial_manager AND ((CONFIG_USE_driver_flexcomm_spi AND CONFIG_USE_component_flexcomm_spi_adapter))) 1987 1988target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 1989 ${CMAKE_CURRENT_LIST_DIR}/../../components/serial_manager/fsl_component_serial_port_spi.c 1990) 1991 1992target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 1993 ${CMAKE_CURRENT_LIST_DIR}/../../components/serial_manager/. 1994) 1995 1996if(CONFIG_USE_COMPONENT_CONFIGURATION) 1997 message("===>Import configuration from ${CMAKE_CURRENT_LIST_FILE}") 1998 1999 target_compile_definitions(${MCUX_SDK_PROJECT_NAME} PUBLIC 2000 -DSERIAL_PORT_TYPE_SPI=1 2001 -DSERIAL_PORT_TYPE_SPI_MASTER=1 2002 -DSERIAL_PORT_TYPE_SPI_SLAVE=1 2003 -DSERIAL_MANAGER_NON_BLOCKING_MODE=1 2004 ) 2005 2006endif() 2007 2008else() 2009 2010message(SEND_ERROR "component_serial_manager_spi.MIMXRT685S dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 2011 2012endif() 2013 2014endif() 2015 2016 2017if (CONFIG_USE_component_serial_manager_usb_cdc) 2018# Add set(CONFIG_USE_component_serial_manager_usb_cdc true) in config.cmake to use this component 2019 2020message("component_serial_manager_usb_cdc component is included from ${CMAKE_CURRENT_LIST_FILE}.") 2021 2022if(CONFIG_USE_component_serial_manager AND CONFIG_USE_middleware_usb_device_cdc_external AND CONFIG_USE_driver_common) 2023 2024target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 2025 ${CMAKE_CURRENT_LIST_DIR}/../../components/serial_manager/fsl_component_serial_port_usb.c 2026 ${CMAKE_CURRENT_LIST_DIR}/../../components/serial_manager/usb_cdc_adapter/usb_device_descriptor.c 2027) 2028 2029target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 2030 ${CMAKE_CURRENT_LIST_DIR}/../../components/serial_manager/. 2031 ${CMAKE_CURRENT_LIST_DIR}/../../components/serial_manager/usb_cdc_adapter 2032) 2033 2034if(CONFIG_USE_COMPONENT_CONFIGURATION) 2035 message("===>Import configuration from ${CMAKE_CURRENT_LIST_FILE}") 2036 2037 target_compile_definitions(${MCUX_SDK_PROJECT_NAME} PUBLIC 2038 -DSERIAL_PORT_TYPE_USBCDC=1 2039 -DDEBUG_CONSOLE_TRANSFER_NON_BLOCKING 2040 -DUSB_DEVICE_CONFIG_CDC_ACM=1 2041 ) 2042 2043endif() 2044 2045else() 2046 2047message(SEND_ERROR "component_serial_manager_usb_cdc.MIMXRT685S dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 2048 2049endif() 2050 2051endif() 2052 2053 2054if (CONFIG_USE_component_serial_manager_virtual) 2055# Add set(CONFIG_USE_component_serial_manager_virtual true) in config.cmake to use this component 2056 2057message("component_serial_manager_virtual component is included from ${CMAKE_CURRENT_LIST_FILE}.") 2058 2059if(CONFIG_USE_component_serial_manager AND CONFIG_USE_driver_common) 2060 2061target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 2062 ${CMAKE_CURRENT_LIST_DIR}/../../components/serial_manager/fsl_component_serial_port_virtual.c 2063) 2064 2065target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 2066 ${CMAKE_CURRENT_LIST_DIR}/../../components/serial_manager/. 2067) 2068 2069if(CONFIG_USE_COMPONENT_CONFIGURATION) 2070 message("===>Import configuration from ${CMAKE_CURRENT_LIST_FILE}") 2071 2072 target_compile_definitions(${MCUX_SDK_PROJECT_NAME} PUBLIC 2073 -DSERIAL_PORT_TYPE_VIRTUAL=1 2074 -DDEBUG_CONSOLE_TRANSFER_NON_BLOCKING 2075 ) 2076 2077endif() 2078 2079else() 2080 2081message(SEND_ERROR "component_serial_manager_virtual.MIMXRT685S dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 2082 2083endif() 2084 2085endif() 2086 2087 2088if (CONFIG_USE_component_serial_manager_swo) 2089# Add set(CONFIG_USE_component_serial_manager_swo true) in config.cmake to use this component 2090 2091message("component_serial_manager_swo component is included from ${CMAKE_CURRENT_LIST_FILE}.") 2092 2093if((CONFIG_CORE STREQUAL cm33) AND CONFIG_USE_driver_common AND CONFIG_USE_component_serial_manager) 2094 2095target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 2096 ${CMAKE_CURRENT_LIST_DIR}/../../components/serial_manager/fsl_component_serial_port_swo.c 2097) 2098 2099target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 2100 ${CMAKE_CURRENT_LIST_DIR}/../../components/serial_manager/. 2101) 2102 2103if(CONFIG_USE_COMPONENT_CONFIGURATION) 2104 message("===>Import configuration from ${CMAKE_CURRENT_LIST_FILE}") 2105 2106 target_compile_definitions(${MCUX_SDK_PROJECT_NAME} PUBLIC 2107 -DSERIAL_PORT_TYPE_SWO=1 2108 ) 2109 2110endif() 2111 2112else() 2113 2114message(SEND_ERROR "component_serial_manager_swo.MIMXRT685S dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 2115 2116endif() 2117 2118endif() 2119 2120 2121if (CONFIG_USE_utility_shell) 2122# Add set(CONFIG_USE_utility_shell true) in config.cmake to use this component 2123 2124message("utility_shell component is included from ${CMAKE_CURRENT_LIST_FILE}.") 2125 2126if(CONFIG_USE_utility_str AND CONFIG_USE_component_lists AND CONFIG_USE_driver_common) 2127 2128target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 2129 ${CMAKE_CURRENT_LIST_DIR}/../../utilities/shell/fsl_shell.c 2130) 2131 2132target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 2133 ${CMAKE_CURRENT_LIST_DIR}/../../utilities/shell/. 2134) 2135 2136if(CONFIG_USE_COMPONENT_CONFIGURATION) 2137 message("===>Import configuration from ${CMAKE_CURRENT_LIST_FILE}") 2138 2139 target_compile_definitions(${MCUX_SDK_PROJECT_NAME} PUBLIC 2140 -DDEBUG_CONSOLE_RX_ENABLE=0 2141 ) 2142 2143endif() 2144 2145else() 2146 2147message(SEND_ERROR "utility_shell.MIMXRT685S dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 2148 2149endif() 2150 2151endif() 2152 2153 2154if (CONFIG_USE_component_flexcomm_spi_adapter) 2155# Add set(CONFIG_USE_component_flexcomm_spi_adapter true) in config.cmake to use this component 2156 2157message("component_flexcomm_spi_adapter component is included from ${CMAKE_CURRENT_LIST_FILE}.") 2158 2159if(CONFIG_USE_driver_common AND CONFIG_USE_driver_flexcomm_spi) 2160 2161target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 2162 ${CMAKE_CURRENT_LIST_DIR}/../../components/spi/fsl_adapter_flexcomm_spi.c 2163) 2164 2165target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 2166 ${CMAKE_CURRENT_LIST_DIR}/../../components/spi/. 2167) 2168 2169else() 2170 2171message(SEND_ERROR "component_flexcomm_spi_adapter.MIMXRT685S dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 2172 2173endif() 2174 2175endif() 2176 2177 2178if (CONFIG_USE_driver_sx1502) 2179# Add set(CONFIG_USE_driver_sx1502 true) in config.cmake to use this component 2180 2181message("driver_sx1502 component is included from ${CMAKE_CURRENT_LIST_FILE}.") 2182 2183if(CONFIG_USE_driver_common AND (CONFIG_USE_component_flexcomm_i2c_adapter OR CONFIG_USE_component_i3c_adapter)) 2184 2185target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 2186 ${CMAKE_CURRENT_LIST_DIR}/../../components/sx1502/fsl_sx1502.c 2187) 2188 2189target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 2190 ${CMAKE_CURRENT_LIST_DIR}/../../components/sx1502/. 2191) 2192 2193else() 2194 2195message(SEND_ERROR "driver_sx1502.MIMXRT685S dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 2196 2197endif() 2198 2199endif() 2200 2201 2202if (CONFIG_USE_driver_tfa9xxx) 2203# Add set(CONFIG_USE_driver_tfa9xxx true) in config.cmake to use this component 2204 2205message("driver_tfa9xxx component is included from ${CMAKE_CURRENT_LIST_FILE}.") 2206 2207if(CONFIG_USE_driver_common AND CONFIG_USE_component_codec_i2c) 2208 2209target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 2210 ${CMAKE_CURRENT_LIST_DIR}/../../components/codec/tfa9xxx/fsl_tfa9xxx.c 2211 ${CMAKE_CURRENT_LIST_DIR}/../../components/codec/tfa9xxx/fsl_tfa9xxx_IMX.c 2212 ${CMAKE_CURRENT_LIST_DIR}/../../components/codec/tfa9xxx/vas_tfa_drv/tfa2_container.c 2213 ${CMAKE_CURRENT_LIST_DIR}/../../components/codec/tfa9xxx/vas_tfa_drv/tfa2_dev.c 2214 ${CMAKE_CURRENT_LIST_DIR}/../../components/codec/tfa9xxx/vas_tfa_drv/tfa2_haptic.c 2215 ${CMAKE_CURRENT_LIST_DIR}/../../components/codec/tfa9xxx/vas_tfa_drv/tfa2_init.c 2216 ${CMAKE_CURRENT_LIST_DIR}/../../components/codec/tfa9xxx/vas_tfa_drv/tfa_container_crc32.c 2217) 2218 2219target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 2220 ${CMAKE_CURRENT_LIST_DIR}/../../components/codec/tfa9xxx/. 2221 ${CMAKE_CURRENT_LIST_DIR}/../../components/codec/tfa9xxx/vas_tfa_drv 2222) 2223 2224if(CONFIG_USE_COMPONENT_CONFIGURATION) 2225 message("===>Import configuration from ${CMAKE_CURRENT_LIST_FILE}") 2226 2227 target_compile_definitions(${MCUX_SDK_PROJECT_NAME} PUBLIC 2228 -DSDK_I2C_BASED_COMPONENT_USED=1 2229 -DBOARD_USE_CODEC=1 2230 -DCODEC_TFA9XXX_ENABLE 2231 ) 2232 2233endif() 2234 2235else() 2236 2237message(SEND_ERROR "driver_tfa9xxx.MIMXRT685S dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 2238 2239endif() 2240 2241endif() 2242 2243 2244if (CONFIG_USE_driver_tfa9xxx_hal) 2245# Add set(CONFIG_USE_driver_tfa9xxx_hal true) in config.cmake to use this component 2246 2247message("driver_tfa9xxx_hal component is included from ${CMAKE_CURRENT_LIST_FILE}.") 2248 2249if(CONFIG_USE_driver_common AND CONFIG_USE_component_codec_i2c AND CONFIG_USE_driver_tfa9xxx) 2250 2251target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 2252 ${CMAKE_CURRENT_LIST_DIR}/../../components/codec/tfa9xxx/tfa_device_hal.c 2253) 2254 2255target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 2256 ${CMAKE_CURRENT_LIST_DIR}/../../components/codec/tfa9xxx/. 2257) 2258 2259else() 2260 2261message(SEND_ERROR "driver_tfa9xxx_hal.MIMXRT685S dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 2262 2263endif() 2264 2265endif() 2266 2267 2268if (CONFIG_USE_component_ctimer_adapter) 2269# Add set(CONFIG_USE_component_ctimer_adapter true) in config.cmake to use this component 2270 2271message("component_ctimer_adapter component is included from ${CMAKE_CURRENT_LIST_FILE}.") 2272 2273if(CONFIG_USE_driver_common AND CONFIG_USE_driver_ctimer) 2274 2275target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 2276 ${CMAKE_CURRENT_LIST_DIR}/../../components/timer/fsl_adapter_ctimer.c 2277) 2278 2279target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 2280 ${CMAKE_CURRENT_LIST_DIR}/../../components/timer/. 2281) 2282 2283else() 2284 2285message(SEND_ERROR "component_ctimer_adapter.MIMXRT685S dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 2286 2287endif() 2288 2289endif() 2290 2291 2292if (CONFIG_USE_component_mrt_adapter) 2293# Add set(CONFIG_USE_component_mrt_adapter true) in config.cmake to use this component 2294 2295message("component_mrt_adapter component is included from ${CMAKE_CURRENT_LIST_FILE}.") 2296 2297if(CONFIG_USE_driver_common AND CONFIG_USE_driver_mrt) 2298 2299target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 2300 ${CMAKE_CURRENT_LIST_DIR}/../../components/timer/fsl_adapter_mrt.c 2301) 2302 2303target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 2304 ${CMAKE_CURRENT_LIST_DIR}/../../components/timer/. 2305) 2306 2307else() 2308 2309message(SEND_ERROR "component_mrt_adapter.MIMXRT685S dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 2310 2311endif() 2312 2313endif() 2314 2315 2316if (CONFIG_USE_component_ostimer_adapter) 2317# Add set(CONFIG_USE_component_ostimer_adapter true) in config.cmake to use this component 2318 2319message("component_ostimer_adapter component is included from ${CMAKE_CURRENT_LIST_FILE}.") 2320 2321if(CONFIG_USE_driver_common AND CONFIG_USE_driver_ostimer) 2322 2323target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 2324 ${CMAKE_CURRENT_LIST_DIR}/../../components/timer/fsl_adapter_ostimer.c 2325) 2326 2327target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 2328 ${CMAKE_CURRENT_LIST_DIR}/../../components/timer/. 2329) 2330 2331else() 2332 2333message(SEND_ERROR "component_ostimer_adapter.MIMXRT685S dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 2334 2335endif() 2336 2337endif() 2338 2339 2340if (CONFIG_USE_component_timer_manager) 2341# Add set(CONFIG_USE_component_timer_manager true) in config.cmake to use this component 2342 2343message("component_timer_manager component is included from ${CMAKE_CURRENT_LIST_FILE}.") 2344 2345if(CONFIG_USE_driver_common AND CONFIG_USE_component_lists AND (CONFIG_USE_component_ctimer_adapter OR CONFIG_USE_component_mrt_adapter OR CONFIG_USE_component_ostimer_adapter)) 2346 2347target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 2348 ${CMAKE_CURRENT_LIST_DIR}/../../components/timer_manager/fsl_component_timer_manager.c 2349) 2350 2351target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 2352 ${CMAKE_CURRENT_LIST_DIR}/../../components/timer_manager/. 2353) 2354 2355else() 2356 2357message(SEND_ERROR "component_timer_manager.MIMXRT685S dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 2358 2359endif() 2360 2361endif() 2362 2363 2364if (CONFIG_USE_component_usart_adapter) 2365# Add set(CONFIG_USE_component_usart_adapter true) in config.cmake to use this component 2366 2367message("component_usart_adapter component is included from ${CMAKE_CURRENT_LIST_FILE}.") 2368 2369if(CONFIG_USE_driver_common AND CONFIG_USE_driver_flexcomm_usart AND CONFIG_USE_driver_flexcomm) 2370 2371target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 2372 ${CMAKE_CURRENT_LIST_DIR}/../../components/uart/fsl_adapter_usart.c 2373) 2374 2375target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 2376 ${CMAKE_CURRENT_LIST_DIR}/../../components/uart/. 2377) 2378 2379else() 2380 2381message(SEND_ERROR "component_usart_adapter.MIMXRT685S dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 2382 2383endif() 2384 2385endif() 2386 2387 2388if (CONFIG_USE_component_usart_dma_adapter) 2389# Add set(CONFIG_USE_component_usart_dma_adapter true) in config.cmake to use this component 2390 2391message("component_usart_dma_adapter component is included from ${CMAKE_CURRENT_LIST_FILE}.") 2392 2393if(CONFIG_USE_component_usart_adapter AND CONFIG_USE_component_timer_manager AND CONFIG_USE_driver_flexcomm_usart_dma) 2394 2395target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 2396 ${CMAKE_CURRENT_LIST_DIR}/../../components/uart/fsl_adapter_usart.c 2397) 2398 2399target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 2400 ${CMAKE_CURRENT_LIST_DIR}/../../components/uart/. 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 -DHAL_UART_DMA_ENABLE=1 2408 ) 2409 2410endif() 2411 2412else() 2413 2414message(SEND_ERROR "component_usart_dma_adapter.MIMXRT685S dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 2415 2416endif() 2417 2418endif() 2419 2420 2421if (CONFIG_USE_driver_wm8904) 2422# Add set(CONFIG_USE_driver_wm8904 true) in config.cmake to use this component 2423 2424message("driver_wm8904 component is included from ${CMAKE_CURRENT_LIST_FILE}.") 2425 2426if(CONFIG_USE_driver_common AND CONFIG_USE_component_codec_i2c) 2427 2428target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 2429 ${CMAKE_CURRENT_LIST_DIR}/../../components/codec/wm8904/fsl_wm8904.c 2430) 2431 2432target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 2433 ${CMAKE_CURRENT_LIST_DIR}/../../components/codec/wm8904/. 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 -DSDK_I2C_BASED_COMPONENT_USED=1 2441 -DBOARD_USE_CODEC=1 2442 -DCODEC_WM8904_ENABLE 2443 ) 2444 2445endif() 2446 2447else() 2448 2449message(SEND_ERROR "driver_wm8904.MIMXRT685S dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 2450 2451endif() 2452 2453endif() 2454 2455 2456if (CONFIG_USE_driver_acmp) 2457# Add set(CONFIG_USE_driver_acmp true) in config.cmake to use this component 2458 2459message("driver_acmp component is included from ${CMAKE_CURRENT_LIST_FILE}.") 2460 2461if((CONFIG_DEVICE_ID STREQUAL MIMXRT685S) AND CONFIG_USE_driver_common) 2462 2463target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 2464 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/acmp/fsl_acmp.c 2465) 2466 2467target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 2468 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/acmp/. 2469) 2470 2471else() 2472 2473message(SEND_ERROR "driver_acmp.MIMXRT685S dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 2474 2475endif() 2476 2477endif() 2478 2479 2480if (CONFIG_USE_driver_flexspi) 2481# Add set(CONFIG_USE_driver_flexspi true) in config.cmake to use this component 2482 2483message("driver_flexspi component is included from ${CMAKE_CURRENT_LIST_FILE}.") 2484 2485if((CONFIG_DEVICE_ID STREQUAL MIMXRT685S) AND CONFIG_USE_driver_common) 2486 2487target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 2488 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/flexspi/fsl_flexspi.c 2489) 2490 2491target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 2492 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/flexspi/. 2493) 2494 2495else() 2496 2497message(SEND_ERROR "driver_flexspi.MIMXRT685S dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 2498 2499endif() 2500 2501endif() 2502 2503 2504if (CONFIG_USE_driver_lpadc) 2505# Add set(CONFIG_USE_driver_lpadc true) in config.cmake to use this component 2506 2507message("driver_lpadc component is included from ${CMAKE_CURRENT_LIST_FILE}.") 2508 2509if((CONFIG_DEVICE_ID STREQUAL MIMXRT685S) AND CONFIG_USE_driver_common) 2510 2511target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 2512 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/lpadc/fsl_lpadc.c 2513) 2514 2515target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 2516 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/lpadc/. 2517) 2518 2519else() 2520 2521message(SEND_ERROR "driver_lpadc.MIMXRT685S dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 2522 2523endif() 2524 2525endif() 2526 2527 2528if (CONFIG_USE_driver_mu) 2529# Add set(CONFIG_USE_driver_mu true) in config.cmake to use this component 2530 2531message("driver_mu component is included from ${CMAKE_CURRENT_LIST_FILE}.") 2532 2533if((CONFIG_DEVICE_ID STREQUAL MIMXRT685S) AND CONFIG_USE_driver_common) 2534 2535target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 2536 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/mu/fsl_mu.c 2537) 2538 2539target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 2540 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/mu/. 2541) 2542 2543else() 2544 2545message(SEND_ERROR "driver_mu.MIMXRT685S dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 2546 2547endif() 2548 2549endif() 2550 2551 2552if (CONFIG_USE_driver_otfad) 2553# Add set(CONFIG_USE_driver_otfad true) in config.cmake to use this component 2554 2555message("driver_otfad component is included from ${CMAKE_CURRENT_LIST_FILE}.") 2556 2557if((CONFIG_DEVICE_ID STREQUAL MIMXRT685S) AND CONFIG_USE_driver_common) 2558 2559target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 2560 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/otfad/fsl_otfad.c 2561) 2562 2563target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 2564 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/otfad/. 2565) 2566 2567else() 2568 2569message(SEND_ERROR "driver_otfad.MIMXRT685S dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 2570 2571endif() 2572 2573endif() 2574 2575 2576if (CONFIG_USE_driver_sema42) 2577# Add set(CONFIG_USE_driver_sema42 true) in config.cmake to use this component 2578 2579message("driver_sema42 component is included from ${CMAKE_CURRENT_LIST_FILE}.") 2580 2581if((CONFIG_DEVICE_ID STREQUAL MIMXRT685S) AND CONFIG_USE_driver_common) 2582 2583target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 2584 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/sema42/fsl_sema42.c 2585) 2586 2587target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 2588 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/sema42/. 2589) 2590 2591else() 2592 2593message(SEND_ERROR "driver_sema42.MIMXRT685S dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 2594 2595endif() 2596 2597endif() 2598 2599 2600if (CONFIG_USE_driver_usdhc) 2601# Add set(CONFIG_USE_driver_usdhc true) in config.cmake to use this component 2602 2603message("driver_usdhc component is included from ${CMAKE_CURRENT_LIST_FILE}.") 2604 2605if((CONFIG_DEVICE_ID STREQUAL MIMXRT685S) AND CONFIG_USE_driver_common) 2606 2607target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 2608 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/usdhc/fsl_usdhc.c 2609) 2610 2611target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 2612 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/usdhc/. 2613) 2614 2615else() 2616 2617message(SEND_ERROR "driver_usdhc.MIMXRT685S dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 2618 2619endif() 2620 2621endif() 2622 2623 2624if (CONFIG_USE_driver_cache_cache64) 2625# Add set(CONFIG_USE_driver_cache_cache64 true) in config.cmake to use this component 2626 2627message("driver_cache_cache64 component is included from ${CMAKE_CURRENT_LIST_FILE}.") 2628 2629if((CONFIG_DEVICE_ID STREQUAL MIMXRT685S) AND CONFIG_USE_driver_common) 2630 2631target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 2632 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/cache/cache64/fsl_cache.c 2633) 2634 2635target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 2636 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/cache/cache64/. 2637) 2638 2639else() 2640 2641message(SEND_ERROR "driver_cache_cache64.MIMXRT685S dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 2642 2643endif() 2644 2645endif() 2646 2647 2648if (CONFIG_USE_driver_casper) 2649# Add set(CONFIG_USE_driver_casper true) in config.cmake to use this component 2650 2651message("driver_casper component is included from ${CMAKE_CURRENT_LIST_FILE}.") 2652 2653if((CONFIG_DEVICE_ID STREQUAL MIMXRT685S) AND CONFIG_USE_driver_common) 2654 2655target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 2656 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/casper/fsl_casper.c 2657) 2658 2659target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 2660 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/casper/. 2661) 2662 2663else() 2664 2665message(SEND_ERROR "driver_casper.MIMXRT685S dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 2666 2667endif() 2668 2669endif() 2670 2671 2672if (CONFIG_USE_driver_lpc_crc) 2673# Add set(CONFIG_USE_driver_lpc_crc true) in config.cmake to use this component 2674 2675message("driver_lpc_crc component is included from ${CMAKE_CURRENT_LIST_FILE}.") 2676 2677if((CONFIG_DEVICE_ID STREQUAL MIMXRT685S) AND CONFIG_USE_driver_common) 2678 2679target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 2680 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/lpc_crc/fsl_crc.c 2681) 2682 2683target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 2684 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/lpc_crc/. 2685) 2686 2687else() 2688 2689message(SEND_ERROR "driver_lpc_crc.MIMXRT685S dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 2690 2691endif() 2692 2693endif() 2694 2695 2696if (CONFIG_USE_driver_ctimer) 2697# Add set(CONFIG_USE_driver_ctimer true) in config.cmake to use this component 2698 2699message("driver_ctimer component is included from ${CMAKE_CURRENT_LIST_FILE}.") 2700 2701if((CONFIG_DEVICE_ID STREQUAL MIMXRT685S) AND CONFIG_USE_driver_common) 2702 2703target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 2704 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/ctimer/fsl_ctimer.c 2705) 2706 2707target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 2708 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/ctimer/. 2709) 2710 2711else() 2712 2713message(SEND_ERROR "driver_ctimer.MIMXRT685S dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 2714 2715endif() 2716 2717endif() 2718 2719 2720if (CONFIG_USE_driver_dmic) 2721# Add set(CONFIG_USE_driver_dmic true) in config.cmake to use this component 2722 2723message("driver_dmic component is included from ${CMAKE_CURRENT_LIST_FILE}.") 2724 2725if((CONFIG_DEVICE_ID STREQUAL MIMXRT685S) AND CONFIG_USE_driver_common) 2726 2727target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 2728 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/dmic/fsl_dmic.c 2729) 2730 2731target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 2732 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/dmic/. 2733) 2734 2735else() 2736 2737message(SEND_ERROR "driver_dmic.MIMXRT685S dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 2738 2739endif() 2740 2741endif() 2742 2743 2744if (CONFIG_USE_driver_flexcomm) 2745# Add set(CONFIG_USE_driver_flexcomm true) in config.cmake to use this component 2746 2747message("driver_flexcomm component is included from ${CMAKE_CURRENT_LIST_FILE}.") 2748 2749if(CONFIG_USE_driver_common AND (CONFIG_DEVICE_ID STREQUAL MIMXRT685S)) 2750 2751target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 2752 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/flexcomm/fsl_flexcomm.c 2753) 2754 2755target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 2756 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/flexcomm/. 2757) 2758 2759else() 2760 2761message(SEND_ERROR "driver_flexcomm.MIMXRT685S dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 2762 2763endif() 2764 2765endif() 2766 2767 2768if (CONFIG_USE_driver_fmeas) 2769# Add set(CONFIG_USE_driver_fmeas true) in config.cmake to use this component 2770 2771message("driver_fmeas component is included from ${CMAKE_CURRENT_LIST_FILE}.") 2772 2773if((CONFIG_DEVICE_ID STREQUAL MIMXRT685S) AND CONFIG_USE_driver_common) 2774 2775target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 2776 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/fmeas/fsl_fmeas.c 2777) 2778 2779target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 2780 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/fmeas/. 2781) 2782 2783else() 2784 2785message(SEND_ERROR "driver_fmeas.MIMXRT685S dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 2786 2787endif() 2788 2789endif() 2790 2791 2792if (CONFIG_USE_driver_hashcrypt) 2793# Add set(CONFIG_USE_driver_hashcrypt true) in config.cmake to use this component 2794 2795message("driver_hashcrypt component is included from ${CMAKE_CURRENT_LIST_FILE}.") 2796 2797if((CONFIG_DEVICE_ID STREQUAL MIMXRT685S) AND CONFIG_USE_driver_common) 2798 2799target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 2800 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/hashcrypt/fsl_hashcrypt.c 2801) 2802 2803target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 2804 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/hashcrypt/. 2805) 2806 2807else() 2808 2809message(SEND_ERROR "driver_hashcrypt.MIMXRT685S dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 2810 2811endif() 2812 2813endif() 2814 2815 2816if (CONFIG_USE_driver_flexcomm_i2c) 2817# Add set(CONFIG_USE_driver_flexcomm_i2c true) in config.cmake to use this component 2818 2819message("driver_flexcomm_i2c component is included from ${CMAKE_CURRENT_LIST_FILE}.") 2820 2821if(CONFIG_USE_driver_flexcomm AND CONFIG_USE_driver_common AND (CONFIG_DEVICE_ID STREQUAL MIMXRT685S)) 2822 2823target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 2824 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/flexcomm/i2c/fsl_i2c.c 2825) 2826 2827target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 2828 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/flexcomm/i2c/. 2829) 2830 2831else() 2832 2833message(SEND_ERROR "driver_flexcomm_i2c.MIMXRT685S dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 2834 2835endif() 2836 2837endif() 2838 2839 2840if (CONFIG_USE_driver_flexcomm_i2c_freertos) 2841# Add set(CONFIG_USE_driver_flexcomm_i2c_freertos true) in config.cmake to use this component 2842 2843message("driver_flexcomm_i2c_freertos component is included from ${CMAKE_CURRENT_LIST_FILE}.") 2844 2845if(CONFIG_USE_driver_flexcomm AND CONFIG_USE_driver_common AND CONFIG_USE_driver_flexcomm_i2c AND CONFIG_USE_middleware_freertos-kernel) 2846 2847target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 2848 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/flexcomm/i2c/fsl_i2c_freertos.c 2849) 2850 2851target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 2852 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/flexcomm/i2c/. 2853) 2854 2855else() 2856 2857message(SEND_ERROR "driver_flexcomm_i2c_freertos.MIMXRT685S dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 2858 2859endif() 2860 2861endif() 2862 2863 2864if (CONFIG_USE_driver_flexcomm_i2s) 2865# Add set(CONFIG_USE_driver_flexcomm_i2s true) in config.cmake to use this component 2866 2867message("driver_flexcomm_i2s component is included from ${CMAKE_CURRENT_LIST_FILE}.") 2868 2869if(CONFIG_USE_driver_flexcomm AND CONFIG_USE_driver_common AND (CONFIG_DEVICE_ID STREQUAL MIMXRT685S)) 2870 2871target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 2872 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/flexcomm/i2s/fsl_i2s.c 2873) 2874 2875target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 2876 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/flexcomm/i2s/. 2877) 2878 2879else() 2880 2881message(SEND_ERROR "driver_flexcomm_i2s.MIMXRT685S dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 2882 2883endif() 2884 2885endif() 2886 2887 2888if (CONFIG_USE_driver_i3c) 2889# Add set(CONFIG_USE_driver_i3c true) in config.cmake to use this component 2890 2891message("driver_i3c component is included from ${CMAKE_CURRENT_LIST_FILE}.") 2892 2893if(CONFIG_USE_driver_common AND (CONFIG_DEVICE_ID STREQUAL MIMXRT685S)) 2894 2895target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 2896 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/i3c/fsl_i3c.c 2897) 2898 2899target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 2900 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/i3c/. 2901) 2902 2903else() 2904 2905message(SEND_ERROR "driver_i3c.MIMXRT685S dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 2906 2907endif() 2908 2909endif() 2910 2911 2912if (CONFIG_USE_driver_inputmux) 2913# Add set(CONFIG_USE_driver_inputmux true) in config.cmake to use this component 2914 2915message("driver_inputmux component is included from ${CMAKE_CURRENT_LIST_FILE}.") 2916 2917if((CONFIG_DEVICE_ID STREQUAL MIMXRT685S) AND CONFIG_USE_driver_common AND CONFIG_USE_driver_inputmux_connections) 2918 2919target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 2920 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/inputmux/fsl_inputmux.c 2921) 2922 2923target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 2924 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/inputmux/. 2925) 2926 2927else() 2928 2929message(SEND_ERROR "driver_inputmux.MIMXRT685S dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 2930 2931endif() 2932 2933endif() 2934 2935 2936if (CONFIG_USE_driver_lpc_dma) 2937# Add set(CONFIG_USE_driver_lpc_dma true) in config.cmake to use this component 2938 2939message("driver_lpc_dma component is included from ${CMAKE_CURRENT_LIST_FILE}.") 2940 2941if((CONFIG_DEVICE_ID STREQUAL MIMXRT685S) AND CONFIG_USE_driver_common) 2942 2943target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 2944 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/lpc_dma/fsl_dma.c 2945) 2946 2947target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 2948 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/lpc_dma/. 2949) 2950 2951else() 2952 2953message(SEND_ERROR "driver_lpc_dma.MIMXRT685S dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 2954 2955endif() 2956 2957endif() 2958 2959 2960if (CONFIG_USE_driver_lpc_gpio) 2961# Add set(CONFIG_USE_driver_lpc_gpio true) in config.cmake to use this component 2962 2963message("driver_lpc_gpio component is included from ${CMAKE_CURRENT_LIST_FILE}.") 2964 2965if((CONFIG_DEVICE_ID STREQUAL MIMXRT685S) AND CONFIG_USE_driver_common) 2966 2967target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 2968 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/lpc_gpio/fsl_gpio.c 2969) 2970 2971target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 2972 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/lpc_gpio/. 2973) 2974 2975else() 2976 2977message(SEND_ERROR "driver_lpc_gpio.MIMXRT685S dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 2978 2979endif() 2980 2981endif() 2982 2983 2984if (CONFIG_USE_driver_lpc_iopctl) 2985# Add set(CONFIG_USE_driver_lpc_iopctl true) in config.cmake to use this component 2986 2987message("driver_lpc_iopctl component is included from ${CMAKE_CURRENT_LIST_FILE}.") 2988 2989if((CONFIG_DEVICE_ID STREQUAL MIMXRT685S) AND CONFIG_USE_driver_common) 2990 2991target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 2992 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/lpc_iopctl/. 2993) 2994 2995else() 2996 2997message(SEND_ERROR "driver_lpc_iopctl.MIMXRT685S dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 2998 2999endif() 3000 3001endif() 3002 3003 3004if (CONFIG_USE_driver_mrt) 3005# Add set(CONFIG_USE_driver_mrt true) in config.cmake to use this component 3006 3007message("driver_mrt component is included from ${CMAKE_CURRENT_LIST_FILE}.") 3008 3009if((CONFIG_DEVICE_ID STREQUAL MIMXRT685S) AND CONFIG_USE_driver_common) 3010 3011target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 3012 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/mrt/fsl_mrt.c 3013) 3014 3015target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 3016 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/mrt/. 3017) 3018 3019else() 3020 3021message(SEND_ERROR "driver_mrt.MIMXRT685S dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 3022 3023endif() 3024 3025endif() 3026 3027 3028if (CONFIG_USE_driver_ostimer) 3029# Add set(CONFIG_USE_driver_ostimer true) in config.cmake to use this component 3030 3031message("driver_ostimer component is included from ${CMAKE_CURRENT_LIST_FILE}.") 3032 3033if((CONFIG_DEVICE_ID STREQUAL MIMXRT685S) AND CONFIG_USE_driver_common) 3034 3035target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 3036 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/ostimer/fsl_ostimer.c 3037) 3038 3039target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 3040 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/ostimer/. 3041) 3042 3043else() 3044 3045message(SEND_ERROR "driver_ostimer.MIMXRT685S dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 3046 3047endif() 3048 3049endif() 3050 3051 3052if (CONFIG_USE_driver_pint) 3053# Add set(CONFIG_USE_driver_pint true) in config.cmake to use this component 3054 3055message("driver_pint component is included from ${CMAKE_CURRENT_LIST_FILE}.") 3056 3057if((CONFIG_DEVICE_ID STREQUAL MIMXRT685S) AND CONFIG_USE_driver_common) 3058 3059target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 3060 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/pint/fsl_pint.c 3061) 3062 3063target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 3064 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/pint/. 3065) 3066 3067else() 3068 3069message(SEND_ERROR "driver_pint.MIMXRT685S dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 3070 3071endif() 3072 3073endif() 3074 3075 3076if (CONFIG_USE_driver_powerquad) 3077# Add set(CONFIG_USE_driver_powerquad true) in config.cmake to use this component 3078 3079message("driver_powerquad component is included from ${CMAKE_CURRENT_LIST_FILE}.") 3080 3081if((CONFIG_DEVICE_ID STREQUAL MIMXRT685S) AND CONFIG_USE_driver_common) 3082 3083target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 3084 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/powerquad/fsl_powerquad_data.c 3085 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/powerquad/fsl_powerquad_basic.c 3086 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/powerquad/fsl_powerquad_math.c 3087 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/powerquad/fsl_powerquad_matrix.c 3088 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/powerquad/fsl_powerquad_filter.c 3089 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/powerquad/fsl_powerquad_transform.c 3090) 3091 3092target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 3093 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/powerquad/. 3094) 3095 3096else() 3097 3098message(SEND_ERROR "driver_powerquad.MIMXRT685S dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 3099 3100endif() 3101 3102endif() 3103 3104 3105if (CONFIG_USE_driver_powerquad_cmsis) 3106# Add set(CONFIG_USE_driver_powerquad_cmsis true) in config.cmake to use this component 3107 3108message("driver_powerquad_cmsis component is included from ${CMAKE_CURRENT_LIST_FILE}.") 3109 3110if((CONFIG_DEVICE_ID STREQUAL MIMXRT685S) AND CONFIG_USE_driver_powerquad AND CONFIG_USE_CMSIS_DSP_Include) 3111 3112target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 3113 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/powerquad/fsl_powerquad_cmsis.c 3114) 3115 3116target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 3117 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/powerquad/. 3118) 3119 3120else() 3121 3122message(SEND_ERROR "driver_powerquad_cmsis.MIMXRT685S dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 3123 3124endif() 3125 3126endif() 3127 3128 3129if (CONFIG_USE_driver_puf) 3130# Add set(CONFIG_USE_driver_puf true) in config.cmake to use this component 3131 3132message("driver_puf component is included from ${CMAKE_CURRENT_LIST_FILE}.") 3133 3134if((CONFIG_DEVICE_ID STREQUAL MIMXRT685S) AND CONFIG_USE_driver_common) 3135 3136target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 3137 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/puf/fsl_puf.c 3138) 3139 3140target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 3141 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/puf/. 3142) 3143 3144else() 3145 3146message(SEND_ERROR "driver_puf.MIMXRT685S dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 3147 3148endif() 3149 3150endif() 3151 3152 3153if (CONFIG_USE_driver_reset) 3154# Add set(CONFIG_USE_driver_reset true) in config.cmake to use this component 3155 3156message("driver_reset component is included from ${CMAKE_CURRENT_LIST_FILE}.") 3157 3158if(CONFIG_USE_driver_common AND (CONFIG_DEVICE_ID STREQUAL MIMXRT685S)) 3159 3160target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 3161 ${CMAKE_CURRENT_LIST_DIR}/drivers/fsl_reset.c 3162) 3163 3164target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 3165 ${CMAKE_CURRENT_LIST_DIR}/drivers/. 3166) 3167 3168else() 3169 3170message(SEND_ERROR "driver_reset.MIMXRT685S dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 3171 3172endif() 3173 3174endif() 3175 3176 3177if (CONFIG_USE_driver_lpc_rtc) 3178# Add set(CONFIG_USE_driver_lpc_rtc true) in config.cmake to use this component 3179 3180message("driver_lpc_rtc component is included from ${CMAKE_CURRENT_LIST_FILE}.") 3181 3182if((CONFIG_DEVICE_ID STREQUAL MIMXRT685S) AND CONFIG_USE_driver_common) 3183 3184target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 3185 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/lpc_rtc/fsl_rtc.c 3186) 3187 3188target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 3189 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/lpc_rtc/. 3190) 3191 3192else() 3193 3194message(SEND_ERROR "driver_lpc_rtc.MIMXRT685S dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 3195 3196endif() 3197 3198endif() 3199 3200 3201if (CONFIG_USE_driver_sctimer) 3202# Add set(CONFIG_USE_driver_sctimer true) in config.cmake to use this component 3203 3204message("driver_sctimer component is included from ${CMAKE_CURRENT_LIST_FILE}.") 3205 3206if((CONFIG_DEVICE_ID STREQUAL MIMXRT685S) AND CONFIG_USE_driver_common) 3207 3208target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 3209 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/sctimer/fsl_sctimer.c 3210) 3211 3212target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 3213 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/sctimer/. 3214) 3215 3216else() 3217 3218message(SEND_ERROR "driver_sctimer.MIMXRT685S dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 3219 3220endif() 3221 3222endif() 3223 3224 3225if (CONFIG_USE_driver_flexcomm_spi) 3226# Add set(CONFIG_USE_driver_flexcomm_spi true) in config.cmake to use this component 3227 3228message("driver_flexcomm_spi component is included from ${CMAKE_CURRENT_LIST_FILE}.") 3229 3230if(CONFIG_USE_driver_flexcomm AND CONFIG_USE_driver_common AND (CONFIG_DEVICE_ID STREQUAL MIMXRT685S)) 3231 3232target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 3233 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/flexcomm/spi/fsl_spi.c 3234) 3235 3236target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 3237 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/flexcomm/spi/. 3238) 3239 3240else() 3241 3242message(SEND_ERROR "driver_flexcomm_spi.MIMXRT685S dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 3243 3244endif() 3245 3246endif() 3247 3248 3249if (CONFIG_USE_driver_flexcomm_spi_freertos) 3250# Add set(CONFIG_USE_driver_flexcomm_spi_freertos true) in config.cmake to use this component 3251 3252message("driver_flexcomm_spi_freertos component is included from ${CMAKE_CURRENT_LIST_FILE}.") 3253 3254if(CONFIG_USE_driver_flexcomm AND CONFIG_USE_driver_common AND CONFIG_USE_driver_flexcomm_spi AND CONFIG_USE_middleware_freertos-kernel) 3255 3256target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 3257 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/flexcomm/spi/fsl_spi_freertos.c 3258) 3259 3260target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 3261 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/flexcomm/spi/. 3262) 3263 3264else() 3265 3266message(SEND_ERROR "driver_flexcomm_spi_freertos.MIMXRT685S dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 3267 3268endif() 3269 3270endif() 3271 3272 3273if (CONFIG_USE_driver_trng) 3274# Add set(CONFIG_USE_driver_trng true) in config.cmake to use this component 3275 3276message("driver_trng component is included from ${CMAKE_CURRENT_LIST_FILE}.") 3277 3278if((CONFIG_DEVICE_ID STREQUAL MIMXRT685S) AND CONFIG_USE_driver_common) 3279 3280target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 3281 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/trng/fsl_trng.c 3282) 3283 3284target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 3285 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/trng/. 3286) 3287 3288else() 3289 3290message(SEND_ERROR "driver_trng.MIMXRT685S dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 3291 3292endif() 3293 3294endif() 3295 3296 3297if (CONFIG_USE_driver_flexcomm_usart) 3298# Add set(CONFIG_USE_driver_flexcomm_usart true) in config.cmake to use this component 3299 3300message("driver_flexcomm_usart component is included from ${CMAKE_CURRENT_LIST_FILE}.") 3301 3302if(CONFIG_USE_driver_flexcomm AND (CONFIG_DEVICE_ID STREQUAL MIMXRT685S)) 3303 3304target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 3305 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/flexcomm/usart/fsl_usart.c 3306) 3307 3308target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 3309 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/flexcomm/usart/. 3310) 3311 3312else() 3313 3314message(SEND_ERROR "driver_flexcomm_usart.MIMXRT685S dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 3315 3316endif() 3317 3318endif() 3319 3320 3321if (CONFIG_USE_driver_flexcomm_usart_freertos) 3322# Add set(CONFIG_USE_driver_flexcomm_usart_freertos true) in config.cmake to use this component 3323 3324message("driver_flexcomm_usart_freertos component is included from ${CMAKE_CURRENT_LIST_FILE}.") 3325 3326if(CONFIG_USE_driver_flexcomm AND CONFIG_USE_driver_flexcomm_usart AND CONFIG_USE_middleware_freertos-kernel) 3327 3328target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 3329 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/flexcomm/usart/fsl_usart_freertos.c 3330) 3331 3332target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 3333 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/flexcomm/usart/. 3334) 3335 3336else() 3337 3338message(SEND_ERROR "driver_flexcomm_usart_freertos.MIMXRT685S dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 3339 3340endif() 3341 3342endif() 3343 3344 3345if (CONFIG_USE_driver_wwdt) 3346# Add set(CONFIG_USE_driver_wwdt true) in config.cmake to use this component 3347 3348message("driver_wwdt component is included from ${CMAKE_CURRENT_LIST_FILE}.") 3349 3350if((CONFIG_DEVICE_ID STREQUAL MIMXRT685S) AND CONFIG_USE_driver_common) 3351 3352target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 3353 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/wwdt/fsl_wwdt.c 3354) 3355 3356target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 3357 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/wwdt/. 3358) 3359 3360else() 3361 3362message(SEND_ERROR "driver_wwdt.MIMXRT685S dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 3363 3364endif() 3365 3366endif() 3367 3368 3369if (CONFIG_USE_driver_flash_config_evkmimxrt685) 3370# Add set(CONFIG_USE_driver_flash_config_evkmimxrt685 true) in config.cmake to use this component 3371 3372message("driver_flash_config_evkmimxrt685 component is included from ${CMAKE_CURRENT_LIST_FILE}.") 3373 3374if((CONFIG_BOARD STREQUAL evkmimxrt685) AND CONFIG_USE_driver_common) 3375 3376target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 3377 ${CMAKE_CURRENT_LIST_DIR}/../../boards/evkmimxrt685/flash_config/flash_config.c 3378) 3379 3380target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 3381 ${CMAKE_CURRENT_LIST_DIR}/../../boards/evkmimxrt685/flash_config/. 3382) 3383 3384if(CONFIG_USE_COMPONENT_CONFIGURATION) 3385 message("===>Import configuration from ${CMAKE_CURRENT_LIST_FILE}") 3386 3387 target_compile_definitions(${MCUX_SDK_PROJECT_NAME} PUBLIC 3388 -DBOOT_HEADER_ENABLE=1 3389 ) 3390 3391endif() 3392 3393else() 3394 3395message(SEND_ERROR "driver_flash_config_evkmimxrt685.MIMXRT685S dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 3396 3397endif() 3398 3399endif() 3400 3401 3402if (CONFIG_USE_driver_flash_config_mimxrt685audevk) 3403# Add set(CONFIG_USE_driver_flash_config_mimxrt685audevk true) in config.cmake to use this component 3404 3405message("driver_flash_config_mimxrt685audevk component is included from ${CMAKE_CURRENT_LIST_FILE}.") 3406 3407if((CONFIG_BOARD STREQUAL mimxrt685audevk) AND CONFIG_USE_driver_common) 3408 3409target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 3410 ${CMAKE_CURRENT_LIST_DIR}/../../boards/mimxrt685audevk/flash_config/flash_config.c 3411) 3412 3413target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 3414 ${CMAKE_CURRENT_LIST_DIR}/../../boards/mimxrt685audevk/flash_config/. 3415) 3416 3417if(CONFIG_USE_COMPONENT_CONFIGURATION) 3418 message("===>Import configuration from ${CMAKE_CURRENT_LIST_FILE}") 3419 3420 target_compile_definitions(${MCUX_SDK_PROJECT_NAME} PUBLIC 3421 -DBOOT_HEADER_ENABLE=1 3422 ) 3423 3424endif() 3425 3426else() 3427 3428message(SEND_ERROR "driver_flash_config_mimxrt685audevk.MIMXRT685S dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 3429 3430endif() 3431 3432endif() 3433 3434