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