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