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