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 34 35endif() 36 37 38if (CONFIG_USE_driver_mx25r_flash) 39# Add set(CONFIG_USE_driver_mx25r_flash true) in config.cmake to use this component 40 41message("driver_mx25r_flash component is included from ${CMAKE_CURRENT_LIST_FILE}.") 42 43target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 44 ${CMAKE_CURRENT_LIST_DIR}/../../components/mx25r_flash/mx25r_flash.c 45) 46 47target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 48 ${CMAKE_CURRENT_LIST_DIR}/../../components/mx25r_flash/. 49) 50 51 52endif() 53 54 55if (CONFIG_USE_driver_pf1550) 56# Add set(CONFIG_USE_driver_pf1550 true) in config.cmake to use this component 57 58message("driver_pf1550 component is included from ${CMAKE_CURRENT_LIST_FILE}.") 59 60target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 61 ${CMAKE_CURRENT_LIST_DIR}/../../components/pf1550/fsl_pf1550.c 62 ${CMAKE_CURRENT_LIST_DIR}/../../components/pf1550/fsl_pf1550_charger.c 63) 64 65target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 66 ${CMAKE_CURRENT_LIST_DIR}/../../components/pf1550/. 67) 68 69 70endif() 71 72 73if (CONFIG_USE_driver_pf3000) 74# Add set(CONFIG_USE_driver_pf3000 true) in config.cmake to use this component 75 76message("driver_pf3000 component is included from ${CMAKE_CURRENT_LIST_FILE}.") 77 78target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 79 ${CMAKE_CURRENT_LIST_DIR}/../../components/pf3000/fsl_pf3000.c 80) 81 82target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 83 ${CMAKE_CURRENT_LIST_DIR}/../../components/pf3000/. 84) 85 86 87endif() 88 89 90if (CONFIG_USE_DEVICES_Project_Template_MKE15Z7) 91# Add set(CONFIG_USE_DEVICES_Project_Template_MKE15Z7 true) in config.cmake to use this component 92 93message("DEVICES_Project_Template_MKE15Z7 component is included from ${CMAKE_CURRENT_LIST_FILE}.") 94 95if(CONFIG_USE_component_lpuart_adapter AND (CONFIG_DEVICE_ID STREQUAL MKE15Z256xxx7 OR CONFIG_DEVICE_ID STREQUAL MKE15Z128xxx7) AND CONFIG_USE_device_MKE15Z7_startup AND CONFIG_USE_driver_adc12 AND CONFIG_USE_driver_clock AND CONFIG_USE_driver_common AND CONFIG_USE_driver_gpio AND CONFIG_USE_driver_lpi2c AND CONFIG_USE_driver_lpuart AND CONFIG_USE_driver_port AND CONFIG_USE_driver_smc 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))) 96 97add_config_file(${CMAKE_CURRENT_LIST_DIR}/project_template/board.h "" DEVICES_Project_Template_MKE15Z7.MKE15Z7) 98add_config_file(${CMAKE_CURRENT_LIST_DIR}/project_template/board.c "" DEVICES_Project_Template_MKE15Z7.MKE15Z7) 99add_config_file(${CMAKE_CURRENT_LIST_DIR}/project_template/clock_config.h "" DEVICES_Project_Template_MKE15Z7.MKE15Z7) 100add_config_file(${CMAKE_CURRENT_LIST_DIR}/project_template/clock_config.c "" DEVICES_Project_Template_MKE15Z7.MKE15Z7) 101add_config_file(${CMAKE_CURRENT_LIST_DIR}/project_template/pin_mux.h "" DEVICES_Project_Template_MKE15Z7.MKE15Z7) 102add_config_file(${CMAKE_CURRENT_LIST_DIR}/project_template/pin_mux.c "" DEVICES_Project_Template_MKE15Z7.MKE15Z7) 103add_config_file(${CMAKE_CURRENT_LIST_DIR}/project_template/peripherals.h "" DEVICES_Project_Template_MKE15Z7.MKE15Z7) 104add_config_file(${CMAKE_CURRENT_LIST_DIR}/project_template/peripherals.c "" DEVICES_Project_Template_MKE15Z7.MKE15Z7) 105 106target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 107 ${CMAKE_CURRENT_LIST_DIR}/project_template/. 108) 109 110else() 111 112message(SEND_ERROR "DEVICES_Project_Template_MKE15Z7.MKE15Z7 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 113 114endif() 115 116endif() 117 118 119if (CONFIG_USE_device_MKE15Z7_startup) 120# Add set(CONFIG_USE_device_MKE15Z7_startup true) in config.cmake to use this component 121 122message("device_MKE15Z7_startup component is included from ${CMAKE_CURRENT_LIST_FILE}.") 123 124if(CONFIG_USE_device_MKE15Z7_system) 125 126if(CONFIG_TOOLCHAIN STREQUAL armgcc) 127 target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 128 ${CMAKE_CURRENT_LIST_DIR}/./gcc/startup_MKE15Z7.S 129 ) 130endif() 131 132if(CONFIG_TOOLCHAIN STREQUAL mcux) 133 target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 134 ${CMAKE_CURRENT_LIST_DIR}/./mcuxpresso/startup_mke15z7.c 135 ${CMAKE_CURRENT_LIST_DIR}/./mcuxpresso/startup_mke15z7.cpp 136 ) 137endif() 138 139else() 140 141message(SEND_ERROR "device_MKE15Z7_startup.MKE15Z7 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 142 143endif() 144 145endif() 146 147 148if (CONFIG_USE_device_MKE15Z7_CMSIS) 149# Add set(CONFIG_USE_device_MKE15Z7_CMSIS true) in config.cmake to use this component 150 151message("device_MKE15Z7_CMSIS component is included from ${CMAKE_CURRENT_LIST_FILE}.") 152 153if(CONFIG_USE_CMSIS_Include_core_cm AND (CONFIG_DEVICE_ID STREQUAL MKE15Z256xxx7 OR CONFIG_DEVICE_ID STREQUAL MKE15Z128xxx7)) 154 155target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 156 ${CMAKE_CURRENT_LIST_DIR}/./. 157) 158 159else() 160 161message(SEND_ERROR "device_MKE15Z7_CMSIS.MKE15Z7 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 162 163endif() 164 165endif() 166 167 168if (CONFIG_USE_RTE_Device) 169# Add set(CONFIG_USE_RTE_Device true) in config.cmake to use this component 170 171message("RTE_Device component is included from ${CMAKE_CURRENT_LIST_FILE}.") 172 173if((CONFIG_DEVICE_ID STREQUAL MKE15Z256xxx7 OR CONFIG_DEVICE_ID STREQUAL MKE15Z128xxx7) AND CONFIG_USE_driver_dmamux AND CONFIG_USE_driver_edma) 174 175add_config_file(${CMAKE_CURRENT_LIST_DIR}/template/RTE_Device.h "" RTE_Device.MKE15Z7) 176 177target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 178 ${CMAKE_CURRENT_LIST_DIR}/template/. 179) 180 181else() 182 183message(SEND_ERROR "RTE_Device.MKE15Z7 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 184 185endif() 186 187endif() 188 189 190if (CONFIG_USE_driver_lpi2c_edma) 191# Add set(CONFIG_USE_driver_lpi2c_edma true) in config.cmake to use this component 192 193message("driver_lpi2c_edma component is included from ${CMAKE_CURRENT_LIST_FILE}.") 194 195if(CONFIG_USE_driver_edma AND CONFIG_USE_driver_lpi2c AND (CONFIG_DEVICE_ID STREQUAL MKE15Z256xxx7 OR CONFIG_DEVICE_ID STREQUAL MKE15Z128xxx7)) 196 197target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 198 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/lpi2c/fsl_lpi2c_edma.c 199) 200 201target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 202 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/lpi2c/. 203) 204 205else() 206 207message(SEND_ERROR "driver_lpi2c_edma.MKE15Z7 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 208 209endif() 210 211endif() 212 213 214if (CONFIG_USE_driver_lpspi_edma) 215# Add set(CONFIG_USE_driver_lpspi_edma true) in config.cmake to use this component 216 217message("driver_lpspi_edma component is included from ${CMAKE_CURRENT_LIST_FILE}.") 218 219if(CONFIG_USE_driver_edma AND CONFIG_USE_driver_lpspi AND (CONFIG_DEVICE_ID STREQUAL MKE15Z256xxx7 OR CONFIG_DEVICE_ID STREQUAL MKE15Z128xxx7)) 220 221target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 222 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/lpspi/fsl_lpspi_edma.c 223) 224 225target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 226 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/lpspi/. 227) 228 229else() 230 231message(SEND_ERROR "driver_lpspi_edma.MKE15Z7 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 232 233endif() 234 235endif() 236 237 238if (CONFIG_USE_driver_lpuart_edma) 239# Add set(CONFIG_USE_driver_lpuart_edma true) in config.cmake to use this component 240 241message("driver_lpuart_edma component is included from ${CMAKE_CURRENT_LIST_FILE}.") 242 243if(CONFIG_USE_driver_edma AND CONFIG_USE_driver_lpuart AND (CONFIG_DEVICE_ID STREQUAL MKE15Z256xxx7 OR CONFIG_DEVICE_ID STREQUAL MKE15Z128xxx7)) 244 245target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 246 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/lpuart/fsl_lpuart_edma.c 247) 248 249target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 250 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/lpuart/. 251) 252 253else() 254 255message(SEND_ERROR "driver_lpuart_edma.MKE15Z7 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 256 257endif() 258 259endif() 260 261 262if (CONFIG_USE_driver_clock) 263# Add set(CONFIG_USE_driver_clock true) in config.cmake to use this component 264 265message("driver_clock component is included from ${CMAKE_CURRENT_LIST_FILE}.") 266 267if(CONFIG_USE_driver_common) 268 269target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 270 ${CMAKE_CURRENT_LIST_DIR}/drivers/fsl_clock.c 271) 272 273target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 274 ${CMAKE_CURRENT_LIST_DIR}/drivers/. 275) 276 277else() 278 279message(SEND_ERROR "driver_clock.MKE15Z7 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 280 281endif() 282 283endif() 284 285 286if (CONFIG_USE_component_serial_manager_uart) 287# Add set(CONFIG_USE_component_serial_manager_uart true) in config.cmake to use this component 288 289message("component_serial_manager_uart component is included from ${CMAKE_CURRENT_LIST_FILE}.") 290 291if(CONFIG_USE_component_lpuart_adapter AND CONFIG_USE_component_serial_manager AND (CONFIG_USE_driver_lpuart)) 292 293target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 294 ${CMAKE_CURRENT_LIST_DIR}/../../components/serial_manager/fsl_component_serial_port_uart.c 295) 296 297target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 298 ${CMAKE_CURRENT_LIST_DIR}/../../components/serial_manager/. 299) 300 301if(CONFIG_USE_COMPONENT_CONFIGURATION) 302 message("===>Import configuration from ${CMAKE_CURRENT_LIST_FILE}") 303 304 target_compile_definitions(${MCUX_SDK_PROJECT_NAME} PUBLIC 305 -DSERIAL_PORT_TYPE_UART=1 306 ) 307 308endif() 309 310else() 311 312message(SEND_ERROR "component_serial_manager_uart.MKE15Z7 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 313 314endif() 315 316endif() 317 318 319if (CONFIG_USE_utility_debug_console_lite) 320# Add set(CONFIG_USE_utility_debug_console_lite true) in config.cmake to use this component 321 322message("utility_debug_console_lite component is included from ${CMAKE_CURRENT_LIST_FILE}.") 323 324if(CONFIG_USE_component_lpuart_adapter AND (CONFIG_DEVICE_ID STREQUAL MKE15Z256xxx7 OR CONFIG_DEVICE_ID STREQUAL MKE15Z128xxx7) AND CONFIG_USE_driver_common) 325 326target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 327 ${CMAKE_CURRENT_LIST_DIR}/../../utilities/str/fsl_str.c 328 ${CMAKE_CURRENT_LIST_DIR}/../../utilities/debug_console_lite/fsl_debug_console.c 329) 330 331target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 332 ${CMAKE_CURRENT_LIST_DIR}/../../utilities/str 333 ${CMAKE_CURRENT_LIST_DIR}/../../utilities/debug_console_lite 334) 335 336else() 337 338message(SEND_ERROR "utility_debug_console_lite.MKE15Z7 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 339 340endif() 341 342endif() 343 344 345if (CONFIG_USE_driver_cmsis_lpspi) 346# Add set(CONFIG_USE_driver_cmsis_lpspi true) in config.cmake to use this component 347 348message("driver_cmsis_lpspi component is included from ${CMAKE_CURRENT_LIST_FILE}.") 349 350if(CONFIG_USE_driver_lpspi_edma AND (CONFIG_DEVICE_ID STREQUAL MKE15Z256xxx7 OR CONFIG_DEVICE_ID STREQUAL MKE15Z128xxx7) AND CONFIG_USE_driver_lpspi AND CONFIG_USE_CMSIS_Driver_Include_SPI AND CONFIG_USE_RTE_Device) 351 352target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 353 ${CMAKE_CURRENT_LIST_DIR}/../../cmsis_drivers/lpspi/fsl_lpspi_cmsis.c 354) 355 356target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 357 ${CMAKE_CURRENT_LIST_DIR}/../../cmsis_drivers/lpspi/. 358) 359 360else() 361 362message(SEND_ERROR "driver_cmsis_lpspi.MKE15Z7 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 363 364endif() 365 366endif() 367 368 369if (CONFIG_USE_driver_cmsis_lpi2c) 370# Add set(CONFIG_USE_driver_cmsis_lpi2c true) in config.cmake to use this component 371 372message("driver_cmsis_lpi2c component is included from ${CMAKE_CURRENT_LIST_FILE}.") 373 374if(CONFIG_USE_driver_lpi2c_edma AND (CONFIG_DEVICE_ID STREQUAL MKE15Z256xxx7 OR CONFIG_DEVICE_ID STREQUAL MKE15Z128xxx7) AND CONFIG_USE_driver_lpi2c AND CONFIG_USE_CMSIS_Driver_Include_I2C AND CONFIG_USE_RTE_Device) 375 376target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 377 ${CMAKE_CURRENT_LIST_DIR}/../../cmsis_drivers/lpi2c/fsl_lpi2c_cmsis.c 378) 379 380target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 381 ${CMAKE_CURRENT_LIST_DIR}/../../cmsis_drivers/lpi2c/. 382) 383 384else() 385 386message(SEND_ERROR "driver_cmsis_lpi2c.MKE15Z7 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 387 388endif() 389 390endif() 391 392 393if (CONFIG_USE_driver_cmsis_lpuart) 394# Add set(CONFIG_USE_driver_cmsis_lpuart true) in config.cmake to use this component 395 396message("driver_cmsis_lpuart component is included from ${CMAKE_CURRENT_LIST_FILE}.") 397 398if(CONFIG_USE_driver_lpuart_edma AND (CONFIG_DEVICE_ID STREQUAL MKE15Z256xxx7 OR CONFIG_DEVICE_ID STREQUAL MKE15Z128xxx7) AND CONFIG_USE_driver_lpuart AND CONFIG_USE_CMSIS_Driver_Include_USART AND CONFIG_USE_RTE_Device) 399 400target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 401 ${CMAKE_CURRENT_LIST_DIR}/../../cmsis_drivers/lpuart/fsl_lpuart_cmsis.c 402) 403 404target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 405 ${CMAKE_CURRENT_LIST_DIR}/../../cmsis_drivers/lpuart/. 406) 407 408else() 409 410message(SEND_ERROR "driver_cmsis_lpuart.MKE15Z7 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 411 412endif() 413 414endif() 415 416 417if (CONFIG_USE_driver_flexio_i2s_edma) 418# Add set(CONFIG_USE_driver_flexio_i2s_edma true) in config.cmake to use this component 419 420message("driver_flexio_i2s_edma component is included from ${CMAKE_CURRENT_LIST_FILE}.") 421 422if(CONFIG_USE_driver_edma AND CONFIG_USE_driver_flexio_i2s AND (CONFIG_DEVICE_ID STREQUAL MKE15Z256xxx7 OR CONFIG_DEVICE_ID STREQUAL MKE15Z128xxx7)) 423 424target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 425 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/flexio/i2s/fsl_flexio_i2s_edma.c 426) 427 428target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 429 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/flexio/i2s/. 430) 431 432else() 433 434message(SEND_ERROR "driver_flexio_i2s_edma.MKE15Z7 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 435 436endif() 437 438endif() 439 440 441if (CONFIG_USE_driver_flexio_spi_edma) 442# Add set(CONFIG_USE_driver_flexio_spi_edma true) in config.cmake to use this component 443 444message("driver_flexio_spi_edma component is included from ${CMAKE_CURRENT_LIST_FILE}.") 445 446if(CONFIG_USE_driver_edma AND CONFIG_USE_driver_flexio_spi AND (CONFIG_DEVICE_ID STREQUAL MKE15Z256xxx7 OR CONFIG_DEVICE_ID STREQUAL MKE15Z128xxx7)) 447 448target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 449 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/flexio/spi/fsl_flexio_spi_edma.c 450) 451 452target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 453 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/flexio/spi/. 454) 455 456else() 457 458message(SEND_ERROR "driver_flexio_spi_edma.MKE15Z7 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 459 460endif() 461 462endif() 463 464 465if (CONFIG_USE_driver_flexio_uart_edma) 466# Add set(CONFIG_USE_driver_flexio_uart_edma true) in config.cmake to use this component 467 468message("driver_flexio_uart_edma component is included from ${CMAKE_CURRENT_LIST_FILE}.") 469 470if(CONFIG_USE_driver_edma AND CONFIG_USE_driver_flexio_uart AND (CONFIG_DEVICE_ID STREQUAL MKE15Z256xxx7 OR CONFIG_DEVICE_ID STREQUAL MKE15Z128xxx7)) 471 472target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 473 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/flexio/uart/fsl_flexio_uart_edma.c 474) 475 476target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 477 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/flexio/uart/. 478) 479 480else() 481 482message(SEND_ERROR "driver_flexio_uart_edma.MKE15Z7 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 483 484endif() 485 486endif() 487 488 489if (CONFIG_USE_utility_notifier) 490# Add set(CONFIG_USE_utility_notifier true) in config.cmake to use this component 491 492message("utility_notifier component is included from ${CMAKE_CURRENT_LIST_FILE}.") 493 494if(CONFIG_USE_driver_common) 495 496target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 497 ${CMAKE_CURRENT_LIST_DIR}/../../utilities/notifier/fsl_notifier.c 498) 499 500target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 501 ${CMAKE_CURRENT_LIST_DIR}/../../utilities/notifier/. 502) 503 504else() 505 506message(SEND_ERROR "utility_notifier.MKE15Z7 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 507 508endif() 509 510endif() 511 512 513if (CONFIG_USE_device_MKE15Z7_system) 514# Add set(CONFIG_USE_device_MKE15Z7_system true) in config.cmake to use this component 515 516message("device_MKE15Z7_system component is included from ${CMAKE_CURRENT_LIST_FILE}.") 517 518if(CONFIG_USE_device_MKE15Z7_CMSIS) 519 520target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 521 ${CMAKE_CURRENT_LIST_DIR}/./system_MKE15Z7.c 522) 523 524target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 525 ${CMAKE_CURRENT_LIST_DIR}/./. 526) 527 528else() 529 530message(SEND_ERROR "device_MKE15Z7_system.MKE15Z7 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 531 532endif() 533 534endif() 535 536 537if (CONFIG_USE_utility_assert) 538# Add set(CONFIG_USE_utility_assert true) in config.cmake to use this component 539 540message("utility_assert component is included from ${CMAKE_CURRENT_LIST_FILE}.") 541 542if(CONFIG_USE_utility_debug_console) 543 544target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 545 ${CMAKE_CURRENT_LIST_DIR}/../../utilities/assert/fsl_assert.c 546) 547 548else() 549 550message(SEND_ERROR "utility_assert.MKE15Z7 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 551 552endif() 553 554endif() 555 556 557if (CONFIG_USE_utility_assert_lite) 558# Add set(CONFIG_USE_utility_assert_lite true) in config.cmake to use this component 559 560message("utility_assert_lite component is included from ${CMAKE_CURRENT_LIST_FILE}.") 561 562if(CONFIG_USE_utility_debug_console_lite) 563 564target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 565 ${CMAKE_CURRENT_LIST_DIR}/../../utilities/assert/fsl_assert.c 566) 567 568else() 569 570message(SEND_ERROR "utility_assert_lite.MKE15Z7 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 571 572endif() 573 574endif() 575 576 577if (CONFIG_USE_utility_str) 578# Add set(CONFIG_USE_utility_str true) in config.cmake to use this component 579 580message("utility_str component is included from ${CMAKE_CURRENT_LIST_FILE}.") 581 582if(CONFIG_USE_driver_common) 583 584target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 585 ${CMAKE_CURRENT_LIST_DIR}/../../utilities/str/fsl_str.c 586) 587 588target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 589 ${CMAKE_CURRENT_LIST_DIR}/../../utilities/str 590) 591 592else() 593 594message(SEND_ERROR "utility_str.MKE15Z7 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 595 596endif() 597 598endif() 599 600 601if (CONFIG_USE_utility_debug_console) 602# Add set(CONFIG_USE_utility_debug_console true) in config.cmake to use this component 603 604message("utility_debug_console component is included from ${CMAKE_CURRENT_LIST_FILE}.") 605 606if(CONFIG_USE_component_serial_manager AND CONFIG_USE_driver_common) 607 608target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 609 ${CMAKE_CURRENT_LIST_DIR}/../../utilities/str/fsl_str.c 610 ${CMAKE_CURRENT_LIST_DIR}/../../utilities/debug_console/fsl_debug_console.c 611) 612 613target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 614 ${CMAKE_CURRENT_LIST_DIR}/../../utilities/str 615 ${CMAKE_CURRENT_LIST_DIR}/../../utilities/debug_console 616) 617 618else() 619 620message(SEND_ERROR "utility_debug_console.MKE15Z7 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 621 622endif() 623 624endif() 625 626 627if (CONFIG_USE_component_button) 628# Add set(CONFIG_USE_component_button true) in config.cmake to use this component 629 630message("component_button component is included from ${CMAKE_CURRENT_LIST_FILE}.") 631 632if(CONFIG_USE_driver_common AND CONFIG_USE_component_timer_manager AND (CONFIG_USE_component_gpio_adapter)) 633 634target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 635 ${CMAKE_CURRENT_LIST_DIR}/../../components/button/fsl_component_button.c 636) 637 638target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 639 ${CMAKE_CURRENT_LIST_DIR}/../../components/button/. 640) 641 642else() 643 644message(SEND_ERROR "component_button.MKE15Z7 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 645 646endif() 647 648endif() 649 650 651if (CONFIG_USE_component_crc_adapter) 652# Add set(CONFIG_USE_component_crc_adapter true) in config.cmake to use this component 653 654message("component_crc_adapter component is included from ${CMAKE_CURRENT_LIST_FILE}.") 655 656if(CONFIG_USE_driver_common AND CONFIG_USE_driver_crc) 657 658target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 659 ${CMAKE_CURRENT_LIST_DIR}/../../components/crc/fsl_adapter_crc.c 660) 661 662target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 663 ${CMAKE_CURRENT_LIST_DIR}/../../components/crc/. 664) 665 666else() 667 668message(SEND_ERROR "component_crc_adapter.MKE15Z7 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 669 670endif() 671 672endif() 673 674 675if (CONFIG_USE_component_software_crc_adapter) 676# Add set(CONFIG_USE_component_software_crc_adapter true) in config.cmake to use this component 677 678message("component_software_crc_adapter component is included from ${CMAKE_CURRENT_LIST_FILE}.") 679 680if(CONFIG_USE_driver_common) 681 682target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 683 ${CMAKE_CURRENT_LIST_DIR}/../../components/crc/fsl_adapter_software_crc.c 684) 685 686target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 687 ${CMAKE_CURRENT_LIST_DIR}/../../components/crc/. 688) 689 690else() 691 692message(SEND_ERROR "component_software_crc_adapter.MKE15Z7 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 693 694endif() 695 696endif() 697 698 699if (CONFIG_USE_component_eeprom_InternalFlash) 700# Add set(CONFIG_USE_component_eeprom_InternalFlash true) in config.cmake to use this component 701 702message("component_eeprom_InternalFlash component is included from ${CMAKE_CURRENT_LIST_FILE}.") 703 704if(CONFIG_USE_driver_common AND CONFIG_USE_component_flash_adapter) 705 706target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 707 ${CMAKE_CURRENT_LIST_DIR}/../../components/extern_flash/fsl_adapter_eeprom_InternalFlash.c 708) 709 710target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 711 ${CMAKE_CURRENT_LIST_DIR}/../../components/extern_flash/. 712) 713 714else() 715 716message(SEND_ERROR "component_eeprom_InternalFlash.MKE15Z7 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 717 718endif() 719 720endif() 721 722 723if (CONFIG_USE_driver_ft5406) 724# Add set(CONFIG_USE_driver_ft5406 true) in config.cmake to use this component 725 726message("driver_ft5406 component is included from ${CMAKE_CURRENT_LIST_FILE}.") 727 728if(CONFIG_USE_driver_common) 729 730target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 731 ${CMAKE_CURRENT_LIST_DIR}/../../components/ft5406/fsl_ft5406.c 732) 733 734target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 735 ${CMAKE_CURRENT_LIST_DIR}/../../components/ft5406/. 736) 737 738else() 739 740message(SEND_ERROR "driver_ft5406.MKE15Z7 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 741 742endif() 743 744endif() 745 746 747if (CONFIG_USE_driver_ft6x06) 748# Add set(CONFIG_USE_driver_ft6x06 true) in config.cmake to use this component 749 750message("driver_ft6x06 component is included from ${CMAKE_CURRENT_LIST_FILE}.") 751 752if(CONFIG_USE_CMSIS_Driver_Include_I2C) 753 754target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 755 ${CMAKE_CURRENT_LIST_DIR}/../../components/ft6x06/fsl_ft6x06.c 756) 757 758target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 759 ${CMAKE_CURRENT_LIST_DIR}/../../components/ft6x06/. 760) 761 762else() 763 764message(SEND_ERROR "driver_ft6x06.MKE15Z7 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 765 766endif() 767 768endif() 769 770 771if (CONFIG_USE_driver_fxos8700cq) 772# Add set(CONFIG_USE_driver_fxos8700cq true) in config.cmake to use this component 773 774message("driver_fxos8700cq component is included from ${CMAKE_CURRENT_LIST_FILE}.") 775 776if(CONFIG_USE_driver_common) 777 778target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 779 ${CMAKE_CURRENT_LIST_DIR}/../../components/fxos8700cq/fsl_fxos.c 780) 781 782target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 783 ${CMAKE_CURRENT_LIST_DIR}/../../components/fxos8700cq/. 784) 785 786else() 787 788message(SEND_ERROR "driver_fxos8700cq.MKE15Z7 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 789 790endif() 791 792endif() 793 794 795if (CONFIG_USE_component_gpio_adapter) 796# Add set(CONFIG_USE_component_gpio_adapter true) in config.cmake to use this component 797 798message("component_gpio_adapter component is included from ${CMAKE_CURRENT_LIST_FILE}.") 799 800if(CONFIG_USE_driver_gpio AND CONFIG_USE_driver_port) 801 802target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 803 ${CMAKE_CURRENT_LIST_DIR}/../../components/gpio/fsl_adapter_gpio.c 804) 805 806target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 807 ${CMAKE_CURRENT_LIST_DIR}/../../components/gpio/. 808) 809 810else() 811 812message(SEND_ERROR "component_gpio_adapter.MKE15Z7 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 813 814endif() 815 816endif() 817 818 819if (CONFIG_USE_component_lpi2c_adapter) 820# Add set(CONFIG_USE_component_lpi2c_adapter true) in config.cmake to use this component 821 822message("component_lpi2c_adapter component is included from ${CMAKE_CURRENT_LIST_FILE}.") 823 824if(CONFIG_USE_driver_common AND CONFIG_USE_driver_lpi2c) 825 826target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 827 ${CMAKE_CURRENT_LIST_DIR}/../../components/i2c/fsl_adapter_lpi2c.c 828) 829 830target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 831 ${CMAKE_CURRENT_LIST_DIR}/../../components/i2c/. 832) 833 834else() 835 836message(SEND_ERROR "component_lpi2c_adapter.MKE15Z7 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 837 838endif() 839 840endif() 841 842 843if (CONFIG_USE_driver_ili9341) 844# Add set(CONFIG_USE_driver_ili9341 true) in config.cmake to use this component 845 846message("driver_ili9341 component is included from ${CMAKE_CURRENT_LIST_FILE}.") 847 848if(CONFIG_USE_driver_common) 849 850target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 851 ${CMAKE_CURRENT_LIST_DIR}/../../components/ili9341/fsl_ili9341.c 852) 853 854target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 855 ${CMAKE_CURRENT_LIST_DIR}/../../components/ili9341/. 856) 857 858else() 859 860message(SEND_ERROR "driver_ili9341.MKE15Z7 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 861 862endif() 863 864endif() 865 866 867if (CONFIG_USE_component_flash_adapter) 868# Add set(CONFIG_USE_component_flash_adapter true) in config.cmake to use this component 869 870message("component_flash_adapter component is included from ${CMAKE_CURRENT_LIST_FILE}.") 871 872if(CONFIG_USE_driver_common AND CONFIG_USE_driver_flash) 873 874target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 875 ${CMAKE_CURRENT_LIST_DIR}/../../components/internal_flash/fsl_adapter_flash.c 876) 877 878target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 879 ${CMAKE_CURRENT_LIST_DIR}/../../components/internal_flash/. 880) 881 882else() 883 884message(SEND_ERROR "component_flash_adapter.MKE15Z7 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 885 886endif() 887 888endif() 889 890 891if (CONFIG_USE_component_led) 892# Add set(CONFIG_USE_component_led true) in config.cmake to use this component 893 894message("component_led component is included from ${CMAKE_CURRENT_LIST_FILE}.") 895 896if(CONFIG_USE_driver_common AND CONFIG_USE_component_timer_manager AND (CONFIG_USE_component_gpio_adapter)) 897 898target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 899 ${CMAKE_CURRENT_LIST_DIR}/../../components/led/fsl_component_led.c 900) 901 902target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 903 ${CMAKE_CURRENT_LIST_DIR}/../../components/led/. 904) 905 906else() 907 908message(SEND_ERROR "component_led.MKE15Z7 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 909 910endif() 911 912endif() 913 914 915if (CONFIG_USE_component_lists) 916# Add set(CONFIG_USE_component_lists true) in config.cmake to use this component 917 918message("component_lists component is included from ${CMAKE_CURRENT_LIST_FILE}.") 919 920if(CONFIG_USE_driver_common) 921 922target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 923 ${CMAKE_CURRENT_LIST_DIR}/../../components/lists/fsl_component_generic_list.c 924) 925 926target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 927 ${CMAKE_CURRENT_LIST_DIR}/../../components/lists/. 928) 929 930else() 931 932message(SEND_ERROR "component_lists.MKE15Z7 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 933 934endif() 935 936endif() 937 938 939if (CONFIG_USE_component_log) 940# Add set(CONFIG_USE_component_log true) in config.cmake to use this component 941 942message("component_log component is included from ${CMAKE_CURRENT_LIST_FILE}.") 943 944if(CONFIG_USE_driver_common AND CONFIG_USE_utility_str) 945 946target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 947 ${CMAKE_CURRENT_LIST_DIR}/../../components/log/fsl_component_log.c 948) 949 950target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 951 ${CMAKE_CURRENT_LIST_DIR}/../../components/log/. 952) 953 954else() 955 956message(SEND_ERROR "component_log.MKE15Z7 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 957 958endif() 959 960endif() 961 962 963if (CONFIG_USE_component_log_backend_debugconsole) 964# Add set(CONFIG_USE_component_log_backend_debugconsole true) in config.cmake to use this component 965 966message("component_log_backend_debugconsole component is included from ${CMAKE_CURRENT_LIST_FILE}.") 967 968if(CONFIG_USE_driver_common AND CONFIG_USE_component_log AND CONFIG_USE_utility_debug_console) 969 970target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 971 ${CMAKE_CURRENT_LIST_DIR}/../../components/log/fsl_component_log_backend_debugconsole.c 972) 973 974target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 975 ${CMAKE_CURRENT_LIST_DIR}/../../components/log/. 976) 977 978else() 979 980message(SEND_ERROR "component_log_backend_debugconsole.MKE15Z7 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 981 982endif() 983 984endif() 985 986 987if (CONFIG_USE_component_log_backend_debugconsole_lite) 988# Add set(CONFIG_USE_component_log_backend_debugconsole_lite true) in config.cmake to use this component 989 990message("component_log_backend_debugconsole_lite component is included from ${CMAKE_CURRENT_LIST_FILE}.") 991 992if(CONFIG_USE_driver_common AND CONFIG_USE_component_log AND CONFIG_USE_utility_debug_console_lite) 993 994target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 995 ${CMAKE_CURRENT_LIST_DIR}/../../components/log/fsl_component_log_backend_debugconsole.c 996) 997 998target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 999 ${CMAKE_CURRENT_LIST_DIR}/../../components/log/. 1000) 1001 1002else() 1003 1004message(SEND_ERROR "component_log_backend_debugconsole_lite.MKE15Z7 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 1005 1006endif() 1007 1008endif() 1009 1010 1011if (CONFIG_USE_component_log_backend_ringbuffer) 1012# Add set(CONFIG_USE_component_log_backend_ringbuffer true) in config.cmake to use this component 1013 1014message("component_log_backend_ringbuffer component is included from ${CMAKE_CURRENT_LIST_FILE}.") 1015 1016if(CONFIG_USE_driver_common AND CONFIG_USE_component_log) 1017 1018target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 1019 ${CMAKE_CURRENT_LIST_DIR}/../../components/log/fsl_component_log_backend_ringbuffer.c 1020) 1021 1022target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 1023 ${CMAKE_CURRENT_LIST_DIR}/../../components/log/. 1024) 1025 1026else() 1027 1028message(SEND_ERROR "component_log_backend_ringbuffer.MKE15Z7 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 1029 1030endif() 1031 1032endif() 1033 1034 1035if (CONFIG_USE_component_mem_manager) 1036# Add set(CONFIG_USE_component_mem_manager true) in config.cmake to use this component 1037 1038message("component_mem_manager component is included from ${CMAKE_CURRENT_LIST_FILE}.") 1039 1040if(CONFIG_USE_driver_common AND CONFIG_USE_component_lists) 1041 1042target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 1043 ${CMAKE_CURRENT_LIST_DIR}/../../components/mem_manager/fsl_component_mem_manager.c 1044) 1045 1046target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 1047 ${CMAKE_CURRENT_LIST_DIR}/../../components/mem_manager/. 1048) 1049 1050else() 1051 1052message(SEND_ERROR "component_mem_manager.MKE15Z7 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 1053 1054endif() 1055 1056endif() 1057 1058 1059if (CONFIG_USE_component_mem_manager_light) 1060# Add set(CONFIG_USE_component_mem_manager_light true) in config.cmake to use this component 1061 1062message("component_mem_manager_light component is included from ${CMAKE_CURRENT_LIST_FILE}.") 1063 1064if(CONFIG_USE_driver_common AND CONFIG_USE_component_lists) 1065 1066target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 1067 ${CMAKE_CURRENT_LIST_DIR}/../../components/mem_manager/fsl_component_mem_manager_light.c 1068) 1069 1070target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 1071 ${CMAKE_CURRENT_LIST_DIR}/../../components/mem_manager/. 1072) 1073 1074else() 1075 1076message(SEND_ERROR "component_mem_manager_light.MKE15Z7 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 1077 1078endif() 1079 1080endif() 1081 1082 1083if (CONFIG_USE_driver_mma8451q) 1084# Add set(CONFIG_USE_driver_mma8451q true) in config.cmake to use this component 1085 1086message("driver_mma8451q component is included from ${CMAKE_CURRENT_LIST_FILE}.") 1087 1088if(CONFIG_USE_driver_common) 1089 1090target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 1091 ${CMAKE_CURRENT_LIST_DIR}/../../components/mma8451q/fsl_mma.c 1092) 1093 1094target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 1095 ${CMAKE_CURRENT_LIST_DIR}/../../components/mma8451q/. 1096) 1097 1098else() 1099 1100message(SEND_ERROR "driver_mma8451q.MKE15Z7 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 1101 1102endif() 1103 1104endif() 1105 1106 1107if (CONFIG_USE_component_panic) 1108# Add set(CONFIG_USE_component_panic true) in config.cmake to use this component 1109 1110message("component_panic component is included from ${CMAKE_CURRENT_LIST_FILE}.") 1111 1112if(CONFIG_USE_driver_common) 1113 1114target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 1115 ${CMAKE_CURRENT_LIST_DIR}/../../components/panic/fsl_component_panic.c 1116) 1117 1118target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 1119 ${CMAKE_CURRENT_LIST_DIR}/../../components/panic/. 1120) 1121 1122else() 1123 1124message(SEND_ERROR "component_panic.MKE15Z7 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 1125 1126endif() 1127 1128endif() 1129 1130 1131if (CONFIG_USE_component_pwm_ftm_adapter) 1132# Add set(CONFIG_USE_component_pwm_ftm_adapter true) in config.cmake to use this component 1133 1134message("component_pwm_ftm_adapter component is included from ${CMAKE_CURRENT_LIST_FILE}.") 1135 1136if(CONFIG_USE_driver_common AND CONFIG_USE_driver_ftm) 1137 1138target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 1139 ${CMAKE_CURRENT_LIST_DIR}/../../components/pwm/fsl_adapter_pwm_ftm.c 1140) 1141 1142target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 1143 ${CMAKE_CURRENT_LIST_DIR}/../../components/pwm/. 1144) 1145 1146else() 1147 1148message(SEND_ERROR "component_pwm_ftm_adapter.MKE15Z7 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 1149 1150endif() 1151 1152endif() 1153 1154 1155if (CONFIG_USE_component_reset_adapter) 1156# Add set(CONFIG_USE_component_reset_adapter true) in config.cmake to use this component 1157 1158message("component_reset_adapter component is included from ${CMAKE_CURRENT_LIST_FILE}.") 1159 1160if(CONFIG_USE_driver_common) 1161 1162target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 1163 ${CMAKE_CURRENT_LIST_DIR}/../../components/reset/fsl_adapter_reset.c 1164) 1165 1166target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 1167 ${CMAKE_CURRENT_LIST_DIR}/../../components/reset/. 1168) 1169 1170else() 1171 1172message(SEND_ERROR "component_reset_adapter.MKE15Z7 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 1173 1174endif() 1175 1176endif() 1177 1178 1179if (CONFIG_USE_component_software_rng_adapter) 1180# Add set(CONFIG_USE_component_software_rng_adapter true) in config.cmake to use this component 1181 1182message("component_software_rng_adapter component is included from ${CMAKE_CURRENT_LIST_FILE}.") 1183 1184if(CONFIG_USE_driver_common) 1185 1186target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 1187 ${CMAKE_CURRENT_LIST_DIR}/../../components/rng/fsl_adapter_software_rng.c 1188) 1189 1190target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 1191 ${CMAKE_CURRENT_LIST_DIR}/../../components/rng/. 1192) 1193 1194else() 1195 1196message(SEND_ERROR "component_software_rng_adapter.MKE15Z7 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 1197 1198endif() 1199 1200endif() 1201 1202 1203if (CONFIG_USE_component_rtc) 1204# Add set(CONFIG_USE_component_rtc true) in config.cmake to use this component 1205 1206message("component_rtc component is included from ${CMAKE_CURRENT_LIST_FILE}.") 1207 1208if(CONFIG_USE_driver_common AND CONFIG_USE_driver_rtc) 1209 1210target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 1211 ${CMAKE_CURRENT_LIST_DIR}/../../components/rtc/fsl_adapter_rtc.c 1212) 1213 1214target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 1215 ${CMAKE_CURRENT_LIST_DIR}/../../components/rtc/. 1216) 1217 1218if(CONFIG_USE_COMPONENT_CONFIGURATION) 1219 message("===>Import configuration from ${CMAKE_CURRENT_LIST_FILE}") 1220 1221 target_compile_definitions(${MCUX_SDK_PROJECT_NAME} PUBLIC 1222 -DRTC_LEGACY_FUNCTION_PROTOTYPE=1 1223 ) 1224 1225endif() 1226 1227else() 1228 1229message(SEND_ERROR "component_rtc.MKE15Z7 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 1230 1231endif() 1232 1233endif() 1234 1235 1236if (CONFIG_USE_component_serial_manager) 1237# Add set(CONFIG_USE_component_serial_manager true) in config.cmake to use this component 1238 1239message("component_serial_manager component is included from ${CMAKE_CURRENT_LIST_FILE}.") 1240 1241if(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_spi)) 1242 1243target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 1244 ${CMAKE_CURRENT_LIST_DIR}/../../components/serial_manager/fsl_component_serial_manager.c 1245) 1246 1247target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 1248 ${CMAKE_CURRENT_LIST_DIR}/../../components/serial_manager/. 1249) 1250 1251else() 1252 1253message(SEND_ERROR "component_serial_manager.MKE15Z7 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 1254 1255endif() 1256 1257endif() 1258 1259 1260if (CONFIG_USE_component_serial_manager_spi) 1261# Add set(CONFIG_USE_component_serial_manager_spi true) in config.cmake to use this component 1262 1263message("component_serial_manager_spi component is included from ${CMAKE_CURRENT_LIST_FILE}.") 1264 1265if(CONFIG_USE_component_serial_manager AND ((CONFIG_USE_driver_lpspi AND CONFIG_USE_component_lpspi_adapter))) 1266 1267target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 1268 ${CMAKE_CURRENT_LIST_DIR}/../../components/serial_manager/fsl_component_serial_port_spi.c 1269) 1270 1271target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 1272 ${CMAKE_CURRENT_LIST_DIR}/../../components/serial_manager/. 1273) 1274 1275if(CONFIG_USE_COMPONENT_CONFIGURATION) 1276 message("===>Import configuration from ${CMAKE_CURRENT_LIST_FILE}") 1277 1278 target_compile_definitions(${MCUX_SDK_PROJECT_NAME} PUBLIC 1279 -DSERIAL_PORT_TYPE_SPI=1 1280 -DSERIAL_PORT_TYPE_SPI_MASTER=1 1281 -DSERIAL_PORT_TYPE_SPI_SLAVE=1 1282 -DSERIAL_MANAGER_NON_BLOCKING_MODE=1 1283 ) 1284 1285endif() 1286 1287else() 1288 1289message(SEND_ERROR "component_serial_manager_spi.MKE15Z7 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 1290 1291endif() 1292 1293endif() 1294 1295 1296if (CONFIG_USE_component_serial_manager_virtual) 1297# Add set(CONFIG_USE_component_serial_manager_virtual true) in config.cmake to use this component 1298 1299message("component_serial_manager_virtual component is included from ${CMAKE_CURRENT_LIST_FILE}.") 1300 1301if(CONFIG_USE_component_serial_manager AND CONFIG_USE_driver_common) 1302 1303target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 1304 ${CMAKE_CURRENT_LIST_DIR}/../../components/serial_manager/fsl_component_serial_port_virtual.c 1305) 1306 1307target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 1308 ${CMAKE_CURRENT_LIST_DIR}/../../components/serial_manager/. 1309) 1310 1311if(CONFIG_USE_COMPONENT_CONFIGURATION) 1312 message("===>Import configuration from ${CMAKE_CURRENT_LIST_FILE}") 1313 1314 target_compile_definitions(${MCUX_SDK_PROJECT_NAME} PUBLIC 1315 -DSERIAL_PORT_TYPE_VIRTUAL=1 1316 -DDEBUG_CONSOLE_TRANSFER_NON_BLOCKING 1317 ) 1318 1319endif() 1320 1321else() 1322 1323message(SEND_ERROR "component_serial_manager_virtual.MKE15Z7 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 1324 1325endif() 1326 1327endif() 1328 1329 1330if (CONFIG_USE_utility_shell) 1331# Add set(CONFIG_USE_utility_shell true) in config.cmake to use this component 1332 1333message("utility_shell component is included from ${CMAKE_CURRENT_LIST_FILE}.") 1334 1335if(CONFIG_USE_utility_str AND CONFIG_USE_component_lists AND CONFIG_USE_driver_common) 1336 1337target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 1338 ${CMAKE_CURRENT_LIST_DIR}/../../utilities/shell/fsl_shell.c 1339) 1340 1341target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 1342 ${CMAKE_CURRENT_LIST_DIR}/../../utilities/shell/. 1343) 1344 1345if(CONFIG_USE_COMPONENT_CONFIGURATION) 1346 message("===>Import configuration from ${CMAKE_CURRENT_LIST_FILE}") 1347 1348 target_compile_definitions(${MCUX_SDK_PROJECT_NAME} PUBLIC 1349 -DDEBUG_CONSOLE_RX_ENABLE=0 1350 ) 1351 1352endif() 1353 1354else() 1355 1356message(SEND_ERROR "utility_shell.MKE15Z7 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 1357 1358endif() 1359 1360endif() 1361 1362 1363if (CONFIG_USE_component_lpspi_adapter) 1364# Add set(CONFIG_USE_component_lpspi_adapter true) in config.cmake to use this component 1365 1366message("component_lpspi_adapter component is included from ${CMAKE_CURRENT_LIST_FILE}.") 1367 1368if(CONFIG_USE_driver_common AND CONFIG_USE_driver_lpspi) 1369 1370target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 1371 ${CMAKE_CURRENT_LIST_DIR}/../../components/spi/fsl_adapter_lpspi.c 1372) 1373 1374target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 1375 ${CMAKE_CURRENT_LIST_DIR}/../../components/spi/. 1376) 1377 1378else() 1379 1380message(SEND_ERROR "component_lpspi_adapter.MKE15Z7 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 1381 1382endif() 1383 1384endif() 1385 1386 1387if (CONFIG_USE_component_ftm_adapter) 1388# Add set(CONFIG_USE_component_ftm_adapter true) in config.cmake to use this component 1389 1390message("component_ftm_adapter component is included from ${CMAKE_CURRENT_LIST_FILE}.") 1391 1392if(CONFIG_USE_driver_common AND CONFIG_USE_driver_ftm) 1393 1394target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 1395 ${CMAKE_CURRENT_LIST_DIR}/../../components/timer/fsl_adapter_ftm.c 1396) 1397 1398target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 1399 ${CMAKE_CURRENT_LIST_DIR}/../../components/timer/. 1400) 1401 1402else() 1403 1404message(SEND_ERROR "component_ftm_adapter.MKE15Z7 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 1405 1406endif() 1407 1408endif() 1409 1410 1411if (CONFIG_USE_component_lpit_adapter) 1412# Add set(CONFIG_USE_component_lpit_adapter true) in config.cmake to use this component 1413 1414message("component_lpit_adapter component is included from ${CMAKE_CURRENT_LIST_FILE}.") 1415 1416if(CONFIG_USE_driver_common AND CONFIG_USE_driver_lpit) 1417 1418target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 1419 ${CMAKE_CURRENT_LIST_DIR}/../../components/timer/fsl_adapter_lpit.c 1420) 1421 1422target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 1423 ${CMAKE_CURRENT_LIST_DIR}/../../components/timer/. 1424) 1425 1426else() 1427 1428message(SEND_ERROR "component_lpit_adapter.MKE15Z7 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 1429 1430endif() 1431 1432endif() 1433 1434 1435if (CONFIG_USE_component_lptmr_adapter) 1436# Add set(CONFIG_USE_component_lptmr_adapter true) in config.cmake to use this component 1437 1438message("component_lptmr_adapter component is included from ${CMAKE_CURRENT_LIST_FILE}.") 1439 1440if(CONFIG_USE_driver_common AND CONFIG_USE_driver_lptmr) 1441 1442target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 1443 ${CMAKE_CURRENT_LIST_DIR}/../../components/timer/fsl_adapter_lptmr.c 1444) 1445 1446target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 1447 ${CMAKE_CURRENT_LIST_DIR}/../../components/timer/. 1448) 1449 1450else() 1451 1452message(SEND_ERROR "component_lptmr_adapter.MKE15Z7 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 1453 1454endif() 1455 1456endif() 1457 1458 1459if (CONFIG_USE_component_timer_manager) 1460# Add set(CONFIG_USE_component_timer_manager true) in config.cmake to use this component 1461 1462message("component_timer_manager component is included from ${CMAKE_CURRENT_LIST_FILE}.") 1463 1464if(CONFIG_USE_driver_common AND CONFIG_USE_component_lists AND (CONFIG_USE_component_ftm_adapter OR CONFIG_USE_component_lpit_adapter OR CONFIG_USE_component_lptmr_adapter)) 1465 1466target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 1467 ${CMAKE_CURRENT_LIST_DIR}/../../components/timer_manager/fsl_component_timer_manager.c 1468) 1469 1470target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 1471 ${CMAKE_CURRENT_LIST_DIR}/../../components/timer_manager/. 1472) 1473 1474else() 1475 1476message(SEND_ERROR "component_timer_manager.MKE15Z7 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 1477 1478endif() 1479 1480endif() 1481 1482 1483if (CONFIG_USE_component_lpuart_adapter) 1484# Add set(CONFIG_USE_component_lpuart_adapter true) in config.cmake to use this component 1485 1486message("component_lpuart_adapter component is included from ${CMAKE_CURRENT_LIST_FILE}.") 1487 1488if(CONFIG_USE_driver_common AND CONFIG_USE_driver_lpuart) 1489 1490target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 1491 ${CMAKE_CURRENT_LIST_DIR}/../../components/uart/fsl_adapter_lpuart.c 1492) 1493 1494target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 1495 ${CMAKE_CURRENT_LIST_DIR}/../../components/uart/. 1496) 1497 1498else() 1499 1500message(SEND_ERROR "component_lpuart_adapter.MKE15Z7 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 1501 1502endif() 1503 1504endif() 1505 1506 1507if (CONFIG_USE_component_lpuart_dma_adapter) 1508# Add set(CONFIG_USE_component_lpuart_dma_adapter true) in config.cmake to use this component 1509 1510message("component_lpuart_dma_adapter component is included from ${CMAKE_CURRENT_LIST_FILE}.") 1511 1512if(CONFIG_USE_component_lpuart_adapter AND CONFIG_USE_component_timer_manager AND (CONFIG_USE_driver_lpuart_edma)) 1513 1514target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 1515 ${CMAKE_CURRENT_LIST_DIR}/../../components/uart/fsl_adapter_lpuart.c 1516) 1517 1518target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 1519 ${CMAKE_CURRENT_LIST_DIR}/../../components/uart/. 1520) 1521 1522if(CONFIG_USE_COMPONENT_CONFIGURATION) 1523 message("===>Import configuration from ${CMAKE_CURRENT_LIST_FILE}") 1524 1525 target_compile_definitions(${MCUX_SDK_PROJECT_NAME} PUBLIC 1526 -DHAL_UART_DMA_ENABLE=1 1527 ) 1528 1529endif() 1530 1531else() 1532 1533message(SEND_ERROR "component_lpuart_dma_adapter.MKE15Z7 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 1534 1535endif() 1536 1537endif() 1538 1539 1540if (CONFIG_USE_driver_common) 1541# Add set(CONFIG_USE_driver_common true) in config.cmake to use this component 1542 1543message("driver_common component is included from ${CMAKE_CURRENT_LIST_FILE}.") 1544 1545if(CONFIG_USE_driver_clock AND CONFIG_USE_device_MKE15Z7_CMSIS) 1546 1547target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 1548 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/common/fsl_common.c 1549) 1550 1551if(CONFIG_CORE STREQUAL cm0p) 1552 target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 1553 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/common/fsl_common_arm.c 1554 ) 1555endif() 1556 1557target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 1558 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/common/. 1559) 1560 1561else() 1562 1563message(SEND_ERROR "driver_common.MKE15Z7 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 1564 1565endif() 1566 1567endif() 1568 1569 1570if (CONFIG_USE_driver_acmp) 1571# Add set(CONFIG_USE_driver_acmp true) in config.cmake to use this component 1572 1573message("driver_acmp component is included from ${CMAKE_CURRENT_LIST_FILE}.") 1574 1575if((CONFIG_DEVICE_ID STREQUAL MKE15Z256xxx7 OR CONFIG_DEVICE_ID STREQUAL MKE15Z128xxx7) AND CONFIG_USE_driver_common) 1576 1577target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 1578 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/acmp/fsl_acmp.c 1579) 1580 1581target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 1582 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/acmp/. 1583) 1584 1585else() 1586 1587message(SEND_ERROR "driver_acmp.MKE15Z7 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 1588 1589endif() 1590 1591endif() 1592 1593 1594if (CONFIG_USE_driver_adc12) 1595# Add set(CONFIG_USE_driver_adc12 true) in config.cmake to use this component 1596 1597message("driver_adc12 component is included from ${CMAKE_CURRENT_LIST_FILE}.") 1598 1599if((CONFIG_DEVICE_ID STREQUAL MKE15Z256xxx7 OR CONFIG_DEVICE_ID STREQUAL MKE15Z128xxx7) AND CONFIG_USE_driver_common) 1600 1601target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 1602 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/adc12/fsl_adc12.c 1603) 1604 1605target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 1606 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/adc12/. 1607) 1608 1609else() 1610 1611message(SEND_ERROR "driver_adc12.MKE15Z7 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 1612 1613endif() 1614 1615endif() 1616 1617 1618if (CONFIG_USE_driver_crc) 1619# Add set(CONFIG_USE_driver_crc true) in config.cmake to use this component 1620 1621message("driver_crc component is included from ${CMAKE_CURRENT_LIST_FILE}.") 1622 1623if((CONFIG_DEVICE_ID STREQUAL MKE15Z256xxx7 OR CONFIG_DEVICE_ID STREQUAL MKE15Z128xxx7) AND CONFIG_USE_driver_common) 1624 1625target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 1626 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/crc/fsl_crc.c 1627) 1628 1629target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 1630 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/crc/. 1631) 1632 1633else() 1634 1635message(SEND_ERROR "driver_crc.MKE15Z7 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 1636 1637endif() 1638 1639endif() 1640 1641 1642if (CONFIG_USE_driver_dmamux) 1643# Add set(CONFIG_USE_driver_dmamux true) in config.cmake to use this component 1644 1645message("driver_dmamux component is included from ${CMAKE_CURRENT_LIST_FILE}.") 1646 1647if((CONFIG_DEVICE_ID STREQUAL MKE15Z256xxx7 OR CONFIG_DEVICE_ID STREQUAL MKE15Z128xxx7) AND CONFIG_USE_driver_common) 1648 1649target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 1650 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/dmamux/fsl_dmamux.c 1651) 1652 1653target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 1654 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/dmamux/. 1655) 1656 1657else() 1658 1659message(SEND_ERROR "driver_dmamux.MKE15Z7 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 1660 1661endif() 1662 1663endif() 1664 1665 1666if (CONFIG_USE_driver_edma) 1667# Add set(CONFIG_USE_driver_edma true) in config.cmake to use this component 1668 1669message("driver_edma component is included from ${CMAKE_CURRENT_LIST_FILE}.") 1670 1671if((CONFIG_DEVICE_ID STREQUAL MKE15Z256xxx7 OR CONFIG_DEVICE_ID STREQUAL MKE15Z128xxx7) AND CONFIG_USE_driver_common AND CONFIG_USE_driver_dmamux) 1672 1673target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 1674 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/edma/fsl_edma.c 1675) 1676 1677target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 1678 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/edma/. 1679) 1680 1681else() 1682 1683message(SEND_ERROR "driver_edma.MKE15Z7 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 1684 1685endif() 1686 1687endif() 1688 1689 1690if (CONFIG_USE_driver_ewm) 1691# Add set(CONFIG_USE_driver_ewm true) in config.cmake to use this component 1692 1693message("driver_ewm component is included from ${CMAKE_CURRENT_LIST_FILE}.") 1694 1695if((CONFIG_DEVICE_ID STREQUAL MKE15Z256xxx7 OR CONFIG_DEVICE_ID STREQUAL MKE15Z128xxx7) AND CONFIG_USE_driver_common) 1696 1697target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 1698 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/ewm/fsl_ewm.c 1699) 1700 1701target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 1702 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/ewm/. 1703) 1704 1705else() 1706 1707message(SEND_ERROR "driver_ewm.MKE15Z7 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 1708 1709endif() 1710 1711endif() 1712 1713 1714if (CONFIG_USE_driver_flash) 1715# Add set(CONFIG_USE_driver_flash true) in config.cmake to use this component 1716 1717message("driver_flash component is included from ${CMAKE_CURRENT_LIST_FILE}.") 1718 1719if(CONFIG_USE_driver_common) 1720 1721target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 1722 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/flash/fsl_ftfx_controller.c 1723 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/flash/fsl_ftfx_flash.c 1724 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/flash/fsl_ftfx_cache.c 1725 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/flash/fsl_ftfx_flexnvm.c 1726) 1727 1728target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 1729 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/flash/. 1730) 1731 1732else() 1733 1734message(SEND_ERROR "driver_flash.MKE15Z7 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 1735 1736endif() 1737 1738endif() 1739 1740 1741if (CONFIG_USE_driver_flexio) 1742# Add set(CONFIG_USE_driver_flexio true) in config.cmake to use this component 1743 1744message("driver_flexio component is included from ${CMAKE_CURRENT_LIST_FILE}.") 1745 1746if((CONFIG_DEVICE_ID STREQUAL MKE15Z256xxx7 OR CONFIG_DEVICE_ID STREQUAL MKE15Z128xxx7) AND CONFIG_USE_driver_common) 1747 1748target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 1749 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/flexio/fsl_flexio.c 1750) 1751 1752target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 1753 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/flexio/. 1754) 1755 1756else() 1757 1758message(SEND_ERROR "driver_flexio.MKE15Z7 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 1759 1760endif() 1761 1762endif() 1763 1764 1765if (CONFIG_USE_driver_flexio_i2c_master) 1766# Add set(CONFIG_USE_driver_flexio_i2c_master true) in config.cmake to use this component 1767 1768message("driver_flexio_i2c_master component is included from ${CMAKE_CURRENT_LIST_FILE}.") 1769 1770if(CONFIG_USE_driver_flexio) 1771 1772target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 1773 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/flexio/i2c/fsl_flexio_i2c_master.c 1774) 1775 1776target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 1777 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/flexio/i2c/. 1778) 1779 1780else() 1781 1782message(SEND_ERROR "driver_flexio_i2c_master.MKE15Z7 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 1783 1784endif() 1785 1786endif() 1787 1788 1789if (CONFIG_USE_driver_flexio_i2s) 1790# Add set(CONFIG_USE_driver_flexio_i2s true) in config.cmake to use this component 1791 1792message("driver_flexio_i2s component is included from ${CMAKE_CURRENT_LIST_FILE}.") 1793 1794if(CONFIG_USE_driver_flexio) 1795 1796target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 1797 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/flexio/i2s/fsl_flexio_i2s.c 1798) 1799 1800target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 1801 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/flexio/i2s/. 1802) 1803 1804else() 1805 1806message(SEND_ERROR "driver_flexio_i2s.MKE15Z7 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 1807 1808endif() 1809 1810endif() 1811 1812 1813if (CONFIG_USE_driver_flexio_spi) 1814# Add set(CONFIG_USE_driver_flexio_spi true) in config.cmake to use this component 1815 1816message("driver_flexio_spi component is included from ${CMAKE_CURRENT_LIST_FILE}.") 1817 1818if(CONFIG_USE_driver_flexio) 1819 1820target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 1821 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/flexio/spi/fsl_flexio_spi.c 1822) 1823 1824target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 1825 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/flexio/spi/. 1826) 1827 1828else() 1829 1830message(SEND_ERROR "driver_flexio_spi.MKE15Z7 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 1831 1832endif() 1833 1834endif() 1835 1836 1837if (CONFIG_USE_driver_flexio_uart) 1838# Add set(CONFIG_USE_driver_flexio_uart true) in config.cmake to use this component 1839 1840message("driver_flexio_uart component is included from ${CMAKE_CURRENT_LIST_FILE}.") 1841 1842if(CONFIG_USE_driver_flexio) 1843 1844target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 1845 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/flexio/uart/fsl_flexio_uart.c 1846) 1847 1848target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 1849 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/flexio/uart/. 1850) 1851 1852else() 1853 1854message(SEND_ERROR "driver_flexio_uart.MKE15Z7 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 1855 1856endif() 1857 1858endif() 1859 1860 1861if (CONFIG_USE_driver_ftm) 1862# Add set(CONFIG_USE_driver_ftm true) in config.cmake to use this component 1863 1864message("driver_ftm component is included from ${CMAKE_CURRENT_LIST_FILE}.") 1865 1866if((CONFIG_DEVICE_ID STREQUAL MKE15Z256xxx7 OR CONFIG_DEVICE_ID STREQUAL MKE15Z128xxx7) AND CONFIG_USE_driver_common) 1867 1868target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 1869 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/ftm/fsl_ftm.c 1870) 1871 1872target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 1873 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/ftm/. 1874) 1875 1876else() 1877 1878message(SEND_ERROR "driver_ftm.MKE15Z7 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 1879 1880endif() 1881 1882endif() 1883 1884 1885if (CONFIG_USE_driver_gpio) 1886# Add set(CONFIG_USE_driver_gpio true) in config.cmake to use this component 1887 1888message("driver_gpio component is included from ${CMAKE_CURRENT_LIST_FILE}.") 1889 1890if((CONFIG_DEVICE_ID STREQUAL MKE15Z256xxx7 OR CONFIG_DEVICE_ID STREQUAL MKE15Z128xxx7) AND CONFIG_USE_driver_common) 1891 1892target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 1893 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/gpio/fsl_gpio.c 1894) 1895 1896target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 1897 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/gpio/. 1898) 1899 1900else() 1901 1902message(SEND_ERROR "driver_gpio.MKE15Z7 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 1903 1904endif() 1905 1906endif() 1907 1908 1909if (CONFIG_USE_driver_lpi2c) 1910# Add set(CONFIG_USE_driver_lpi2c true) in config.cmake to use this component 1911 1912message("driver_lpi2c component is included from ${CMAKE_CURRENT_LIST_FILE}.") 1913 1914if((CONFIG_DEVICE_ID STREQUAL MKE15Z256xxx7 OR CONFIG_DEVICE_ID STREQUAL MKE15Z128xxx7) AND CONFIG_USE_driver_common) 1915 1916target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 1917 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/lpi2c/fsl_lpi2c.c 1918) 1919 1920target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 1921 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/lpi2c/. 1922) 1923 1924else() 1925 1926message(SEND_ERROR "driver_lpi2c.MKE15Z7 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 1927 1928endif() 1929 1930endif() 1931 1932 1933if (CONFIG_USE_driver_lpi2c_freertos) 1934# Add set(CONFIG_USE_driver_lpi2c_freertos true) in config.cmake to use this component 1935 1936message("driver_lpi2c_freertos component is included from ${CMAKE_CURRENT_LIST_FILE}.") 1937 1938if(CONFIG_USE_driver_lpi2c AND CONFIG_USE_middleware_freertos-kernel) 1939 1940target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 1941 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/lpi2c/fsl_lpi2c_freertos.c 1942) 1943 1944target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 1945 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/lpi2c/. 1946) 1947 1948else() 1949 1950message(SEND_ERROR "driver_lpi2c_freertos.MKE15Z7 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 1951 1952endif() 1953 1954endif() 1955 1956 1957if (CONFIG_USE_driver_lpit) 1958# Add set(CONFIG_USE_driver_lpit true) in config.cmake to use this component 1959 1960message("driver_lpit component is included from ${CMAKE_CURRENT_LIST_FILE}.") 1961 1962if((CONFIG_DEVICE_ID STREQUAL MKE15Z256xxx7 OR CONFIG_DEVICE_ID STREQUAL MKE15Z128xxx7) AND CONFIG_USE_driver_common) 1963 1964target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 1965 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/lpit/fsl_lpit.c 1966) 1967 1968target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 1969 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/lpit/. 1970) 1971 1972else() 1973 1974message(SEND_ERROR "driver_lpit.MKE15Z7 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 1975 1976endif() 1977 1978endif() 1979 1980 1981if (CONFIG_USE_driver_lpspi) 1982# Add set(CONFIG_USE_driver_lpspi true) in config.cmake to use this component 1983 1984message("driver_lpspi component is included from ${CMAKE_CURRENT_LIST_FILE}.") 1985 1986if((CONFIG_DEVICE_ID STREQUAL MKE15Z256xxx7 OR CONFIG_DEVICE_ID STREQUAL MKE15Z128xxx7) AND CONFIG_USE_driver_common) 1987 1988target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 1989 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/lpspi/fsl_lpspi.c 1990) 1991 1992target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 1993 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/lpspi/. 1994) 1995 1996else() 1997 1998message(SEND_ERROR "driver_lpspi.MKE15Z7 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 1999 2000endif() 2001 2002endif() 2003 2004 2005if (CONFIG_USE_driver_lpspi_freertos) 2006# Add set(CONFIG_USE_driver_lpspi_freertos true) in config.cmake to use this component 2007 2008message("driver_lpspi_freertos component is included from ${CMAKE_CURRENT_LIST_FILE}.") 2009 2010if(CONFIG_USE_driver_lpspi AND CONFIG_USE_middleware_freertos-kernel) 2011 2012target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 2013 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/lpspi/fsl_lpspi_freertos.c 2014) 2015 2016target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 2017 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/lpspi/. 2018) 2019 2020else() 2021 2022message(SEND_ERROR "driver_lpspi_freertos.MKE15Z7 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 2023 2024endif() 2025 2026endif() 2027 2028 2029if (CONFIG_USE_driver_lptmr) 2030# Add set(CONFIG_USE_driver_lptmr true) in config.cmake to use this component 2031 2032message("driver_lptmr component is included from ${CMAKE_CURRENT_LIST_FILE}.") 2033 2034if((CONFIG_DEVICE_ID STREQUAL MKE15Z256xxx7 OR CONFIG_DEVICE_ID STREQUAL MKE15Z128xxx7) AND CONFIG_USE_driver_common) 2035 2036target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 2037 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/lptmr/fsl_lptmr.c 2038) 2039 2040target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 2041 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/lptmr/. 2042) 2043 2044else() 2045 2046message(SEND_ERROR "driver_lptmr.MKE15Z7 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 2047 2048endif() 2049 2050endif() 2051 2052 2053if (CONFIG_USE_driver_lpuart) 2054# Add set(CONFIG_USE_driver_lpuart true) in config.cmake to use this component 2055 2056message("driver_lpuart component is included from ${CMAKE_CURRENT_LIST_FILE}.") 2057 2058if((CONFIG_DEVICE_ID STREQUAL MKE15Z256xxx7 OR CONFIG_DEVICE_ID STREQUAL MKE15Z128xxx7) AND CONFIG_USE_driver_common) 2059 2060target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 2061 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/lpuart/fsl_lpuart.c 2062) 2063 2064target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 2065 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/lpuart/. 2066) 2067 2068else() 2069 2070message(SEND_ERROR "driver_lpuart.MKE15Z7 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 2071 2072endif() 2073 2074endif() 2075 2076 2077if (CONFIG_USE_driver_lpuart_freertos) 2078# Add set(CONFIG_USE_driver_lpuart_freertos true) in config.cmake to use this component 2079 2080message("driver_lpuart_freertos component is included from ${CMAKE_CURRENT_LIST_FILE}.") 2081 2082if(CONFIG_USE_driver_lpuart AND CONFIG_USE_middleware_freertos-kernel) 2083 2084target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 2085 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/lpuart/fsl_lpuart_freertos.c 2086) 2087 2088target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 2089 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/lpuart/. 2090) 2091 2092else() 2093 2094message(SEND_ERROR "driver_lpuart_freertos.MKE15Z7 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 2095 2096endif() 2097 2098endif() 2099 2100 2101if (CONFIG_USE_driver_mmdvsq) 2102# Add set(CONFIG_USE_driver_mmdvsq true) in config.cmake to use this component 2103 2104message("driver_mmdvsq component is included from ${CMAKE_CURRENT_LIST_FILE}.") 2105 2106if((CONFIG_DEVICE_ID STREQUAL MKE15Z256xxx7 OR CONFIG_DEVICE_ID STREQUAL MKE15Z128xxx7) AND CONFIG_USE_driver_common) 2107 2108target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 2109 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/mmdvsq/fsl_mmdvsq.c 2110) 2111 2112target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 2113 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/mmdvsq/. 2114) 2115 2116else() 2117 2118message(SEND_ERROR "driver_mmdvsq.MKE15Z7 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 2119 2120endif() 2121 2122endif() 2123 2124 2125if (CONFIG_USE_driver_pdb) 2126# Add set(CONFIG_USE_driver_pdb true) in config.cmake to use this component 2127 2128message("driver_pdb component is included from ${CMAKE_CURRENT_LIST_FILE}.") 2129 2130if((CONFIG_DEVICE_ID STREQUAL MKE15Z256xxx7 OR CONFIG_DEVICE_ID STREQUAL MKE15Z128xxx7) AND CONFIG_USE_driver_common) 2131 2132target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 2133 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/pdb/fsl_pdb.c 2134) 2135 2136target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 2137 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/pdb/. 2138) 2139 2140else() 2141 2142message(SEND_ERROR "driver_pdb.MKE15Z7 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 2143 2144endif() 2145 2146endif() 2147 2148 2149if (CONFIG_USE_driver_pmc) 2150# Add set(CONFIG_USE_driver_pmc true) in config.cmake to use this component 2151 2152message("driver_pmc component is included from ${CMAKE_CURRENT_LIST_FILE}.") 2153 2154if((CONFIG_DEVICE_ID STREQUAL MKE15Z256xxx7 OR CONFIG_DEVICE_ID STREQUAL MKE15Z128xxx7) AND CONFIG_USE_driver_common) 2155 2156target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 2157 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/pmc/fsl_pmc.c 2158) 2159 2160target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 2161 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/pmc/. 2162) 2163 2164else() 2165 2166message(SEND_ERROR "driver_pmc.MKE15Z7 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 2167 2168endif() 2169 2170endif() 2171 2172 2173if (CONFIG_USE_driver_port) 2174# Add set(CONFIG_USE_driver_port true) in config.cmake to use this component 2175 2176message("driver_port component is included from ${CMAKE_CURRENT_LIST_FILE}.") 2177 2178if((CONFIG_DEVICE_ID STREQUAL MKE15Z256xxx7 OR CONFIG_DEVICE_ID STREQUAL MKE15Z128xxx7) AND CONFIG_USE_driver_common) 2179 2180target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 2181 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/port/. 2182) 2183 2184else() 2185 2186message(SEND_ERROR "driver_port.MKE15Z7 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 2187 2188endif() 2189 2190endif() 2191 2192 2193if (CONFIG_USE_driver_pwt) 2194# Add set(CONFIG_USE_driver_pwt true) in config.cmake to use this component 2195 2196message("driver_pwt component is included from ${CMAKE_CURRENT_LIST_FILE}.") 2197 2198if((CONFIG_DEVICE_ID STREQUAL MKE15Z256xxx7 OR CONFIG_DEVICE_ID STREQUAL MKE15Z128xxx7) AND CONFIG_USE_driver_common) 2199 2200target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 2201 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/pwt/fsl_pwt.c 2202) 2203 2204target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 2205 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/pwt/. 2206) 2207 2208else() 2209 2210message(SEND_ERROR "driver_pwt.MKE15Z7 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 2211 2212endif() 2213 2214endif() 2215 2216 2217if (CONFIG_USE_driver_rcm) 2218# Add set(CONFIG_USE_driver_rcm true) in config.cmake to use this component 2219 2220message("driver_rcm component is included from ${CMAKE_CURRENT_LIST_FILE}.") 2221 2222if((CONFIG_DEVICE_ID STREQUAL MKE15Z256xxx7 OR CONFIG_DEVICE_ID STREQUAL MKE15Z128xxx7) AND CONFIG_USE_driver_common) 2223 2224target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 2225 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/rcm/fsl_rcm.c 2226) 2227 2228target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 2229 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/rcm/. 2230) 2231 2232else() 2233 2234message(SEND_ERROR "driver_rcm.MKE15Z7 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 2235 2236endif() 2237 2238endif() 2239 2240 2241if (CONFIG_USE_driver_rtc) 2242# Add set(CONFIG_USE_driver_rtc true) in config.cmake to use this component 2243 2244message("driver_rtc component is included from ${CMAKE_CURRENT_LIST_FILE}.") 2245 2246if((CONFIG_DEVICE_ID STREQUAL MKE15Z256xxx7 OR CONFIG_DEVICE_ID STREQUAL MKE15Z128xxx7) AND CONFIG_USE_driver_common) 2247 2248target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 2249 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/rtc/fsl_rtc.c 2250) 2251 2252target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 2253 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/rtc/. 2254) 2255 2256else() 2257 2258message(SEND_ERROR "driver_rtc.MKE15Z7 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 2259 2260endif() 2261 2262endif() 2263 2264 2265if (CONFIG_USE_driver_sim) 2266# Add set(CONFIG_USE_driver_sim true) in config.cmake to use this component 2267 2268message("driver_sim component is included from ${CMAKE_CURRENT_LIST_FILE}.") 2269 2270if((CONFIG_DEVICE_ID STREQUAL MKE15Z256xxx7 OR CONFIG_DEVICE_ID STREQUAL MKE15Z128xxx7) AND CONFIG_USE_driver_common) 2271 2272target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 2273 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/sim/fsl_sim.c 2274) 2275 2276target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 2277 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/sim/. 2278) 2279 2280else() 2281 2282message(SEND_ERROR "driver_sim.MKE15Z7 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 2283 2284endif() 2285 2286endif() 2287 2288 2289if (CONFIG_USE_driver_smc) 2290# Add set(CONFIG_USE_driver_smc true) in config.cmake to use this component 2291 2292message("driver_smc component is included from ${CMAKE_CURRENT_LIST_FILE}.") 2293 2294if((CONFIG_DEVICE_ID STREQUAL MKE15Z256xxx7 OR CONFIG_DEVICE_ID STREQUAL MKE15Z128xxx7) AND CONFIG_USE_driver_common) 2295 2296target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 2297 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/smc/fsl_smc.c 2298) 2299 2300target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 2301 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/smc/. 2302) 2303 2304else() 2305 2306message(SEND_ERROR "driver_smc.MKE15Z7 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 2307 2308endif() 2309 2310endif() 2311 2312 2313if (CONFIG_USE_driver_trgmux) 2314# Add set(CONFIG_USE_driver_trgmux true) in config.cmake to use this component 2315 2316message("driver_trgmux component is included from ${CMAKE_CURRENT_LIST_FILE}.") 2317 2318if((CONFIG_DEVICE_ID STREQUAL MKE15Z256xxx7 OR CONFIG_DEVICE_ID STREQUAL MKE15Z128xxx7) AND CONFIG_USE_driver_common) 2319 2320target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 2321 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/trgmux/fsl_trgmux.c 2322) 2323 2324target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 2325 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/trgmux/. 2326) 2327 2328else() 2329 2330message(SEND_ERROR "driver_trgmux.MKE15Z7 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 2331 2332endif() 2333 2334endif() 2335 2336 2337if (CONFIG_USE_driver_tsi_v5) 2338# Add set(CONFIG_USE_driver_tsi_v5 true) in config.cmake to use this component 2339 2340message("driver_tsi_v5 component is included from ${CMAKE_CURRENT_LIST_FILE}.") 2341 2342if((CONFIG_DEVICE_ID STREQUAL MKE15Z256xxx7 OR CONFIG_DEVICE_ID STREQUAL MKE15Z128xxx7) AND CONFIG_USE_driver_common) 2343 2344target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 2345 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/tsi/tsi_v5/fsl_tsi_v5.c 2346) 2347 2348target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 2349 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/tsi/tsi_v5/. 2350) 2351 2352else() 2353 2354message(SEND_ERROR "driver_tsi_v5.MKE15Z7 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 2355 2356endif() 2357 2358endif() 2359 2360 2361if (CONFIG_USE_driver_wdog32) 2362# Add set(CONFIG_USE_driver_wdog32 true) in config.cmake to use this component 2363 2364message("driver_wdog32 component is included from ${CMAKE_CURRENT_LIST_FILE}.") 2365 2366if((CONFIG_DEVICE_ID STREQUAL MKE15Z256xxx7 OR CONFIG_DEVICE_ID STREQUAL MKE15Z128xxx7) AND CONFIG_USE_driver_common) 2367 2368target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 2369 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/wdog32/fsl_wdog32.c 2370) 2371 2372target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 2373 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/wdog32/. 2374) 2375 2376else() 2377 2378message(SEND_ERROR "driver_wdog32.MKE15Z7 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 2379 2380endif() 2381 2382endif() 2383 2384