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