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