1include_guard(GLOBAL) 2 3 4if (CONFIG_USE_middleware_baremetal) 5# Add set(CONFIG_USE_middleware_baremetal true) in config.cmake to use this component 6 7message("middleware_baremetal component is included from ${CMAKE_CURRENT_LIST_FILE}.") 8 9if(CONFIG_USE_COMPONENT_CONFIGURATION) 10 message("===>Import configuration from ${CMAKE_CURRENT_LIST_FILE}") 11 12 target_compile_definitions(${MCUX_SDK_PROJECT_NAME} PUBLIC 13 -DSDK_OS_BAREMETAL 14 ) 15 16endif() 17 18 19endif() 20 21 22if (CONFIG_USE_utilities_misc_utilities) 23# Add set(CONFIG_USE_utilities_misc_utilities true) in config.cmake to use this component 24 25message("utilities_misc_utilities component is included from ${CMAKE_CURRENT_LIST_FILE}.") 26 27if(CONFIG_TOOLCHAIN STREQUAL armgcc) 28 target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 29 ${CMAKE_CURRENT_LIST_DIR}/../../utilities/misc_utilities/fsl_sbrk.c 30 ${CMAKE_CURRENT_LIST_DIR}/../../utilities/misc_utilities/fsl_syscall_stub.c 31 ) 32endif() 33 34if(CONFIG_CORE STREQUAL cm7f AND (CONFIG_TOOLCHAIN STREQUAL armgcc OR CONFIG_TOOLCHAIN STREQUAL mcux)) 35 target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 36 ${CMAKE_CURRENT_LIST_DIR}/../../utilities/misc_utilities/fsl_memcpy.S 37 ) 38endif() 39 40 41endif() 42 43 44if (CONFIG_USE_driver_srtm) 45# Add set(CONFIG_USE_driver_srtm true) in config.cmake to use this component 46 47message("driver_srtm component is included from ${CMAKE_CURRENT_LIST_FILE}.") 48 49target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 50 ${CMAKE_CURRENT_LIST_DIR}/../../components/srtm/srtm/srtm_channel.c 51 ${CMAKE_CURRENT_LIST_DIR}/../../components/srtm/srtm/srtm_dispatcher.c 52 ${CMAKE_CURRENT_LIST_DIR}/../../components/srtm/srtm/srtm_message.c 53 ${CMAKE_CURRENT_LIST_DIR}/../../components/srtm/srtm/srtm_peercore.c 54 ${CMAKE_CURRENT_LIST_DIR}/../../components/srtm/srtm/srtm_service.c 55 ${CMAKE_CURRENT_LIST_DIR}/../../components/srtm/port/srtm_message_pool.c 56) 57 58target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 59 ${CMAKE_CURRENT_LIST_DIR}/../../components/srtm/include 60 ${CMAKE_CURRENT_LIST_DIR}/../../components/srtm/srtm 61 ${CMAKE_CURRENT_LIST_DIR}/../../components/srtm/port 62) 63 64 65endif() 66 67 68if (CONFIG_USE_DEVICES_Project_Template_MIMX8MN6) 69# Add set(CONFIG_USE_DEVICES_Project_Template_MIMX8MN6 true) in config.cmake to use this component 70 71message("DEVICES_Project_Template_MIMX8MN6 component is included from ${CMAKE_CURRENT_LIST_FILE}.") 72 73if((CONFIG_DEVICE_ID STREQUAL MIMX8MN6xxxJZ OR CONFIG_DEVICE_ID STREQUAL MIMX8MN6xxxIZ) AND CONFIG_USE_device_MIMX8MN6_CMSIS AND CONFIG_USE_device_MIMX8MN6_startup AND CONFIG_USE_driver_clock AND CONFIG_USE_driver_common AND CONFIG_USE_driver_iuart AND CONFIG_USE_driver_rdc AND ((CONFIG_USE_utility_assert AND CONFIG_USE_utility_debug_console) OR (CONFIG_USE_utility_assert_lite AND CONFIG_USE_utility_debug_console_lite))) 74 75add_config_file(${CMAKE_CURRENT_LIST_DIR}/project_template/board.h "" DEVICES_Project_Template_MIMX8MN6.MIMX8MN6) 76add_config_file(${CMAKE_CURRENT_LIST_DIR}/project_template/board.c "" DEVICES_Project_Template_MIMX8MN6.MIMX8MN6) 77add_config_file(${CMAKE_CURRENT_LIST_DIR}/project_template/clock_config.h "" DEVICES_Project_Template_MIMX8MN6.MIMX8MN6) 78add_config_file(${CMAKE_CURRENT_LIST_DIR}/project_template/clock_config.c "" DEVICES_Project_Template_MIMX8MN6.MIMX8MN6) 79add_config_file(${CMAKE_CURRENT_LIST_DIR}/project_template/pin_mux.h "" DEVICES_Project_Template_MIMX8MN6.MIMX8MN6) 80add_config_file(${CMAKE_CURRENT_LIST_DIR}/project_template/pin_mux.c "" DEVICES_Project_Template_MIMX8MN6.MIMX8MN6) 81add_config_file(${CMAKE_CURRENT_LIST_DIR}/project_template/peripherals.h "" DEVICES_Project_Template_MIMX8MN6.MIMX8MN6) 82add_config_file(${CMAKE_CURRENT_LIST_DIR}/project_template/peripherals.c "" DEVICES_Project_Template_MIMX8MN6.MIMX8MN6) 83 84target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 85 ${CMAKE_CURRENT_LIST_DIR}/project_template/. 86) 87 88else() 89 90message(SEND_ERROR "DEVICES_Project_Template_MIMX8MN6.MIMX8MN6 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 91 92endif() 93 94endif() 95 96 97if (CONFIG_USE_device_MIMX8MN6_CMSIS) 98# Add set(CONFIG_USE_device_MIMX8MN6_CMSIS true) in config.cmake to use this component 99 100message("device_MIMX8MN6_CMSIS component is included from ${CMAKE_CURRENT_LIST_FILE}.") 101 102if(CONFIG_USE_CMSIS_Include_core_cm AND (CONFIG_DEVICE_ID STREQUAL MIMX8MN6xxxJZ OR CONFIG_DEVICE_ID STREQUAL MIMX8MN6xxxIZ)) 103 104target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 105 ${CMAKE_CURRENT_LIST_DIR}/./. 106) 107 108else() 109 110message(SEND_ERROR "device_MIMX8MN6_CMSIS.MIMX8MN6 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 111 112endif() 113 114endif() 115 116 117if (CONFIG_USE_RTE_Device) 118# Add set(CONFIG_USE_RTE_Device true) in config.cmake to use this component 119 120message("RTE_Device component is included from ${CMAKE_CURRENT_LIST_FILE}.") 121 122if((CONFIG_DEVICE_ID STREQUAL MIMX8MN6xxxJZ OR CONFIG_DEVICE_ID STREQUAL MIMX8MN6xxxIZ)) 123 124add_config_file(${CMAKE_CURRENT_LIST_DIR}/template/RTE_Device.h "" RTE_Device.MIMX8MN6) 125 126target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 127 ${CMAKE_CURRENT_LIST_DIR}/template/. 128) 129 130else() 131 132message(SEND_ERROR "RTE_Device.MIMX8MN6 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 133 134endif() 135 136endif() 137 138 139if (CONFIG_USE_driver_sdma) 140# Add set(CONFIG_USE_driver_sdma true) in config.cmake to use this component 141 142message("driver_sdma component is included from ${CMAKE_CURRENT_LIST_FILE}.") 143 144if(CONFIG_USE_driver_memory AND (CONFIG_DEVICE_ID STREQUAL MIMX8MN6xxxJZ OR CONFIG_DEVICE_ID STREQUAL MIMX8MN6xxxIZ) AND CONFIG_USE_driver_common) 145 146target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 147 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/sdma/fsl_sdma.c 148) 149 150target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 151 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/sdma/. 152) 153 154else() 155 156message(SEND_ERROR "driver_sdma.MIMX8MN6 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 157 158endif() 159 160endif() 161 162 163if (CONFIG_USE_driver_cmsis_iuart) 164# Add set(CONFIG_USE_driver_cmsis_iuart true) in config.cmake to use this component 165 166message("driver_cmsis_iuart component is included from ${CMAKE_CURRENT_LIST_FILE}.") 167 168if(CONFIG_USE_driver_iuart_sdma AND (CONFIG_DEVICE_ID STREQUAL MIMX8MN6xxxJZ OR CONFIG_DEVICE_ID STREQUAL MIMX8MN6xxxIZ) AND CONFIG_USE_driver_iuart AND CONFIG_USE_CMSIS_Driver_Include_USART AND CONFIG_USE_RTE_Device) 169 170target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 171 ${CMAKE_CURRENT_LIST_DIR}/../../cmsis_drivers/iuart/fsl_uart_cmsis.c 172) 173 174target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 175 ${CMAKE_CURRENT_LIST_DIR}/../../cmsis_drivers/iuart/. 176) 177 178else() 179 180message(SEND_ERROR "driver_cmsis_iuart.MIMX8MN6 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 181 182endif() 183 184endif() 185 186 187if (CONFIG_USE_driver_clock) 188# Add set(CONFIG_USE_driver_clock true) in config.cmake to use this component 189 190message("driver_clock component is included from ${CMAKE_CURRENT_LIST_FILE}.") 191 192if(CONFIG_USE_driver_common) 193 194target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 195 ${CMAKE_CURRENT_LIST_DIR}/drivers/fsl_clock.c 196) 197 198target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 199 ${CMAKE_CURRENT_LIST_DIR}/drivers/. 200) 201 202else() 203 204message(SEND_ERROR "driver_clock.MIMX8MN6 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 205 206endif() 207 208endif() 209 210 211if (CONFIG_USE_component_serial_manager_uart) 212# Add set(CONFIG_USE_component_serial_manager_uart true) in config.cmake to use this component 213 214message("component_serial_manager_uart component is included from ${CMAKE_CURRENT_LIST_FILE}.") 215 216if(CONFIG_USE_component_iuart_adapter AND CONFIG_USE_component_serial_manager AND (CONFIG_USE_driver_iuart)) 217 218target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 219 ${CMAKE_CURRENT_LIST_DIR}/../../components/serial_manager/fsl_component_serial_port_uart.c 220) 221 222target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 223 ${CMAKE_CURRENT_LIST_DIR}/../../components/serial_manager/. 224) 225 226if(CONFIG_USE_COMPONENT_CONFIGURATION) 227 message("===>Import configuration from ${CMAKE_CURRENT_LIST_FILE}") 228 229 target_compile_definitions(${MCUX_SDK_PROJECT_NAME} PUBLIC 230 -DSERIAL_PORT_TYPE_UART=1 231 ) 232 233endif() 234 235else() 236 237message(SEND_ERROR "component_serial_manager_uart.MIMX8MN6 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 238 239endif() 240 241endif() 242 243 244if (CONFIG_USE_utility_debug_console_lite) 245# Add set(CONFIG_USE_utility_debug_console_lite true) in config.cmake to use this component 246 247message("utility_debug_console_lite component is included from ${CMAKE_CURRENT_LIST_FILE}.") 248 249if(CONFIG_USE_component_iuart_adapter AND (CONFIG_DEVICE_ID STREQUAL MIMX8MN6xxxJZ OR CONFIG_DEVICE_ID STREQUAL MIMX8MN6xxxIZ) AND CONFIG_USE_driver_common) 250 251target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 252 ${CMAKE_CURRENT_LIST_DIR}/../../utilities/str/fsl_str.c 253 ${CMAKE_CURRENT_LIST_DIR}/../../utilities/debug_console_lite/fsl_debug_console.c 254) 255 256target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 257 ${CMAKE_CURRENT_LIST_DIR}/../../utilities/str 258 ${CMAKE_CURRENT_LIST_DIR}/../../utilities/debug_console_lite 259) 260 261else() 262 263message(SEND_ERROR "utility_debug_console_lite.MIMX8MN6 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 264 265endif() 266 267endif() 268 269 270if (CONFIG_USE_driver_ecspi_sdma) 271# Add set(CONFIG_USE_driver_ecspi_sdma true) in config.cmake to use this component 272 273message("driver_ecspi_sdma component is included from ${CMAKE_CURRENT_LIST_FILE}.") 274 275if(CONFIG_USE_driver_sdma AND CONFIG_USE_driver_ecspi) 276 277target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 278 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/ecspi/fsl_ecspi_sdma.c 279) 280 281target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 282 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/ecspi/. 283) 284 285else() 286 287message(SEND_ERROR "driver_ecspi_sdma.MIMX8MN6 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 288 289endif() 290 291endif() 292 293 294if (CONFIG_USE_driver_iuart_sdma) 295# Add set(CONFIG_USE_driver_iuart_sdma true) in config.cmake to use this component 296 297message("driver_iuart_sdma component is included from ${CMAKE_CURRENT_LIST_FILE}.") 298 299if(CONFIG_USE_driver_sdma AND CONFIG_USE_driver_iuart) 300 301target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 302 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/iuart/fsl_uart_sdma.c 303) 304 305target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 306 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/iuart/. 307) 308 309else() 310 311message(SEND_ERROR "driver_iuart_sdma.MIMX8MN6 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 312 313endif() 314 315endif() 316 317 318if (CONFIG_USE_driver_sai_sdma) 319# Add set(CONFIG_USE_driver_sai_sdma true) in config.cmake to use this component 320 321message("driver_sai_sdma component is included from ${CMAKE_CURRENT_LIST_FILE}.") 322 323if(CONFIG_USE_driver_sdma AND CONFIG_USE_driver_sai) 324 325target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 326 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/sai/fsl_sai_sdma.c 327) 328 329target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 330 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/sai/. 331) 332 333else() 334 335message(SEND_ERROR "driver_sai_sdma.MIMX8MN6 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 336 337endif() 338 339endif() 340 341 342if (CONFIG_USE_driver_iomuxc) 343# Add set(CONFIG_USE_driver_iomuxc true) in config.cmake to use this component 344 345message("driver_iomuxc component is included from ${CMAKE_CURRENT_LIST_FILE}.") 346 347if(CONFIG_USE_driver_common AND (CONFIG_DEVICE_ID STREQUAL MIMX8MN6xxxJZ OR CONFIG_DEVICE_ID STREQUAL MIMX8MN6xxxIZ)) 348 349target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 350 ${CMAKE_CURRENT_LIST_DIR}/drivers/. 351) 352 353else() 354 355message(SEND_ERROR "driver_iomuxc.MIMX8MN6 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 356 357endif() 358 359endif() 360 361 362if (CONFIG_USE_driver_memory) 363# Add set(CONFIG_USE_driver_memory true) in config.cmake to use this component 364 365message("driver_memory component is included from ${CMAKE_CURRENT_LIST_FILE}.") 366 367if(CONFIG_USE_driver_common AND (CONFIG_DEVICE_ID STREQUAL MIMX8MN6xxxJZ OR CONFIG_DEVICE_ID STREQUAL MIMX8MN6xxxIZ)) 368 369target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 370 ${CMAKE_CURRENT_LIST_DIR}/drivers/. 371) 372 373else() 374 375message(SEND_ERROR "driver_memory.MIMX8MN6 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 376 377endif() 378 379endif() 380 381 382if (CONFIG_USE_device_MIMX8MN6_system) 383# Add set(CONFIG_USE_device_MIMX8MN6_system true) in config.cmake to use this component 384 385message("device_MIMX8MN6_system component is included from ${CMAKE_CURRENT_LIST_FILE}.") 386 387if(CONFIG_USE_device_MIMX8MN6_CMSIS) 388 389target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 390 ${CMAKE_CURRENT_LIST_DIR}/./system_MIMX8MN6_cm7.c 391) 392 393target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 394 ${CMAKE_CURRENT_LIST_DIR}/./. 395) 396 397else() 398 399message(SEND_ERROR "device_MIMX8MN6_system.MIMX8MN6 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 400 401endif() 402 403endif() 404 405 406if (CONFIG_USE_device_MIMX8MN6_startup) 407# Add set(CONFIG_USE_device_MIMX8MN6_startup true) in config.cmake to use this component 408 409message("device_MIMX8MN6_startup component is included from ${CMAKE_CURRENT_LIST_FILE}.") 410 411if(CONFIG_USE_device_MIMX8MN6_system) 412 413if(CONFIG_TOOLCHAIN STREQUAL armgcc) 414 target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 415 ${CMAKE_CURRENT_LIST_DIR}/./gcc/startup_MIMX8MN6_cm7.S 416 ) 417endif() 418 419if(CONFIG_TOOLCHAIN STREQUAL mcux) 420 target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 421 ${CMAKE_CURRENT_LIST_DIR}/./mcuxpresso/startup_MIMX8MN6_cm7.c 422 ${CMAKE_CURRENT_LIST_DIR}/./mcuxpresso/startup_MIMX8MN6_cm7.cpp 423 ) 424endif() 425 426else() 427 428message(SEND_ERROR "device_MIMX8MN6_startup.MIMX8MN6 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 429 430endif() 431 432endif() 433 434 435if (CONFIG_USE_utility_assert) 436# Add set(CONFIG_USE_utility_assert true) in config.cmake to use this component 437 438message("utility_assert component is included from ${CMAKE_CURRENT_LIST_FILE}.") 439 440if(CONFIG_USE_utility_debug_console) 441 442target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 443 ${CMAKE_CURRENT_LIST_DIR}/../../utilities/assert/fsl_assert.c 444) 445 446else() 447 448message(SEND_ERROR "utility_assert.MIMX8MN6 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 449 450endif() 451 452endif() 453 454 455if (CONFIG_USE_utility_assert_lite) 456# Add set(CONFIG_USE_utility_assert_lite true) in config.cmake to use this component 457 458message("utility_assert_lite component is included from ${CMAKE_CURRENT_LIST_FILE}.") 459 460if(CONFIG_USE_utility_debug_console_lite) 461 462target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 463 ${CMAKE_CURRENT_LIST_DIR}/../../utilities/assert/fsl_assert.c 464) 465 466else() 467 468message(SEND_ERROR "utility_assert_lite.MIMX8MN6 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 469 470endif() 471 472endif() 473 474 475if (CONFIG_USE_utility_str) 476# Add set(CONFIG_USE_utility_str true) in config.cmake to use this component 477 478message("utility_str component is included from ${CMAKE_CURRENT_LIST_FILE}.") 479 480if(CONFIG_USE_driver_common) 481 482target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 483 ${CMAKE_CURRENT_LIST_DIR}/../../utilities/str/fsl_str.c 484) 485 486target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 487 ${CMAKE_CURRENT_LIST_DIR}/../../utilities/str 488) 489 490else() 491 492message(SEND_ERROR "utility_str.MIMX8MN6 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 493 494endif() 495 496endif() 497 498 499if (CONFIG_USE_utility_debug_console) 500# Add set(CONFIG_USE_utility_debug_console true) in config.cmake to use this component 501 502message("utility_debug_console component is included from ${CMAKE_CURRENT_LIST_FILE}.") 503 504if(CONFIG_USE_component_serial_manager AND CONFIG_USE_driver_common) 505 506target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 507 ${CMAKE_CURRENT_LIST_DIR}/../../utilities/str/fsl_str.c 508 ${CMAKE_CURRENT_LIST_DIR}/../../utilities/debug_console/fsl_debug_console.c 509) 510 511target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 512 ${CMAKE_CURRENT_LIST_DIR}/../../utilities/str 513 ${CMAKE_CURRENT_LIST_DIR}/../../utilities/debug_console 514) 515 516else() 517 518message(SEND_ERROR "utility_debug_console.MIMX8MN6 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 519 520endif() 521 522endif() 523 524 525if (CONFIG_USE_driver_cmsis_ecspi) 526# Add set(CONFIG_USE_driver_cmsis_ecspi true) in config.cmake to use this component 527 528message("driver_cmsis_ecspi component is included from ${CMAKE_CURRENT_LIST_FILE}.") 529 530if((CONFIG_DEVICE_ID STREQUAL MIMX8MN6xxxJZ OR CONFIG_DEVICE_ID STREQUAL MIMX8MN6xxxIZ) AND CONFIG_USE_driver_ecspi AND CONFIG_USE_CMSIS_Driver_Include_SPI AND CONFIG_USE_RTE_Device) 531 532target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 533 ${CMAKE_CURRENT_LIST_DIR}/../../cmsis_drivers/ecspi/fsl_ecspi_cmsis.c 534) 535 536target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 537 ${CMAKE_CURRENT_LIST_DIR}/../../cmsis_drivers/ecspi/. 538) 539 540else() 541 542message(SEND_ERROR "driver_cmsis_ecspi.MIMX8MN6 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 543 544endif() 545 546endif() 547 548 549if (CONFIG_USE_driver_cmsis_ii2c) 550# Add set(CONFIG_USE_driver_cmsis_ii2c true) in config.cmake to use this component 551 552message("driver_cmsis_ii2c component is included from ${CMAKE_CURRENT_LIST_FILE}.") 553 554if((CONFIG_DEVICE_ID STREQUAL MIMX8MN6xxxJZ OR CONFIG_DEVICE_ID STREQUAL MIMX8MN6xxxIZ) AND CONFIG_USE_driver_ii2c AND CONFIG_USE_CMSIS_Driver_Include_I2C AND CONFIG_USE_RTE_Device) 555 556target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 557 ${CMAKE_CURRENT_LIST_DIR}/../../cmsis_drivers/ii2c/fsl_i2c_cmsis.c 558) 559 560target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 561 ${CMAKE_CURRENT_LIST_DIR}/../../cmsis_drivers/ii2c/. 562) 563 564else() 565 566message(SEND_ERROR "driver_cmsis_ii2c.MIMX8MN6 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 567 568endif() 569 570endif() 571 572 573if (CONFIG_USE_driver_codec) 574# Add set(CONFIG_USE_driver_codec true) in config.cmake to use this component 575 576message("driver_codec component is included from ${CMAKE_CURRENT_LIST_FILE}.") 577 578if(CONFIG_USE_driver_common AND (CONFIG_USE_component_wm8524_adapter OR CONFIG_USE_component_codec_adapters)) 579 580target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 581 ${CMAKE_CURRENT_LIST_DIR}/../../components/codec/fsl_codec_common.c 582) 583 584target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 585 ${CMAKE_CURRENT_LIST_DIR}/../../components/codec/. 586) 587 588if(CONFIG_USE_COMPONENT_CONFIGURATION) 589 message("===>Import configuration from ${CMAKE_CURRENT_LIST_FILE}") 590 591 target_compile_definitions(${MCUX_SDK_PROJECT_NAME} PUBLIC 592 -DSDK_I2C_BASED_COMPONENT_USED=1 593 ) 594 595endif() 596 597else() 598 599message(SEND_ERROR "driver_codec.MIMX8MN6 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 600 601endif() 602 603endif() 604 605 606if (CONFIG_USE_component_codec_adapters) 607# Add set(CONFIG_USE_component_codec_adapters true) in config.cmake to use this component 608 609message("component_codec_adapters component is included from ${CMAKE_CURRENT_LIST_FILE}.") 610 611if((CONFIG_USE_driver_codec AND CONFIG_USE_component_wm8524_adapter)) 612 613target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 614 ${CMAKE_CURRENT_LIST_DIR}/../../components/codec/port/fsl_codec_adapter.c 615) 616 617target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 618 ${CMAKE_CURRENT_LIST_DIR}/../../components/codec/port 619) 620 621if(CONFIG_USE_COMPONENT_CONFIGURATION) 622 message("===>Import configuration from ${CMAKE_CURRENT_LIST_FILE}") 623 624 target_compile_definitions(${MCUX_SDK_PROJECT_NAME} PUBLIC 625 -DCODEC_MULTI_ADAPTERS=1 626 ) 627 628endif() 629 630else() 631 632message(SEND_ERROR "component_codec_adapters.MIMX8MN6 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 633 634endif() 635 636endif() 637 638 639if (CONFIG_USE_component_wm8524_adapter) 640# Add set(CONFIG_USE_component_wm8524_adapter true) in config.cmake to use this component 641 642message("component_wm8524_adapter component is included from ${CMAKE_CURRENT_LIST_FILE}.") 643 644if(CONFIG_USE_driver_wm8524 AND CONFIG_USE_driver_codec) 645 646target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 647 ${CMAKE_CURRENT_LIST_DIR}/../../components/codec/port/wm8524/fsl_codec_wm8524_adapter.c 648) 649 650target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 651 ${CMAKE_CURRENT_LIST_DIR}/../../components/codec/port/wm8524 652 ${CMAKE_CURRENT_LIST_DIR}/../../components/codec/port 653) 654 655else() 656 657message(SEND_ERROR "component_wm8524_adapter.MIMX8MN6 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 658 659endif() 660 661endif() 662 663 664if (CONFIG_USE_component_lists) 665# Add set(CONFIG_USE_component_lists true) in config.cmake to use this component 666 667message("component_lists component is included from ${CMAKE_CURRENT_LIST_FILE}.") 668 669if(CONFIG_USE_driver_common) 670 671target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 672 ${CMAKE_CURRENT_LIST_DIR}/../../components/lists/fsl_component_generic_list.c 673) 674 675target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 676 ${CMAKE_CURRENT_LIST_DIR}/../../components/lists/. 677) 678 679else() 680 681message(SEND_ERROR "component_lists.MIMX8MN6 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 682 683endif() 684 685endif() 686 687 688if (CONFIG_USE_component_serial_manager) 689# Add set(CONFIG_USE_component_serial_manager true) in config.cmake to use this component 690 691message("component_serial_manager component is included from ${CMAKE_CURRENT_LIST_FILE}.") 692 693if(CONFIG_USE_driver_common AND CONFIG_USE_component_lists AND (CONFIG_USE_component_serial_manager_uart OR CONFIG_USE_component_serial_manager_virtual OR CONFIG_USE_component_serial_manager_swo)) 694 695target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 696 ${CMAKE_CURRENT_LIST_DIR}/../../components/serial_manager/fsl_component_serial_manager.c 697) 698 699target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 700 ${CMAKE_CURRENT_LIST_DIR}/../../components/serial_manager/. 701) 702 703else() 704 705message(SEND_ERROR "component_serial_manager.MIMX8MN6 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 706 707endif() 708 709endif() 710 711 712if (CONFIG_USE_component_serial_manager_virtual) 713# Add set(CONFIG_USE_component_serial_manager_virtual true) in config.cmake to use this component 714 715message("component_serial_manager_virtual component is included from ${CMAKE_CURRENT_LIST_FILE}.") 716 717if(CONFIG_USE_component_serial_manager AND CONFIG_USE_driver_common) 718 719target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 720 ${CMAKE_CURRENT_LIST_DIR}/../../components/serial_manager/fsl_component_serial_port_virtual.c 721) 722 723target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 724 ${CMAKE_CURRENT_LIST_DIR}/../../components/serial_manager/. 725) 726 727if(CONFIG_USE_COMPONENT_CONFIGURATION) 728 message("===>Import configuration from ${CMAKE_CURRENT_LIST_FILE}") 729 730 target_compile_definitions(${MCUX_SDK_PROJECT_NAME} PUBLIC 731 -DSERIAL_PORT_TYPE_VIRTUAL=1 732 -DDEBUG_CONSOLE_TRANSFER_NON_BLOCKING 733 ) 734 735endif() 736 737else() 738 739message(SEND_ERROR "component_serial_manager_virtual.MIMX8MN6 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 740 741endif() 742 743endif() 744 745 746if (CONFIG_USE_component_serial_manager_swo) 747# Add set(CONFIG_USE_component_serial_manager_swo true) in config.cmake to use this component 748 749message("component_serial_manager_swo component is included from ${CMAKE_CURRENT_LIST_FILE}.") 750 751if((CONFIG_CORE STREQUAL cm7f) AND CONFIG_USE_driver_common AND CONFIG_USE_component_serial_manager) 752 753target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 754 ${CMAKE_CURRENT_LIST_DIR}/../../components/serial_manager/fsl_component_serial_port_swo.c 755) 756 757target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 758 ${CMAKE_CURRENT_LIST_DIR}/../../components/serial_manager/. 759) 760 761if(CONFIG_USE_COMPONENT_CONFIGURATION) 762 message("===>Import configuration from ${CMAKE_CURRENT_LIST_FILE}") 763 764 target_compile_definitions(${MCUX_SDK_PROJECT_NAME} PUBLIC 765 -DSERIAL_PORT_TYPE_SWO=1 766 ) 767 768endif() 769 770else() 771 772message(SEND_ERROR "component_serial_manager_swo.MIMX8MN6 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 773 774endif() 775 776endif() 777 778 779if (CONFIG_USE_driver_srtm_freertos) 780# Add set(CONFIG_USE_driver_srtm_freertos true) in config.cmake to use this component 781 782message("driver_srtm_freertos component is included from ${CMAKE_CURRENT_LIST_FILE}.") 783 784if(CONFIG_USE_driver_srtm) 785 786target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 787 ${CMAKE_CURRENT_LIST_DIR}/../../components/srtm/port/srtm_heap_freertos.c 788 ${CMAKE_CURRENT_LIST_DIR}/../../components/srtm/port/srtm_mutex_freertos.c 789 ${CMAKE_CURRENT_LIST_DIR}/../../components/srtm/port/srtm_sem_freertos.c 790) 791 792else() 793 794message(SEND_ERROR "driver_srtm_freertos.MIMX8MN6 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 795 796endif() 797 798endif() 799 800 801if (CONFIG_USE_component_iuart_adapter) 802# Add set(CONFIG_USE_component_iuart_adapter true) in config.cmake to use this component 803 804message("component_iuart_adapter component is included from ${CMAKE_CURRENT_LIST_FILE}.") 805 806if(CONFIG_USE_driver_common AND CONFIG_USE_driver_iuart) 807 808target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 809 ${CMAKE_CURRENT_LIST_DIR}/../../components/uart/fsl_adapter_iuart.c 810) 811 812target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 813 ${CMAKE_CURRENT_LIST_DIR}/../../components/uart/. 814) 815 816else() 817 818message(SEND_ERROR "component_iuart_adapter.MIMX8MN6 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 819 820endif() 821 822endif() 823 824 825if (CONFIG_USE_driver_wm8524) 826# Add set(CONFIG_USE_driver_wm8524 true) in config.cmake to use this component 827 828message("driver_wm8524 component is included from ${CMAKE_CURRENT_LIST_FILE}.") 829 830if(CONFIG_USE_driver_common) 831 832target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 833 ${CMAKE_CURRENT_LIST_DIR}/../../components/codec/wm8524/fsl_wm8524.c 834) 835 836target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 837 ${CMAKE_CURRENT_LIST_DIR}/../../components/codec/wm8524/. 838) 839 840if(CONFIG_USE_COMPONENT_CONFIGURATION) 841 message("===>Import configuration from ${CMAKE_CURRENT_LIST_FILE}") 842 843 target_compile_definitions(${MCUX_SDK_PROJECT_NAME} PUBLIC 844 -DSDK_I2C_BASED_COMPONENT_USED=1 845 -DBOARD_USE_CODEC=1 846 -DCODEC_WM8524_ENABLE 847 ) 848 849endif() 850 851else() 852 853message(SEND_ERROR "driver_wm8524.MIMX8MN6 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 854 855endif() 856 857endif() 858 859 860if (CONFIG_USE_driver_common) 861# Add set(CONFIG_USE_driver_common true) in config.cmake to use this component 862 863message("driver_common component is included from ${CMAKE_CURRENT_LIST_FILE}.") 864 865if(CONFIG_USE_driver_clock AND CONFIG_USE_device_MIMX8MN6_CMSIS) 866 867target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 868 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/common/fsl_common.c 869) 870 871if(CONFIG_CORE STREQUAL cm7f) 872 target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 873 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/common/fsl_common_arm.c 874 ) 875endif() 876 877target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 878 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/common/. 879) 880 881else() 882 883message(SEND_ERROR "driver_common.MIMX8MN6 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 884 885endif() 886 887endif() 888 889 890if (CONFIG_USE_driver_easrc) 891# Add set(CONFIG_USE_driver_easrc true) in config.cmake to use this component 892 893message("driver_easrc component is included from ${CMAKE_CURRENT_LIST_FILE}.") 894 895if(CONFIG_USE_driver_common) 896 897target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 898 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/easrc/fsl_asrc.c 899) 900 901target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 902 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/easrc/. 903) 904 905else() 906 907message(SEND_ERROR "driver_easrc.MIMX8MN6 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 908 909endif() 910 911endif() 912 913 914if (CONFIG_USE_driver_easrc_sdma) 915# Add set(CONFIG_USE_driver_easrc_sdma true) in config.cmake to use this component 916 917message("driver_easrc_sdma component is included from ${CMAKE_CURRENT_LIST_FILE}.") 918 919if(CONFIG_USE_driver_easrc AND CONFIG_USE_driver_sdma AND CONFIG_USE_driver_common) 920 921target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 922 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/easrc/fsl_asrc_sdma.c 923) 924 925target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 926 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/easrc/. 927) 928 929else() 930 931message(SEND_ERROR "driver_easrc_sdma.MIMX8MN6 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 932 933endif() 934 935endif() 936 937 938if (CONFIG_USE_driver_ecspi) 939# Add set(CONFIG_USE_driver_ecspi true) in config.cmake to use this component 940 941message("driver_ecspi component is included from ${CMAKE_CURRENT_LIST_FILE}.") 942 943if((CONFIG_DEVICE_ID STREQUAL MIMX8MN6xxxJZ OR CONFIG_DEVICE_ID STREQUAL MIMX8MN6xxxIZ) AND CONFIG_USE_driver_common) 944 945target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 946 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/ecspi/fsl_ecspi.c 947) 948 949target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 950 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/ecspi/. 951) 952 953else() 954 955message(SEND_ERROR "driver_ecspi.MIMX8MN6 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 956 957endif() 958 959endif() 960 961 962if (CONFIG_USE_driver_ecspi_freertos) 963# Add set(CONFIG_USE_driver_ecspi_freertos true) in config.cmake to use this component 964 965message("driver_ecspi_freertos component is included from ${CMAKE_CURRENT_LIST_FILE}.") 966 967if(CONFIG_USE_driver_ecspi AND CONFIG_USE_middleware_freertos-kernel) 968 969target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 970 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/ecspi/fsl_ecspi_freertos.c 971) 972 973target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 974 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/ecspi/. 975) 976 977else() 978 979message(SEND_ERROR "driver_ecspi_freertos.MIMX8MN6 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 980 981endif() 982 983endif() 984 985 986if (CONFIG_USE_driver_gpc_2) 987# Add set(CONFIG_USE_driver_gpc_2 true) in config.cmake to use this component 988 989message("driver_gpc_2 component is included from ${CMAKE_CURRENT_LIST_FILE}.") 990 991if((CONFIG_DEVICE_ID STREQUAL MIMX8MN6xxxJZ OR CONFIG_DEVICE_ID STREQUAL MIMX8MN6xxxIZ) AND CONFIG_USE_driver_common) 992 993target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 994 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/gpc_2/fsl_gpc.c 995) 996 997target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 998 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/gpc_2/. 999) 1000 1001else() 1002 1003message(SEND_ERROR "driver_gpc_2.MIMX8MN6 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 1004 1005endif() 1006 1007endif() 1008 1009 1010if (CONFIG_USE_driver_gpt) 1011# Add set(CONFIG_USE_driver_gpt true) in config.cmake to use this component 1012 1013message("driver_gpt component is included from ${CMAKE_CURRENT_LIST_FILE}.") 1014 1015if((CONFIG_DEVICE_ID STREQUAL MIMX8MN6xxxJZ OR CONFIG_DEVICE_ID STREQUAL MIMX8MN6xxxIZ) AND CONFIG_USE_driver_common) 1016 1017target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 1018 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/gpt/fsl_gpt.c 1019) 1020 1021target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 1022 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/gpt/. 1023) 1024 1025else() 1026 1027message(SEND_ERROR "driver_gpt.MIMX8MN6 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 1028 1029endif() 1030 1031endif() 1032 1033 1034if (CONFIG_USE_driver_igpio) 1035# Add set(CONFIG_USE_driver_igpio true) in config.cmake to use this component 1036 1037message("driver_igpio component is included from ${CMAKE_CURRENT_LIST_FILE}.") 1038 1039if((CONFIG_DEVICE_ID STREQUAL MIMX8MN6xxxJZ OR CONFIG_DEVICE_ID STREQUAL MIMX8MN6xxxIZ) AND CONFIG_USE_driver_common) 1040 1041target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 1042 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/igpio/fsl_gpio.c 1043) 1044 1045target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 1046 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/igpio/. 1047) 1048 1049else() 1050 1051message(SEND_ERROR "driver_igpio.MIMX8MN6 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 1052 1053endif() 1054 1055endif() 1056 1057 1058if (CONFIG_USE_driver_ii2c) 1059# Add set(CONFIG_USE_driver_ii2c true) in config.cmake to use this component 1060 1061message("driver_ii2c component is included from ${CMAKE_CURRENT_LIST_FILE}.") 1062 1063if((CONFIG_DEVICE_ID STREQUAL MIMX8MN6xxxJZ OR CONFIG_DEVICE_ID STREQUAL MIMX8MN6xxxIZ)) 1064 1065target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 1066 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/ii2c/fsl_i2c.c 1067) 1068 1069target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 1070 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/ii2c/. 1071) 1072 1073else() 1074 1075message(SEND_ERROR "driver_ii2c.MIMX8MN6 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 1076 1077endif() 1078 1079endif() 1080 1081 1082if (CONFIG_USE_driver_ii2c_freertos) 1083# Add set(CONFIG_USE_driver_ii2c_freertos true) in config.cmake to use this component 1084 1085message("driver_ii2c_freertos component is included from ${CMAKE_CURRENT_LIST_FILE}.") 1086 1087if(CONFIG_USE_driver_ii2c AND CONFIG_USE_middleware_freertos-kernel) 1088 1089target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 1090 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/ii2c/fsl_i2c_freertos.c 1091) 1092 1093target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 1094 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/ii2c/. 1095) 1096 1097else() 1098 1099message(SEND_ERROR "driver_ii2c_freertos.MIMX8MN6 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 1100 1101endif() 1102 1103endif() 1104 1105 1106if (CONFIG_USE_driver_ipwm) 1107# Add set(CONFIG_USE_driver_ipwm true) in config.cmake to use this component 1108 1109message("driver_ipwm component is included from ${CMAKE_CURRENT_LIST_FILE}.") 1110 1111if((CONFIG_DEVICE_ID STREQUAL MIMX8MN6xxxJZ OR CONFIG_DEVICE_ID STREQUAL MIMX8MN6xxxIZ)) 1112 1113target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 1114 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/ipwm/fsl_pwm.c 1115) 1116 1117target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 1118 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/ipwm/. 1119) 1120 1121else() 1122 1123message(SEND_ERROR "driver_ipwm.MIMX8MN6 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 1124 1125endif() 1126 1127endif() 1128 1129 1130if (CONFIG_USE_driver_iuart) 1131# Add set(CONFIG_USE_driver_iuart true) in config.cmake to use this component 1132 1133message("driver_iuart component is included from ${CMAKE_CURRENT_LIST_FILE}.") 1134 1135if((CONFIG_DEVICE_ID STREQUAL MIMX8MN6xxxJZ OR CONFIG_DEVICE_ID STREQUAL MIMX8MN6xxxIZ)) 1136 1137target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 1138 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/iuart/fsl_uart.c 1139) 1140 1141target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 1142 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/iuart/. 1143) 1144 1145else() 1146 1147message(SEND_ERROR "driver_iuart.MIMX8MN6 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 1148 1149endif() 1150 1151endif() 1152 1153 1154if (CONFIG_USE_driver_iuart_freertos) 1155# Add set(CONFIG_USE_driver_iuart_freertos true) in config.cmake to use this component 1156 1157message("driver_iuart_freertos component is included from ${CMAKE_CURRENT_LIST_FILE}.") 1158 1159if(CONFIG_USE_driver_iuart AND CONFIG_USE_middleware_freertos-kernel) 1160 1161target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 1162 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/iuart/fsl_uart_freertos.c 1163) 1164 1165target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 1166 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/iuart/. 1167) 1168 1169else() 1170 1171message(SEND_ERROR "driver_iuart_freertos.MIMX8MN6 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 1172 1173endif() 1174 1175endif() 1176 1177 1178if (CONFIG_USE_driver_mu) 1179# Add set(CONFIG_USE_driver_mu true) in config.cmake to use this component 1180 1181message("driver_mu component is included from ${CMAKE_CURRENT_LIST_FILE}.") 1182 1183if((CONFIG_DEVICE_ID STREQUAL MIMX8MN6xxxJZ OR CONFIG_DEVICE_ID STREQUAL MIMX8MN6xxxIZ) AND CONFIG_USE_driver_common) 1184 1185target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 1186 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/mu/fsl_mu.c 1187) 1188 1189target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 1190 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/mu/. 1191) 1192 1193else() 1194 1195message(SEND_ERROR "driver_mu.MIMX8MN6 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 1196 1197endif() 1198 1199endif() 1200 1201 1202if (CONFIG_USE_driver_pdm) 1203# Add set(CONFIG_USE_driver_pdm true) in config.cmake to use this component 1204 1205message("driver_pdm component is included from ${CMAKE_CURRENT_LIST_FILE}.") 1206 1207if((CONFIG_DEVICE_ID STREQUAL MIMX8MN6xxxJZ OR CONFIG_DEVICE_ID STREQUAL MIMX8MN6xxxIZ) AND CONFIG_USE_driver_common) 1208 1209target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 1210 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/pdm/fsl_pdm.c 1211) 1212 1213target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 1214 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/pdm/. 1215) 1216 1217else() 1218 1219message(SEND_ERROR "driver_pdm.MIMX8MN6 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 1220 1221endif() 1222 1223endif() 1224 1225 1226if (CONFIG_USE_driver_pdm_sdma) 1227# Add set(CONFIG_USE_driver_pdm_sdma true) in config.cmake to use this component 1228 1229message("driver_pdm_sdma component is included from ${CMAKE_CURRENT_LIST_FILE}.") 1230 1231if(CONFIG_USE_driver_pdm AND (CONFIG_DEVICE_ID STREQUAL MIMX8MN6xxxJZ OR CONFIG_DEVICE_ID STREQUAL MIMX8MN6xxxIZ)) 1232 1233target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 1234 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/pdm/fsl_pdm_sdma.c 1235) 1236 1237target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 1238 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/pdm/. 1239) 1240 1241else() 1242 1243message(SEND_ERROR "driver_pdm_sdma.MIMX8MN6 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 1244 1245endif() 1246 1247endif() 1248 1249 1250if (CONFIG_USE_driver_rdc) 1251# Add set(CONFIG_USE_driver_rdc true) in config.cmake to use this component 1252 1253message("driver_rdc component is included from ${CMAKE_CURRENT_LIST_FILE}.") 1254 1255if((CONFIG_DEVICE_ID STREQUAL MIMX8MN6xxxJZ OR CONFIG_DEVICE_ID STREQUAL MIMX8MN6xxxIZ) AND CONFIG_USE_driver_common) 1256 1257target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 1258 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/rdc/fsl_rdc.c 1259) 1260 1261target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 1262 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/rdc/. 1263) 1264 1265else() 1266 1267message(SEND_ERROR "driver_rdc.MIMX8MN6 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 1268 1269endif() 1270 1271endif() 1272 1273 1274if (CONFIG_USE_driver_rdc_sema42) 1275# Add set(CONFIG_USE_driver_rdc_sema42 true) in config.cmake to use this component 1276 1277message("driver_rdc_sema42 component is included from ${CMAKE_CURRENT_LIST_FILE}.") 1278 1279if((CONFIG_DEVICE_ID STREQUAL MIMX8MN6xxxJZ OR CONFIG_DEVICE_ID STREQUAL MIMX8MN6xxxIZ) AND CONFIG_USE_driver_common) 1280 1281target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 1282 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/rdc_sema42/fsl_rdc_sema42.c 1283) 1284 1285target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 1286 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/rdc_sema42/. 1287) 1288 1289else() 1290 1291message(SEND_ERROR "driver_rdc_sema42.MIMX8MN6 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 1292 1293endif() 1294 1295endif() 1296 1297 1298if (CONFIG_USE_driver_sai) 1299# Add set(CONFIG_USE_driver_sai true) in config.cmake to use this component 1300 1301message("driver_sai component is included from ${CMAKE_CURRENT_LIST_FILE}.") 1302 1303if((CONFIG_DEVICE_ID STREQUAL MIMX8MN6xxxJZ OR CONFIG_DEVICE_ID STREQUAL MIMX8MN6xxxIZ) AND CONFIG_USE_driver_common) 1304 1305target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 1306 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/sai/fsl_sai.c 1307) 1308 1309target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 1310 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/sai/. 1311) 1312 1313else() 1314 1315message(SEND_ERROR "driver_sai.MIMX8MN6 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 1316 1317endif() 1318 1319endif() 1320 1321 1322if (CONFIG_USE_driver_sema4) 1323# Add set(CONFIG_USE_driver_sema4 true) in config.cmake to use this component 1324 1325message("driver_sema4 component is included from ${CMAKE_CURRENT_LIST_FILE}.") 1326 1327if((CONFIG_DEVICE_ID STREQUAL MIMX8MN6xxxJZ OR CONFIG_DEVICE_ID STREQUAL MIMX8MN6xxxIZ) AND CONFIG_USE_driver_common) 1328 1329target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 1330 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/sema4/fsl_sema4.c 1331) 1332 1333target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 1334 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/sema4/. 1335) 1336 1337else() 1338 1339message(SEND_ERROR "driver_sema4.MIMX8MN6 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 1340 1341endif() 1342 1343endif() 1344 1345 1346if (CONFIG_USE_driver_tmu_1) 1347# Add set(CONFIG_USE_driver_tmu_1 true) in config.cmake to use this component 1348 1349message("driver_tmu_1 component is included from ${CMAKE_CURRENT_LIST_FILE}.") 1350 1351if((CONFIG_DEVICE_ID STREQUAL MIMX8MN6xxxJZ OR CONFIG_DEVICE_ID STREQUAL MIMX8MN6xxxIZ) AND CONFIG_USE_driver_common) 1352 1353target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 1354 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/tmu_1/fsl_tmu.c 1355) 1356 1357target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 1358 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/tmu_1/. 1359) 1360 1361else() 1362 1363message(SEND_ERROR "driver_tmu_1.MIMX8MN6 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 1364 1365endif() 1366 1367endif() 1368 1369 1370if (CONFIG_USE_driver_wdog01) 1371# Add set(CONFIG_USE_driver_wdog01 true) in config.cmake to use this component 1372 1373message("driver_wdog01 component is included from ${CMAKE_CURRENT_LIST_FILE}.") 1374 1375if((CONFIG_DEVICE_ID STREQUAL MIMX8MN6xxxJZ OR CONFIG_DEVICE_ID STREQUAL MIMX8MN6xxxIZ) AND CONFIG_USE_driver_common) 1376 1377target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 1378 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/wdog01/fsl_wdog.c 1379) 1380 1381target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 1382 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/wdog01/. 1383) 1384 1385else() 1386 1387message(SEND_ERROR "driver_wdog01.MIMX8MN6 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 1388 1389endif() 1390 1391endif() 1392 1393