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