1include_guard(GLOBAL)
2
3
4if (CONFIG_USE_middleware_baremetal)
5# Add set(CONFIG_USE_middleware_baremetal true) in config.cmake to use this component
6
7message("middleware_baremetal component is included from ${CMAKE_CURRENT_LIST_FILE}.")
8
9if(CONFIG_USE_COMPONENT_CONFIGURATION)
10  message("===>Import configuration from ${CMAKE_CURRENT_LIST_FILE}")
11
12  target_compile_definitions(${MCUX_SDK_PROJECT_NAME} PUBLIC
13    -DSDK_OS_BAREMETAL
14  )
15
16endif()
17
18
19endif()
20
21
22if (CONFIG_USE_utilities_misc_utilities)
23# Add set(CONFIG_USE_utilities_misc_utilities true) in config.cmake to use this component
24
25message("utilities_misc_utilities component is included from ${CMAKE_CURRENT_LIST_FILE}.")
26
27if(CONFIG_TOOLCHAIN STREQUAL armgcc)
28  target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
29      ${CMAKE_CURRENT_LIST_DIR}/../../utilities/misc_utilities/fsl_sbrk.c
30      ${CMAKE_CURRENT_LIST_DIR}/../../utilities/misc_utilities/fsl_syscall_stub.c
31  )
32endif()
33
34if(CONFIG_CORE STREQUAL cm7f AND (CONFIG_TOOLCHAIN STREQUAL armgcc OR CONFIG_TOOLCHAIN STREQUAL mcux))
35  target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
36      ${CMAKE_CURRENT_LIST_DIR}/../../utilities/misc_utilities/fsl_memcpy.S
37  )
38endif()
39
40
41endif()
42
43
44if (CONFIG_USE_driver_nand_flash-common)
45# Add set(CONFIG_USE_driver_nand_flash-common true) in config.cmake to use this component
46
47message("driver_nand_flash-common component is included from ${CMAKE_CURRENT_LIST_FILE}.")
48
49target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
50  ${CMAKE_CURRENT_LIST_DIR}/../../components/flash/nand/.
51)
52
53
54endif()
55
56
57if (CONFIG_USE_driver_nor_flash-common)
58# Add set(CONFIG_USE_driver_nor_flash-common true) in config.cmake to use this component
59
60message("driver_nor_flash-common component is included from ${CMAKE_CURRENT_LIST_FILE}.")
61
62target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
63  ${CMAKE_CURRENT_LIST_DIR}/../../components/flash/nor/.
64)
65
66
67endif()
68
69
70if (CONFIG_USE_component_mflash_common)
71# Add set(CONFIG_USE_component_mflash_common true) in config.cmake to use this component
72
73message("component_mflash_common component is included from ${CMAKE_CURRENT_LIST_FILE}.")
74
75target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
76  ${CMAKE_CURRENT_LIST_DIR}/../../components/flash/mflash/.
77)
78
79
80endif()
81
82
83if (CONFIG_USE_driver_mx25r_flash)
84# Add set(CONFIG_USE_driver_mx25r_flash true) in config.cmake to use this component
85
86message("driver_mx25r_flash component is included from ${CMAKE_CURRENT_LIST_FILE}.")
87
88target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
89  ${CMAKE_CURRENT_LIST_DIR}/../../components/mx25r_flash/mx25r_flash.c
90)
91
92target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
93  ${CMAKE_CURRENT_LIST_DIR}/../../components/mx25r_flash/.
94)
95
96
97endif()
98
99
100if (CONFIG_USE_driver_pf1550)
101# Add set(CONFIG_USE_driver_pf1550 true) in config.cmake to use this component
102
103message("driver_pf1550 component is included from ${CMAKE_CURRENT_LIST_FILE}.")
104
105target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
106  ${CMAKE_CURRENT_LIST_DIR}/../../components/pf1550/fsl_pf1550.c
107  ${CMAKE_CURRENT_LIST_DIR}/../../components/pf1550/fsl_pf1550_charger.c
108)
109
110target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
111  ${CMAKE_CURRENT_LIST_DIR}/../../components/pf1550/.
112)
113
114
115endif()
116
117
118if (CONFIG_USE_driver_pf3000)
119# Add set(CONFIG_USE_driver_pf3000 true) in config.cmake to use this component
120
121message("driver_pf3000 component is included from ${CMAKE_CURRENT_LIST_FILE}.")
122
123target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
124  ${CMAKE_CURRENT_LIST_DIR}/../../components/pf3000/fsl_pf3000.c
125)
126
127target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
128  ${CMAKE_CURRENT_LIST_DIR}/../../components/pf3000/.
129)
130
131
132endif()
133
134
135if (CONFIG_USE_driver_phy-common)
136# Add set(CONFIG_USE_driver_phy-common true) in config.cmake to use this component
137
138message("driver_phy-common component is included from ${CMAKE_CURRENT_LIST_FILE}.")
139
140target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
141  ${CMAKE_CURRENT_LIST_DIR}/../../components/phy/.
142)
143
144
145endif()
146
147
148if (CONFIG_USE_component_wifi_bt_module_tx_pwr_limits)
149# Add set(CONFIG_USE_component_wifi_bt_module_tx_pwr_limits true) in config.cmake to use this component
150
151message("component_wifi_bt_module_tx_pwr_limits component is included from ${CMAKE_CURRENT_LIST_FILE}.")
152
153target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
154  ${CMAKE_CURRENT_LIST_DIR}/../../components/wifi_bt_module/AzureWave/tx_pwr_limits
155  ${CMAKE_CURRENT_LIST_DIR}/../../components/wifi_bt_module/Murata/tx_pwr_limits
156)
157
158
159endif()
160
161
162if (CONFIG_USE_driver_rtt_template)
163# Add set(CONFIG_USE_driver_rtt_template true) in config.cmake to use this component
164
165message("driver_rtt_template component is included from ${CMAKE_CURRENT_LIST_FILE}.")
166
167add_config_file(${CMAKE_CURRENT_LIST_DIR}/../../components/rtt/template/SEGGER_RTT_Conf.h ${CMAKE_CURRENT_LIST_DIR}/../../components/rtt/template driver_rtt_template.MIMXRT1042)
168
169
170endif()
171
172
173if (CONFIG_USE_DEVICES_Project_Template_MIMXRT1042)
174# Add set(CONFIG_USE_DEVICES_Project_Template_MIMXRT1042 true) in config.cmake to use this component
175
176message("DEVICES_Project_Template_MIMXRT1042 component is included from ${CMAKE_CURRENT_LIST_FILE}.")
177
178if(CONFIG_USE_component_lpuart_adapter AND (CONFIG_DEVICE_ID STREQUAL MIMXRT1042xxxxB) AND CONFIG_USE_device_MIMXRT1042_startup AND CONFIG_USE_driver_clock AND CONFIG_USE_driver_common AND CONFIG_USE_driver_igpio AND CONFIG_USE_driver_iomuxc AND CONFIG_USE_driver_lpuart AND CONFIG_USE_driver_nic301 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)))
179
180add_config_file(${CMAKE_CURRENT_LIST_DIR}/project_template/board.h "" DEVICES_Project_Template_MIMXRT1042.MIMXRT1042)
181add_config_file(${CMAKE_CURRENT_LIST_DIR}/project_template/board.c "" DEVICES_Project_Template_MIMXRT1042.MIMXRT1042)
182add_config_file(${CMAKE_CURRENT_LIST_DIR}/project_template/clock_config.h "" DEVICES_Project_Template_MIMXRT1042.MIMXRT1042)
183add_config_file(${CMAKE_CURRENT_LIST_DIR}/project_template/clock_config.c "" DEVICES_Project_Template_MIMXRT1042.MIMXRT1042)
184add_config_file(${CMAKE_CURRENT_LIST_DIR}/project_template/pin_mux.h "" DEVICES_Project_Template_MIMXRT1042.MIMXRT1042)
185add_config_file(${CMAKE_CURRENT_LIST_DIR}/project_template/pin_mux.c "" DEVICES_Project_Template_MIMXRT1042.MIMXRT1042)
186add_config_file(${CMAKE_CURRENT_LIST_DIR}/project_template/peripherals.h "" DEVICES_Project_Template_MIMXRT1042.MIMXRT1042)
187add_config_file(${CMAKE_CURRENT_LIST_DIR}/project_template/peripherals.c "" DEVICES_Project_Template_MIMXRT1042.MIMXRT1042)
188
189target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
190  ${CMAKE_CURRENT_LIST_DIR}/project_template/.
191)
192
193else()
194
195message(SEND_ERROR "DEVICES_Project_Template_MIMXRT1042.MIMXRT1042 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
196
197endif()
198
199endif()
200
201
202if (CONFIG_USE_device_MIMXRT1042_startup)
203# Add set(CONFIG_USE_device_MIMXRT1042_startup true) in config.cmake to use this component
204
205message("device_MIMXRT1042_startup component is included from ${CMAKE_CURRENT_LIST_FILE}.")
206
207if(CONFIG_USE_device_MIMXRT1042_system)
208
209if(CONFIG_TOOLCHAIN STREQUAL armgcc)
210  target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
211      ${CMAKE_CURRENT_LIST_DIR}/./gcc/startup_MIMXRT1042.S
212  )
213endif()
214
215if(CONFIG_TOOLCHAIN STREQUAL mcux)
216  target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
217      ${CMAKE_CURRENT_LIST_DIR}/./mcuxpresso/startup_mimxrt1042.c
218      ${CMAKE_CURRENT_LIST_DIR}/./mcuxpresso/startup_mimxrt1042.cpp
219  )
220endif()
221
222else()
223
224message(SEND_ERROR "device_MIMXRT1042_startup.MIMXRT1042 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
225
226endif()
227
228endif()
229
230
231if (CONFIG_USE_device_MIMXRT1042_CMSIS)
232# Add set(CONFIG_USE_device_MIMXRT1042_CMSIS true) in config.cmake to use this component
233
234message("device_MIMXRT1042_CMSIS component is included from ${CMAKE_CURRENT_LIST_FILE}.")
235
236if(CONFIG_USE_CMSIS_Include_core_cm AND (CONFIG_DEVICE_ID STREQUAL MIMXRT1042xxxxB))
237
238target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
239  ${CMAKE_CURRENT_LIST_DIR}/./.
240)
241
242else()
243
244message(SEND_ERROR "device_MIMXRT1042_CMSIS.MIMXRT1042 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
245
246endif()
247
248endif()
249
250
251if (CONFIG_USE_RTE_Device)
252# Add set(CONFIG_USE_RTE_Device true) in config.cmake to use this component
253
254message("RTE_Device component is included from ${CMAKE_CURRENT_LIST_FILE}.")
255
256if((CONFIG_DEVICE_ID STREQUAL MIMXRT1042xxxxB) AND CONFIG_USE_driver_edma)
257
258add_config_file(${CMAKE_CURRENT_LIST_DIR}/template/RTE_Device.h "" RTE_Device.MIMXRT1042)
259
260target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
261  ${CMAKE_CURRENT_LIST_DIR}/template/.
262)
263
264else()
265
266message(SEND_ERROR "RTE_Device.MIMXRT1042 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
267
268endif()
269
270endif()
271
272
273if (CONFIG_USE_driver_sai_edma)
274# Add set(CONFIG_USE_driver_sai_edma true) in config.cmake to use this component
275
276message("driver_sai_edma component is included from ${CMAKE_CURRENT_LIST_FILE}.")
277
278if(CONFIG_USE_driver_edma AND CONFIG_USE_driver_sai AND (CONFIG_DEVICE_ID STREQUAL MIMXRT1042xxxxB))
279
280target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
281  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/sai/fsl_sai_edma.c
282)
283
284target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
285  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/sai/.
286)
287
288else()
289
290message(SEND_ERROR "driver_sai_edma.MIMXRT1042 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
291
292endif()
293
294endif()
295
296
297if (CONFIG_USE_driver_lpi2c_edma)
298# Add set(CONFIG_USE_driver_lpi2c_edma true) in config.cmake to use this component
299
300message("driver_lpi2c_edma component is included from ${CMAKE_CURRENT_LIST_FILE}.")
301
302if(CONFIG_USE_driver_edma AND CONFIG_USE_driver_lpi2c AND (CONFIG_DEVICE_ID STREQUAL MIMXRT1042xxxxB))
303
304target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
305  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/lpi2c/fsl_lpi2c_edma.c
306)
307
308target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
309  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/lpi2c/.
310)
311
312else()
313
314message(SEND_ERROR "driver_lpi2c_edma.MIMXRT1042 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
315
316endif()
317
318endif()
319
320
321if (CONFIG_USE_driver_lpspi_edma)
322# Add set(CONFIG_USE_driver_lpspi_edma true) in config.cmake to use this component
323
324message("driver_lpspi_edma component is included from ${CMAKE_CURRENT_LIST_FILE}.")
325
326if(CONFIG_USE_driver_edma AND CONFIG_USE_driver_lpspi AND (CONFIG_DEVICE_ID STREQUAL MIMXRT1042xxxxB))
327
328target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
329  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/lpspi/fsl_lpspi_edma.c
330)
331
332target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
333  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/lpspi/.
334)
335
336else()
337
338message(SEND_ERROR "driver_lpspi_edma.MIMXRT1042 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
339
340endif()
341
342endif()
343
344
345if (CONFIG_USE_driver_lpuart_edma)
346# Add set(CONFIG_USE_driver_lpuart_edma true) in config.cmake to use this component
347
348message("driver_lpuart_edma component is included from ${CMAKE_CURRENT_LIST_FILE}.")
349
350if(CONFIG_USE_driver_edma AND CONFIG_USE_driver_lpuart AND (CONFIG_DEVICE_ID STREQUAL MIMXRT1042xxxxB))
351
352target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
353  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/lpuart/fsl_lpuart_edma.c
354)
355
356target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
357  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/lpuart/.
358)
359
360else()
361
362message(SEND_ERROR "driver_lpuart_edma.MIMXRT1042 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
363
364endif()
365
366endif()
367
368
369if (CONFIG_USE_driver_iomuxc)
370# Add set(CONFIG_USE_driver_iomuxc true) in config.cmake to use this component
371
372message("driver_iomuxc component is included from ${CMAKE_CURRENT_LIST_FILE}.")
373
374if(CONFIG_USE_driver_common AND (CONFIG_DEVICE_ID STREQUAL MIMXRT1042xxxxB))
375
376target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
377  ${CMAKE_CURRENT_LIST_DIR}/drivers/.
378)
379
380else()
381
382message(SEND_ERROR "driver_iomuxc.MIMXRT1042 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
383
384endif()
385
386endif()
387
388
389if (CONFIG_USE_driver_flexcan_edma)
390# Add set(CONFIG_USE_driver_flexcan_edma true) in config.cmake to use this component
391
392message("driver_flexcan_edma component is included from ${CMAKE_CURRENT_LIST_FILE}.")
393
394if(CONFIG_USE_driver_edma AND CONFIG_USE_driver_flexcan AND (CONFIG_DEVICE_ID STREQUAL MIMXRT1042xxxxB))
395
396target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
397  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/flexcan/fsl_flexcan_edma.c
398)
399
400target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
401  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/flexcan/.
402)
403
404else()
405
406message(SEND_ERROR "driver_flexcan_edma.MIMXRT1042 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
407
408endif()
409
410endif()
411
412
413if (CONFIG_USE_driver_dcp)
414# Add set(CONFIG_USE_driver_dcp true) in config.cmake to use this component
415
416message("driver_dcp component is included from ${CMAKE_CURRENT_LIST_FILE}.")
417
418if(CONFIG_USE_driver_cache_armv7_m7 AND (CONFIG_DEVICE_ID STREQUAL MIMXRT1042xxxxB) AND CONFIG_USE_driver_common)
419
420target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
421  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/dcp/fsl_dcp.c
422)
423
424target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
425  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/dcp/.
426)
427
428else()
429
430message(SEND_ERROR "driver_dcp.MIMXRT1042 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
431
432endif()
433
434endif()
435
436
437if (CONFIG_USE_driver_clock)
438# Add set(CONFIG_USE_driver_clock true) in config.cmake to use this component
439
440message("driver_clock component is included from ${CMAKE_CURRENT_LIST_FILE}.")
441
442if(CONFIG_USE_driver_common)
443
444target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
445  ${CMAKE_CURRENT_LIST_DIR}/drivers/fsl_clock.c
446)
447
448target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
449  ${CMAKE_CURRENT_LIST_DIR}/drivers/.
450)
451
452else()
453
454message(SEND_ERROR "driver_clock.MIMXRT1042 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
455
456endif()
457
458endif()
459
460
461if (CONFIG_USE_component_serial_manager_uart)
462# Add set(CONFIG_USE_component_serial_manager_uart true) in config.cmake to use this component
463
464message("component_serial_manager_uart component is included from ${CMAKE_CURRENT_LIST_FILE}.")
465
466if(CONFIG_USE_component_lpuart_adapter AND CONFIG_USE_component_serial_manager AND (CONFIG_USE_driver_lpuart))
467
468target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
469  ${CMAKE_CURRENT_LIST_DIR}/../../components/serial_manager/fsl_component_serial_port_uart.c
470)
471
472target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
473  ${CMAKE_CURRENT_LIST_DIR}/../../components/serial_manager/.
474)
475
476if(CONFIG_USE_COMPONENT_CONFIGURATION)
477  message("===>Import configuration from ${CMAKE_CURRENT_LIST_FILE}")
478
479  target_compile_definitions(${MCUX_SDK_PROJECT_NAME} PUBLIC
480    -DSERIAL_PORT_TYPE_UART=1
481  )
482
483endif()
484
485else()
486
487message(SEND_ERROR "component_serial_manager_uart.MIMXRT1042 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
488
489endif()
490
491endif()
492
493
494if (CONFIG_USE_utility_debug_console_lite)
495# Add set(CONFIG_USE_utility_debug_console_lite true) in config.cmake to use this component
496
497message("utility_debug_console_lite component is included from ${CMAKE_CURRENT_LIST_FILE}.")
498
499if(CONFIG_USE_component_lpuart_adapter AND (CONFIG_DEVICE_ID STREQUAL MIMXRT1042xxxxB) AND CONFIG_USE_driver_common)
500
501target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
502  ${CMAKE_CURRENT_LIST_DIR}/../../utilities/str/fsl_str.c
503  ${CMAKE_CURRENT_LIST_DIR}/../../utilities/debug_console_lite/fsl_debug_console.c
504)
505
506target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
507  ${CMAKE_CURRENT_LIST_DIR}/../../utilities/str
508  ${CMAKE_CURRENT_LIST_DIR}/../../utilities/debug_console_lite
509)
510
511else()
512
513message(SEND_ERROR "utility_debug_console_lite.MIMXRT1042 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
514
515endif()
516
517endif()
518
519
520if (CONFIG_USE_driver_cmsis_lpspi)
521# Add set(CONFIG_USE_driver_cmsis_lpspi true) in config.cmake to use this component
522
523message("driver_cmsis_lpspi component is included from ${CMAKE_CURRENT_LIST_FILE}.")
524
525if(CONFIG_USE_driver_lpspi_edma AND (CONFIG_DEVICE_ID STREQUAL MIMXRT1042xxxxB) AND CONFIG_USE_driver_lpspi AND CONFIG_USE_CMSIS_Driver_Include_SPI AND CONFIG_USE_RTE_Device)
526
527target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
528  ${CMAKE_CURRENT_LIST_DIR}/../../cmsis_drivers/lpspi/fsl_lpspi_cmsis.c
529)
530
531target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
532  ${CMAKE_CURRENT_LIST_DIR}/../../cmsis_drivers/lpspi/.
533)
534
535else()
536
537message(SEND_ERROR "driver_cmsis_lpspi.MIMXRT1042 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
538
539endif()
540
541endif()
542
543
544if (CONFIG_USE_driver_cmsis_lpi2c)
545# Add set(CONFIG_USE_driver_cmsis_lpi2c true) in config.cmake to use this component
546
547message("driver_cmsis_lpi2c component is included from ${CMAKE_CURRENT_LIST_FILE}.")
548
549if(CONFIG_USE_driver_lpi2c_edma AND (CONFIG_DEVICE_ID STREQUAL MIMXRT1042xxxxB) AND CONFIG_USE_driver_lpi2c AND CONFIG_USE_CMSIS_Driver_Include_I2C AND CONFIG_USE_RTE_Device)
550
551target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
552  ${CMAKE_CURRENT_LIST_DIR}/../../cmsis_drivers/lpi2c/fsl_lpi2c_cmsis.c
553)
554
555target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
556  ${CMAKE_CURRENT_LIST_DIR}/../../cmsis_drivers/lpi2c/.
557)
558
559else()
560
561message(SEND_ERROR "driver_cmsis_lpi2c.MIMXRT1042 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
562
563endif()
564
565endif()
566
567
568if (CONFIG_USE_driver_cmsis_lpuart)
569# Add set(CONFIG_USE_driver_cmsis_lpuart true) in config.cmake to use this component
570
571message("driver_cmsis_lpuart component is included from ${CMAKE_CURRENT_LIST_FILE}.")
572
573if(CONFIG_USE_driver_lpuart_edma AND (CONFIG_DEVICE_ID STREQUAL MIMXRT1042xxxxB) AND CONFIG_USE_driver_lpuart AND CONFIG_USE_CMSIS_Driver_Include_USART AND CONFIG_USE_RTE_Device)
574
575target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
576  ${CMAKE_CURRENT_LIST_DIR}/../../cmsis_drivers/lpuart/fsl_lpuart_cmsis.c
577)
578
579target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
580  ${CMAKE_CURRENT_LIST_DIR}/../../cmsis_drivers/lpuart/.
581)
582
583else()
584
585message(SEND_ERROR "driver_cmsis_lpuart.MIMXRT1042 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
586
587endif()
588
589endif()
590
591
592if (CONFIG_USE_driver_flexio_camera_edma)
593# Add set(CONFIG_USE_driver_flexio_camera_edma true) in config.cmake to use this component
594
595message("driver_flexio_camera_edma component is included from ${CMAKE_CURRENT_LIST_FILE}.")
596
597if(CONFIG_USE_driver_edma AND CONFIG_USE_driver_flexio_camera AND (CONFIG_DEVICE_ID STREQUAL MIMXRT1042xxxxB))
598
599target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
600  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/flexio/camera/fsl_flexio_camera_edma.c
601)
602
603target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
604  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/flexio/camera/.
605)
606
607else()
608
609message(SEND_ERROR "driver_flexio_camera_edma.MIMXRT1042 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
610
611endif()
612
613endif()
614
615
616if (CONFIG_USE_driver_flexio_i2s_edma)
617# Add set(CONFIG_USE_driver_flexio_i2s_edma true) in config.cmake to use this component
618
619message("driver_flexio_i2s_edma component is included from ${CMAKE_CURRENT_LIST_FILE}.")
620
621if(CONFIG_USE_driver_edma AND CONFIG_USE_driver_flexio_i2s AND (CONFIG_DEVICE_ID STREQUAL MIMXRT1042xxxxB))
622
623target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
624  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/flexio/i2s/fsl_flexio_i2s_edma.c
625)
626
627target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
628  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/flexio/i2s/.
629)
630
631else()
632
633message(SEND_ERROR "driver_flexio_i2s_edma.MIMXRT1042 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
634
635endif()
636
637endif()
638
639
640if (CONFIG_USE_driver_flexio_mculcd_edma)
641# Add set(CONFIG_USE_driver_flexio_mculcd_edma true) in config.cmake to use this component
642
643message("driver_flexio_mculcd_edma component is included from ${CMAKE_CURRENT_LIST_FILE}.")
644
645if(CONFIG_USE_driver_edma AND CONFIG_USE_driver_flexio_mculcd AND (CONFIG_DEVICE_ID STREQUAL MIMXRT1042xxxxB))
646
647target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
648  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/flexio/mculcd/fsl_flexio_mculcd_edma.c
649)
650
651target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
652  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/flexio/mculcd/.
653)
654
655else()
656
657message(SEND_ERROR "driver_flexio_mculcd_edma.MIMXRT1042 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
658
659endif()
660
661endif()
662
663
664if (CONFIG_USE_driver_flexio_spi_edma)
665# Add set(CONFIG_USE_driver_flexio_spi_edma true) in config.cmake to use this component
666
667message("driver_flexio_spi_edma component is included from ${CMAKE_CURRENT_LIST_FILE}.")
668
669if(CONFIG_USE_driver_edma AND CONFIG_USE_driver_flexio_spi AND (CONFIG_DEVICE_ID STREQUAL MIMXRT1042xxxxB))
670
671target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
672  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/flexio/spi/fsl_flexio_spi_edma.c
673)
674
675target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
676  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/flexio/spi/.
677)
678
679else()
680
681message(SEND_ERROR "driver_flexio_spi_edma.MIMXRT1042 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
682
683endif()
684
685endif()
686
687
688if (CONFIG_USE_driver_flexio_uart_edma)
689# Add set(CONFIG_USE_driver_flexio_uart_edma true) in config.cmake to use this component
690
691message("driver_flexio_uart_edma component is included from ${CMAKE_CURRENT_LIST_FILE}.")
692
693if(CONFIG_USE_driver_edma AND CONFIG_USE_driver_flexio_uart AND (CONFIG_DEVICE_ID STREQUAL MIMXRT1042xxxxB))
694
695target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
696  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/flexio/uart/fsl_flexio_uart_edma.c
697)
698
699target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
700  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/flexio/uart/.
701)
702
703else()
704
705message(SEND_ERROR "driver_flexio_uart_edma.MIMXRT1042 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
706
707endif()
708
709endif()
710
711
712if (CONFIG_USE_driver_flexspi_edma)
713# Add set(CONFIG_USE_driver_flexspi_edma true) in config.cmake to use this component
714
715message("driver_flexspi_edma component is included from ${CMAKE_CURRENT_LIST_FILE}.")
716
717if(CONFIG_USE_driver_edma AND CONFIG_USE_driver_flexspi)
718
719target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
720  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/flexspi/fsl_flexspi_edma.c
721)
722
723target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
724  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/flexspi/.
725)
726
727else()
728
729message(SEND_ERROR "driver_flexspi_edma.MIMXRT1042 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
730
731endif()
732
733endif()
734
735
736if (CONFIG_USE_driver_spdif_edma)
737# Add set(CONFIG_USE_driver_spdif_edma true) in config.cmake to use this component
738
739message("driver_spdif_edma component is included from ${CMAKE_CURRENT_LIST_FILE}.")
740
741if(CONFIG_USE_driver_edma AND CONFIG_USE_driver_spdif)
742
743target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
744  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/spdif/fsl_spdif_edma.c
745)
746
747target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
748  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/spdif/.
749)
750
751else()
752
753message(SEND_ERROR "driver_spdif_edma.MIMXRT1042 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
754
755endif()
756
757endif()
758
759
760if (CONFIG_USE_utility_notifier)
761# Add set(CONFIG_USE_utility_notifier true) in config.cmake to use this component
762
763message("utility_notifier component is included from ${CMAKE_CURRENT_LIST_FILE}.")
764
765if(CONFIG_USE_driver_common)
766
767target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
768  ${CMAKE_CURRENT_LIST_DIR}/../../utilities/notifier/fsl_notifier.c
769)
770
771target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
772  ${CMAKE_CURRENT_LIST_DIR}/../../utilities/notifier/.
773)
774
775else()
776
777message(SEND_ERROR "utility_notifier.MIMXRT1042 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
778
779endif()
780
781endif()
782
783
784if (CONFIG_USE_device_MIMXRT1042_system)
785# Add set(CONFIG_USE_device_MIMXRT1042_system true) in config.cmake to use this component
786
787message("device_MIMXRT1042_system component is included from ${CMAKE_CURRENT_LIST_FILE}.")
788
789if(CONFIG_USE_device_MIMXRT1042_CMSIS)
790
791target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
792  ${CMAKE_CURRENT_LIST_DIR}/./system_MIMXRT1042.c
793)
794
795target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
796  ${CMAKE_CURRENT_LIST_DIR}/./.
797)
798
799else()
800
801message(SEND_ERROR "device_MIMXRT1042_system.MIMXRT1042 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
802
803endif()
804
805endif()
806
807
808if (CONFIG_USE_utility_assert)
809# Add set(CONFIG_USE_utility_assert true) in config.cmake to use this component
810
811message("utility_assert component is included from ${CMAKE_CURRENT_LIST_FILE}.")
812
813if(CONFIG_USE_utility_debug_console)
814
815target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
816  ${CMAKE_CURRENT_LIST_DIR}/../../utilities/assert/fsl_assert.c
817)
818
819else()
820
821message(SEND_ERROR "utility_assert.MIMXRT1042 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
822
823endif()
824
825endif()
826
827
828if (CONFIG_USE_utility_assert_lite)
829# Add set(CONFIG_USE_utility_assert_lite true) in config.cmake to use this component
830
831message("utility_assert_lite component is included from ${CMAKE_CURRENT_LIST_FILE}.")
832
833if(CONFIG_USE_utility_debug_console_lite)
834
835target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
836  ${CMAKE_CURRENT_LIST_DIR}/../../utilities/assert/fsl_assert.c
837)
838
839else()
840
841message(SEND_ERROR "utility_assert_lite.MIMXRT1042 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
842
843endif()
844
845endif()
846
847
848if (CONFIG_USE_utility_str)
849# Add set(CONFIG_USE_utility_str true) in config.cmake to use this component
850
851message("utility_str component is included from ${CMAKE_CURRENT_LIST_FILE}.")
852
853if(CONFIG_USE_driver_common)
854
855target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
856  ${CMAKE_CURRENT_LIST_DIR}/../../utilities/str/fsl_str.c
857)
858
859target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
860  ${CMAKE_CURRENT_LIST_DIR}/../../utilities/str
861)
862
863else()
864
865message(SEND_ERROR "utility_str.MIMXRT1042 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
866
867endif()
868
869endif()
870
871
872if (CONFIG_USE_utility_debug_console)
873# Add set(CONFIG_USE_utility_debug_console true) in config.cmake to use this component
874
875message("utility_debug_console component is included from ${CMAKE_CURRENT_LIST_FILE}.")
876
877if(CONFIG_USE_component_serial_manager AND CONFIG_USE_driver_common)
878
879target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
880  ${CMAKE_CURRENT_LIST_DIR}/../../utilities/str/fsl_str.c
881  ${CMAKE_CURRENT_LIST_DIR}/../../utilities/debug_console/fsl_debug_console.c
882)
883
884target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
885  ${CMAKE_CURRENT_LIST_DIR}/../../utilities/str
886  ${CMAKE_CURRENT_LIST_DIR}/../../utilities/debug_console
887)
888
889else()
890
891message(SEND_ERROR "utility_debug_console.MIMXRT1042 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
892
893endif()
894
895endif()
896
897
898if (CONFIG_USE_driver_cmsis_enet)
899# Add set(CONFIG_USE_driver_cmsis_enet true) in config.cmake to use this component
900
901message("driver_cmsis_enet component is included from ${CMAKE_CURRENT_LIST_FILE}.")
902
903if((CONFIG_DEVICE_ID STREQUAL MIMXRT1042xxxxB) AND CONFIG_USE_driver_enet AND CONFIG_USE_CMSIS_Driver_Include_Ethernet_MAC AND CONFIG_USE_CMSIS_Driver_Include_Ethernet_PHY AND CONFIG_USE_CMSIS_Driver_Include_Ethernet AND CONFIG_USE_RTE_Device AND CONFIG_USE_driver_phy-common)
904
905target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
906  ${CMAKE_CURRENT_LIST_DIR}/../../cmsis_drivers/enet/fsl_enet_cmsis.c
907  ${CMAKE_CURRENT_LIST_DIR}/../../cmsis_drivers/enet/fsl_enet_phy_cmsis.c
908)
909
910target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
911  ${CMAKE_CURRENT_LIST_DIR}/../../cmsis_drivers/enet/.
912)
913
914else()
915
916message(SEND_ERROR "driver_cmsis_enet.MIMXRT1042 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
917
918endif()
919
920endif()
921
922
923if (CONFIG_USE_component_audio_sai_edma_adapter)
924# Add set(CONFIG_USE_component_audio_sai_edma_adapter true) in config.cmake to use this component
925
926message("component_audio_sai_edma_adapter component is included from ${CMAKE_CURRENT_LIST_FILE}.")
927
928if(CONFIG_USE_driver_common AND CONFIG_USE_driver_sai_edma)
929
930target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
931  ${CMAKE_CURRENT_LIST_DIR}/../../components/audio/fsl_adapter_sai.c
932)
933
934target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
935  ${CMAKE_CURRENT_LIST_DIR}/../../components/audio/.
936)
937
938else()
939
940message(SEND_ERROR "component_audio_sai_edma_adapter.MIMXRT1042 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
941
942endif()
943
944endif()
945
946
947if (CONFIG_USE_component_button)
948# Add set(CONFIG_USE_component_button true) in config.cmake to use this component
949
950message("component_button component is included from ${CMAKE_CURRENT_LIST_FILE}.")
951
952if(CONFIG_USE_driver_common AND CONFIG_USE_component_timer_manager AND (CONFIG_USE_component_igpio_adapter))
953
954target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
955  ${CMAKE_CURRENT_LIST_DIR}/../../components/button/fsl_component_button.c
956)
957
958target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
959  ${CMAKE_CURRENT_LIST_DIR}/../../components/button/.
960)
961
962else()
963
964message(SEND_ERROR "component_button.MIMXRT1042 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
965
966endif()
967
968endif()
969
970
971if (CONFIG_USE_driver_codec)
972# Add set(CONFIG_USE_driver_codec true) in config.cmake to use this component
973
974message("driver_codec component is included from ${CMAKE_CURRENT_LIST_FILE}.")
975
976if(CONFIG_USE_driver_common AND (CONFIG_USE_component_wm8904_adapter OR CONFIG_USE_component_wm8960_adapter OR CONFIG_USE_component_sgtl_adapter OR CONFIG_USE_component_da7212_adapter OR CONFIG_USE_component_cs42888_adapter OR CONFIG_USE_component_cs42448_adapter OR CONFIG_USE_component_codec_adapters))
977
978target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
979  ${CMAKE_CURRENT_LIST_DIR}/../../components/codec/fsl_codec_common.c
980)
981
982target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
983  ${CMAKE_CURRENT_LIST_DIR}/../../components/codec/.
984)
985
986if(CONFIG_USE_COMPONENT_CONFIGURATION)
987  message("===>Import configuration from ${CMAKE_CURRENT_LIST_FILE}")
988
989  target_compile_definitions(${MCUX_SDK_PROJECT_NAME} PUBLIC
990    -DSDK_I2C_BASED_COMPONENT_USED=1
991  )
992
993endif()
994
995else()
996
997message(SEND_ERROR "driver_codec.MIMXRT1042 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
998
999endif()
1000
1001endif()
1002
1003
1004if (CONFIG_USE_component_codec_adapters)
1005# Add set(CONFIG_USE_component_codec_adapters true) in config.cmake to use this component
1006
1007message("component_codec_adapters component is included from ${CMAKE_CURRENT_LIST_FILE}.")
1008
1009if((CONFIG_USE_driver_codec AND CONFIG_USE_component_wm8904_adapter) OR (CONFIG_USE_driver_codec AND CONFIG_USE_component_wm8960_adapter) OR (CONFIG_USE_driver_codec AND CONFIG_USE_component_sgtl_adapter) OR (CONFIG_USE_driver_codec AND CONFIG_USE_component_da7212_adapter) OR (CONFIG_USE_driver_codec AND CONFIG_USE_component_cs42888_adapter) OR (CONFIG_USE_driver_common AND CONFIG_USE_component_cs42448_adapter))
1010
1011target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
1012  ${CMAKE_CURRENT_LIST_DIR}/../../components/codec/port/fsl_codec_adapter.c
1013)
1014
1015target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
1016  ${CMAKE_CURRENT_LIST_DIR}/../../components/codec/port
1017)
1018
1019if(CONFIG_USE_COMPONENT_CONFIGURATION)
1020  message("===>Import configuration from ${CMAKE_CURRENT_LIST_FILE}")
1021
1022  target_compile_definitions(${MCUX_SDK_PROJECT_NAME} PUBLIC
1023    -DCODEC_MULTI_ADAPTERS=1
1024  )
1025
1026endif()
1027
1028else()
1029
1030message(SEND_ERROR "component_codec_adapters.MIMXRT1042 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
1031
1032endif()
1033
1034endif()
1035
1036
1037if (CONFIG_USE_component_wm8904_adapter)
1038# Add set(CONFIG_USE_component_wm8904_adapter true) in config.cmake to use this component
1039
1040message("component_wm8904_adapter component is included from ${CMAKE_CURRENT_LIST_FILE}.")
1041
1042if(CONFIG_USE_driver_wm8904 AND CONFIG_USE_driver_codec)
1043
1044target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
1045  ${CMAKE_CURRENT_LIST_DIR}/../../components/codec/port/wm8904/fsl_codec_wm8904_adapter.c
1046)
1047
1048target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
1049  ${CMAKE_CURRENT_LIST_DIR}/../../components/codec/port/wm8904
1050  ${CMAKE_CURRENT_LIST_DIR}/../../components/codec/port
1051)
1052
1053else()
1054
1055message(SEND_ERROR "component_wm8904_adapter.MIMXRT1042 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
1056
1057endif()
1058
1059endif()
1060
1061
1062if (CONFIG_USE_component_wm8960_adapter)
1063# Add set(CONFIG_USE_component_wm8960_adapter true) in config.cmake to use this component
1064
1065message("component_wm8960_adapter component is included from ${CMAKE_CURRENT_LIST_FILE}.")
1066
1067if(CONFIG_USE_driver_wm8960 AND CONFIG_USE_driver_codec)
1068
1069target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
1070  ${CMAKE_CURRENT_LIST_DIR}/../../components/codec/port/wm8960/fsl_codec_wm8960_adapter.c
1071)
1072
1073target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
1074  ${CMAKE_CURRENT_LIST_DIR}/../../components/codec/port/wm8960
1075  ${CMAKE_CURRENT_LIST_DIR}/../../components/codec/port
1076)
1077
1078else()
1079
1080message(SEND_ERROR "component_wm8960_adapter.MIMXRT1042 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
1081
1082endif()
1083
1084endif()
1085
1086
1087if (CONFIG_USE_component_cs42888_adapter)
1088# Add set(CONFIG_USE_component_cs42888_adapter true) in config.cmake to use this component
1089
1090message("component_cs42888_adapter component is included from ${CMAKE_CURRENT_LIST_FILE}.")
1091
1092if(CONFIG_USE_driver_cs42888 AND CONFIG_USE_driver_codec)
1093
1094target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
1095  ${CMAKE_CURRENT_LIST_DIR}/../../components/codec/port/cs42888/fsl_codec_cs42888_adapter.c
1096)
1097
1098target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
1099  ${CMAKE_CURRENT_LIST_DIR}/../../components/codec/port/cs42888
1100  ${CMAKE_CURRENT_LIST_DIR}/../../components/codec/port
1101)
1102
1103else()
1104
1105message(SEND_ERROR "component_cs42888_adapter.MIMXRT1042 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
1106
1107endif()
1108
1109endif()
1110
1111
1112if (CONFIG_USE_component_cs42448_adapter)
1113# Add set(CONFIG_USE_component_cs42448_adapter true) in config.cmake to use this component
1114
1115message("component_cs42448_adapter component is included from ${CMAKE_CURRENT_LIST_FILE}.")
1116
1117if(CONFIG_USE_driver_cs42448 AND CONFIG_USE_driver_codec)
1118
1119target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
1120  ${CMAKE_CURRENT_LIST_DIR}/../../components/codec/port/cs42448/fsl_codec_cs42448_adapter.c
1121)
1122
1123target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
1124  ${CMAKE_CURRENT_LIST_DIR}/../../components/codec/port/cs42448
1125  ${CMAKE_CURRENT_LIST_DIR}/../../components/codec/port
1126)
1127
1128else()
1129
1130message(SEND_ERROR "component_cs42448_adapter.MIMXRT1042 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
1131
1132endif()
1133
1134endif()
1135
1136
1137if (CONFIG_USE_component_sgtl_adapter)
1138# Add set(CONFIG_USE_component_sgtl_adapter true) in config.cmake to use this component
1139
1140message("component_sgtl_adapter component is included from ${CMAKE_CURRENT_LIST_FILE}.")
1141
1142if(CONFIG_USE_driver_sgtl5000 AND CONFIG_USE_driver_codec)
1143
1144target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
1145  ${CMAKE_CURRENT_LIST_DIR}/../../components/codec/port/sgtl5000/fsl_codec_sgtl_adapter.c
1146)
1147
1148target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
1149  ${CMAKE_CURRENT_LIST_DIR}/../../components/codec/port/sgtl5000
1150  ${CMAKE_CURRENT_LIST_DIR}/../../components/codec/port
1151)
1152
1153else()
1154
1155message(SEND_ERROR "component_sgtl_adapter.MIMXRT1042 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
1156
1157endif()
1158
1159endif()
1160
1161
1162if (CONFIG_USE_component_da7212_adapter)
1163# Add set(CONFIG_USE_component_da7212_adapter true) in config.cmake to use this component
1164
1165message("component_da7212_adapter component is included from ${CMAKE_CURRENT_LIST_FILE}.")
1166
1167if(CONFIG_USE_driver_dialog7212 AND CONFIG_USE_driver_codec)
1168
1169target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
1170  ${CMAKE_CURRENT_LIST_DIR}/../../components/codec/port/da7212/fsl_codec_da7212_adapter.c
1171)
1172
1173target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
1174  ${CMAKE_CURRENT_LIST_DIR}/../../components/codec/port/da7212
1175  ${CMAKE_CURRENT_LIST_DIR}/../../components/codec/port
1176)
1177
1178else()
1179
1180message(SEND_ERROR "component_da7212_adapter.MIMXRT1042 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
1181
1182endif()
1183
1184endif()
1185
1186
1187if (CONFIG_USE_component_codec_i2c)
1188# Add set(CONFIG_USE_component_codec_i2c true) in config.cmake to use this component
1189
1190message("component_codec_i2c component is included from ${CMAKE_CURRENT_LIST_FILE}.")
1191
1192if(CONFIG_USE_driver_common AND (CONFIG_USE_component_lpi2c_adapter))
1193
1194target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
1195  ${CMAKE_CURRENT_LIST_DIR}/../../components/codec/i2c/fsl_codec_i2c.c
1196)
1197
1198target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
1199  ${CMAKE_CURRENT_LIST_DIR}/../../components/codec/i2c/.
1200)
1201
1202if(CONFIG_USE_COMPONENT_CONFIGURATION)
1203  message("===>Import configuration from ${CMAKE_CURRENT_LIST_FILE}")
1204
1205  target_compile_definitions(${MCUX_SDK_PROJECT_NAME} PUBLIC
1206    -DSDK_I2C_BASED_COMPONENT_USED=1
1207  )
1208
1209endif()
1210
1211else()
1212
1213message(SEND_ERROR "component_codec_i2c.MIMXRT1042 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
1214
1215endif()
1216
1217endif()
1218
1219
1220if (CONFIG_USE_component_software_crc_adapter)
1221# Add set(CONFIG_USE_component_software_crc_adapter true) in config.cmake to use this component
1222
1223message("component_software_crc_adapter component is included from ${CMAKE_CURRENT_LIST_FILE}.")
1224
1225if(CONFIG_USE_driver_common)
1226
1227target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
1228  ${CMAKE_CURRENT_LIST_DIR}/../../components/crc/fsl_adapter_software_crc.c
1229)
1230
1231target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
1232  ${CMAKE_CURRENT_LIST_DIR}/../../components/crc/.
1233)
1234
1235else()
1236
1237message(SEND_ERROR "component_software_crc_adapter.MIMXRT1042 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
1238
1239endif()
1240
1241endif()
1242
1243
1244if (CONFIG_USE_driver_cs42448)
1245# Add set(CONFIG_USE_driver_cs42448 true) in config.cmake to use this component
1246
1247message("driver_cs42448 component is included from ${CMAKE_CURRENT_LIST_FILE}.")
1248
1249if(CONFIG_USE_driver_common AND CONFIG_USE_component_codec_i2c)
1250
1251target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
1252  ${CMAKE_CURRENT_LIST_DIR}/../../components/codec/cs42448/fsl_cs42448.c
1253)
1254
1255target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
1256  ${CMAKE_CURRENT_LIST_DIR}/../../components/codec/cs42448/.
1257)
1258
1259if(CONFIG_USE_COMPONENT_CONFIGURATION)
1260  message("===>Import configuration from ${CMAKE_CURRENT_LIST_FILE}")
1261
1262  target_compile_definitions(${MCUX_SDK_PROJECT_NAME} PUBLIC
1263    -DSDK_I2C_BASED_COMPONENT_USED=1
1264    -DCODEC_CS42448_ENABLE
1265  )
1266
1267endif()
1268
1269else()
1270
1271message(SEND_ERROR "driver_cs42448.MIMXRT1042 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
1272
1273endif()
1274
1275endif()
1276
1277
1278if (CONFIG_USE_driver_cs42888)
1279# Add set(CONFIG_USE_driver_cs42888 true) in config.cmake to use this component
1280
1281message("driver_cs42888 component is included from ${CMAKE_CURRENT_LIST_FILE}.")
1282
1283if(CONFIG_USE_driver_common AND CONFIG_USE_component_codec_i2c)
1284
1285target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
1286  ${CMAKE_CURRENT_LIST_DIR}/../../components/codec/cs42888/fsl_cs42888.c
1287)
1288
1289target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
1290  ${CMAKE_CURRENT_LIST_DIR}/../../components/codec/cs42888/.
1291)
1292
1293if(CONFIG_USE_COMPONENT_CONFIGURATION)
1294  message("===>Import configuration from ${CMAKE_CURRENT_LIST_FILE}")
1295
1296  target_compile_definitions(${MCUX_SDK_PROJECT_NAME} PUBLIC
1297    -DSDK_I2C_BASED_COMPONENT_USED=1
1298    -DCODEC_CS42888_ENABLE
1299  )
1300
1301endif()
1302
1303else()
1304
1305message(SEND_ERROR "driver_cs42888.MIMXRT1042 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
1306
1307endif()
1308
1309endif()
1310
1311
1312if (CONFIG_USE_driver_dialog7212)
1313# Add set(CONFIG_USE_driver_dialog7212 true) in config.cmake to use this component
1314
1315message("driver_dialog7212 component is included from ${CMAKE_CURRENT_LIST_FILE}.")
1316
1317if(CONFIG_USE_driver_common AND CONFIG_USE_component_codec_i2c)
1318
1319target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
1320  ${CMAKE_CURRENT_LIST_DIR}/../../components/codec/da7212/fsl_dialog7212.c
1321)
1322
1323target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
1324  ${CMAKE_CURRENT_LIST_DIR}/../../components/codec/da7212/.
1325)
1326
1327if(CONFIG_USE_COMPONENT_CONFIGURATION)
1328  message("===>Import configuration from ${CMAKE_CURRENT_LIST_FILE}")
1329
1330  target_compile_definitions(${MCUX_SDK_PROJECT_NAME} PUBLIC
1331    -DSDK_I2C_BASED_COMPONENT_USED=1
1332    -DBOARD_USE_CODEC=1
1333    -DCODEC_DA7212_ENABLE
1334  )
1335
1336endif()
1337
1338else()
1339
1340message(SEND_ERROR "driver_dialog7212.MIMXRT1042 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
1341
1342endif()
1343
1344endif()
1345
1346
1347if (CONFIG_USE_component_exception_handling_cm7)
1348# Add set(CONFIG_USE_component_exception_handling_cm7 true) in config.cmake to use this component
1349
1350message("component_exception_handling_cm7 component is included from ${CMAKE_CURRENT_LIST_FILE}.")
1351
1352if(CONFIG_USE_driver_common AND CONFIG_USE_utility_debug_console)
1353
1354if(CONFIG_CORE STREQUAL cm7f)
1355  target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
1356      ${CMAKE_CURRENT_LIST_DIR}/../../components/exception_handling/cm7/fsl_component_exception_handling.c
1357  )
1358endif()
1359
1360target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
1361  ${CMAKE_CURRENT_LIST_DIR}/../../components/exception_handling/.
1362)
1363
1364else()
1365
1366message(SEND_ERROR "component_exception_handling_cm7.MIMXRT1042 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
1367
1368endif()
1369
1370endif()
1371
1372
1373if (CONFIG_USE_driver_nand_flash-controller-flexspi)
1374# Add set(CONFIG_USE_driver_nand_flash-controller-flexspi true) in config.cmake to use this component
1375
1376message("driver_nand_flash-controller-flexspi component is included from ${CMAKE_CURRENT_LIST_FILE}.")
1377
1378if(CONFIG_USE_driver_nand_flash-common AND CONFIG_USE_driver_flexspi)
1379
1380target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
1381  ${CMAKE_CURRENT_LIST_DIR}/../../components/flash/nand/flexspi/fsl_flexspi_nand_flash.c
1382)
1383
1384target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
1385  ${CMAKE_CURRENT_LIST_DIR}/../../components/flash/nand/flexspi/.
1386)
1387
1388else()
1389
1390message(SEND_ERROR "driver_nand_flash-controller-flexspi.MIMXRT1042 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
1391
1392endif()
1393
1394endif()
1395
1396
1397if (CONFIG_USE_driver_nand_flash-controller-semc)
1398# Add set(CONFIG_USE_driver_nand_flash-controller-semc true) in config.cmake to use this component
1399
1400message("driver_nand_flash-controller-semc component is included from ${CMAKE_CURRENT_LIST_FILE}.")
1401
1402if(CONFIG_USE_driver_nand_flash-common AND CONFIG_USE_driver_semc)
1403
1404target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
1405  ${CMAKE_CURRENT_LIST_DIR}/../../components/flash/nand/semc/fsl_semc_nand_flash.c
1406)
1407
1408target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
1409  ${CMAKE_CURRENT_LIST_DIR}/../../components/flash/nand/semc/.
1410)
1411
1412else()
1413
1414message(SEND_ERROR "driver_nand_flash-controller-semc.MIMXRT1042 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
1415
1416endif()
1417
1418endif()
1419
1420
1421if (CONFIG_USE_driver_nor_flash-controller-flexspi)
1422# Add set(CONFIG_USE_driver_nor_flash-controller-flexspi true) in config.cmake to use this component
1423
1424message("driver_nor_flash-controller-flexspi component is included from ${CMAKE_CURRENT_LIST_FILE}.")
1425
1426if(CONFIG_USE_driver_nor_flash-common AND CONFIG_USE_driver_flexspi)
1427
1428target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
1429  ${CMAKE_CURRENT_LIST_DIR}/../../components/flash/nor/flexspi/fsl_flexspi_nor_flash.c
1430)
1431
1432target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
1433  ${CMAKE_CURRENT_LIST_DIR}/../../components/flash/nor/flexspi/.
1434)
1435
1436else()
1437
1438message(SEND_ERROR "driver_nor_flash-controller-flexspi.MIMXRT1042 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
1439
1440endif()
1441
1442endif()
1443
1444
1445if (CONFIG_USE_driver_nor_flash-controller-lpspi)
1446# Add set(CONFIG_USE_driver_nor_flash-controller-lpspi true) in config.cmake to use this component
1447
1448message("driver_nor_flash-controller-lpspi component is included from ${CMAKE_CURRENT_LIST_FILE}.")
1449
1450if(CONFIG_USE_driver_nor_flash-common AND CONFIG_USE_driver_lpspi)
1451
1452target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
1453  ${CMAKE_CURRENT_LIST_DIR}/../../components/flash/nor/lpspi/fsl_lpspi_nor_flash.c
1454  ${CMAKE_CURRENT_LIST_DIR}/../../components/flash/nor/lpspi/fsl_lpspi_mem_adapter.c
1455)
1456
1457target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
1458  ${CMAKE_CURRENT_LIST_DIR}/../../components/flash/nor/lpspi/.
1459)
1460
1461else()
1462
1463message(SEND_ERROR "driver_nor_flash-controller-lpspi.MIMXRT1042 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
1464
1465endif()
1466
1467endif()
1468
1469
1470if (CONFIG_USE_driver_ft5406)
1471# Add set(CONFIG_USE_driver_ft5406 true) in config.cmake to use this component
1472
1473message("driver_ft5406 component is included from ${CMAKE_CURRENT_LIST_FILE}.")
1474
1475if(CONFIG_USE_driver_common)
1476
1477target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
1478  ${CMAKE_CURRENT_LIST_DIR}/../../components/ft5406/fsl_ft5406.c
1479)
1480
1481target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
1482  ${CMAKE_CURRENT_LIST_DIR}/../../components/ft5406/.
1483)
1484
1485else()
1486
1487message(SEND_ERROR "driver_ft5406.MIMXRT1042 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
1488
1489endif()
1490
1491endif()
1492
1493
1494if (CONFIG_USE_driver_ft5406_rt)
1495# Add set(CONFIG_USE_driver_ft5406_rt true) in config.cmake to use this component
1496
1497message("driver_ft5406_rt component is included from ${CMAKE_CURRENT_LIST_FILE}.")
1498
1499if(CONFIG_USE_driver_lpi2c)
1500
1501target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
1502  ${CMAKE_CURRENT_LIST_DIR}/../../components/ft5406_rt/fsl_ft5406_rt.c
1503)
1504
1505target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
1506  ${CMAKE_CURRENT_LIST_DIR}/../../components/ft5406_rt/.
1507)
1508
1509else()
1510
1511message(SEND_ERROR "driver_ft5406_rt.MIMXRT1042 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
1512
1513endif()
1514
1515endif()
1516
1517
1518if (CONFIG_USE_driver_ft6x06)
1519# Add set(CONFIG_USE_driver_ft6x06 true) in config.cmake to use this component
1520
1521message("driver_ft6x06 component is included from ${CMAKE_CURRENT_LIST_FILE}.")
1522
1523if(CONFIG_USE_CMSIS_Driver_Include_I2C)
1524
1525target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
1526  ${CMAKE_CURRENT_LIST_DIR}/../../components/ft6x06/fsl_ft6x06.c
1527)
1528
1529target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
1530  ${CMAKE_CURRENT_LIST_DIR}/../../components/ft6x06/.
1531)
1532
1533else()
1534
1535message(SEND_ERROR "driver_ft6x06.MIMXRT1042 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
1536
1537endif()
1538
1539endif()
1540
1541
1542if (CONFIG_USE_driver_fxls8974cf)
1543# Add set(CONFIG_USE_driver_fxls8974cf true) in config.cmake to use this component
1544
1545message("driver_fxls8974cf component is included from ${CMAKE_CURRENT_LIST_FILE}.")
1546
1547if(CONFIG_USE_driver_common)
1548
1549target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
1550  ${CMAKE_CURRENT_LIST_DIR}/../../components/fxls8974cf/fsl_fxls.c
1551)
1552
1553target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
1554  ${CMAKE_CURRENT_LIST_DIR}/../../components/fxls8974cf/.
1555)
1556
1557else()
1558
1559message(SEND_ERROR "driver_fxls8974cf.MIMXRT1042 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
1560
1561endif()
1562
1563endif()
1564
1565
1566if (CONFIG_USE_component_igpio_adapter)
1567# Add set(CONFIG_USE_component_igpio_adapter true) in config.cmake to use this component
1568
1569message("component_igpio_adapter component is included from ${CMAKE_CURRENT_LIST_FILE}.")
1570
1571if(CONFIG_USE_driver_igpio)
1572
1573target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
1574  ${CMAKE_CURRENT_LIST_DIR}/../../components/gpio/fsl_adapter_igpio.c
1575)
1576
1577target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
1578  ${CMAKE_CURRENT_LIST_DIR}/../../components/gpio/.
1579)
1580
1581else()
1582
1583message(SEND_ERROR "component_igpio_adapter.MIMXRT1042 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
1584
1585endif()
1586
1587endif()
1588
1589
1590if (CONFIG_USE_driver_gt911)
1591# Add set(CONFIG_USE_driver_gt911 true) in config.cmake to use this component
1592
1593message("driver_gt911 component is included from ${CMAKE_CURRENT_LIST_FILE}.")
1594
1595if(CONFIG_USE_driver_common)
1596
1597target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
1598  ${CMAKE_CURRENT_LIST_DIR}/../../components/gt911/fsl_gt911.c
1599)
1600
1601target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
1602  ${CMAKE_CURRENT_LIST_DIR}/../../components/gt911/.
1603)
1604
1605if(CONFIG_USE_COMPONENT_CONFIGURATION)
1606  message("===>Import configuration from ${CMAKE_CURRENT_LIST_FILE}")
1607
1608  target_compile_definitions(${MCUX_SDK_PROJECT_NAME} PUBLIC
1609    -DSDK_I2C_BASED_COMPONENT_USED=1
1610  )
1611
1612endif()
1613
1614else()
1615
1616message(SEND_ERROR "driver_gt911.MIMXRT1042 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
1617
1618endif()
1619
1620endif()
1621
1622
1623if (CONFIG_USE_component_lpi2c_adapter)
1624# Add set(CONFIG_USE_component_lpi2c_adapter true) in config.cmake to use this component
1625
1626message("component_lpi2c_adapter component is included from ${CMAKE_CURRENT_LIST_FILE}.")
1627
1628if(CONFIG_USE_driver_common AND CONFIG_USE_driver_lpi2c)
1629
1630target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
1631  ${CMAKE_CURRENT_LIST_DIR}/../../components/i2c/fsl_adapter_lpi2c.c
1632)
1633
1634target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
1635  ${CMAKE_CURRENT_LIST_DIR}/../../components/i2c/.
1636)
1637
1638else()
1639
1640message(SEND_ERROR "component_lpi2c_adapter.MIMXRT1042 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
1641
1642endif()
1643
1644endif()
1645
1646
1647if (CONFIG_USE_driver_ili9341)
1648# Add set(CONFIG_USE_driver_ili9341 true) in config.cmake to use this component
1649
1650message("driver_ili9341 component is included from ${CMAKE_CURRENT_LIST_FILE}.")
1651
1652if(CONFIG_USE_driver_common)
1653
1654target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
1655  ${CMAKE_CURRENT_LIST_DIR}/../../components/ili9341/fsl_ili9341.c
1656)
1657
1658target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
1659  ${CMAKE_CURRENT_LIST_DIR}/../../components/ili9341/.
1660)
1661
1662else()
1663
1664message(SEND_ERROR "driver_ili9341.MIMXRT1042 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
1665
1666endif()
1667
1668endif()
1669
1670
1671if (CONFIG_USE_component_flexspi_nor_flash_adapter_rt1040evk)
1672# Add set(CONFIG_USE_component_flexspi_nor_flash_adapter_rt1040evk true) in config.cmake to use this component
1673
1674message("component_flexspi_nor_flash_adapter_rt1040evk component is included from ${CMAKE_CURRENT_LIST_FILE}.")
1675
1676if((CONFIG_BOARD STREQUAL evkmimxrt1040) AND CONFIG_USE_driver_common AND CONFIG_USE_driver_flexspi)
1677
1678target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
1679  ${CMAKE_CURRENT_LIST_DIR}/../../components/internal_flash/evkmimxrt1040/fsl_adapter_flexspi_nor_flash.c
1680)
1681
1682target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
1683  ${CMAKE_CURRENT_LIST_DIR}/../../components/internal_flash/.
1684)
1685
1686else()
1687
1688message(SEND_ERROR "component_flexspi_nor_flash_adapter_rt1040evk.MIMXRT1042 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
1689
1690endif()
1691
1692endif()
1693
1694
1695if (CONFIG_USE_component_led)
1696# Add set(CONFIG_USE_component_led true) in config.cmake to use this component
1697
1698message("component_led component is included from ${CMAKE_CURRENT_LIST_FILE}.")
1699
1700if(CONFIG_USE_driver_common AND CONFIG_USE_component_timer_manager AND (CONFIG_USE_component_igpio_adapter))
1701
1702target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
1703  ${CMAKE_CURRENT_LIST_DIR}/../../components/led/fsl_component_led.c
1704)
1705
1706target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
1707  ${CMAKE_CURRENT_LIST_DIR}/../../components/led/.
1708)
1709
1710else()
1711
1712message(SEND_ERROR "component_led.MIMXRT1042 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
1713
1714endif()
1715
1716endif()
1717
1718
1719if (CONFIG_USE_component_lists)
1720# Add set(CONFIG_USE_component_lists true) in config.cmake to use this component
1721
1722message("component_lists component is included from ${CMAKE_CURRENT_LIST_FILE}.")
1723
1724if(CONFIG_USE_driver_common)
1725
1726target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
1727  ${CMAKE_CURRENT_LIST_DIR}/../../components/lists/fsl_component_generic_list.c
1728)
1729
1730target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
1731  ${CMAKE_CURRENT_LIST_DIR}/../../components/lists/.
1732)
1733
1734else()
1735
1736message(SEND_ERROR "component_lists.MIMXRT1042 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
1737
1738endif()
1739
1740endif()
1741
1742
1743if (CONFIG_USE_component_log)
1744# Add set(CONFIG_USE_component_log true) in config.cmake to use this component
1745
1746message("component_log component is included from ${CMAKE_CURRENT_LIST_FILE}.")
1747
1748if(CONFIG_USE_driver_common AND CONFIG_USE_utility_str)
1749
1750target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
1751  ${CMAKE_CURRENT_LIST_DIR}/../../components/log/fsl_component_log.c
1752)
1753
1754target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
1755  ${CMAKE_CURRENT_LIST_DIR}/../../components/log/.
1756)
1757
1758else()
1759
1760message(SEND_ERROR "component_log.MIMXRT1042 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
1761
1762endif()
1763
1764endif()
1765
1766
1767if (CONFIG_USE_component_log_backend_debugconsole)
1768# Add set(CONFIG_USE_component_log_backend_debugconsole true) in config.cmake to use this component
1769
1770message("component_log_backend_debugconsole component is included from ${CMAKE_CURRENT_LIST_FILE}.")
1771
1772if(CONFIG_USE_driver_common AND CONFIG_USE_component_log AND CONFIG_USE_utility_debug_console)
1773
1774target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
1775  ${CMAKE_CURRENT_LIST_DIR}/../../components/log/fsl_component_log_backend_debugconsole.c
1776)
1777
1778target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
1779  ${CMAKE_CURRENT_LIST_DIR}/../../components/log/.
1780)
1781
1782else()
1783
1784message(SEND_ERROR "component_log_backend_debugconsole.MIMXRT1042 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
1785
1786endif()
1787
1788endif()
1789
1790
1791if (CONFIG_USE_component_log_backend_debugconsole_lite)
1792# Add set(CONFIG_USE_component_log_backend_debugconsole_lite true) in config.cmake to use this component
1793
1794message("component_log_backend_debugconsole_lite component is included from ${CMAKE_CURRENT_LIST_FILE}.")
1795
1796if(CONFIG_USE_driver_common AND CONFIG_USE_component_log AND CONFIG_USE_utility_debug_console_lite)
1797
1798target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
1799  ${CMAKE_CURRENT_LIST_DIR}/../../components/log/fsl_component_log_backend_debugconsole.c
1800)
1801
1802target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
1803  ${CMAKE_CURRENT_LIST_DIR}/../../components/log/.
1804)
1805
1806else()
1807
1808message(SEND_ERROR "component_log_backend_debugconsole_lite.MIMXRT1042 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
1809
1810endif()
1811
1812endif()
1813
1814
1815if (CONFIG_USE_component_log_backend_ringbuffer)
1816# Add set(CONFIG_USE_component_log_backend_ringbuffer true) in config.cmake to use this component
1817
1818message("component_log_backend_ringbuffer component is included from ${CMAKE_CURRENT_LIST_FILE}.")
1819
1820if(CONFIG_USE_driver_common AND CONFIG_USE_component_log)
1821
1822target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
1823  ${CMAKE_CURRENT_LIST_DIR}/../../components/log/fsl_component_log_backend_ringbuffer.c
1824)
1825
1826target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
1827  ${CMAKE_CURRENT_LIST_DIR}/../../components/log/.
1828)
1829
1830else()
1831
1832message(SEND_ERROR "component_log_backend_ringbuffer.MIMXRT1042 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
1833
1834endif()
1835
1836endif()
1837
1838
1839if (CONFIG_USE_component_mem_manager)
1840# Add set(CONFIG_USE_component_mem_manager true) in config.cmake to use this component
1841
1842message("component_mem_manager component is included from ${CMAKE_CURRENT_LIST_FILE}.")
1843
1844if(CONFIG_USE_driver_common AND CONFIG_USE_component_lists)
1845
1846target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
1847  ${CMAKE_CURRENT_LIST_DIR}/../../components/mem_manager/fsl_component_mem_manager.c
1848)
1849
1850target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
1851  ${CMAKE_CURRENT_LIST_DIR}/../../components/mem_manager/.
1852)
1853
1854else()
1855
1856message(SEND_ERROR "component_mem_manager.MIMXRT1042 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
1857
1858endif()
1859
1860endif()
1861
1862
1863if (CONFIG_USE_component_mem_manager_light)
1864# Add set(CONFIG_USE_component_mem_manager_light true) in config.cmake to use this component
1865
1866message("component_mem_manager_light component is included from ${CMAKE_CURRENT_LIST_FILE}.")
1867
1868if(CONFIG_USE_driver_common AND CONFIG_USE_component_lists)
1869
1870target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
1871  ${CMAKE_CURRENT_LIST_DIR}/../../components/mem_manager/fsl_component_mem_manager_light.c
1872)
1873
1874target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
1875  ${CMAKE_CURRENT_LIST_DIR}/../../components/mem_manager/.
1876)
1877
1878else()
1879
1880message(SEND_ERROR "component_mem_manager_light.MIMXRT1042 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
1881
1882endif()
1883
1884endif()
1885
1886
1887if (CONFIG_USE_component_messaging)
1888# Add set(CONFIG_USE_component_messaging true) in config.cmake to use this component
1889
1890message("component_messaging component is included from ${CMAKE_CURRENT_LIST_FILE}.")
1891
1892if(CONFIG_USE_driver_common AND CONFIG_USE_component_lists AND CONFIG_USE_component_mem_manager_light)
1893
1894target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
1895  ${CMAKE_CURRENT_LIST_DIR}/../../components/messaging/fsl_component_messaging.c
1896)
1897
1898target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
1899  ${CMAKE_CURRENT_LIST_DIR}/../../components/messaging/.
1900)
1901
1902else()
1903
1904message(SEND_ERROR "component_messaging.MIMXRT1042 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
1905
1906endif()
1907
1908endif()
1909
1910
1911if (CONFIG_USE_component_mflash_file)
1912# Add set(CONFIG_USE_component_mflash_file true) in config.cmake to use this component
1913
1914message("component_mflash_file component is included from ${CMAKE_CURRENT_LIST_FILE}.")
1915
1916if(CONFIG_USE_component_mflash_rt1040)
1917
1918target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
1919  ${CMAKE_CURRENT_LIST_DIR}/../../components/flash/mflash/mflash_file.c
1920)
1921
1922target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
1923  ${CMAKE_CURRENT_LIST_DIR}/../../components/flash/mflash/.
1924)
1925
1926else()
1927
1928message(SEND_ERROR "component_mflash_file.MIMXRT1042 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
1929
1930endif()
1931
1932endif()
1933
1934
1935if (CONFIG_USE_component_mflash_dummy)
1936# Add set(CONFIG_USE_component_mflash_dummy true) in config.cmake to use this component
1937
1938message("component_mflash_dummy component is included from ${CMAKE_CURRENT_LIST_FILE}.")
1939
1940if(CONFIG_USE_component_mflash_file)
1941
1942target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
1943  ${CMAKE_CURRENT_LIST_DIR}/../../components/flash/mflash/mflash_dummy.c
1944)
1945
1946else()
1947
1948message(SEND_ERROR "component_mflash_dummy.MIMXRT1042 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
1949
1950endif()
1951
1952endif()
1953
1954
1955if (CONFIG_USE_component_mflash_rt1040)
1956# Add set(CONFIG_USE_component_mflash_rt1040 true) in config.cmake to use this component
1957
1958message("component_mflash_rt1040 component is included from ${CMAKE_CURRENT_LIST_FILE}.")
1959
1960if(CONFIG_USE_component_mflash_common AND (CONFIG_BOARD STREQUAL evkmimxrt1040) AND CONFIG_USE_driver_flexspi AND CONFIG_USE_driver_cache_armv7_m7)
1961
1962target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
1963  ${CMAKE_CURRENT_LIST_DIR}/../../components/flash/mflash/mimxrt1042/mflash_drv.c
1964)
1965
1966target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
1967  ${CMAKE_CURRENT_LIST_DIR}/../../components/flash/mflash/mimxrt1042/.
1968)
1969
1970if(CONFIG_USE_COMPONENT_CONFIGURATION)
1971  message("===>Import configuration from ${CMAKE_CURRENT_LIST_FILE}")
1972
1973  target_compile_definitions(${MCUX_SDK_PROJECT_NAME} PUBLIC
1974    -DMFLASH_FILE_BASEADDR=7340032
1975  )
1976
1977endif()
1978
1979else()
1980
1981message(SEND_ERROR "component_mflash_rt1040.MIMXRT1042 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
1982
1983endif()
1984
1985endif()
1986
1987
1988if (CONFIG_USE_driver_mma8451q)
1989# Add set(CONFIG_USE_driver_mma8451q true) in config.cmake to use this component
1990
1991message("driver_mma8451q component is included from ${CMAKE_CURRENT_LIST_FILE}.")
1992
1993if(CONFIG_USE_driver_common)
1994
1995target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
1996  ${CMAKE_CURRENT_LIST_DIR}/../../components/mma8451q/fsl_mma.c
1997)
1998
1999target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
2000  ${CMAKE_CURRENT_LIST_DIR}/../../components/mma8451q/.
2001)
2002
2003else()
2004
2005message(SEND_ERROR "driver_mma8451q.MIMXRT1042 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
2006
2007endif()
2008
2009endif()
2010
2011
2012if (CONFIG_USE_component_panic)
2013# Add set(CONFIG_USE_component_panic true) in config.cmake to use this component
2014
2015message("component_panic component is included from ${CMAKE_CURRENT_LIST_FILE}.")
2016
2017if(CONFIG_USE_driver_common)
2018
2019target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
2020  ${CMAKE_CURRENT_LIST_DIR}/../../components/panic/fsl_component_panic.c
2021)
2022
2023target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
2024  ${CMAKE_CURRENT_LIST_DIR}/../../components/panic/.
2025)
2026
2027else()
2028
2029message(SEND_ERROR "component_panic.MIMXRT1042 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
2030
2031endif()
2032
2033endif()
2034
2035
2036if (CONFIG_USE_driver_phy-device-ksz8081)
2037# Add set(CONFIG_USE_driver_phy-device-ksz8081 true) in config.cmake to use this component
2038
2039message("driver_phy-device-ksz8081 component is included from ${CMAKE_CURRENT_LIST_FILE}.")
2040
2041if(CONFIG_USE_driver_phy-common)
2042
2043target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
2044  ${CMAKE_CURRENT_LIST_DIR}/../../components/phy/device/phyksz8081/fsl_phyksz8081.c
2045)
2046
2047target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
2048  ${CMAKE_CURRENT_LIST_DIR}/../../components/phy/device/phyksz8081/.
2049)
2050
2051else()
2052
2053message(SEND_ERROR "driver_phy-device-ksz8081.MIMXRT1042 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
2054
2055endif()
2056
2057endif()
2058
2059
2060if (CONFIG_USE_component_reset_adapter)
2061# Add set(CONFIG_USE_component_reset_adapter true) in config.cmake to use this component
2062
2063message("component_reset_adapter component is included from ${CMAKE_CURRENT_LIST_FILE}.")
2064
2065if(CONFIG_USE_driver_common)
2066
2067target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
2068  ${CMAKE_CURRENT_LIST_DIR}/../../components/reset/fsl_adapter_reset.c
2069)
2070
2071target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
2072  ${CMAKE_CURRENT_LIST_DIR}/../../components/reset/.
2073)
2074
2075else()
2076
2077message(SEND_ERROR "component_reset_adapter.MIMXRT1042 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
2078
2079endif()
2080
2081endif()
2082
2083
2084if (CONFIG_USE_component_trng_adapter)
2085# Add set(CONFIG_USE_component_trng_adapter true) in config.cmake to use this component
2086
2087message("component_trng_adapter component is included from ${CMAKE_CURRENT_LIST_FILE}.")
2088
2089if(CONFIG_USE_driver_common AND CONFIG_USE_driver_trng)
2090
2091target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
2092  ${CMAKE_CURRENT_LIST_DIR}/../../components/rng/fsl_adapter_trng.c
2093)
2094
2095target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
2096  ${CMAKE_CURRENT_LIST_DIR}/../../components/rng/.
2097)
2098
2099else()
2100
2101message(SEND_ERROR "component_trng_adapter.MIMXRT1042 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
2102
2103endif()
2104
2105endif()
2106
2107
2108if (CONFIG_USE_component_software_rng_adapter)
2109# Add set(CONFIG_USE_component_software_rng_adapter true) in config.cmake to use this component
2110
2111message("component_software_rng_adapter component is included from ${CMAKE_CURRENT_LIST_FILE}.")
2112
2113if(CONFIG_USE_driver_common)
2114
2115target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
2116  ${CMAKE_CURRENT_LIST_DIR}/../../components/rng/fsl_adapter_software_rng.c
2117)
2118
2119target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
2120  ${CMAKE_CURRENT_LIST_DIR}/../../components/rng/.
2121)
2122
2123else()
2124
2125message(SEND_ERROR "component_software_rng_adapter.MIMXRT1042 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
2126
2127endif()
2128
2129endif()
2130
2131
2132if (CONFIG_USE_component_serial_manager)
2133# Add set(CONFIG_USE_component_serial_manager true) in config.cmake to use this component
2134
2135message("component_serial_manager component is included from ${CMAKE_CURRENT_LIST_FILE}.")
2136
2137if(CONFIG_USE_driver_common AND CONFIG_USE_component_lists AND (CONFIG_USE_component_serial_manager_uart OR CONFIG_USE_component_serial_manager_usb_cdc OR CONFIG_USE_component_serial_manager_virtual OR CONFIG_USE_component_serial_manager_swo OR CONFIG_USE_component_serial_manager_spi))
2138
2139target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
2140  ${CMAKE_CURRENT_LIST_DIR}/../../components/serial_manager/fsl_component_serial_manager.c
2141)
2142
2143target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
2144  ${CMAKE_CURRENT_LIST_DIR}/../../components/serial_manager/.
2145)
2146
2147else()
2148
2149message(SEND_ERROR "component_serial_manager.MIMXRT1042 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
2150
2151endif()
2152
2153endif()
2154
2155
2156if (CONFIG_USE_component_serial_manager_spi)
2157# Add set(CONFIG_USE_component_serial_manager_spi true) in config.cmake to use this component
2158
2159message("component_serial_manager_spi component is included from ${CMAKE_CURRENT_LIST_FILE}.")
2160
2161if(CONFIG_USE_component_serial_manager AND ((CONFIG_USE_driver_lpspi AND CONFIG_USE_component_lpspi_adapter)))
2162
2163target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
2164  ${CMAKE_CURRENT_LIST_DIR}/../../components/serial_manager/fsl_component_serial_port_spi.c
2165)
2166
2167target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
2168  ${CMAKE_CURRENT_LIST_DIR}/../../components/serial_manager/.
2169)
2170
2171if(CONFIG_USE_COMPONENT_CONFIGURATION)
2172  message("===>Import configuration from ${CMAKE_CURRENT_LIST_FILE}")
2173
2174  target_compile_definitions(${MCUX_SDK_PROJECT_NAME} PUBLIC
2175    -DSERIAL_PORT_TYPE_SPI=1
2176    -DSERIAL_PORT_TYPE_SPI_MASTER=1
2177    -DSERIAL_PORT_TYPE_SPI_SLAVE=1
2178    -DSERIAL_MANAGER_NON_BLOCKING_MODE=1
2179  )
2180
2181endif()
2182
2183else()
2184
2185message(SEND_ERROR "component_serial_manager_spi.MIMXRT1042 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
2186
2187endif()
2188
2189endif()
2190
2191
2192if (CONFIG_USE_component_serial_manager_usb_cdc)
2193# Add set(CONFIG_USE_component_serial_manager_usb_cdc true) in config.cmake to use this component
2194
2195message("component_serial_manager_usb_cdc component is included from ${CMAKE_CURRENT_LIST_FILE}.")
2196
2197if(CONFIG_USE_component_serial_manager AND CONFIG_USE_middleware_usb_device_cdc_external AND CONFIG_USE_driver_common)
2198
2199target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
2200  ${CMAKE_CURRENT_LIST_DIR}/../../components/serial_manager/fsl_component_serial_port_usb.c
2201  ${CMAKE_CURRENT_LIST_DIR}/../../components/serial_manager/usb_cdc_adapter/usb_device_descriptor.c
2202)
2203
2204target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
2205  ${CMAKE_CURRENT_LIST_DIR}/../../components/serial_manager/.
2206  ${CMAKE_CURRENT_LIST_DIR}/../../components/serial_manager/usb_cdc_adapter
2207)
2208
2209if(CONFIG_USE_COMPONENT_CONFIGURATION)
2210  message("===>Import configuration from ${CMAKE_CURRENT_LIST_FILE}")
2211
2212  target_compile_definitions(${MCUX_SDK_PROJECT_NAME} PUBLIC
2213    -DSERIAL_PORT_TYPE_USBCDC=1
2214    -DDEBUG_CONSOLE_TRANSFER_NON_BLOCKING
2215    -DUSB_DEVICE_CONFIG_CDC_ACM=1
2216  )
2217
2218endif()
2219
2220else()
2221
2222message(SEND_ERROR "component_serial_manager_usb_cdc.MIMXRT1042 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
2223
2224endif()
2225
2226endif()
2227
2228
2229if (CONFIG_USE_component_serial_manager_virtual)
2230# Add set(CONFIG_USE_component_serial_manager_virtual true) in config.cmake to use this component
2231
2232message("component_serial_manager_virtual component is included from ${CMAKE_CURRENT_LIST_FILE}.")
2233
2234if(CONFIG_USE_component_serial_manager AND CONFIG_USE_driver_common)
2235
2236target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
2237  ${CMAKE_CURRENT_LIST_DIR}/../../components/serial_manager/fsl_component_serial_port_virtual.c
2238)
2239
2240target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
2241  ${CMAKE_CURRENT_LIST_DIR}/../../components/serial_manager/.
2242)
2243
2244if(CONFIG_USE_COMPONENT_CONFIGURATION)
2245  message("===>Import configuration from ${CMAKE_CURRENT_LIST_FILE}")
2246
2247  target_compile_definitions(${MCUX_SDK_PROJECT_NAME} PUBLIC
2248    -DSERIAL_PORT_TYPE_VIRTUAL=1
2249    -DDEBUG_CONSOLE_TRANSFER_NON_BLOCKING
2250  )
2251
2252endif()
2253
2254else()
2255
2256message(SEND_ERROR "component_serial_manager_virtual.MIMXRT1042 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
2257
2258endif()
2259
2260endif()
2261
2262
2263if (CONFIG_USE_component_serial_manager_swo)
2264# Add set(CONFIG_USE_component_serial_manager_swo true) in config.cmake to use this component
2265
2266message("component_serial_manager_swo component is included from ${CMAKE_CURRENT_LIST_FILE}.")
2267
2268if((CONFIG_CORE STREQUAL cm7f) AND CONFIG_USE_driver_common AND CONFIG_USE_component_serial_manager)
2269
2270target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
2271  ${CMAKE_CURRENT_LIST_DIR}/../../components/serial_manager/fsl_component_serial_port_swo.c
2272)
2273
2274target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
2275  ${CMAKE_CURRENT_LIST_DIR}/../../components/serial_manager/.
2276)
2277
2278if(CONFIG_USE_COMPONENT_CONFIGURATION)
2279  message("===>Import configuration from ${CMAKE_CURRENT_LIST_FILE}")
2280
2281  target_compile_definitions(${MCUX_SDK_PROJECT_NAME} PUBLIC
2282    -DSERIAL_PORT_TYPE_SWO=1
2283  )
2284
2285endif()
2286
2287else()
2288
2289message(SEND_ERROR "component_serial_manager_swo.MIMXRT1042 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
2290
2291endif()
2292
2293endif()
2294
2295
2296if (CONFIG_USE_driver_sgtl5000)
2297# Add set(CONFIG_USE_driver_sgtl5000 true) in config.cmake to use this component
2298
2299message("driver_sgtl5000 component is included from ${CMAKE_CURRENT_LIST_FILE}.")
2300
2301if(CONFIG_USE_driver_common AND CONFIG_USE_component_codec_i2c)
2302
2303target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
2304  ${CMAKE_CURRENT_LIST_DIR}/../../components/codec/sgtl5000/fsl_sgtl5000.c
2305)
2306
2307target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
2308  ${CMAKE_CURRENT_LIST_DIR}/../../components/codec/sgtl5000/.
2309)
2310
2311if(CONFIG_USE_COMPONENT_CONFIGURATION)
2312  message("===>Import configuration from ${CMAKE_CURRENT_LIST_FILE}")
2313
2314  target_compile_definitions(${MCUX_SDK_PROJECT_NAME} PUBLIC
2315    -DSDK_I2C_BASED_COMPONENT_USED=1
2316    -DBOARD_USE_CODEC=1
2317    -DCODEC_SGTL5000_ENABLE
2318  )
2319
2320endif()
2321
2322else()
2323
2324message(SEND_ERROR "driver_sgtl5000.MIMXRT1042 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
2325
2326endif()
2327
2328endif()
2329
2330
2331if (CONFIG_USE_utility_shell)
2332# Add set(CONFIG_USE_utility_shell true) in config.cmake to use this component
2333
2334message("utility_shell component is included from ${CMAKE_CURRENT_LIST_FILE}.")
2335
2336if(CONFIG_USE_utility_str AND CONFIG_USE_component_lists AND CONFIG_USE_driver_common)
2337
2338target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
2339  ${CMAKE_CURRENT_LIST_DIR}/../../utilities/shell/fsl_shell.c
2340)
2341
2342target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
2343  ${CMAKE_CURRENT_LIST_DIR}/../../utilities/shell/.
2344)
2345
2346if(CONFIG_USE_COMPONENT_CONFIGURATION)
2347  message("===>Import configuration from ${CMAKE_CURRENT_LIST_FILE}")
2348
2349  target_compile_definitions(${MCUX_SDK_PROJECT_NAME} PUBLIC
2350    -DDEBUG_CONSOLE_RX_ENABLE=0
2351  )
2352
2353endif()
2354
2355else()
2356
2357message(SEND_ERROR "utility_shell.MIMXRT1042 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
2358
2359endif()
2360
2361endif()
2362
2363
2364if (CONFIG_USE_component_silicon_id_rt10xx)
2365# Add set(CONFIG_USE_component_silicon_id_rt10xx true) in config.cmake to use this component
2366
2367message("component_silicon_id_rt10xx component is included from ${CMAKE_CURRENT_LIST_FILE}.")
2368
2369if((CONFIG_DEVICE_ID STREQUAL MIMXRT1042xxxxB) AND CONFIG_USE_component_silicon_id)
2370
2371target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
2372  ${CMAKE_CURRENT_LIST_DIR}/../../components/silicon_id/socs/rt10xx/fsl_silicon_id_soc.c
2373)
2374
2375target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
2376  ${CMAKE_CURRENT_LIST_DIR}/../../components/silicon_id/socs/rt10xx/..
2377)
2378
2379else()
2380
2381message(SEND_ERROR "component_silicon_id_rt10xx.MIMXRT1042 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
2382
2383endif()
2384
2385endif()
2386
2387
2388if (CONFIG_USE_component_silicon_id)
2389# Add set(CONFIG_USE_component_silicon_id true) in config.cmake to use this component
2390
2391message("component_silicon_id component is included from ${CMAKE_CURRENT_LIST_FILE}.")
2392
2393if((CONFIG_USE_driver_common AND CONFIG_USE_component_silicon_id_rt10xx))
2394
2395target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
2396  ${CMAKE_CURRENT_LIST_DIR}/../../components/silicon_id/fsl_silicon_id.c
2397)
2398
2399target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
2400  ${CMAKE_CURRENT_LIST_DIR}/../../components/silicon_id/.
2401)
2402
2403else()
2404
2405message(SEND_ERROR "component_silicon_id.MIMXRT1042 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
2406
2407endif()
2408
2409endif()
2410
2411
2412if (CONFIG_USE_component_lpspi_adapter)
2413# Add set(CONFIG_USE_component_lpspi_adapter true) in config.cmake to use this component
2414
2415message("component_lpspi_adapter component is included from ${CMAKE_CURRENT_LIST_FILE}.")
2416
2417if(CONFIG_USE_driver_common AND CONFIG_USE_driver_lpspi)
2418
2419target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
2420  ${CMAKE_CURRENT_LIST_DIR}/../../components/spi/fsl_adapter_lpspi.c
2421)
2422
2423target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
2424  ${CMAKE_CURRENT_LIST_DIR}/../../components/spi/.
2425)
2426
2427else()
2428
2429message(SEND_ERROR "component_lpspi_adapter.MIMXRT1042 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
2430
2431endif()
2432
2433endif()
2434
2435
2436if (CONFIG_USE_component_pit_time_stamp_adapter)
2437# Add set(CONFIG_USE_component_pit_time_stamp_adapter true) in config.cmake to use this component
2438
2439message("component_pit_time_stamp_adapter component is included from ${CMAKE_CURRENT_LIST_FILE}.")
2440
2441if(CONFIG_USE_driver_common AND CONFIG_USE_driver_pit)
2442
2443target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
2444  ${CMAKE_CURRENT_LIST_DIR}/../../components/time_stamp/fsl_adapter_pit_time_stamp.c
2445)
2446
2447target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
2448  ${CMAKE_CURRENT_LIST_DIR}/../../components/time_stamp/.
2449)
2450
2451else()
2452
2453message(SEND_ERROR "component_pit_time_stamp_adapter.MIMXRT1042 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
2454
2455endif()
2456
2457endif()
2458
2459
2460if (CONFIG_USE_component_gpt_adapter)
2461# Add set(CONFIG_USE_component_gpt_adapter true) in config.cmake to use this component
2462
2463message("component_gpt_adapter component is included from ${CMAKE_CURRENT_LIST_FILE}.")
2464
2465if(CONFIG_USE_driver_common AND CONFIG_USE_driver_gpt)
2466
2467target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
2468  ${CMAKE_CURRENT_LIST_DIR}/../../components/timer/fsl_adapter_gpt.c
2469)
2470
2471target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
2472  ${CMAKE_CURRENT_LIST_DIR}/../../components/timer/.
2473)
2474
2475else()
2476
2477message(SEND_ERROR "component_gpt_adapter.MIMXRT1042 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
2478
2479endif()
2480
2481endif()
2482
2483
2484if (CONFIG_USE_component_pit_adapter)
2485# Add set(CONFIG_USE_component_pit_adapter true) in config.cmake to use this component
2486
2487message("component_pit_adapter component is included from ${CMAKE_CURRENT_LIST_FILE}.")
2488
2489if(CONFIG_USE_driver_common AND CONFIG_USE_driver_pit)
2490
2491target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
2492  ${CMAKE_CURRENT_LIST_DIR}/../../components/timer/fsl_adapter_pit.c
2493)
2494
2495target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
2496  ${CMAKE_CURRENT_LIST_DIR}/../../components/timer/.
2497)
2498
2499else()
2500
2501message(SEND_ERROR "component_pit_adapter.MIMXRT1042 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
2502
2503endif()
2504
2505endif()
2506
2507
2508if (CONFIG_USE_component_timer_manager)
2509# Add set(CONFIG_USE_component_timer_manager true) in config.cmake to use this component
2510
2511message("component_timer_manager component is included from ${CMAKE_CURRENT_LIST_FILE}.")
2512
2513if(CONFIG_USE_driver_common AND CONFIG_USE_component_lists AND (CONFIG_USE_component_gpt_adapter OR CONFIG_USE_component_pit_adapter))
2514
2515target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
2516  ${CMAKE_CURRENT_LIST_DIR}/../../components/timer_manager/fsl_component_timer_manager.c
2517)
2518
2519target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
2520  ${CMAKE_CURRENT_LIST_DIR}/../../components/timer_manager/.
2521)
2522
2523else()
2524
2525message(SEND_ERROR "component_timer_manager.MIMXRT1042 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
2526
2527endif()
2528
2529endif()
2530
2531
2532if (CONFIG_USE_component_lpuart_adapter)
2533# Add set(CONFIG_USE_component_lpuart_adapter true) in config.cmake to use this component
2534
2535message("component_lpuart_adapter component is included from ${CMAKE_CURRENT_LIST_FILE}.")
2536
2537if(CONFIG_USE_driver_common AND CONFIG_USE_driver_lpuart)
2538
2539target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
2540  ${CMAKE_CURRENT_LIST_DIR}/../../components/uart/fsl_adapter_lpuart.c
2541)
2542
2543target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
2544  ${CMAKE_CURRENT_LIST_DIR}/../../components/uart/.
2545)
2546
2547else()
2548
2549message(SEND_ERROR "component_lpuart_adapter.MIMXRT1042 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
2550
2551endif()
2552
2553endif()
2554
2555
2556if (CONFIG_USE_component_lpuart_dma_adapter)
2557# Add set(CONFIG_USE_component_lpuart_dma_adapter true) in config.cmake to use this component
2558
2559message("component_lpuart_dma_adapter component is included from ${CMAKE_CURRENT_LIST_FILE}.")
2560
2561if(CONFIG_USE_component_lpuart_adapter AND CONFIG_USE_component_timer_manager AND (CONFIG_USE_driver_lpuart_edma))
2562
2563target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
2564  ${CMAKE_CURRENT_LIST_DIR}/../../components/uart/fsl_adapter_lpuart.c
2565)
2566
2567target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
2568  ${CMAKE_CURRENT_LIST_DIR}/../../components/uart/.
2569)
2570
2571if(CONFIG_USE_COMPONENT_CONFIGURATION)
2572  message("===>Import configuration from ${CMAKE_CURRENT_LIST_FILE}")
2573
2574  target_compile_definitions(${MCUX_SDK_PROJECT_NAME} PUBLIC
2575    -DHAL_UART_DMA_ENABLE=1
2576  )
2577
2578endif()
2579
2580else()
2581
2582message(SEND_ERROR "component_lpuart_dma_adapter.MIMXRT1042 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
2583
2584endif()
2585
2586endif()
2587
2588
2589if (CONFIG_USE_driver_video-common)
2590# Add set(CONFIG_USE_driver_video-common true) in config.cmake to use this component
2591
2592message("driver_video-common component is included from ${CMAKE_CURRENT_LIST_FILE}.")
2593
2594if(CONFIG_USE_driver_common)
2595
2596target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
2597  ${CMAKE_CURRENT_LIST_DIR}/../../components/video/fsl_video_common.c
2598)
2599
2600target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
2601  ${CMAKE_CURRENT_LIST_DIR}/../../components/video/.
2602)
2603
2604else()
2605
2606message(SEND_ERROR "driver_video-common.MIMXRT1042 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
2607
2608endif()
2609
2610endif()
2611
2612
2613if (CONFIG_USE_driver_wm8904)
2614# Add set(CONFIG_USE_driver_wm8904 true) in config.cmake to use this component
2615
2616message("driver_wm8904 component is included from ${CMAKE_CURRENT_LIST_FILE}.")
2617
2618if(CONFIG_USE_driver_common AND CONFIG_USE_component_codec_i2c)
2619
2620target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
2621  ${CMAKE_CURRENT_LIST_DIR}/../../components/codec/wm8904/fsl_wm8904.c
2622)
2623
2624target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
2625  ${CMAKE_CURRENT_LIST_DIR}/../../components/codec/wm8904/.
2626)
2627
2628if(CONFIG_USE_COMPONENT_CONFIGURATION)
2629  message("===>Import configuration from ${CMAKE_CURRENT_LIST_FILE}")
2630
2631  target_compile_definitions(${MCUX_SDK_PROJECT_NAME} PUBLIC
2632    -DSDK_I2C_BASED_COMPONENT_USED=1
2633    -DBOARD_USE_CODEC=1
2634    -DCODEC_WM8904_ENABLE
2635  )
2636
2637endif()
2638
2639else()
2640
2641message(SEND_ERROR "driver_wm8904.MIMXRT1042 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
2642
2643endif()
2644
2645endif()
2646
2647
2648if (CONFIG_USE_driver_wm8960)
2649# Add set(CONFIG_USE_driver_wm8960 true) in config.cmake to use this component
2650
2651message("driver_wm8960 component is included from ${CMAKE_CURRENT_LIST_FILE}.")
2652
2653if(CONFIG_USE_driver_common AND CONFIG_USE_component_codec_i2c)
2654
2655target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
2656  ${CMAKE_CURRENT_LIST_DIR}/../../components/codec/wm8960/fsl_wm8960.c
2657)
2658
2659target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
2660  ${CMAKE_CURRENT_LIST_DIR}/../../components/codec/wm8960/.
2661)
2662
2663if(CONFIG_USE_COMPONENT_CONFIGURATION)
2664  message("===>Import configuration from ${CMAKE_CURRENT_LIST_FILE}")
2665
2666  target_compile_definitions(${MCUX_SDK_PROJECT_NAME} PUBLIC
2667    -DSDK_I2C_BASED_COMPONENT_USED=1
2668    -DBOARD_USE_CODEC=1
2669    -DCODEC_WM8960_ENABLE
2670  )
2671
2672endif()
2673
2674else()
2675
2676message(SEND_ERROR "driver_wm8960.MIMXRT1042 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
2677
2678endif()
2679
2680endif()
2681
2682
2683if (CONFIG_USE_driver_common)
2684# Add set(CONFIG_USE_driver_common true) in config.cmake to use this component
2685
2686message("driver_common component is included from ${CMAKE_CURRENT_LIST_FILE}.")
2687
2688if(CONFIG_USE_driver_clock AND CONFIG_USE_device_MIMXRT1042_CMSIS)
2689
2690target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
2691  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/common/fsl_common.c
2692)
2693
2694if(CONFIG_CORE STREQUAL cm7f)
2695  target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
2696      ${CMAKE_CURRENT_LIST_DIR}/../../drivers/common/fsl_common_arm.c
2697  )
2698endif()
2699
2700target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
2701  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/common/.
2702)
2703
2704else()
2705
2706message(SEND_ERROR "driver_common.MIMXRT1042 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
2707
2708endif()
2709
2710endif()
2711
2712
2713if (CONFIG_USE_driver_adc_12b1msps_sar)
2714# Add set(CONFIG_USE_driver_adc_12b1msps_sar true) in config.cmake to use this component
2715
2716message("driver_adc_12b1msps_sar component is included from ${CMAKE_CURRENT_LIST_FILE}.")
2717
2718if((CONFIG_DEVICE_ID STREQUAL MIMXRT1042xxxxB) AND CONFIG_USE_driver_common)
2719
2720target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
2721  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/adc_12b1msps_sar/fsl_adc.c
2722)
2723
2724target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
2725  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/adc_12b1msps_sar/.
2726)
2727
2728else()
2729
2730message(SEND_ERROR "driver_adc_12b1msps_sar.MIMXRT1042 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
2731
2732endif()
2733
2734endif()
2735
2736
2737if (CONFIG_USE_driver_adc_etc)
2738# Add set(CONFIG_USE_driver_adc_etc true) in config.cmake to use this component
2739
2740message("driver_adc_etc component is included from ${CMAKE_CURRENT_LIST_FILE}.")
2741
2742if((CONFIG_DEVICE_ID STREQUAL MIMXRT1042xxxxB) AND CONFIG_USE_driver_common)
2743
2744target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
2745  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/adc_etc/fsl_adc_etc.c
2746)
2747
2748target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
2749  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/adc_etc/.
2750)
2751
2752else()
2753
2754message(SEND_ERROR "driver_adc_etc.MIMXRT1042 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
2755
2756endif()
2757
2758endif()
2759
2760
2761if (CONFIG_USE_driver_aipstz)
2762# Add set(CONFIG_USE_driver_aipstz true) in config.cmake to use this component
2763
2764message("driver_aipstz component is included from ${CMAKE_CURRENT_LIST_FILE}.")
2765
2766if((CONFIG_DEVICE_ID STREQUAL MIMXRT1042xxxxB) AND CONFIG_USE_driver_common)
2767
2768target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
2769  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/aipstz/fsl_aipstz.c
2770)
2771
2772target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
2773  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/aipstz/.
2774)
2775
2776else()
2777
2778message(SEND_ERROR "driver_aipstz.MIMXRT1042 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
2779
2780endif()
2781
2782endif()
2783
2784
2785if (CONFIG_USE_driver_aoi)
2786# Add set(CONFIG_USE_driver_aoi true) in config.cmake to use this component
2787
2788message("driver_aoi component is included from ${CMAKE_CURRENT_LIST_FILE}.")
2789
2790if((CONFIG_DEVICE_ID STREQUAL MIMXRT1042xxxxB) AND CONFIG_USE_driver_common)
2791
2792target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
2793  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/aoi/fsl_aoi.c
2794)
2795
2796target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
2797  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/aoi/.
2798)
2799
2800else()
2801
2802message(SEND_ERROR "driver_aoi.MIMXRT1042 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
2803
2804endif()
2805
2806endif()
2807
2808
2809if (CONFIG_USE_driver_bee)
2810# Add set(CONFIG_USE_driver_bee true) in config.cmake to use this component
2811
2812message("driver_bee component is included from ${CMAKE_CURRENT_LIST_FILE}.")
2813
2814if((CONFIG_DEVICE_ID STREQUAL MIMXRT1042xxxxB) AND CONFIG_USE_driver_common)
2815
2816target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
2817  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/bee/fsl_bee.c
2818)
2819
2820target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
2821  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/bee/.
2822)
2823
2824else()
2825
2826message(SEND_ERROR "driver_bee.MIMXRT1042 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
2827
2828endif()
2829
2830endif()
2831
2832
2833if (CONFIG_USE_driver_cache_armv7_m7)
2834# Add set(CONFIG_USE_driver_cache_armv7_m7 true) in config.cmake to use this component
2835
2836message("driver_cache_armv7_m7 component is included from ${CMAKE_CURRENT_LIST_FILE}.")
2837
2838if(CONFIG_USE_driver_common)
2839
2840target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
2841  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/cache/armv7-m7/fsl_cache.c
2842)
2843
2844target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
2845  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/cache/armv7-m7/.
2846)
2847
2848else()
2849
2850message(SEND_ERROR "driver_cache_armv7_m7.MIMXRT1042 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
2851
2852endif()
2853
2854endif()
2855
2856
2857if (CONFIG_USE_driver_cmp)
2858# Add set(CONFIG_USE_driver_cmp true) in config.cmake to use this component
2859
2860message("driver_cmp component is included from ${CMAKE_CURRENT_LIST_FILE}.")
2861
2862if((CONFIG_DEVICE_ID STREQUAL MIMXRT1042xxxxB) AND CONFIG_USE_driver_common)
2863
2864target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
2865  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/cmp/fsl_cmp.c
2866)
2867
2868target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
2869  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/cmp/.
2870)
2871
2872else()
2873
2874message(SEND_ERROR "driver_cmp.MIMXRT1042 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
2875
2876endif()
2877
2878endif()
2879
2880
2881if (CONFIG_USE_driver_dcdc_1)
2882# Add set(CONFIG_USE_driver_dcdc_1 true) in config.cmake to use this component
2883
2884message("driver_dcdc_1 component is included from ${CMAKE_CURRENT_LIST_FILE}.")
2885
2886if((CONFIG_DEVICE_ID STREQUAL MIMXRT1042xxxxB) AND CONFIG_USE_driver_common)
2887
2888target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
2889  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/dcdc_1/fsl_dcdc.c
2890)
2891
2892target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
2893  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/dcdc_1/.
2894)
2895
2896else()
2897
2898message(SEND_ERROR "driver_dcdc_1.MIMXRT1042 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
2899
2900endif()
2901
2902endif()
2903
2904
2905if (CONFIG_USE_driver_dmamux)
2906# Add set(CONFIG_USE_driver_dmamux true) in config.cmake to use this component
2907
2908message("driver_dmamux component is included from ${CMAKE_CURRENT_LIST_FILE}.")
2909
2910if((CONFIG_DEVICE_ID STREQUAL MIMXRT1042xxxxB) AND CONFIG_USE_driver_common)
2911
2912target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
2913  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/dmamux/fsl_dmamux.c
2914)
2915
2916target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
2917  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/dmamux/.
2918)
2919
2920else()
2921
2922message(SEND_ERROR "driver_dmamux.MIMXRT1042 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
2923
2924endif()
2925
2926endif()
2927
2928
2929if (CONFIG_USE_driver_edma)
2930# Add set(CONFIG_USE_driver_edma true) in config.cmake to use this component
2931
2932message("driver_edma component is included from ${CMAKE_CURRENT_LIST_FILE}.")
2933
2934if((CONFIG_DEVICE_ID STREQUAL MIMXRT1042xxxxB) AND CONFIG_USE_driver_common AND CONFIG_USE_driver_dmamux)
2935
2936target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
2937  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/edma/fsl_edma.c
2938)
2939
2940target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
2941  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/edma/.
2942)
2943
2944else()
2945
2946message(SEND_ERROR "driver_edma.MIMXRT1042 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
2947
2948endif()
2949
2950endif()
2951
2952
2953if (CONFIG_USE_driver_elcdif)
2954# Add set(CONFIG_USE_driver_elcdif true) in config.cmake to use this component
2955
2956message("driver_elcdif component is included from ${CMAKE_CURRENT_LIST_FILE}.")
2957
2958if((CONFIG_DEVICE_ID STREQUAL MIMXRT1042xxxxB) AND CONFIG_USE_driver_common)
2959
2960target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
2961  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/elcdif/fsl_elcdif.c
2962)
2963
2964target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
2965  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/elcdif/.
2966)
2967
2968else()
2969
2970message(SEND_ERROR "driver_elcdif.MIMXRT1042 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
2971
2972endif()
2973
2974endif()
2975
2976
2977if (CONFIG_USE_driver_enc)
2978# Add set(CONFIG_USE_driver_enc true) in config.cmake to use this component
2979
2980message("driver_enc component is included from ${CMAKE_CURRENT_LIST_FILE}.")
2981
2982if((CONFIG_DEVICE_ID STREQUAL MIMXRT1042xxxxB) AND CONFIG_USE_driver_common)
2983
2984target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
2985  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/enc/fsl_enc.c
2986)
2987
2988target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
2989  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/enc/.
2990)
2991
2992else()
2993
2994message(SEND_ERROR "driver_enc.MIMXRT1042 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
2995
2996endif()
2997
2998endif()
2999
3000
3001if (CONFIG_USE_driver_enet)
3002# Add set(CONFIG_USE_driver_enet true) in config.cmake to use this component
3003
3004message("driver_enet component is included from ${CMAKE_CURRENT_LIST_FILE}.")
3005
3006if((CONFIG_DEVICE_ID STREQUAL MIMXRT1042xxxxB) AND CONFIG_USE_driver_common)
3007
3008target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
3009  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/enet/fsl_enet.c
3010)
3011
3012target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
3013  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/enet/.
3014)
3015
3016else()
3017
3018message(SEND_ERROR "driver_enet.MIMXRT1042 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
3019
3020endif()
3021
3022endif()
3023
3024
3025if (CONFIG_USE_driver_ewm)
3026# Add set(CONFIG_USE_driver_ewm true) in config.cmake to use this component
3027
3028message("driver_ewm component is included from ${CMAKE_CURRENT_LIST_FILE}.")
3029
3030if((CONFIG_DEVICE_ID STREQUAL MIMXRT1042xxxxB) AND CONFIG_USE_driver_common)
3031
3032target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
3033  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/ewm/fsl_ewm.c
3034)
3035
3036target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
3037  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/ewm/.
3038)
3039
3040else()
3041
3042message(SEND_ERROR "driver_ewm.MIMXRT1042 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
3043
3044endif()
3045
3046endif()
3047
3048
3049if (CONFIG_USE_driver_flexcan)
3050# Add set(CONFIG_USE_driver_flexcan true) in config.cmake to use this component
3051
3052message("driver_flexcan component is included from ${CMAKE_CURRENT_LIST_FILE}.")
3053
3054if((CONFIG_DEVICE_ID STREQUAL MIMXRT1042xxxxB) AND CONFIG_USE_driver_common)
3055
3056target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
3057  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/flexcan/fsl_flexcan.c
3058)
3059
3060target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
3061  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/flexcan/.
3062)
3063
3064else()
3065
3066message(SEND_ERROR "driver_flexcan.MIMXRT1042 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
3067
3068endif()
3069
3070endif()
3071
3072
3073if (CONFIG_USE_driver_flexio)
3074# Add set(CONFIG_USE_driver_flexio true) in config.cmake to use this component
3075
3076message("driver_flexio component is included from ${CMAKE_CURRENT_LIST_FILE}.")
3077
3078if((CONFIG_DEVICE_ID STREQUAL MIMXRT1042xxxxB) AND CONFIG_USE_driver_common)
3079
3080target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
3081  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/flexio/fsl_flexio.c
3082)
3083
3084target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
3085  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/flexio/.
3086)
3087
3088else()
3089
3090message(SEND_ERROR "driver_flexio.MIMXRT1042 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
3091
3092endif()
3093
3094endif()
3095
3096
3097if (CONFIG_USE_driver_flexio_camera)
3098# Add set(CONFIG_USE_driver_flexio_camera true) in config.cmake to use this component
3099
3100message("driver_flexio_camera component is included from ${CMAKE_CURRENT_LIST_FILE}.")
3101
3102if(CONFIG_USE_driver_flexio AND (CONFIG_DEVICE_ID STREQUAL MIMXRT1042xxxxB))
3103
3104target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
3105  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/flexio/camera/fsl_flexio_camera.c
3106)
3107
3108target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
3109  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/flexio/camera/.
3110)
3111
3112else()
3113
3114message(SEND_ERROR "driver_flexio_camera.MIMXRT1042 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
3115
3116endif()
3117
3118endif()
3119
3120
3121if (CONFIG_USE_driver_flexio_i2c_master)
3122# Add set(CONFIG_USE_driver_flexio_i2c_master true) in config.cmake to use this component
3123
3124message("driver_flexio_i2c_master component is included from ${CMAKE_CURRENT_LIST_FILE}.")
3125
3126if(CONFIG_USE_driver_flexio)
3127
3128target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
3129  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/flexio/i2c/fsl_flexio_i2c_master.c
3130)
3131
3132target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
3133  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/flexio/i2c/.
3134)
3135
3136else()
3137
3138message(SEND_ERROR "driver_flexio_i2c_master.MIMXRT1042 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
3139
3140endif()
3141
3142endif()
3143
3144
3145if (CONFIG_USE_driver_flexio_i2s)
3146# Add set(CONFIG_USE_driver_flexio_i2s true) in config.cmake to use this component
3147
3148message("driver_flexio_i2s component is included from ${CMAKE_CURRENT_LIST_FILE}.")
3149
3150if(CONFIG_USE_driver_flexio)
3151
3152target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
3153  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/flexio/i2s/fsl_flexio_i2s.c
3154)
3155
3156target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
3157  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/flexio/i2s/.
3158)
3159
3160else()
3161
3162message(SEND_ERROR "driver_flexio_i2s.MIMXRT1042 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
3163
3164endif()
3165
3166endif()
3167
3168
3169if (CONFIG_USE_driver_flexio_mculcd)
3170# Add set(CONFIG_USE_driver_flexio_mculcd true) in config.cmake to use this component
3171
3172message("driver_flexio_mculcd component is included from ${CMAKE_CURRENT_LIST_FILE}.")
3173
3174if(CONFIG_USE_driver_flexio AND (CONFIG_DEVICE_ID STREQUAL MIMXRT1042xxxxB))
3175
3176target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
3177  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/flexio/mculcd/fsl_flexio_mculcd.c
3178)
3179
3180target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
3181  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/flexio/mculcd/.
3182)
3183
3184else()
3185
3186message(SEND_ERROR "driver_flexio_mculcd.MIMXRT1042 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
3187
3188endif()
3189
3190endif()
3191
3192
3193if (CONFIG_USE_driver_flexio_spi)
3194# Add set(CONFIG_USE_driver_flexio_spi true) in config.cmake to use this component
3195
3196message("driver_flexio_spi component is included from ${CMAKE_CURRENT_LIST_FILE}.")
3197
3198if(CONFIG_USE_driver_flexio)
3199
3200target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
3201  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/flexio/spi/fsl_flexio_spi.c
3202)
3203
3204target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
3205  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/flexio/spi/.
3206)
3207
3208else()
3209
3210message(SEND_ERROR "driver_flexio_spi.MIMXRT1042 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
3211
3212endif()
3213
3214endif()
3215
3216
3217if (CONFIG_USE_driver_flexio_uart)
3218# Add set(CONFIG_USE_driver_flexio_uart true) in config.cmake to use this component
3219
3220message("driver_flexio_uart component is included from ${CMAKE_CURRENT_LIST_FILE}.")
3221
3222if(CONFIG_USE_driver_flexio)
3223
3224target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
3225  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/flexio/uart/fsl_flexio_uart.c
3226)
3227
3228target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
3229  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/flexio/uart/.
3230)
3231
3232else()
3233
3234message(SEND_ERROR "driver_flexio_uart.MIMXRT1042 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
3235
3236endif()
3237
3238endif()
3239
3240
3241if (CONFIG_USE_driver_flexram)
3242# Add set(CONFIG_USE_driver_flexram true) in config.cmake to use this component
3243
3244message("driver_flexram component is included from ${CMAKE_CURRENT_LIST_FILE}.")
3245
3246if((CONFIG_DEVICE_ID STREQUAL MIMXRT1042xxxxB) AND CONFIG_USE_driver_common AND CONFIG_USE_driver_soc_flexram_allocate)
3247
3248target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
3249  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/flexram/fsl_flexram.c
3250)
3251
3252target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
3253  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/flexram/.
3254)
3255
3256else()
3257
3258message(SEND_ERROR "driver_flexram.MIMXRT1042 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
3259
3260endif()
3261
3262endif()
3263
3264
3265if (CONFIG_USE_driver_flexspi)
3266# Add set(CONFIG_USE_driver_flexspi true) in config.cmake to use this component
3267
3268message("driver_flexspi component is included from ${CMAKE_CURRENT_LIST_FILE}.")
3269
3270if((CONFIG_DEVICE_ID STREQUAL MIMXRT1042xxxxB) AND CONFIG_USE_driver_common)
3271
3272target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
3273  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/flexspi/fsl_flexspi.c
3274)
3275
3276target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
3277  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/flexspi/.
3278)
3279
3280else()
3281
3282message(SEND_ERROR "driver_flexspi.MIMXRT1042 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
3283
3284endif()
3285
3286endif()
3287
3288
3289if (CONFIG_USE_driver_gpc_1)
3290# Add set(CONFIG_USE_driver_gpc_1 true) in config.cmake to use this component
3291
3292message("driver_gpc_1 component is included from ${CMAKE_CURRENT_LIST_FILE}.")
3293
3294if((CONFIG_DEVICE_ID STREQUAL MIMXRT1042xxxxB) AND CONFIG_USE_driver_common)
3295
3296target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
3297  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/gpc_1/fsl_gpc.c
3298)
3299
3300target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
3301  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/gpc_1/.
3302)
3303
3304else()
3305
3306message(SEND_ERROR "driver_gpc_1.MIMXRT1042 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
3307
3308endif()
3309
3310endif()
3311
3312
3313if (CONFIG_USE_driver_gpt)
3314# Add set(CONFIG_USE_driver_gpt true) in config.cmake to use this component
3315
3316message("driver_gpt component is included from ${CMAKE_CURRENT_LIST_FILE}.")
3317
3318if((CONFIG_DEVICE_ID STREQUAL MIMXRT1042xxxxB) AND CONFIG_USE_driver_common)
3319
3320target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
3321  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/gpt/fsl_gpt.c
3322)
3323
3324target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
3325  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/gpt/.
3326)
3327
3328else()
3329
3330message(SEND_ERROR "driver_gpt.MIMXRT1042 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
3331
3332endif()
3333
3334endif()
3335
3336
3337if (CONFIG_USE_driver_igpio)
3338# Add set(CONFIG_USE_driver_igpio true) in config.cmake to use this component
3339
3340message("driver_igpio component is included from ${CMAKE_CURRENT_LIST_FILE}.")
3341
3342if((CONFIG_DEVICE_ID STREQUAL MIMXRT1042xxxxB) AND CONFIG_USE_driver_common)
3343
3344target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
3345  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/igpio/fsl_gpio.c
3346)
3347
3348target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
3349  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/igpio/.
3350)
3351
3352else()
3353
3354message(SEND_ERROR "driver_igpio.MIMXRT1042 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
3355
3356endif()
3357
3358endif()
3359
3360
3361if (CONFIG_USE_driver_lpi2c)
3362# Add set(CONFIG_USE_driver_lpi2c true) in config.cmake to use this component
3363
3364message("driver_lpi2c component is included from ${CMAKE_CURRENT_LIST_FILE}.")
3365
3366if((CONFIG_DEVICE_ID STREQUAL MIMXRT1042xxxxB) AND CONFIG_USE_driver_common)
3367
3368target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
3369  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/lpi2c/fsl_lpi2c.c
3370)
3371
3372target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
3373  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/lpi2c/.
3374)
3375
3376else()
3377
3378message(SEND_ERROR "driver_lpi2c.MIMXRT1042 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
3379
3380endif()
3381
3382endif()
3383
3384
3385if (CONFIG_USE_driver_lpi2c_freertos)
3386# Add set(CONFIG_USE_driver_lpi2c_freertos true) in config.cmake to use this component
3387
3388message("driver_lpi2c_freertos component is included from ${CMAKE_CURRENT_LIST_FILE}.")
3389
3390if(CONFIG_USE_driver_lpi2c AND CONFIG_USE_middleware_freertos-kernel)
3391
3392target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
3393  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/lpi2c/fsl_lpi2c_freertos.c
3394)
3395
3396target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
3397  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/lpi2c/.
3398)
3399
3400else()
3401
3402message(SEND_ERROR "driver_lpi2c_freertos.MIMXRT1042 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
3403
3404endif()
3405
3406endif()
3407
3408
3409if (CONFIG_USE_driver_lpspi)
3410# Add set(CONFIG_USE_driver_lpspi true) in config.cmake to use this component
3411
3412message("driver_lpspi component is included from ${CMAKE_CURRENT_LIST_FILE}.")
3413
3414if((CONFIG_DEVICE_ID STREQUAL MIMXRT1042xxxxB) AND CONFIG_USE_driver_common)
3415
3416target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
3417  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/lpspi/fsl_lpspi.c
3418)
3419
3420target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
3421  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/lpspi/.
3422)
3423
3424else()
3425
3426message(SEND_ERROR "driver_lpspi.MIMXRT1042 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
3427
3428endif()
3429
3430endif()
3431
3432
3433if (CONFIG_USE_driver_lpspi_freertos)
3434# Add set(CONFIG_USE_driver_lpspi_freertos true) in config.cmake to use this component
3435
3436message("driver_lpspi_freertos component is included from ${CMAKE_CURRENT_LIST_FILE}.")
3437
3438if(CONFIG_USE_driver_lpspi AND CONFIG_USE_middleware_freertos-kernel)
3439
3440target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
3441  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/lpspi/fsl_lpspi_freertos.c
3442)
3443
3444target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
3445  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/lpspi/.
3446)
3447
3448else()
3449
3450message(SEND_ERROR "driver_lpspi_freertos.MIMXRT1042 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
3451
3452endif()
3453
3454endif()
3455
3456
3457if (CONFIG_USE_driver_lpuart)
3458# Add set(CONFIG_USE_driver_lpuart true) in config.cmake to use this component
3459
3460message("driver_lpuart component is included from ${CMAKE_CURRENT_LIST_FILE}.")
3461
3462if((CONFIG_DEVICE_ID STREQUAL MIMXRT1042xxxxB) AND CONFIG_USE_driver_common)
3463
3464target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
3465  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/lpuart/fsl_lpuart.c
3466)
3467
3468target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
3469  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/lpuart/.
3470)
3471
3472else()
3473
3474message(SEND_ERROR "driver_lpuart.MIMXRT1042 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
3475
3476endif()
3477
3478endif()
3479
3480
3481if (CONFIG_USE_driver_lpuart_freertos)
3482# Add set(CONFIG_USE_driver_lpuart_freertos true) in config.cmake to use this component
3483
3484message("driver_lpuart_freertos component is included from ${CMAKE_CURRENT_LIST_FILE}.")
3485
3486if(CONFIG_USE_driver_lpuart AND CONFIG_USE_middleware_freertos-kernel)
3487
3488target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
3489  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/lpuart/fsl_lpuart_freertos.c
3490)
3491
3492target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
3493  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/lpuart/.
3494)
3495
3496else()
3497
3498message(SEND_ERROR "driver_lpuart_freertos.MIMXRT1042 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
3499
3500endif()
3501
3502endif()
3503
3504
3505if (CONFIG_USE_driver_ocotp)
3506# Add set(CONFIG_USE_driver_ocotp true) in config.cmake to use this component
3507
3508message("driver_ocotp component is included from ${CMAKE_CURRENT_LIST_FILE}.")
3509
3510if((CONFIG_DEVICE_ID STREQUAL MIMXRT1042xxxxB) AND CONFIG_USE_driver_common)
3511
3512target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
3513  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/ocotp/fsl_ocotp.c
3514)
3515
3516target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
3517  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/ocotp/.
3518)
3519
3520else()
3521
3522message(SEND_ERROR "driver_ocotp.MIMXRT1042 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
3523
3524endif()
3525
3526endif()
3527
3528
3529if (CONFIG_USE_driver_pit)
3530# Add set(CONFIG_USE_driver_pit true) in config.cmake to use this component
3531
3532message("driver_pit component is included from ${CMAKE_CURRENT_LIST_FILE}.")
3533
3534if((CONFIG_DEVICE_ID STREQUAL MIMXRT1042xxxxB) AND CONFIG_USE_driver_common)
3535
3536target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
3537  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/pit/fsl_pit.c
3538)
3539
3540target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
3541  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/pit/.
3542)
3543
3544else()
3545
3546message(SEND_ERROR "driver_pit.MIMXRT1042 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
3547
3548endif()
3549
3550endif()
3551
3552
3553if (CONFIG_USE_driver_pmu)
3554# Add set(CONFIG_USE_driver_pmu true) in config.cmake to use this component
3555
3556message("driver_pmu component is included from ${CMAKE_CURRENT_LIST_FILE}.")
3557
3558if((CONFIG_DEVICE_ID STREQUAL MIMXRT1042xxxxB) AND CONFIG_USE_driver_common)
3559
3560target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
3561  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/pmu/fsl_pmu.c
3562)
3563
3564target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
3565  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/pmu/.
3566)
3567
3568else()
3569
3570message(SEND_ERROR "driver_pmu.MIMXRT1042 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
3571
3572endif()
3573
3574endif()
3575
3576
3577if (CONFIG_USE_driver_pwm)
3578# Add set(CONFIG_USE_driver_pwm true) in config.cmake to use this component
3579
3580message("driver_pwm component is included from ${CMAKE_CURRENT_LIST_FILE}.")
3581
3582if((CONFIG_DEVICE_ID STREQUAL MIMXRT1042xxxxB) AND CONFIG_USE_driver_common)
3583
3584target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
3585  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/pwm/fsl_pwm.c
3586)
3587
3588target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
3589  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/pwm/.
3590)
3591
3592else()
3593
3594message(SEND_ERROR "driver_pwm.MIMXRT1042 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
3595
3596endif()
3597
3598endif()
3599
3600
3601if (CONFIG_USE_driver_pxp)
3602# Add set(CONFIG_USE_driver_pxp true) in config.cmake to use this component
3603
3604message("driver_pxp component is included from ${CMAKE_CURRENT_LIST_FILE}.")
3605
3606if((CONFIG_DEVICE_ID STREQUAL MIMXRT1042xxxxB) AND CONFIG_USE_driver_common)
3607
3608target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
3609  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/pxp/fsl_pxp.c
3610)
3611
3612target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
3613  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/pxp/.
3614)
3615
3616else()
3617
3618message(SEND_ERROR "driver_pxp.MIMXRT1042 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
3619
3620endif()
3621
3622endif()
3623
3624
3625if (CONFIG_USE_driver_qtmr_1)
3626# Add set(CONFIG_USE_driver_qtmr_1 true) in config.cmake to use this component
3627
3628message("driver_qtmr_1 component is included from ${CMAKE_CURRENT_LIST_FILE}.")
3629
3630if((CONFIG_DEVICE_ID STREQUAL MIMXRT1042xxxxB) AND CONFIG_USE_driver_common)
3631
3632target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
3633  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/qtmr_1/fsl_qtmr.c
3634)
3635
3636target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
3637  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/qtmr_1/.
3638)
3639
3640else()
3641
3642message(SEND_ERROR "driver_qtmr_1.MIMXRT1042 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
3643
3644endif()
3645
3646endif()
3647
3648
3649if (CONFIG_USE_driver_rtwdog)
3650# Add set(CONFIG_USE_driver_rtwdog true) in config.cmake to use this component
3651
3652message("driver_rtwdog component is included from ${CMAKE_CURRENT_LIST_FILE}.")
3653
3654if((CONFIG_DEVICE_ID STREQUAL MIMXRT1042xxxxB) AND CONFIG_USE_driver_common)
3655
3656target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
3657  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/rtwdog/fsl_rtwdog.c
3658)
3659
3660target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
3661  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/rtwdog/.
3662)
3663
3664else()
3665
3666message(SEND_ERROR "driver_rtwdog.MIMXRT1042 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
3667
3668endif()
3669
3670endif()
3671
3672
3673if (CONFIG_USE_driver_sai)
3674# Add set(CONFIG_USE_driver_sai true) in config.cmake to use this component
3675
3676message("driver_sai component is included from ${CMAKE_CURRENT_LIST_FILE}.")
3677
3678if((CONFIG_DEVICE_ID STREQUAL MIMXRT1042xxxxB) AND CONFIG_USE_driver_common)
3679
3680target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
3681  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/sai/fsl_sai.c
3682)
3683
3684target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
3685  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/sai/.
3686)
3687
3688else()
3689
3690message(SEND_ERROR "driver_sai.MIMXRT1042 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
3691
3692endif()
3693
3694endif()
3695
3696
3697if (CONFIG_USE_driver_semc)
3698# Add set(CONFIG_USE_driver_semc true) in config.cmake to use this component
3699
3700message("driver_semc component is included from ${CMAKE_CURRENT_LIST_FILE}.")
3701
3702if((CONFIG_DEVICE_ID STREQUAL MIMXRT1042xxxxB) AND CONFIG_USE_driver_common)
3703
3704target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
3705  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/semc/fsl_semc.c
3706)
3707
3708target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
3709  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/semc/.
3710)
3711
3712else()
3713
3714message(SEND_ERROR "driver_semc.MIMXRT1042 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
3715
3716endif()
3717
3718endif()
3719
3720
3721if (CONFIG_USE_driver_snvs_hp)
3722# Add set(CONFIG_USE_driver_snvs_hp true) in config.cmake to use this component
3723
3724message("driver_snvs_hp component is included from ${CMAKE_CURRENT_LIST_FILE}.")
3725
3726if((CONFIG_DEVICE_ID STREQUAL MIMXRT1042xxxxB) AND CONFIG_USE_driver_common)
3727
3728target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
3729  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/snvs_hp/fsl_snvs_hp.c
3730)
3731
3732target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
3733  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/snvs_hp/.
3734)
3735
3736else()
3737
3738message(SEND_ERROR "driver_snvs_hp.MIMXRT1042 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
3739
3740endif()
3741
3742endif()
3743
3744
3745if (CONFIG_USE_driver_snvs_lp)
3746# Add set(CONFIG_USE_driver_snvs_lp true) in config.cmake to use this component
3747
3748message("driver_snvs_lp component is included from ${CMAKE_CURRENT_LIST_FILE}.")
3749
3750if((CONFIG_DEVICE_ID STREQUAL MIMXRT1042xxxxB) AND CONFIG_USE_driver_common)
3751
3752target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
3753  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/snvs_lp/fsl_snvs_lp.c
3754)
3755
3756target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
3757  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/snvs_lp/.
3758)
3759
3760else()
3761
3762message(SEND_ERROR "driver_snvs_lp.MIMXRT1042 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
3763
3764endif()
3765
3766endif()
3767
3768
3769if (CONFIG_USE_driver_spdif)
3770# Add set(CONFIG_USE_driver_spdif true) in config.cmake to use this component
3771
3772message("driver_spdif component is included from ${CMAKE_CURRENT_LIST_FILE}.")
3773
3774if((CONFIG_DEVICE_ID STREQUAL MIMXRT1042xxxxB) AND CONFIG_USE_driver_common)
3775
3776target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
3777  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/spdif/fsl_spdif.c
3778)
3779
3780target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
3781  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/spdif/.
3782)
3783
3784else()
3785
3786message(SEND_ERROR "driver_spdif.MIMXRT1042 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
3787
3788endif()
3789
3790endif()
3791
3792
3793if (CONFIG_USE_driver_src)
3794# Add set(CONFIG_USE_driver_src true) in config.cmake to use this component
3795
3796message("driver_src component is included from ${CMAKE_CURRENT_LIST_FILE}.")
3797
3798if((CONFIG_DEVICE_ID STREQUAL MIMXRT1042xxxxB) AND CONFIG_USE_driver_common)
3799
3800target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
3801  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/src/fsl_src.c
3802)
3803
3804target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
3805  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/src/.
3806)
3807
3808else()
3809
3810message(SEND_ERROR "driver_src.MIMXRT1042 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
3811
3812endif()
3813
3814endif()
3815
3816
3817if (CONFIG_USE_driver_tempmon)
3818# Add set(CONFIG_USE_driver_tempmon true) in config.cmake to use this component
3819
3820message("driver_tempmon component is included from ${CMAKE_CURRENT_LIST_FILE}.")
3821
3822if((CONFIG_DEVICE_ID STREQUAL MIMXRT1042xxxxB) AND CONFIG_USE_driver_common)
3823
3824target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
3825  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/tempmon/fsl_tempmon.c
3826)
3827
3828target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
3829  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/tempmon/.
3830)
3831
3832else()
3833
3834message(SEND_ERROR "driver_tempmon.MIMXRT1042 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
3835
3836endif()
3837
3838endif()
3839
3840
3841if (CONFIG_USE_driver_trng)
3842# Add set(CONFIG_USE_driver_trng true) in config.cmake to use this component
3843
3844message("driver_trng component is included from ${CMAKE_CURRENT_LIST_FILE}.")
3845
3846if((CONFIG_DEVICE_ID STREQUAL MIMXRT1042xxxxB) AND CONFIG_USE_driver_common)
3847
3848target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
3849  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/trng/fsl_trng.c
3850)
3851
3852target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
3853  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/trng/.
3854)
3855
3856else()
3857
3858message(SEND_ERROR "driver_trng.MIMXRT1042 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
3859
3860endif()
3861
3862endif()
3863
3864
3865if (CONFIG_USE_driver_usdhc)
3866# Add set(CONFIG_USE_driver_usdhc true) in config.cmake to use this component
3867
3868message("driver_usdhc component is included from ${CMAKE_CURRENT_LIST_FILE}.")
3869
3870if((CONFIG_DEVICE_ID STREQUAL MIMXRT1042xxxxB) AND CONFIG_USE_driver_common)
3871
3872target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
3873  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/usdhc/fsl_usdhc.c
3874)
3875
3876target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
3877  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/usdhc/.
3878)
3879
3880else()
3881
3882message(SEND_ERROR "driver_usdhc.MIMXRT1042 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
3883
3884endif()
3885
3886endif()
3887
3888
3889if (CONFIG_USE_driver_wdog01)
3890# Add set(CONFIG_USE_driver_wdog01 true) in config.cmake to use this component
3891
3892message("driver_wdog01 component is included from ${CMAKE_CURRENT_LIST_FILE}.")
3893
3894if((CONFIG_DEVICE_ID STREQUAL MIMXRT1042xxxxB) AND CONFIG_USE_driver_common)
3895
3896target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
3897  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/wdog01/fsl_wdog.c
3898)
3899
3900target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
3901  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/wdog01/.
3902)
3903
3904else()
3905
3906message(SEND_ERROR "driver_wdog01.MIMXRT1042 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
3907
3908endif()
3909
3910endif()
3911
3912
3913if (CONFIG_USE_driver_xbara)
3914# Add set(CONFIG_USE_driver_xbara true) in config.cmake to use this component
3915
3916message("driver_xbara component is included from ${CMAKE_CURRENT_LIST_FILE}.")
3917
3918if((CONFIG_DEVICE_ID STREQUAL MIMXRT1042xxxxB) AND CONFIG_USE_driver_common)
3919
3920target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
3921  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/xbara/fsl_xbara.c
3922)
3923
3924target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
3925  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/xbara/.
3926)
3927
3928else()
3929
3930message(SEND_ERROR "driver_xbara.MIMXRT1042 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
3931
3932endif()
3933
3934endif()
3935
3936
3937if (CONFIG_USE_driver_xbarb)
3938# Add set(CONFIG_USE_driver_xbarb true) in config.cmake to use this component
3939
3940message("driver_xbarb component is included from ${CMAKE_CURRENT_LIST_FILE}.")
3941
3942if((CONFIG_DEVICE_ID STREQUAL MIMXRT1042xxxxB) AND CONFIG_USE_driver_common)
3943
3944target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
3945  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/xbarb/fsl_xbarb.c
3946)
3947
3948target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
3949  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/xbarb/.
3950)
3951
3952else()
3953
3954message(SEND_ERROR "driver_xbarb.MIMXRT1042 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
3955
3956endif()
3957
3958endif()
3959
3960
3961if (CONFIG_USE_driver_soc_flexram_allocate)
3962# Add set(CONFIG_USE_driver_soc_flexram_allocate true) in config.cmake to use this component
3963
3964message("driver_soc_flexram_allocate component is included from ${CMAKE_CURRENT_LIST_FILE}.")
3965
3966if(CONFIG_USE_driver_common)
3967
3968target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
3969  ${CMAKE_CURRENT_LIST_DIR}/drivers/fsl_flexram_allocate.c
3970)
3971
3972target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
3973  ${CMAKE_CURRENT_LIST_DIR}/drivers/.
3974)
3975
3976else()
3977
3978message(SEND_ERROR "driver_soc_flexram_allocate.MIMXRT1042 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
3979
3980endif()
3981
3982endif()
3983
3984
3985if (CONFIG_USE_driver_xip_device)
3986# Add set(CONFIG_USE_driver_xip_device true) in config.cmake to use this component
3987
3988message("driver_xip_device component is included from ${CMAKE_CURRENT_LIST_FILE}.")
3989
3990if(CONFIG_USE_driver_common)
3991
3992target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
3993  ${CMAKE_CURRENT_LIST_DIR}/xip/fsl_flexspi_nor_boot.c
3994)
3995
3996target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
3997  ${CMAKE_CURRENT_LIST_DIR}/xip/.
3998)
3999
4000else()
4001
4002message(SEND_ERROR "driver_xip_device.MIMXRT1042 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
4003
4004endif()
4005
4006endif()
4007
4008
4009if (CONFIG_USE_driver_romapi)
4010# Add set(CONFIG_USE_driver_romapi true) in config.cmake to use this component
4011
4012message("driver_romapi component is included from ${CMAKE_CURRENT_LIST_FILE}.")
4013
4014if(CONFIG_USE_driver_common)
4015
4016target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
4017  ${CMAKE_CURRENT_LIST_DIR}/drivers/fsl_romapi.c
4018)
4019
4020target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
4021  ${CMAKE_CURRENT_LIST_DIR}/drivers/.
4022)
4023
4024else()
4025
4026message(SEND_ERROR "driver_romapi.MIMXRT1042 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
4027
4028endif()
4029
4030endif()
4031
4032
4033if (CONFIG_USE_driver_nic301)
4034# Add set(CONFIG_USE_driver_nic301 true) in config.cmake to use this component
4035
4036message("driver_nic301 component is included from ${CMAKE_CURRENT_LIST_FILE}.")
4037
4038if(CONFIG_USE_driver_common)
4039
4040target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
4041  ${CMAKE_CURRENT_LIST_DIR}/drivers/.
4042)
4043
4044else()
4045
4046message(SEND_ERROR "driver_nic301.MIMXRT1042 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
4047
4048endif()
4049
4050endif()
4051
4052
4053if (CONFIG_USE_driver_display-common)
4054# Add set(CONFIG_USE_driver_display-common true) in config.cmake to use this component
4055
4056message("driver_display-common component is included from ${CMAKE_CURRENT_LIST_FILE}.")
4057
4058if(CONFIG_USE_driver_video-common)
4059
4060target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
4061  ${CMAKE_CURRENT_LIST_DIR}/../../components/video/display/.
4062)
4063
4064else()
4065
4066message(SEND_ERROR "driver_display-common.MIMXRT1042 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
4067
4068endif()
4069
4070endif()
4071
4072
4073if (CONFIG_USE_driver_dc-fb-common)
4074# Add set(CONFIG_USE_driver_dc-fb-common true) in config.cmake to use this component
4075
4076message("driver_dc-fb-common component is included from ${CMAKE_CURRENT_LIST_FILE}.")
4077
4078if(CONFIG_USE_driver_video-common)
4079
4080target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
4081  ${CMAKE_CURRENT_LIST_DIR}/../../components/video/display/dc/.
4082)
4083
4084else()
4085
4086message(SEND_ERROR "driver_dc-fb-common.MIMXRT1042 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
4087
4088endif()
4089
4090endif()
4091
4092
4093if (CONFIG_USE_driver_dc-fb-elcdif)
4094# Add set(CONFIG_USE_driver_dc-fb-elcdif true) in config.cmake to use this component
4095
4096message("driver_dc-fb-elcdif component is included from ${CMAKE_CURRENT_LIST_FILE}.")
4097
4098if(CONFIG_USE_driver_dc-fb-common AND CONFIG_USE_driver_elcdif)
4099
4100target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
4101  ${CMAKE_CURRENT_LIST_DIR}/../../components/video/display/dc/elcdif/fsl_dc_fb_elcdif.c
4102)
4103
4104target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
4105  ${CMAKE_CURRENT_LIST_DIR}/../../components/video/display/dc/elcdif/.
4106)
4107
4108else()
4109
4110message(SEND_ERROR "driver_dc-fb-elcdif.MIMXRT1042 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
4111
4112endif()
4113
4114endif()
4115
4116
4117if (CONFIG_USE_driver_fbdev)
4118# Add set(CONFIG_USE_driver_fbdev true) in config.cmake to use this component
4119
4120message("driver_fbdev component is included from ${CMAKE_CURRENT_LIST_FILE}.")
4121
4122if(CONFIG_USE_driver_dc-fb-common AND CONFIG_USE_middleware_freertos-kernel)
4123
4124target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
4125  ${CMAKE_CURRENT_LIST_DIR}/../../components/video/display/fbdev/fsl_fbdev.c
4126)
4127
4128target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
4129  ${CMAKE_CURRENT_LIST_DIR}/../../components/video/display/fbdev/.
4130)
4131
4132else()
4133
4134message(SEND_ERROR "driver_fbdev.MIMXRT1042 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
4135
4136endif()
4137
4138endif()
4139
4140
4141if (CONFIG_USE_driver_rtt)
4142# Add set(CONFIG_USE_driver_rtt true) in config.cmake to use this component
4143
4144message("driver_rtt component is included from ${CMAKE_CURRENT_LIST_FILE}.")
4145
4146if(CONFIG_USE_driver_rtt_template)
4147
4148target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
4149  ${CMAKE_CURRENT_LIST_DIR}/../../components/rtt/RTT/SEGGER_RTT.c
4150  ${CMAKE_CURRENT_LIST_DIR}/../../components/rtt/RTT/SEGGER_RTT_printf.c
4151)
4152
4153if(CONFIG_CORE STREQUAL cm7f)
4154  target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
4155      ${CMAKE_CURRENT_LIST_DIR}/../../components/rtt/RTT/SEGGER_RTT_ASM_ARMv7M.S
4156  )
4157endif()
4158
4159if((CONFIG_TOOLCHAIN STREQUAL armgcc OR CONFIG_TOOLCHAIN STREQUAL mcux))
4160  target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
4161      ${CMAKE_CURRENT_LIST_DIR}/../../components/rtt/Syscalls/SEGGER_RTT_Syscalls_GCC.c
4162  )
4163endif()
4164
4165target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
4166  ${CMAKE_CURRENT_LIST_DIR}/../../components/rtt/RTT
4167)
4168
4169else()
4170
4171message(SEND_ERROR "driver_rtt.MIMXRT1042 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
4172
4173endif()
4174
4175endif()
4176
4177