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_DEVICES_Project_Template_LPC845) 39# Add set(CONFIG_USE_DEVICES_Project_Template_LPC845 true) in config.cmake to use this component 40 41message("DEVICES_Project_Template_LPC845 component is included from ${CMAKE_CURRENT_LIST_FILE}.") 42 43if(CONFIG_USE_component_miniusart_adapter AND (CONFIG_DEVICE_ID STREQUAL LPC845) AND CONFIG_USE_device_LPC845_startup AND CONFIG_USE_driver_clock AND CONFIG_USE_driver_common AND CONFIG_USE_driver_lpc_gpio AND CONFIG_USE_driver_lpc_iocon_lite AND CONFIG_USE_driver_lpc_miniusart AND CONFIG_USE_driver_power_no_lib AND CONFIG_USE_driver_reset AND CONFIG_USE_driver_swm AND CONFIG_USE_utility_assert_lite AND CONFIG_USE_utility_debug_console_lite) 44 45add_config_file(${CMAKE_CURRENT_LIST_DIR}/project_template/clock_config.h "" DEVICES_Project_Template_LPC845.LPC845) 46add_config_file(${CMAKE_CURRENT_LIST_DIR}/project_template/clock_config.c "" DEVICES_Project_Template_LPC845.LPC845) 47add_config_file(${CMAKE_CURRENT_LIST_DIR}/project_template/pin_mux.h "" DEVICES_Project_Template_LPC845.LPC845) 48add_config_file(${CMAKE_CURRENT_LIST_DIR}/project_template/pin_mux.c "" DEVICES_Project_Template_LPC845.LPC845) 49add_config_file(${CMAKE_CURRENT_LIST_DIR}/project_template/peripherals.h "" DEVICES_Project_Template_LPC845.LPC845) 50add_config_file(${CMAKE_CURRENT_LIST_DIR}/project_template/peripherals.c "" DEVICES_Project_Template_LPC845.LPC845) 51 52target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 53 ${CMAKE_CURRENT_LIST_DIR}/project_template/. 54) 55 56else() 57 58message(SEND_ERROR "DEVICES_Project_Template_LPC845.LPC845 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 59 60endif() 61 62endif() 63 64 65if (CONFIG_USE_device_LPC845_startup) 66# Add set(CONFIG_USE_device_LPC845_startup true) in config.cmake to use this component 67 68message("device_LPC845_startup component is included from ${CMAKE_CURRENT_LIST_FILE}.") 69 70if(CONFIG_USE_device_LPC845_system) 71 72if(CONFIG_TOOLCHAIN STREQUAL armgcc) 73 add_config_file(${CMAKE_CURRENT_LIST_DIR}/./gcc/startup_LPC845.S "" device_LPC845_startup.LPC845) 74endif() 75 76if(CONFIG_TOOLCHAIN STREQUAL mcux) 77 add_config_file(${CMAKE_CURRENT_LIST_DIR}/./mcuxpresso/startup_lpc845.c "" device_LPC845_startup.LPC845) 78 add_config_file(${CMAKE_CURRENT_LIST_DIR}/./mcuxpresso/startup_lpc845.cpp "" device_LPC845_startup.LPC845) 79endif() 80 81else() 82 83message(SEND_ERROR "device_LPC845_startup.LPC845 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 84 85endif() 86 87endif() 88 89 90if (CONFIG_USE_device_LPC845_CMSIS) 91# Add set(CONFIG_USE_device_LPC845_CMSIS true) in config.cmake to use this component 92 93message("device_LPC845_CMSIS component is included from ${CMAKE_CURRENT_LIST_FILE}.") 94 95if(CONFIG_USE_CMSIS_Include_core_cm AND (CONFIG_DEVICE_ID STREQUAL LPC845)) 96 97target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 98 ${CMAKE_CURRENT_LIST_DIR}/./. 99) 100 101else() 102 103message(SEND_ERROR "device_LPC845_CMSIS.LPC845 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 104 105endif() 106 107endif() 108 109 110if (CONFIG_USE_driver_clock) 111# Add set(CONFIG_USE_driver_clock true) in config.cmake to use this component 112 113message("driver_clock component is included from ${CMAKE_CURRENT_LIST_FILE}.") 114 115if(CONFIG_USE_driver_power_no_lib AND CONFIG_USE_driver_common) 116 117target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 118 ${CMAKE_CURRENT_LIST_DIR}/drivers/fsl_clock.c 119) 120 121target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 122 ${CMAKE_CURRENT_LIST_DIR}/drivers/. 123) 124 125else() 126 127message(SEND_ERROR "driver_clock.LPC845 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 128 129endif() 130 131endif() 132 133 134if (CONFIG_USE_utility_assert_lite) 135# Add set(CONFIG_USE_utility_assert_lite true) in config.cmake to use this component 136 137message("utility_assert_lite component is included from ${CMAKE_CURRENT_LIST_FILE}.") 138 139if(CONFIG_USE_component_miniusart_adapter AND CONFIG_USE_utility_debug_console_lite AND CONFIG_USE_driver_common) 140 141target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 142 ${CMAKE_CURRENT_LIST_DIR}/../../utilities/assert/fsl_assert.c 143) 144 145target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 146 ${CMAKE_CURRENT_LIST_DIR}/../../utilities/assert/. 147) 148 149else() 150 151message(SEND_ERROR "utility_assert_lite.LPC845 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 152 153endif() 154 155endif() 156 157 158if (CONFIG_USE_component_lpc_gpio_adapter) 159# Add set(CONFIG_USE_component_lpc_gpio_adapter true) in config.cmake to use this component 160 161message("component_lpc_gpio_adapter component is included from ${CMAKE_CURRENT_LIST_FILE}.") 162 163if(CONFIG_USE_driver_syscon AND CONFIG_USE_driver_lpc_gpio AND CONFIG_USE_driver_inputmux AND CONFIG_USE_driver_pint) 164 165target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 166 ${CMAKE_CURRENT_LIST_DIR}/../../components/gpio/fsl_adapter_lpc_gpio.c 167) 168 169target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 170 ${CMAKE_CURRENT_LIST_DIR}/../../components/gpio/. 171) 172 173else() 174 175message(SEND_ERROR "component_lpc_gpio_adapter.LPC845 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 176 177endif() 178 179endif() 180 181 182if (CONFIG_USE_utility_debug_console_lite) 183# Add set(CONFIG_USE_utility_debug_console_lite true) in config.cmake to use this component 184 185message("utility_debug_console_lite component is included from ${CMAKE_CURRENT_LIST_FILE}.") 186 187if(CONFIG_USE_component_miniusart_adapter AND (CONFIG_DEVICE_ID STREQUAL LPC845) AND CONFIG_USE_driver_common AND CONFIG_USE_utility_str) 188 189target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 190 ${CMAKE_CURRENT_LIST_DIR}/../../utilities/debug_console_lite/fsl_debug_console.c 191) 192 193target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 194 ${CMAKE_CURRENT_LIST_DIR}/../../utilities/debug_console_lite 195) 196 197else() 198 199message(SEND_ERROR "utility_debug_console_lite.LPC845 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 200 201endif() 202 203endif() 204 205 206if (CONFIG_USE_driver_lpc_i2c_dma) 207# Add set(CONFIG_USE_driver_lpc_i2c_dma true) in config.cmake to use this component 208 209message("driver_lpc_i2c_dma component is included from ${CMAKE_CURRENT_LIST_FILE}.") 210 211if(CONFIG_USE_driver_lpc_dma AND CONFIG_USE_driver_lpc_i2c) 212 213target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 214 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/lpc_i2c/fsl_i2c_dma.c 215) 216 217target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 218 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/lpc_i2c/. 219) 220 221else() 222 223message(SEND_ERROR "driver_lpc_i2c_dma.LPC845 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 224 225endif() 226 227endif() 228 229 230if (CONFIG_USE_driver_inputmux_connections) 231# Add set(CONFIG_USE_driver_inputmux_connections true) in config.cmake to use this component 232 233message("driver_inputmux_connections component is included from ${CMAKE_CURRENT_LIST_FILE}.") 234 235if(CONFIG_USE_driver_common AND (CONFIG_DEVICE_ID STREQUAL LPC845)) 236 237target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 238 ${CMAKE_CURRENT_LIST_DIR}/drivers/. 239) 240 241else() 242 243message(SEND_ERROR "driver_inputmux_connections.LPC845 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 244 245endif() 246 247endif() 248 249 250if (CONFIG_USE_driver_swm_connections) 251# Add set(CONFIG_USE_driver_swm_connections true) in config.cmake to use this component 252 253message("driver_swm_connections component is included from ${CMAKE_CURRENT_LIST_FILE}.") 254 255if(CONFIG_USE_driver_common AND (CONFIG_DEVICE_ID STREQUAL LPC845)) 256 257target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 258 ${CMAKE_CURRENT_LIST_DIR}/drivers/. 259) 260 261else() 262 263message(SEND_ERROR "driver_swm_connections.LPC845 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 264 265endif() 266 267endif() 268 269 270if (CONFIG_USE_driver_syscon_connections) 271# Add set(CONFIG_USE_driver_syscon_connections true) in config.cmake to use this component 272 273message("driver_syscon_connections component is included from ${CMAKE_CURRENT_LIST_FILE}.") 274 275if(CONFIG_USE_driver_common AND (CONFIG_DEVICE_ID STREQUAL LPC845)) 276 277target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 278 ${CMAKE_CURRENT_LIST_DIR}/drivers/. 279) 280 281else() 282 283message(SEND_ERROR "driver_syscon_connections.LPC845 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 284 285endif() 286 287endif() 288 289 290if (CONFIG_USE_driver_power_no_lib) 291# Add set(CONFIG_USE_driver_power_no_lib true) in config.cmake to use this component 292 293message("driver_power_no_lib component is included from ${CMAKE_CURRENT_LIST_FILE}.") 294 295if(CONFIG_USE_driver_common AND (CONFIG_DEVICE_ID STREQUAL LPC845)) 296 297target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 298 ${CMAKE_CURRENT_LIST_DIR}/drivers/fsl_power.c 299) 300 301target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 302 ${CMAKE_CURRENT_LIST_DIR}/drivers/. 303) 304 305else() 306 307message(SEND_ERROR "driver_power_no_lib.LPC845 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 308 309endif() 310 311endif() 312 313 314if (CONFIG_USE_driver_common) 315# Add set(CONFIG_USE_driver_common true) in config.cmake to use this component 316 317message("driver_common component is included from ${CMAKE_CURRENT_LIST_FILE}.") 318 319if(CONFIG_USE_driver_reset AND CONFIG_USE_driver_clock AND CONFIG_USE_device_LPC845_CMSIS) 320 321target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 322 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/common/fsl_common.c 323) 324 325if(CONFIG_CORE STREQUAL cm0p) 326 target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 327 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/common/fsl_common_arm.c 328 ) 329endif() 330 331target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 332 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/common/. 333) 334 335else() 336 337message(SEND_ERROR "driver_common.LPC845 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 338 339endif() 340 341endif() 342 343 344if (CONFIG_USE_device_LPC845_system) 345# Add set(CONFIG_USE_device_LPC845_system true) in config.cmake to use this component 346 347message("device_LPC845_system component is included from ${CMAKE_CURRENT_LIST_FILE}.") 348 349if(CONFIG_USE_device_LPC845_CMSIS) 350 351target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 352 ${CMAKE_CURRENT_LIST_DIR}/./system_LPC845.c 353) 354 355target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 356 ${CMAKE_CURRENT_LIST_DIR}/./. 357) 358 359else() 360 361message(SEND_ERROR "device_LPC845_system.LPC845 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 362 363endif() 364 365endif() 366 367 368if (CONFIG_USE_utility_str) 369# Add set(CONFIG_USE_utility_str true) in config.cmake to use this component 370 371message("utility_str component is included from ${CMAKE_CURRENT_LIST_FILE}.") 372 373if(CONFIG_USE_driver_common) 374 375target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 376 ${CMAKE_CURRENT_LIST_DIR}/../../utilities/str/fsl_str.c 377) 378 379target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 380 ${CMAKE_CURRENT_LIST_DIR}/../../utilities/str 381) 382 383else() 384 385message(SEND_ERROR "utility_str.LPC845 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 386 387endif() 388 389endif() 390 391 392if (CONFIG_USE_component_button) 393# Add set(CONFIG_USE_component_button true) in config.cmake to use this component 394 395message("component_button component is included from ${CMAKE_CURRENT_LIST_FILE}.") 396 397if(CONFIG_USE_driver_common AND CONFIG_USE_component_timer_manager AND (CONFIG_USE_component_lpc_gpio_adapter)) 398 399target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 400 ${CMAKE_CURRENT_LIST_DIR}/../../components/button/fsl_component_button.c 401) 402 403target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 404 ${CMAKE_CURRENT_LIST_DIR}/../../components/button/. 405) 406 407else() 408 409message(SEND_ERROR "component_button.LPC845 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 410 411endif() 412 413endif() 414 415 416if (CONFIG_USE_component_lpc_crc_adapter) 417# Add set(CONFIG_USE_component_lpc_crc_adapter true) in config.cmake to use this component 418 419message("component_lpc_crc_adapter component is included from ${CMAKE_CURRENT_LIST_FILE}.") 420 421if(CONFIG_USE_driver_common AND CONFIG_USE_driver_lpc_crc) 422 423target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 424 ${CMAKE_CURRENT_LIST_DIR}/../../components/crc/fsl_adapter_lpc_crc.c 425) 426 427target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 428 ${CMAKE_CURRENT_LIST_DIR}/../../components/crc/. 429) 430 431else() 432 433message(SEND_ERROR "component_lpc_crc_adapter.LPC845 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 434 435endif() 436 437endif() 438 439 440if (CONFIG_USE_component_software_crc_adapter) 441# Add set(CONFIG_USE_component_software_crc_adapter true) in config.cmake to use this component 442 443message("component_software_crc_adapter component is included from ${CMAKE_CURRENT_LIST_FILE}.") 444 445if(CONFIG_USE_driver_common) 446 447target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 448 ${CMAKE_CURRENT_LIST_DIR}/../../components/crc/fsl_adapter_software_crc.c 449) 450 451target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 452 ${CMAKE_CURRENT_LIST_DIR}/../../components/crc/. 453) 454 455else() 456 457message(SEND_ERROR "component_software_crc_adapter.LPC845 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 458 459endif() 460 461endif() 462 463 464if (CONFIG_USE_component_lpc_i2c_adapter) 465# Add set(CONFIG_USE_component_lpc_i2c_adapter true) in config.cmake to use this component 466 467message("component_lpc_i2c_adapter component is included from ${CMAKE_CURRENT_LIST_FILE}.") 468 469if(CONFIG_USE_driver_common AND CONFIG_USE_driver_lpc_i2c) 470 471target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 472 ${CMAKE_CURRENT_LIST_DIR}/../../components/i2c/fsl_adapter_lpc_i2c.c 473) 474 475target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 476 ${CMAKE_CURRENT_LIST_DIR}/../../components/i2c/. 477) 478 479else() 480 481message(SEND_ERROR "component_lpc_i2c_adapter.LPC845 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 482 483endif() 484 485endif() 486 487 488if (CONFIG_USE_component_led) 489# Add set(CONFIG_USE_component_led true) in config.cmake to use this component 490 491message("component_led component is included from ${CMAKE_CURRENT_LIST_FILE}.") 492 493if(CONFIG_USE_driver_common AND CONFIG_USE_component_timer_manager AND (CONFIG_USE_component_lpc_gpio_adapter)) 494 495target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 496 ${CMAKE_CURRENT_LIST_DIR}/../../components/led/fsl_component_led.c 497) 498 499target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 500 ${CMAKE_CURRENT_LIST_DIR}/../../components/led/. 501) 502 503else() 504 505message(SEND_ERROR "component_led.LPC845 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 506 507endif() 508 509endif() 510 511 512if (CONFIG_USE_component_lists) 513# Add set(CONFIG_USE_component_lists true) in config.cmake to use this component 514 515message("component_lists component is included from ${CMAKE_CURRENT_LIST_FILE}.") 516 517if(CONFIG_USE_driver_common) 518 519target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 520 ${CMAKE_CURRENT_LIST_DIR}/../../components/lists/fsl_component_generic_list.c 521) 522 523target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 524 ${CMAKE_CURRENT_LIST_DIR}/../../components/lists/. 525) 526 527else() 528 529message(SEND_ERROR "component_lists.LPC845 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 530 531endif() 532 533endif() 534 535 536if (CONFIG_USE_component_mem_manager) 537# Add set(CONFIG_USE_component_mem_manager true) in config.cmake to use this component 538 539message("component_mem_manager component is included from ${CMAKE_CURRENT_LIST_FILE}.") 540 541if(CONFIG_USE_driver_common AND CONFIG_USE_component_lists) 542 543target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 544 ${CMAKE_CURRENT_LIST_DIR}/../../components/mem_manager/fsl_component_mem_manager.c 545) 546 547target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 548 ${CMAKE_CURRENT_LIST_DIR}/../../components/mem_manager/. 549) 550 551else() 552 553message(SEND_ERROR "component_mem_manager.LPC845 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 554 555endif() 556 557endif() 558 559 560if (CONFIG_USE_component_mem_manager_light) 561# Add set(CONFIG_USE_component_mem_manager_light true) in config.cmake to use this component 562 563message("component_mem_manager_light component is included from ${CMAKE_CURRENT_LIST_FILE}.") 564 565if(CONFIG_USE_driver_common AND CONFIG_USE_component_lists) 566 567target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 568 ${CMAKE_CURRENT_LIST_DIR}/../../components/mem_manager/fsl_component_mem_manager_light.c 569) 570 571target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 572 ${CMAKE_CURRENT_LIST_DIR}/../../components/mem_manager/. 573) 574 575else() 576 577message(SEND_ERROR "component_mem_manager_light.LPC845 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 578 579endif() 580 581endif() 582 583 584if (CONFIG_USE_component_panic) 585# Add set(CONFIG_USE_component_panic true) in config.cmake to use this component 586 587message("component_panic component is included from ${CMAKE_CURRENT_LIST_FILE}.") 588 589if(CONFIG_USE_driver_common) 590 591target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 592 ${CMAKE_CURRENT_LIST_DIR}/../../components/panic/fsl_component_panic.c 593) 594 595target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 596 ${CMAKE_CURRENT_LIST_DIR}/../../components/panic/. 597) 598 599else() 600 601message(SEND_ERROR "component_panic.LPC845 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 602 603endif() 604 605endif() 606 607 608if (CONFIG_USE_component_pwm_ctimer_adapter) 609# Add set(CONFIG_USE_component_pwm_ctimer_adapter true) in config.cmake to use this component 610 611message("component_pwm_ctimer_adapter component is included from ${CMAKE_CURRENT_LIST_FILE}.") 612 613if(CONFIG_USE_driver_common AND CONFIG_USE_driver_ctimer) 614 615target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 616 ${CMAKE_CURRENT_LIST_DIR}/../../components/pwm/fsl_adapter_pwm_ctimer.c 617) 618 619target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 620 ${CMAKE_CURRENT_LIST_DIR}/../../components/pwm/. 621) 622 623else() 624 625message(SEND_ERROR "component_pwm_ctimer_adapter.LPC845 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 626 627endif() 628 629endif() 630 631 632if (CONFIG_USE_component_reset_adapter) 633# Add set(CONFIG_USE_component_reset_adapter true) in config.cmake to use this component 634 635message("component_reset_adapter component is included from ${CMAKE_CURRENT_LIST_FILE}.") 636 637if(CONFIG_USE_driver_common) 638 639target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 640 ${CMAKE_CURRENT_LIST_DIR}/../../components/reset/fsl_adapter_reset.c 641) 642 643target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 644 ${CMAKE_CURRENT_LIST_DIR}/../../components/reset/. 645) 646 647else() 648 649message(SEND_ERROR "component_reset_adapter.LPC845 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 650 651endif() 652 653endif() 654 655 656if (CONFIG_USE_component_software_rng_adapter) 657# Add set(CONFIG_USE_component_software_rng_adapter true) in config.cmake to use this component 658 659message("component_software_rng_adapter component is included from ${CMAKE_CURRENT_LIST_FILE}.") 660 661if(CONFIG_USE_driver_common) 662 663target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 664 ${CMAKE_CURRENT_LIST_DIR}/../../components/rng/fsl_adapter_software_rng.c 665) 666 667target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 668 ${CMAKE_CURRENT_LIST_DIR}/../../components/rng/. 669) 670 671else() 672 673message(SEND_ERROR "component_software_rng_adapter.LPC845 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 674 675endif() 676 677endif() 678 679 680if (CONFIG_USE_component_ctimer_adapter) 681# Add set(CONFIG_USE_component_ctimer_adapter true) in config.cmake to use this component 682 683message("component_ctimer_adapter component is included from ${CMAKE_CURRENT_LIST_FILE}.") 684 685if(CONFIG_USE_driver_common AND CONFIG_USE_driver_ctimer) 686 687target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 688 ${CMAKE_CURRENT_LIST_DIR}/../../components/timer/fsl_adapter_ctimer.c 689) 690 691target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 692 ${CMAKE_CURRENT_LIST_DIR}/../../components/timer/. 693) 694 695if(CONFIG_USE_COMPONENT_CONFIGURATION) 696 message("===>Import configuration from ${CMAKE_CURRENT_LIST_FILE}") 697 698 target_compile_definitions(${MCUX_SDK_PROJECT_NAME} PUBLIC 699 -DTIMER_PORT_TYPE_CTIMER=1 700 ) 701 702endif() 703 704else() 705 706message(SEND_ERROR "component_ctimer_adapter.LPC845 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 707 708endif() 709 710endif() 711 712 713if (CONFIG_USE_component_mrt_adapter) 714# Add set(CONFIG_USE_component_mrt_adapter true) in config.cmake to use this component 715 716message("component_mrt_adapter component is included from ${CMAKE_CURRENT_LIST_FILE}.") 717 718if(CONFIG_USE_driver_common AND CONFIG_USE_driver_mrt) 719 720target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 721 ${CMAKE_CURRENT_LIST_DIR}/../../components/timer/fsl_adapter_mrt.c 722) 723 724target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 725 ${CMAKE_CURRENT_LIST_DIR}/../../components/timer/. 726) 727 728if(CONFIG_USE_COMPONENT_CONFIGURATION) 729 message("===>Import configuration from ${CMAKE_CURRENT_LIST_FILE}") 730 731 target_compile_definitions(${MCUX_SDK_PROJECT_NAME} PUBLIC 732 -DTIMER_PORT_TYPE_MRT=1 733 ) 734 735endif() 736 737else() 738 739message(SEND_ERROR "component_mrt_adapter.LPC845 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 740 741endif() 742 743endif() 744 745 746if (CONFIG_USE_component_timer_manager) 747# Add set(CONFIG_USE_component_timer_manager true) in config.cmake to use this component 748 749message("component_timer_manager component is included from ${CMAKE_CURRENT_LIST_FILE}.") 750 751if(CONFIG_USE_driver_common AND CONFIG_USE_component_lists AND (CONFIG_USE_component_ctimer_adapter OR CONFIG_USE_component_mrt_adapter)) 752 753target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 754 ${CMAKE_CURRENT_LIST_DIR}/../../components/timer_manager/fsl_component_timer_manager.c 755) 756 757target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 758 ${CMAKE_CURRENT_LIST_DIR}/../../components/timer_manager/. 759) 760 761else() 762 763message(SEND_ERROR "component_timer_manager.LPC845 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 764 765endif() 766 767endif() 768 769 770if (CONFIG_USE_component_miniusart_adapter) 771# Add set(CONFIG_USE_component_miniusart_adapter true) in config.cmake to use this component 772 773message("component_miniusart_adapter component is included from ${CMAKE_CURRENT_LIST_FILE}.") 774 775if(CONFIG_USE_driver_common AND CONFIG_USE_driver_lpc_miniusart) 776 777target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 778 ${CMAKE_CURRENT_LIST_DIR}/../../components/uart/fsl_adapter_miniusart.c 779) 780 781target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 782 ${CMAKE_CURRENT_LIST_DIR}/../../components/uart/. 783) 784 785else() 786 787message(SEND_ERROR "component_miniusart_adapter.LPC845 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 788 789endif() 790 791endif() 792 793 794if (CONFIG_USE_driver_capt) 795# Add set(CONFIG_USE_driver_capt true) in config.cmake to use this component 796 797message("driver_capt component is included from ${CMAKE_CURRENT_LIST_FILE}.") 798 799if((CONFIG_DEVICE_ID STREQUAL LPC845) AND CONFIG_USE_driver_common) 800 801target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 802 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/capt/fsl_capt.c 803) 804 805target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 806 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/capt/. 807) 808 809else() 810 811message(SEND_ERROR "driver_capt.LPC845 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 812 813endif() 814 815endif() 816 817 818if (CONFIG_USE_driver_lpc_crc) 819# Add set(CONFIG_USE_driver_lpc_crc true) in config.cmake to use this component 820 821message("driver_lpc_crc component is included from ${CMAKE_CURRENT_LIST_FILE}.") 822 823if((CONFIG_DEVICE_ID STREQUAL LPC845) AND CONFIG_USE_driver_common) 824 825target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 826 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/lpc_crc/fsl_crc.c 827) 828 829target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 830 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/lpc_crc/. 831) 832 833else() 834 835message(SEND_ERROR "driver_lpc_crc.LPC845 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 836 837endif() 838 839endif() 840 841 842if (CONFIG_USE_driver_ctimer) 843# Add set(CONFIG_USE_driver_ctimer true) in config.cmake to use this component 844 845message("driver_ctimer component is included from ${CMAKE_CURRENT_LIST_FILE}.") 846 847if((CONFIG_DEVICE_ID STREQUAL LPC845) AND CONFIG_USE_driver_common) 848 849target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 850 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/ctimer/fsl_ctimer.c 851) 852 853target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 854 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/ctimer/. 855) 856 857else() 858 859message(SEND_ERROR "driver_ctimer.LPC845 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 860 861endif() 862 863endif() 864 865 866if (CONFIG_USE_driver_iap) 867# Add set(CONFIG_USE_driver_iap true) in config.cmake to use this component 868 869message("driver_iap component is included from ${CMAKE_CURRENT_LIST_FILE}.") 870 871if((CONFIG_DEVICE_ID STREQUAL LPC845) AND CONFIG_USE_driver_common) 872 873target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 874 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/iap/fsl_iap.c 875) 876 877target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 878 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/iap/. 879) 880 881else() 882 883message(SEND_ERROR "driver_iap.LPC845 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 884 885endif() 886 887endif() 888 889 890if (CONFIG_USE_driver_inputmux) 891# Add set(CONFIG_USE_driver_inputmux true) in config.cmake to use this component 892 893message("driver_inputmux component is included from ${CMAKE_CURRENT_LIST_FILE}.") 894 895if((CONFIG_DEVICE_ID STREQUAL LPC845) AND CONFIG_USE_driver_common AND CONFIG_USE_driver_inputmux_connections) 896 897target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 898 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/inputmux/fsl_inputmux.c 899) 900 901target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 902 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/inputmux/. 903) 904 905else() 906 907message(SEND_ERROR "driver_inputmux.LPC845 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 908 909endif() 910 911endif() 912 913 914if (CONFIG_USE_driver_lpc_acomp) 915# Add set(CONFIG_USE_driver_lpc_acomp true) in config.cmake to use this component 916 917message("driver_lpc_acomp component is included from ${CMAKE_CURRENT_LIST_FILE}.") 918 919if((CONFIG_DEVICE_ID STREQUAL LPC845) AND CONFIG_USE_driver_common) 920 921target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 922 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/lpc_acomp/fsl_acomp.c 923) 924 925target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 926 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/lpc_acomp/. 927) 928 929else() 930 931message(SEND_ERROR "driver_lpc_acomp.LPC845 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 932 933endif() 934 935endif() 936 937 938if (CONFIG_USE_driver_lpc_adc) 939# Add set(CONFIG_USE_driver_lpc_adc true) in config.cmake to use this component 940 941message("driver_lpc_adc component is included from ${CMAKE_CURRENT_LIST_FILE}.") 942 943if((CONFIG_DEVICE_ID STREQUAL LPC845) AND CONFIG_USE_driver_common) 944 945target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 946 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/lpc_adc/fsl_adc.c 947) 948 949target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 950 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/lpc_adc/. 951) 952 953else() 954 955message(SEND_ERROR "driver_lpc_adc.LPC845 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 956 957endif() 958 959endif() 960 961 962if (CONFIG_USE_driver_lpc_dac) 963# Add set(CONFIG_USE_driver_lpc_dac true) in config.cmake to use this component 964 965message("driver_lpc_dac component is included from ${CMAKE_CURRENT_LIST_FILE}.") 966 967if((CONFIG_DEVICE_ID STREQUAL LPC845) AND CONFIG_USE_driver_common) 968 969target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 970 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/lpc_dac/fsl_dac.c 971) 972 973target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 974 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/lpc_dac/. 975) 976 977else() 978 979message(SEND_ERROR "driver_lpc_dac.LPC845 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 980 981endif() 982 983endif() 984 985 986if (CONFIG_USE_driver_lpc_dma) 987# Add set(CONFIG_USE_driver_lpc_dma true) in config.cmake to use this component 988 989message("driver_lpc_dma component is included from ${CMAKE_CURRENT_LIST_FILE}.") 990 991if((CONFIG_DEVICE_ID STREQUAL LPC845) AND CONFIG_USE_driver_common) 992 993target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 994 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/lpc_dma/fsl_dma.c 995) 996 997target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 998 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/lpc_dma/. 999) 1000 1001else() 1002 1003message(SEND_ERROR "driver_lpc_dma.LPC845 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 1004 1005endif() 1006 1007endif() 1008 1009 1010if (CONFIG_USE_driver_lpc_gpio) 1011# Add set(CONFIG_USE_driver_lpc_gpio true) in config.cmake to use this component 1012 1013message("driver_lpc_gpio component is included from ${CMAKE_CURRENT_LIST_FILE}.") 1014 1015if((CONFIG_DEVICE_ID STREQUAL LPC845) AND CONFIG_USE_driver_common) 1016 1017target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 1018 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/lpc_gpio/fsl_gpio.c 1019) 1020 1021target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 1022 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/lpc_gpio/. 1023) 1024 1025else() 1026 1027message(SEND_ERROR "driver_lpc_gpio.LPC845 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 1028 1029endif() 1030 1031endif() 1032 1033 1034if (CONFIG_USE_driver_lpc_i2c) 1035# Add set(CONFIG_USE_driver_lpc_i2c true) in config.cmake to use this component 1036 1037message("driver_lpc_i2c component is included from ${CMAKE_CURRENT_LIST_FILE}.") 1038 1039if(CONFIG_USE_driver_common AND (CONFIG_DEVICE_ID STREQUAL LPC845)) 1040 1041target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 1042 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/lpc_i2c/fsl_i2c.c 1043) 1044 1045target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 1046 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/lpc_i2c/. 1047) 1048 1049else() 1050 1051message(SEND_ERROR "driver_lpc_i2c.LPC845 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 1052 1053endif() 1054 1055endif() 1056 1057 1058if (CONFIG_USE_driver_lpc_iocon_lite) 1059# Add set(CONFIG_USE_driver_lpc_iocon_lite true) in config.cmake to use this component 1060 1061message("driver_lpc_iocon_lite component is included from ${CMAKE_CURRENT_LIST_FILE}.") 1062 1063if((CONFIG_DEVICE_ID STREQUAL LPC845) AND CONFIG_USE_driver_common) 1064 1065target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 1066 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/lpc_iocon_lite/. 1067) 1068 1069else() 1070 1071message(SEND_ERROR "driver_lpc_iocon_lite.LPC845 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 1072 1073endif() 1074 1075endif() 1076 1077 1078if (CONFIG_USE_driver_lpc_minispi) 1079# Add set(CONFIG_USE_driver_lpc_minispi true) in config.cmake to use this component 1080 1081message("driver_lpc_minispi component is included from ${CMAKE_CURRENT_LIST_FILE}.") 1082 1083if((CONFIG_DEVICE_ID STREQUAL LPC845) AND CONFIG_USE_driver_common) 1084 1085target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 1086 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/lpc_minispi/fsl_spi.c 1087) 1088 1089target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 1090 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/lpc_minispi/. 1091) 1092 1093else() 1094 1095message(SEND_ERROR "driver_lpc_minispi.LPC845 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 1096 1097endif() 1098 1099endif() 1100 1101 1102if (CONFIG_USE_driver_lpc_miniusart) 1103# Add set(CONFIG_USE_driver_lpc_miniusart true) in config.cmake to use this component 1104 1105message("driver_lpc_miniusart component is included from ${CMAKE_CURRENT_LIST_FILE}.") 1106 1107if((CONFIG_DEVICE_ID STREQUAL LPC845) AND CONFIG_USE_driver_common) 1108 1109target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 1110 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/lpc_miniusart/fsl_usart.c 1111) 1112 1113target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 1114 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/lpc_miniusart/. 1115) 1116 1117else() 1118 1119message(SEND_ERROR "driver_lpc_miniusart.LPC845 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 1120 1121endif() 1122 1123endif() 1124 1125 1126if (CONFIG_USE_driver_mrt) 1127# Add set(CONFIG_USE_driver_mrt true) in config.cmake to use this component 1128 1129message("driver_mrt component is included from ${CMAKE_CURRENT_LIST_FILE}.") 1130 1131if((CONFIG_DEVICE_ID STREQUAL LPC845) AND CONFIG_USE_driver_common) 1132 1133target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 1134 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/mrt/fsl_mrt.c 1135) 1136 1137target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 1138 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/mrt/. 1139) 1140 1141else() 1142 1143message(SEND_ERROR "driver_mrt.LPC845 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 1144 1145endif() 1146 1147endif() 1148 1149 1150if (CONFIG_USE_driver_pint) 1151# Add set(CONFIG_USE_driver_pint true) in config.cmake to use this component 1152 1153message("driver_pint component is included from ${CMAKE_CURRENT_LIST_FILE}.") 1154 1155if((CONFIG_DEVICE_ID STREQUAL LPC845) AND CONFIG_USE_driver_common) 1156 1157target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 1158 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/pint/fsl_pint.c 1159) 1160 1161target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 1162 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/pint/. 1163) 1164 1165else() 1166 1167message(SEND_ERROR "driver_pint.LPC845 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 1168 1169endif() 1170 1171endif() 1172 1173 1174if (CONFIG_USE_driver_reset) 1175# Add set(CONFIG_USE_driver_reset true) in config.cmake to use this component 1176 1177message("driver_reset component is included from ${CMAKE_CURRENT_LIST_FILE}.") 1178 1179if(CONFIG_USE_driver_common AND (CONFIG_DEVICE_ID STREQUAL LPC845)) 1180 1181target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 1182 ${CMAKE_CURRENT_LIST_DIR}/drivers/fsl_reset.c 1183) 1184 1185target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 1186 ${CMAKE_CURRENT_LIST_DIR}/drivers/. 1187) 1188 1189else() 1190 1191message(SEND_ERROR "driver_reset.LPC845 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 1192 1193endif() 1194 1195endif() 1196 1197 1198if (CONFIG_USE_driver_sctimer) 1199# Add set(CONFIG_USE_driver_sctimer true) in config.cmake to use this component 1200 1201message("driver_sctimer component is included from ${CMAKE_CURRENT_LIST_FILE}.") 1202 1203if((CONFIG_DEVICE_ID STREQUAL LPC845) AND CONFIG_USE_driver_common) 1204 1205target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 1206 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/sctimer/fsl_sctimer.c 1207) 1208 1209target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 1210 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/sctimer/. 1211) 1212 1213else() 1214 1215message(SEND_ERROR "driver_sctimer.LPC845 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 1216 1217endif() 1218 1219endif() 1220 1221 1222if (CONFIG_USE_driver_swm) 1223# Add set(CONFIG_USE_driver_swm true) in config.cmake to use this component 1224 1225message("driver_swm component is included from ${CMAKE_CURRENT_LIST_FILE}.") 1226 1227if((CONFIG_DEVICE_ID STREQUAL LPC845) AND CONFIG_USE_driver_common AND CONFIG_USE_driver_swm_connections) 1228 1229target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 1230 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/swm/fsl_swm.c 1231) 1232 1233target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 1234 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/swm/. 1235) 1236 1237else() 1238 1239message(SEND_ERROR "driver_swm.LPC845 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 1240 1241endif() 1242 1243endif() 1244 1245 1246if (CONFIG_USE_driver_syscon) 1247# Add set(CONFIG_USE_driver_syscon true) in config.cmake to use this component 1248 1249message("driver_syscon component is included from ${CMAKE_CURRENT_LIST_FILE}.") 1250 1251if((CONFIG_DEVICE_ID STREQUAL LPC845) AND CONFIG_USE_driver_common AND CONFIG_USE_driver_syscon_connections) 1252 1253target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 1254 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/syscon/fsl_syscon.c 1255) 1256 1257target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 1258 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/syscon/. 1259) 1260 1261else() 1262 1263message(SEND_ERROR "driver_syscon.LPC845 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 1264 1265endif() 1266 1267endif() 1268 1269 1270if (CONFIG_USE_driver_wkt) 1271# Add set(CONFIG_USE_driver_wkt true) in config.cmake to use this component 1272 1273message("driver_wkt component is included from ${CMAKE_CURRENT_LIST_FILE}.") 1274 1275if((CONFIG_DEVICE_ID STREQUAL LPC845) AND CONFIG_USE_driver_common) 1276 1277target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 1278 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/wkt/fsl_wkt.c 1279) 1280 1281target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 1282 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/wkt/. 1283) 1284 1285else() 1286 1287message(SEND_ERROR "driver_wkt.LPC845 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 1288 1289endif() 1290 1291endif() 1292 1293 1294if (CONFIG_USE_driver_wwdt) 1295# Add set(CONFIG_USE_driver_wwdt true) in config.cmake to use this component 1296 1297message("driver_wwdt component is included from ${CMAKE_CURRENT_LIST_FILE}.") 1298 1299if((CONFIG_DEVICE_ID STREQUAL LPC845) AND CONFIG_USE_driver_common) 1300 1301target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 1302 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/wwdt/fsl_wwdt.c 1303) 1304 1305target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 1306 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/wwdt/. 1307) 1308 1309else() 1310 1311message(SEND_ERROR "driver_wwdt.LPC845 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") 1312 1313endif() 1314 1315endif() 1316 1317