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