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