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