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