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
34
35endif()
36
37
38if (CONFIG_USE_DEVICES_Project_Template_MKM34Z7)
39# Add set(CONFIG_USE_DEVICES_Project_Template_MKM34Z7 true) in config.cmake to use this component
40
41message("DEVICES_Project_Template_MKM34Z7 component is included from ${CMAKE_CURRENT_LIST_FILE}.")
42
43if(CONFIG_USE_component_uart_adapter AND (CONFIG_DEVICE_ID STREQUAL MKM34Z256xxx7) AND CONFIG_USE_device_MKM34Z7_startup AND CONFIG_USE_driver_clock AND CONFIG_USE_driver_common AND CONFIG_USE_driver_gpio AND CONFIG_USE_driver_irtc AND CONFIG_USE_driver_port AND CONFIG_USE_driver_smc AND CONFIG_USE_driver_uart 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)))
44
45add_config_file(${CMAKE_CURRENT_LIST_DIR}/project_template/board.h "" DEVICES_Project_Template_MKM34Z7.MKM34Z7)
46add_config_file(${CMAKE_CURRENT_LIST_DIR}/project_template/board.c "" DEVICES_Project_Template_MKM34Z7.MKM34Z7)
47add_config_file(${CMAKE_CURRENT_LIST_DIR}/project_template/clock_config.h "" DEVICES_Project_Template_MKM34Z7.MKM34Z7)
48add_config_file(${CMAKE_CURRENT_LIST_DIR}/project_template/clock_config.c "" DEVICES_Project_Template_MKM34Z7.MKM34Z7)
49add_config_file(${CMAKE_CURRENT_LIST_DIR}/project_template/pin_mux.h "" DEVICES_Project_Template_MKM34Z7.MKM34Z7)
50add_config_file(${CMAKE_CURRENT_LIST_DIR}/project_template/pin_mux.c "" DEVICES_Project_Template_MKM34Z7.MKM34Z7)
51add_config_file(${CMAKE_CURRENT_LIST_DIR}/project_template/peripherals.h "" DEVICES_Project_Template_MKM34Z7.MKM34Z7)
52add_config_file(${CMAKE_CURRENT_LIST_DIR}/project_template/peripherals.c "" DEVICES_Project_Template_MKM34Z7.MKM34Z7)
53
54target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
55  ${CMAKE_CURRENT_LIST_DIR}/project_template/.
56)
57
58else()
59
60message(SEND_ERROR "DEVICES_Project_Template_MKM34Z7.MKM34Z7 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
61
62endif()
63
64endif()
65
66
67if (CONFIG_USE_device_MKM34Z7_CMSIS)
68# Add set(CONFIG_USE_device_MKM34Z7_CMSIS true) in config.cmake to use this component
69
70message("device_MKM34Z7_CMSIS component is included from ${CMAKE_CURRENT_LIST_FILE}.")
71
72if(CONFIG_USE_CMSIS_Include_core_cm AND (CONFIG_DEVICE_ID STREQUAL MKM34Z256xxx7))
73
74target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
75  ${CMAKE_CURRENT_LIST_DIR}/./.
76)
77
78else()
79
80message(SEND_ERROR "device_MKM34Z7_CMSIS.MKM34Z7 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
81
82endif()
83
84endif()
85
86
87if (CONFIG_USE_RTE_Device)
88# Add set(CONFIG_USE_RTE_Device true) in config.cmake to use this component
89
90message("RTE_Device component is included from ${CMAKE_CURRENT_LIST_FILE}.")
91
92if((CONFIG_DEVICE_ID STREQUAL MKM34Z256xxx7) AND CONFIG_USE_driver_dma AND CONFIG_USE_driver_dmamux)
93
94add_config_file(${CMAKE_CURRENT_LIST_DIR}/template/RTE_Device.h "" RTE_Device.MKM34Z7)
95
96target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
97  ${CMAKE_CURRENT_LIST_DIR}/template/.
98)
99
100else()
101
102message(SEND_ERROR "RTE_Device.MKM34Z7 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
103
104endif()
105
106endif()
107
108
109if (CONFIG_USE_driver_clock)
110# Add set(CONFIG_USE_driver_clock true) in config.cmake to use this component
111
112message("driver_clock component is included from ${CMAKE_CURRENT_LIST_FILE}.")
113
114if(CONFIG_USE_driver_common)
115
116target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
117  ${CMAKE_CURRENT_LIST_DIR}/drivers/fsl_clock.c
118)
119
120target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
121  ${CMAKE_CURRENT_LIST_DIR}/drivers/.
122)
123
124else()
125
126message(SEND_ERROR "driver_clock.MKM34Z7 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
127
128endif()
129
130endif()
131
132
133if (CONFIG_USE_component_serial_manager_uart)
134# Add set(CONFIG_USE_component_serial_manager_uart true) in config.cmake to use this component
135
136message("component_serial_manager_uart component is included from ${CMAKE_CURRENT_LIST_FILE}.")
137
138if(CONFIG_USE_component_uart_adapter AND CONFIG_USE_component_serial_manager AND (CONFIG_USE_driver_lpuart OR CONFIG_USE_driver_uart))
139
140target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
141  ${CMAKE_CURRENT_LIST_DIR}/../../components/serial_manager/fsl_component_serial_port_uart.c
142)
143
144target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
145  ${CMAKE_CURRENT_LIST_DIR}/../../components/serial_manager/.
146)
147
148if(CONFIG_USE_COMPONENT_CONFIGURATION)
149  message("===>Import configuration from ${CMAKE_CURRENT_LIST_FILE}")
150
151  target_compile_definitions(${MCUX_SDK_PROJECT_NAME} PUBLIC
152    -DSERIAL_PORT_TYPE_UART=1
153  )
154
155endif()
156
157else()
158
159message(SEND_ERROR "component_serial_manager_uart.MKM34Z7 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
160
161endif()
162
163endif()
164
165
166if (CONFIG_USE_utility_debug_console_lite)
167# Add set(CONFIG_USE_utility_debug_console_lite true) in config.cmake to use this component
168
169message("utility_debug_console_lite component is included from ${CMAKE_CURRENT_LIST_FILE}.")
170
171if(CONFIG_USE_component_uart_adapter AND (CONFIG_DEVICE_ID STREQUAL MKM34Z256xxx7) AND CONFIG_USE_driver_common)
172
173target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
174  ${CMAKE_CURRENT_LIST_DIR}/../../utilities/str/fsl_str.c
175  ${CMAKE_CURRENT_LIST_DIR}/../../utilities/debug_console_lite/fsl_debug_console.c
176)
177
178target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
179  ${CMAKE_CURRENT_LIST_DIR}/../../utilities/str
180  ${CMAKE_CURRENT_LIST_DIR}/../../utilities/debug_console_lite
181)
182
183else()
184
185message(SEND_ERROR "utility_debug_console_lite.MKM34Z7 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
186
187endif()
188
189endif()
190
191
192if (CONFIG_USE_driver_cmsis_spi)
193# Add set(CONFIG_USE_driver_cmsis_spi true) in config.cmake to use this component
194
195message("driver_cmsis_spi component is included from ${CMAKE_CURRENT_LIST_FILE}.")
196
197if(CONFIG_USE_driver_spi_dma AND (CONFIG_DEVICE_ID STREQUAL MKM34Z256xxx7) AND CONFIG_USE_driver_spi AND CONFIG_USE_CMSIS_Driver_Include_SPI AND CONFIG_USE_RTE_Device)
198
199target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
200  ${CMAKE_CURRENT_LIST_DIR}/../../cmsis_drivers/spi/fsl_spi_cmsis.c
201)
202
203target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
204  ${CMAKE_CURRENT_LIST_DIR}/../../cmsis_drivers/spi/.
205)
206
207else()
208
209message(SEND_ERROR "driver_cmsis_spi.MKM34Z7 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
210
211endif()
212
213endif()
214
215
216if (CONFIG_USE_driver_cmsis_i2c)
217# Add set(CONFIG_USE_driver_cmsis_i2c true) in config.cmake to use this component
218
219message("driver_cmsis_i2c component is included from ${CMAKE_CURRENT_LIST_FILE}.")
220
221if(CONFIG_USE_driver_i2c_dma AND (CONFIG_DEVICE_ID STREQUAL MKM34Z256xxx7) AND CONFIG_USE_driver_i2c AND CONFIG_USE_CMSIS_Driver_Include_I2C AND CONFIG_USE_RTE_Device)
222
223target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
224  ${CMAKE_CURRENT_LIST_DIR}/../../cmsis_drivers/i2c/fsl_i2c_cmsis.c
225)
226
227target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
228  ${CMAKE_CURRENT_LIST_DIR}/../../cmsis_drivers/i2c/.
229)
230
231else()
232
233message(SEND_ERROR "driver_cmsis_i2c.MKM34Z7 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
234
235endif()
236
237endif()
238
239
240if (CONFIG_USE_driver_cmsis_uart)
241# Add set(CONFIG_USE_driver_cmsis_uart true) in config.cmake to use this component
242
243message("driver_cmsis_uart component is included from ${CMAKE_CURRENT_LIST_FILE}.")
244
245if(CONFIG_USE_driver_uart_dma AND (CONFIG_DEVICE_ID STREQUAL MKM34Z256xxx7) AND CONFIG_USE_driver_uart AND CONFIG_USE_CMSIS_Driver_Include_USART AND CONFIG_USE_RTE_Device)
246
247target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
248  ${CMAKE_CURRENT_LIST_DIR}/../../cmsis_drivers/uart/fsl_uart_cmsis.c
249)
250
251target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
252  ${CMAKE_CURRENT_LIST_DIR}/../../cmsis_drivers/uart/.
253)
254
255else()
256
257message(SEND_ERROR "driver_cmsis_uart.MKM34Z7 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
258
259endif()
260
261endif()
262
263
264if (CONFIG_USE_driver_i2c_dma)
265# Add set(CONFIG_USE_driver_i2c_dma true) in config.cmake to use this component
266
267message("driver_i2c_dma component is included from ${CMAKE_CURRENT_LIST_FILE}.")
268
269if(CONFIG_USE_driver_dma AND CONFIG_USE_driver_i2c)
270
271target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
272  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/i2c/fsl_i2c_dma.c
273)
274
275target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
276  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/i2c/.
277)
278
279else()
280
281message(SEND_ERROR "driver_i2c_dma.MKM34Z7 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
282
283endif()
284
285endif()
286
287
288if (CONFIG_USE_driver_lpuart_dma)
289# Add set(CONFIG_USE_driver_lpuart_dma true) in config.cmake to use this component
290
291message("driver_lpuart_dma component is included from ${CMAKE_CURRENT_LIST_FILE}.")
292
293if(CONFIG_USE_driver_dma AND CONFIG_USE_driver_lpuart)
294
295target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
296  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/lpuart/fsl_lpuart_dma.c
297)
298
299target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
300  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/lpuart/.
301)
302
303else()
304
305message(SEND_ERROR "driver_lpuart_dma.MKM34Z7 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
306
307endif()
308
309endif()
310
311
312if (CONFIG_USE_driver_spi_dma)
313# Add set(CONFIG_USE_driver_spi_dma true) in config.cmake to use this component
314
315message("driver_spi_dma component is included from ${CMAKE_CURRENT_LIST_FILE}.")
316
317if(CONFIG_USE_driver_dma AND CONFIG_USE_driver_spi)
318
319target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
320  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/spi/fsl_spi_dma.c
321)
322
323target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
324  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/spi/.
325)
326
327else()
328
329message(SEND_ERROR "driver_spi_dma.MKM34Z7 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
330
331endif()
332
333endif()
334
335
336if (CONFIG_USE_driver_uart_dma)
337# Add set(CONFIG_USE_driver_uart_dma true) in config.cmake to use this component
338
339message("driver_uart_dma component is included from ${CMAKE_CURRENT_LIST_FILE}.")
340
341if(CONFIG_USE_driver_dma AND CONFIG_USE_driver_uart)
342
343target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
344  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/uart/fsl_uart_dma.c
345)
346
347target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
348  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/uart/.
349)
350
351else()
352
353message(SEND_ERROR "driver_uart_dma.MKM34Z7 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
354
355endif()
356
357endif()
358
359
360if (CONFIG_USE_utility_notifier)
361# Add set(CONFIG_USE_utility_notifier true) in config.cmake to use this component
362
363message("utility_notifier component is included from ${CMAKE_CURRENT_LIST_FILE}.")
364
365if(CONFIG_USE_driver_common)
366
367target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
368  ${CMAKE_CURRENT_LIST_DIR}/../../utilities/notifier/fsl_notifier.c
369)
370
371target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
372  ${CMAKE_CURRENT_LIST_DIR}/../../utilities/notifier/.
373)
374
375else()
376
377message(SEND_ERROR "utility_notifier.MKM34Z7 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
378
379endif()
380
381endif()
382
383
384if (CONFIG_USE_device_MKM34Z7_system)
385# Add set(CONFIG_USE_device_MKM34Z7_system true) in config.cmake to use this component
386
387message("device_MKM34Z7_system component is included from ${CMAKE_CURRENT_LIST_FILE}.")
388
389if(CONFIG_USE_device_MKM34Z7_CMSIS)
390
391target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
392  ${CMAKE_CURRENT_LIST_DIR}/./system_MKM34Z7.c
393)
394
395target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
396  ${CMAKE_CURRENT_LIST_DIR}/./.
397)
398
399else()
400
401message(SEND_ERROR "device_MKM34Z7_system.MKM34Z7 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
402
403endif()
404
405endif()
406
407
408if (CONFIG_USE_device_MKM34Z7_startup)
409# Add set(CONFIG_USE_device_MKM34Z7_startup true) in config.cmake to use this component
410
411message("device_MKM34Z7_startup component is included from ${CMAKE_CURRENT_LIST_FILE}.")
412
413if(CONFIG_USE_device_MKM34Z7_system)
414
415if(CONFIG_TOOLCHAIN STREQUAL armgcc)
416  target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
417      ${CMAKE_CURRENT_LIST_DIR}/./gcc/startup_MKM34Z7.S
418  )
419endif()
420
421if(CONFIG_TOOLCHAIN STREQUAL mcux)
422  target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
423      ${CMAKE_CURRENT_LIST_DIR}/./mcuxpresso/startup_mkm34z7.c
424      ${CMAKE_CURRENT_LIST_DIR}/./mcuxpresso/startup_mkm34z7.cpp
425  )
426endif()
427
428else()
429
430message(SEND_ERROR "device_MKM34Z7_startup.MKM34Z7 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
431
432endif()
433
434endif()
435
436
437if (CONFIG_USE_utility_assert)
438# Add set(CONFIG_USE_utility_assert true) in config.cmake to use this component
439
440message("utility_assert component is included from ${CMAKE_CURRENT_LIST_FILE}.")
441
442if(CONFIG_USE_utility_debug_console)
443
444target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
445  ${CMAKE_CURRENT_LIST_DIR}/../../utilities/assert/fsl_assert.c
446)
447
448else()
449
450message(SEND_ERROR "utility_assert.MKM34Z7 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
451
452endif()
453
454endif()
455
456
457if (CONFIG_USE_utility_assert_lite)
458# Add set(CONFIG_USE_utility_assert_lite true) in config.cmake to use this component
459
460message("utility_assert_lite component is included from ${CMAKE_CURRENT_LIST_FILE}.")
461
462if(CONFIG_USE_utility_debug_console_lite)
463
464target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
465  ${CMAKE_CURRENT_LIST_DIR}/../../utilities/assert/fsl_assert.c
466)
467
468else()
469
470message(SEND_ERROR "utility_assert_lite.MKM34Z7 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
471
472endif()
473
474endif()
475
476
477if (CONFIG_USE_utility_str)
478# Add set(CONFIG_USE_utility_str true) in config.cmake to use this component
479
480message("utility_str component is included from ${CMAKE_CURRENT_LIST_FILE}.")
481
482if(CONFIG_USE_driver_common)
483
484target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
485  ${CMAKE_CURRENT_LIST_DIR}/../../utilities/str/fsl_str.c
486)
487
488target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
489  ${CMAKE_CURRENT_LIST_DIR}/../../utilities/str
490)
491
492else()
493
494message(SEND_ERROR "utility_str.MKM34Z7 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
495
496endif()
497
498endif()
499
500
501if (CONFIG_USE_utility_debug_console)
502# Add set(CONFIG_USE_utility_debug_console true) in config.cmake to use this component
503
504message("utility_debug_console component is included from ${CMAKE_CURRENT_LIST_FILE}.")
505
506if(CONFIG_USE_component_serial_manager AND CONFIG_USE_driver_common)
507
508target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
509  ${CMAKE_CURRENT_LIST_DIR}/../../utilities/str/fsl_str.c
510  ${CMAKE_CURRENT_LIST_DIR}/../../utilities/debug_console/fsl_debug_console.c
511)
512
513target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
514  ${CMAKE_CURRENT_LIST_DIR}/../../utilities/str
515  ${CMAKE_CURRENT_LIST_DIR}/../../utilities/debug_console
516)
517
518else()
519
520message(SEND_ERROR "utility_debug_console.MKM34Z7 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
521
522endif()
523
524endif()
525
526
527if (CONFIG_USE_component_flash_adapter)
528# Add set(CONFIG_USE_component_flash_adapter true) in config.cmake to use this component
529
530message("component_flash_adapter component is included from ${CMAKE_CURRENT_LIST_FILE}.")
531
532if(CONFIG_USE_driver_common AND CONFIG_USE_driver_flash)
533
534target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
535  ${CMAKE_CURRENT_LIST_DIR}/../../components/internal_flash/fsl_adapter_flash.c
536)
537
538target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
539  ${CMAKE_CURRENT_LIST_DIR}/../../components/internal_flash/.
540)
541
542else()
543
544message(SEND_ERROR "component_flash_adapter.MKM34Z7 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
545
546endif()
547
548endif()
549
550
551if (CONFIG_USE_component_lists)
552# Add set(CONFIG_USE_component_lists true) in config.cmake to use this component
553
554message("component_lists component is included from ${CMAKE_CURRENT_LIST_FILE}.")
555
556if(CONFIG_USE_driver_common)
557
558target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
559  ${CMAKE_CURRENT_LIST_DIR}/../../components/lists/fsl_component_generic_list.c
560)
561
562target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
563  ${CMAKE_CURRENT_LIST_DIR}/../../components/lists/.
564)
565
566else()
567
568message(SEND_ERROR "component_lists.MKM34Z7 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
569
570endif()
571
572endif()
573
574
575if (CONFIG_USE_component_log)
576# Add set(CONFIG_USE_component_log true) in config.cmake to use this component
577
578message("component_log component is included from ${CMAKE_CURRENT_LIST_FILE}.")
579
580if(CONFIG_USE_driver_common AND CONFIG_USE_utility_str)
581
582target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
583  ${CMAKE_CURRENT_LIST_DIR}/../../components/log/fsl_component_log.c
584)
585
586target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
587  ${CMAKE_CURRENT_LIST_DIR}/../../components/log/.
588)
589
590else()
591
592message(SEND_ERROR "component_log.MKM34Z7 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
593
594endif()
595
596endif()
597
598
599if (CONFIG_USE_component_log_backend_debugconsole)
600# Add set(CONFIG_USE_component_log_backend_debugconsole true) in config.cmake to use this component
601
602message("component_log_backend_debugconsole component is included from ${CMAKE_CURRENT_LIST_FILE}.")
603
604if(CONFIG_USE_driver_common AND CONFIG_USE_component_log AND CONFIG_USE_utility_debug_console)
605
606target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
607  ${CMAKE_CURRENT_LIST_DIR}/../../components/log/fsl_component_log_backend_debugconsole.c
608)
609
610target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
611  ${CMAKE_CURRENT_LIST_DIR}/../../components/log/.
612)
613
614else()
615
616message(SEND_ERROR "component_log_backend_debugconsole.MKM34Z7 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
617
618endif()
619
620endif()
621
622
623if (CONFIG_USE_component_log_backend_debugconsole_lite)
624# Add set(CONFIG_USE_component_log_backend_debugconsole_lite true) in config.cmake to use this component
625
626message("component_log_backend_debugconsole_lite component is included from ${CMAKE_CURRENT_LIST_FILE}.")
627
628if(CONFIG_USE_driver_common AND CONFIG_USE_component_log AND CONFIG_USE_utility_debug_console_lite)
629
630target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
631  ${CMAKE_CURRENT_LIST_DIR}/../../components/log/fsl_component_log_backend_debugconsole.c
632)
633
634target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
635  ${CMAKE_CURRENT_LIST_DIR}/../../components/log/.
636)
637
638else()
639
640message(SEND_ERROR "component_log_backend_debugconsole_lite.MKM34Z7 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
641
642endif()
643
644endif()
645
646
647if (CONFIG_USE_component_log_backend_ringbuffer)
648# Add set(CONFIG_USE_component_log_backend_ringbuffer true) in config.cmake to use this component
649
650message("component_log_backend_ringbuffer component is included from ${CMAKE_CURRENT_LIST_FILE}.")
651
652if(CONFIG_USE_driver_common AND CONFIG_USE_component_log)
653
654target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
655  ${CMAKE_CURRENT_LIST_DIR}/../../components/log/fsl_component_log_backend_ringbuffer.c
656)
657
658target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
659  ${CMAKE_CURRENT_LIST_DIR}/../../components/log/.
660)
661
662else()
663
664message(SEND_ERROR "component_log_backend_ringbuffer.MKM34Z7 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
665
666endif()
667
668endif()
669
670
671if (CONFIG_USE_component_serial_manager)
672# Add set(CONFIG_USE_component_serial_manager true) in config.cmake to use this component
673
674message("component_serial_manager component is included from ${CMAKE_CURRENT_LIST_FILE}.")
675
676if(CONFIG_USE_driver_common AND CONFIG_USE_component_lists AND (CONFIG_USE_component_serial_manager_uart OR CONFIG_USE_component_serial_manager_virtual))
677
678target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
679  ${CMAKE_CURRENT_LIST_DIR}/../../components/serial_manager/fsl_component_serial_manager.c
680)
681
682target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
683  ${CMAKE_CURRENT_LIST_DIR}/../../components/serial_manager/.
684)
685
686else()
687
688message(SEND_ERROR "component_serial_manager.MKM34Z7 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
689
690endif()
691
692endif()
693
694
695if (CONFIG_USE_component_serial_manager_virtual)
696# Add set(CONFIG_USE_component_serial_manager_virtual true) in config.cmake to use this component
697
698message("component_serial_manager_virtual component is included from ${CMAKE_CURRENT_LIST_FILE}.")
699
700if(CONFIG_USE_component_serial_manager AND CONFIG_USE_driver_common)
701
702target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
703  ${CMAKE_CURRENT_LIST_DIR}/../../components/serial_manager/fsl_component_serial_port_virtual.c
704)
705
706target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
707  ${CMAKE_CURRENT_LIST_DIR}/../../components/serial_manager/.
708)
709
710if(CONFIG_USE_COMPONENT_CONFIGURATION)
711  message("===>Import configuration from ${CMAKE_CURRENT_LIST_FILE}")
712
713  target_compile_definitions(${MCUX_SDK_PROJECT_NAME} PUBLIC
714    -DSERIAL_PORT_TYPE_VIRTUAL=1
715    -DDEBUG_CONSOLE_TRANSFER_NON_BLOCKING
716  )
717
718endif()
719
720else()
721
722message(SEND_ERROR "component_serial_manager_virtual.MKM34Z7 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
723
724endif()
725
726endif()
727
728
729if (CONFIG_USE_utility_shell)
730# Add set(CONFIG_USE_utility_shell true) in config.cmake to use this component
731
732message("utility_shell component is included from ${CMAKE_CURRENT_LIST_FILE}.")
733
734if(CONFIG_USE_utility_str AND CONFIG_USE_component_lists AND CONFIG_USE_driver_common)
735
736target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
737  ${CMAKE_CURRENT_LIST_DIR}/../../utilities/shell/fsl_shell.c
738)
739
740target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
741  ${CMAKE_CURRENT_LIST_DIR}/../../utilities/shell/.
742)
743
744if(CONFIG_USE_COMPONENT_CONFIGURATION)
745  message("===>Import configuration from ${CMAKE_CURRENT_LIST_FILE}")
746
747  target_compile_definitions(${MCUX_SDK_PROJECT_NAME} PUBLIC
748    -DDEBUG_CONSOLE_RX_ENABLE=0
749  )
750
751endif()
752
753else()
754
755message(SEND_ERROR "utility_shell.MKM34Z7 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
756
757endif()
758
759endif()
760
761
762if (CONFIG_USE_driver_slcd_engine)
763# Add set(CONFIG_USE_driver_slcd_engine true) in config.cmake to use this component
764
765message("driver_slcd_engine component is included from ${CMAKE_CURRENT_LIST_FILE}.")
766
767if(CONFIG_USE_driver_slcd_gdh_1247wp)
768
769target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
770  ${CMAKE_CURRENT_LIST_DIR}/../../components/slcd_engine/slcd_engine.c
771)
772
773target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
774  ${CMAKE_CURRENT_LIST_DIR}/../../components/slcd_engine/.
775)
776
777else()
778
779message(SEND_ERROR "driver_slcd_engine.MKM34Z7 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
780
781endif()
782
783endif()
784
785
786if (CONFIG_USE_driver_slcd_gdh_1247wp)
787# Add set(CONFIG_USE_driver_slcd_gdh_1247wp true) in config.cmake to use this component
788
789message("driver_slcd_gdh_1247wp component is included from ${CMAKE_CURRENT_LIST_FILE}.")
790
791if((CONFIG_BOARD STREQUAL twrkm34z75m))
792
793target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
794  ${CMAKE_CURRENT_LIST_DIR}/../../components/slcd_engine/GDH-1247WP/GDH-1247WP.c
795)
796
797target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
798  ${CMAKE_CURRENT_LIST_DIR}/../../components/slcd_engine/GDH-1247WP/.
799)
800
801if(CONFIG_USE_COMPONENT_CONFIGURATION)
802  message("===>Import configuration from ${CMAKE_CURRENT_LIST_FILE}")
803
804  target_compile_definitions(${MCUX_SDK_PROJECT_NAME} PUBLIC
805    -DSLCD_PANEL_GDH_1247WP_H
806  )
807
808endif()
809
810else()
811
812message(SEND_ERROR "driver_slcd_gdh_1247wp.MKM34Z7 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
813
814endif()
815
816endif()
817
818
819if (CONFIG_USE_component_lptmr_adapter)
820# Add set(CONFIG_USE_component_lptmr_adapter true) in config.cmake to use this component
821
822message("component_lptmr_adapter component is included from ${CMAKE_CURRENT_LIST_FILE}.")
823
824if(CONFIG_USE_driver_common AND CONFIG_USE_driver_lptmr)
825
826target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
827  ${CMAKE_CURRENT_LIST_DIR}/../../components/timer/fsl_adapter_lptmr.c
828)
829
830target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
831  ${CMAKE_CURRENT_LIST_DIR}/../../components/timer/.
832)
833
834else()
835
836message(SEND_ERROR "component_lptmr_adapter.MKM34Z7 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
837
838endif()
839
840endif()
841
842
843if (CONFIG_USE_component_pit_adapter)
844# Add set(CONFIG_USE_component_pit_adapter true) in config.cmake to use this component
845
846message("component_pit_adapter component is included from ${CMAKE_CURRENT_LIST_FILE}.")
847
848if(CONFIG_USE_driver_common AND CONFIG_USE_driver_pit)
849
850target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
851  ${CMAKE_CURRENT_LIST_DIR}/../../components/timer/fsl_adapter_pit.c
852)
853
854target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
855  ${CMAKE_CURRENT_LIST_DIR}/../../components/timer/.
856)
857
858else()
859
860message(SEND_ERROR "component_pit_adapter.MKM34Z7 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
861
862endif()
863
864endif()
865
866
867if (CONFIG_USE_component_lpuart_adapter)
868# Add set(CONFIG_USE_component_lpuart_adapter true) in config.cmake to use this component
869
870message("component_lpuart_adapter component is included from ${CMAKE_CURRENT_LIST_FILE}.")
871
872if(CONFIG_USE_driver_common AND CONFIG_USE_driver_lpuart)
873
874target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
875  ${CMAKE_CURRENT_LIST_DIR}/../../components/uart/fsl_adapter_lpuart.c
876)
877
878target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
879  ${CMAKE_CURRENT_LIST_DIR}/../../components/uart/.
880)
881
882else()
883
884message(SEND_ERROR "component_lpuart_adapter.MKM34Z7 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
885
886endif()
887
888endif()
889
890
891if (CONFIG_USE_component_uart_adapter)
892# Add set(CONFIG_USE_component_uart_adapter true) in config.cmake to use this component
893
894message("component_uart_adapter component is included from ${CMAKE_CURRENT_LIST_FILE}.")
895
896if(CONFIG_USE_driver_common AND CONFIG_USE_driver_uart)
897
898target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
899  ${CMAKE_CURRENT_LIST_DIR}/../../components/uart/fsl_adapter_uart.c
900)
901
902target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
903  ${CMAKE_CURRENT_LIST_DIR}/../../components/uart/.
904)
905
906else()
907
908message(SEND_ERROR "component_uart_adapter.MKM34Z7 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
909
910endif()
911
912endif()
913
914
915if (CONFIG_USE_driver_common)
916# Add set(CONFIG_USE_driver_common true) in config.cmake to use this component
917
918message("driver_common component is included from ${CMAKE_CURRENT_LIST_FILE}.")
919
920if(CONFIG_USE_driver_clock AND CONFIG_USE_device_MKM34Z7_CMSIS)
921
922target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
923  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/common/fsl_common.c
924)
925
926if(CONFIG_CORE STREQUAL cm0p)
927  target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
928      ${CMAKE_CURRENT_LIST_DIR}/../../drivers/common/fsl_common_arm.c
929  )
930endif()
931
932target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
933  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/common/.
934)
935
936else()
937
938message(SEND_ERROR "driver_common.MKM34Z7 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
939
940endif()
941
942endif()
943
944
945if (CONFIG_USE_driver_adc16)
946# Add set(CONFIG_USE_driver_adc16 true) in config.cmake to use this component
947
948message("driver_adc16 component is included from ${CMAKE_CURRENT_LIST_FILE}.")
949
950if((CONFIG_DEVICE_ID STREQUAL MKM34Z256xxx7) AND CONFIG_USE_driver_common)
951
952target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
953  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/adc16/fsl_adc16.c
954)
955
956target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
957  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/adc16/.
958)
959
960else()
961
962message(SEND_ERROR "driver_adc16.MKM34Z7 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
963
964endif()
965
966endif()
967
968
969if (CONFIG_USE_driver_afe)
970# Add set(CONFIG_USE_driver_afe true) in config.cmake to use this component
971
972message("driver_afe component is included from ${CMAKE_CURRENT_LIST_FILE}.")
973
974if((CONFIG_DEVICE_ID STREQUAL MKM34Z256xxx7) AND CONFIG_USE_driver_common)
975
976target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
977  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/afe/fsl_afe.c
978)
979
980target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
981  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/afe/.
982)
983
984else()
985
986message(SEND_ERROR "driver_afe.MKM34Z7 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
987
988endif()
989
990endif()
991
992
993if (CONFIG_USE_driver_cmp)
994# Add set(CONFIG_USE_driver_cmp true) in config.cmake to use this component
995
996message("driver_cmp component is included from ${CMAKE_CURRENT_LIST_FILE}.")
997
998if((CONFIG_DEVICE_ID STREQUAL MKM34Z256xxx7) AND CONFIG_USE_driver_common)
999
1000target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
1001  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/cmp/fsl_cmp.c
1002)
1003
1004target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
1005  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/cmp/.
1006)
1007
1008else()
1009
1010message(SEND_ERROR "driver_cmp.MKM34Z7 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
1011
1012endif()
1013
1014endif()
1015
1016
1017if (CONFIG_USE_driver_crc)
1018# Add set(CONFIG_USE_driver_crc true) in config.cmake to use this component
1019
1020message("driver_crc component is included from ${CMAKE_CURRENT_LIST_FILE}.")
1021
1022if((CONFIG_DEVICE_ID STREQUAL MKM34Z256xxx7) AND CONFIG_USE_driver_common)
1023
1024target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
1025  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/crc/fsl_crc.c
1026)
1027
1028target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
1029  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/crc/.
1030)
1031
1032else()
1033
1034message(SEND_ERROR "driver_crc.MKM34Z7 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
1035
1036endif()
1037
1038endif()
1039
1040
1041if (CONFIG_USE_driver_dma)
1042# Add set(CONFIG_USE_driver_dma true) in config.cmake to use this component
1043
1044message("driver_dma component is included from ${CMAKE_CURRENT_LIST_FILE}.")
1045
1046if((CONFIG_DEVICE_ID STREQUAL MKM34Z256xxx7) AND CONFIG_USE_driver_dmamux AND CONFIG_USE_driver_common)
1047
1048target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
1049  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/dma/fsl_dma.c
1050)
1051
1052target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
1053  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/dma/.
1054)
1055
1056else()
1057
1058message(SEND_ERROR "driver_dma.MKM34Z7 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
1059
1060endif()
1061
1062endif()
1063
1064
1065if (CONFIG_USE_driver_dmamux)
1066# Add set(CONFIG_USE_driver_dmamux true) in config.cmake to use this component
1067
1068message("driver_dmamux component is included from ${CMAKE_CURRENT_LIST_FILE}.")
1069
1070if((CONFIG_DEVICE_ID STREQUAL MKM34Z256xxx7) AND CONFIG_USE_driver_common)
1071
1072target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
1073  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/dmamux/fsl_dmamux.c
1074)
1075
1076target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
1077  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/dmamux/.
1078)
1079
1080else()
1081
1082message(SEND_ERROR "driver_dmamux.MKM34Z7 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
1083
1084endif()
1085
1086endif()
1087
1088
1089if (CONFIG_USE_driver_ewm)
1090# Add set(CONFIG_USE_driver_ewm true) in config.cmake to use this component
1091
1092message("driver_ewm component is included from ${CMAKE_CURRENT_LIST_FILE}.")
1093
1094if((CONFIG_DEVICE_ID STREQUAL MKM34Z256xxx7) AND CONFIG_USE_driver_common)
1095
1096target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
1097  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/ewm/fsl_ewm.c
1098)
1099
1100target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
1101  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/ewm/.
1102)
1103
1104else()
1105
1106message(SEND_ERROR "driver_ewm.MKM34Z7 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
1107
1108endif()
1109
1110endif()
1111
1112
1113if (CONFIG_USE_driver_flash)
1114# Add set(CONFIG_USE_driver_flash true) in config.cmake to use this component
1115
1116message("driver_flash component is included from ${CMAKE_CURRENT_LIST_FILE}.")
1117
1118if(CONFIG_USE_driver_common)
1119
1120target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
1121  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/flash/fsl_ftfx_controller.c
1122  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/flash/fsl_ftfx_flash.c
1123  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/flash/fsl_ftfx_cache.c
1124  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/flash/fsl_ftfx_flexnvm.c
1125)
1126
1127target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
1128  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/flash/.
1129)
1130
1131else()
1132
1133message(SEND_ERROR "driver_flash.MKM34Z7 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
1134
1135endif()
1136
1137endif()
1138
1139
1140if (CONFIG_USE_driver_gpio)
1141# Add set(CONFIG_USE_driver_gpio true) in config.cmake to use this component
1142
1143message("driver_gpio component is included from ${CMAKE_CURRENT_LIST_FILE}.")
1144
1145if((CONFIG_DEVICE_ID STREQUAL MKM34Z256xxx7) AND CONFIG_USE_driver_common)
1146
1147target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
1148  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/gpio/fsl_gpio.c
1149)
1150
1151target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
1152  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/gpio/.
1153)
1154
1155else()
1156
1157message(SEND_ERROR "driver_gpio.MKM34Z7 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
1158
1159endif()
1160
1161endif()
1162
1163
1164if (CONFIG_USE_driver_i2c)
1165# Add set(CONFIG_USE_driver_i2c true) in config.cmake to use this component
1166
1167message("driver_i2c component is included from ${CMAKE_CURRENT_LIST_FILE}.")
1168
1169if((CONFIG_DEVICE_ID STREQUAL MKM34Z256xxx7) AND CONFIG_USE_driver_common)
1170
1171target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
1172  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/i2c/fsl_i2c.c
1173)
1174
1175target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
1176  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/i2c/.
1177)
1178
1179else()
1180
1181message(SEND_ERROR "driver_i2c.MKM34Z7 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
1182
1183endif()
1184
1185endif()
1186
1187
1188if (CONFIG_USE_driver_i2c_freertos)
1189# Add set(CONFIG_USE_driver_i2c_freertos true) in config.cmake to use this component
1190
1191message("driver_i2c_freertos component is included from ${CMAKE_CURRENT_LIST_FILE}.")
1192
1193if(CONFIG_USE_driver_i2c AND CONFIG_USE_middleware_freertos-kernel)
1194
1195target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
1196  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/i2c/fsl_i2c_freertos.c
1197)
1198
1199target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
1200  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/i2c/.
1201)
1202
1203else()
1204
1205message(SEND_ERROR "driver_i2c_freertos.MKM34Z7 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
1206
1207endif()
1208
1209endif()
1210
1211
1212if (CONFIG_USE_driver_irtc)
1213# Add set(CONFIG_USE_driver_irtc true) in config.cmake to use this component
1214
1215message("driver_irtc component is included from ${CMAKE_CURRENT_LIST_FILE}.")
1216
1217if((CONFIG_DEVICE_ID STREQUAL MKM34Z256xxx7) AND CONFIG_USE_driver_common)
1218
1219target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
1220  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/irtc/fsl_irtc.c
1221)
1222
1223target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
1224  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/irtc/.
1225)
1226
1227else()
1228
1229message(SEND_ERROR "driver_irtc.MKM34Z7 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
1230
1231endif()
1232
1233endif()
1234
1235
1236if (CONFIG_USE_driver_llwu)
1237# Add set(CONFIG_USE_driver_llwu true) in config.cmake to use this component
1238
1239message("driver_llwu component is included from ${CMAKE_CURRENT_LIST_FILE}.")
1240
1241if((CONFIG_DEVICE_ID STREQUAL MKM34Z256xxx7) AND CONFIG_USE_driver_common)
1242
1243target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
1244  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/llwu/fsl_llwu.c
1245)
1246
1247target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
1248  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/llwu/.
1249)
1250
1251else()
1252
1253message(SEND_ERROR "driver_llwu.MKM34Z7 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
1254
1255endif()
1256
1257endif()
1258
1259
1260if (CONFIG_USE_driver_lptmr)
1261# Add set(CONFIG_USE_driver_lptmr true) in config.cmake to use this component
1262
1263message("driver_lptmr component is included from ${CMAKE_CURRENT_LIST_FILE}.")
1264
1265if((CONFIG_DEVICE_ID STREQUAL MKM34Z256xxx7) AND CONFIG_USE_driver_common)
1266
1267target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
1268  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/lptmr/fsl_lptmr.c
1269)
1270
1271target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
1272  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/lptmr/.
1273)
1274
1275else()
1276
1277message(SEND_ERROR "driver_lptmr.MKM34Z7 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
1278
1279endif()
1280
1281endif()
1282
1283
1284if (CONFIG_USE_driver_lpuart)
1285# Add set(CONFIG_USE_driver_lpuart true) in config.cmake to use this component
1286
1287message("driver_lpuart component is included from ${CMAKE_CURRENT_LIST_FILE}.")
1288
1289if((CONFIG_DEVICE_ID STREQUAL MKM34Z256xxx7) AND CONFIG_USE_driver_common)
1290
1291target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
1292  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/lpuart/fsl_lpuart.c
1293)
1294
1295target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
1296  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/lpuart/.
1297)
1298
1299else()
1300
1301message(SEND_ERROR "driver_lpuart.MKM34Z7 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
1302
1303endif()
1304
1305endif()
1306
1307
1308if (CONFIG_USE_driver_lpuart_freertos)
1309# Add set(CONFIG_USE_driver_lpuart_freertos true) in config.cmake to use this component
1310
1311message("driver_lpuart_freertos component is included from ${CMAKE_CURRENT_LIST_FILE}.")
1312
1313if(CONFIG_USE_driver_lpuart AND CONFIG_USE_middleware_freertos-kernel)
1314
1315target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
1316  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/lpuart/fsl_lpuart_freertos.c
1317)
1318
1319target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
1320  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/lpuart/.
1321)
1322
1323else()
1324
1325message(SEND_ERROR "driver_lpuart_freertos.MKM34Z7 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
1326
1327endif()
1328
1329endif()
1330
1331
1332if (CONFIG_USE_driver_mmau)
1333# Add set(CONFIG_USE_driver_mmau true) in config.cmake to use this component
1334
1335message("driver_mmau component is included from ${CMAKE_CURRENT_LIST_FILE}.")
1336
1337if((CONFIG_DEVICE_ID STREQUAL MKM34Z256xxx7) AND CONFIG_USE_driver_common)
1338
1339target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
1340  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/mmau/fsl_mmau.c
1341)
1342
1343target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
1344  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/mmau/.
1345)
1346
1347else()
1348
1349message(SEND_ERROR "driver_mmau.MKM34Z7 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
1350
1351endif()
1352
1353endif()
1354
1355
1356if (CONFIG_USE_driver_pdb)
1357# Add set(CONFIG_USE_driver_pdb true) in config.cmake to use this component
1358
1359message("driver_pdb component is included from ${CMAKE_CURRENT_LIST_FILE}.")
1360
1361if((CONFIG_DEVICE_ID STREQUAL MKM34Z256xxx7) AND CONFIG_USE_driver_common)
1362
1363target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
1364  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/pdb/fsl_pdb.c
1365)
1366
1367target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
1368  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/pdb/.
1369)
1370
1371else()
1372
1373message(SEND_ERROR "driver_pdb.MKM34Z7 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
1374
1375endif()
1376
1377endif()
1378
1379
1380if (CONFIG_USE_driver_pit)
1381# Add set(CONFIG_USE_driver_pit true) in config.cmake to use this component
1382
1383message("driver_pit component is included from ${CMAKE_CURRENT_LIST_FILE}.")
1384
1385if((CONFIG_DEVICE_ID STREQUAL MKM34Z256xxx7) AND CONFIG_USE_driver_common)
1386
1387target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
1388  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/pit/fsl_pit.c
1389)
1390
1391target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
1392  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/pit/.
1393)
1394
1395else()
1396
1397message(SEND_ERROR "driver_pit.MKM34Z7 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
1398
1399endif()
1400
1401endif()
1402
1403
1404if (CONFIG_USE_driver_pmc)
1405# Add set(CONFIG_USE_driver_pmc true) in config.cmake to use this component
1406
1407message("driver_pmc component is included from ${CMAKE_CURRENT_LIST_FILE}.")
1408
1409if((CONFIG_DEVICE_ID STREQUAL MKM34Z256xxx7) AND CONFIG_USE_driver_common)
1410
1411target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
1412  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/pmc/fsl_pmc.c
1413)
1414
1415target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
1416  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/pmc/.
1417)
1418
1419else()
1420
1421message(SEND_ERROR "driver_pmc.MKM34Z7 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
1422
1423endif()
1424
1425endif()
1426
1427
1428if (CONFIG_USE_driver_port)
1429# Add set(CONFIG_USE_driver_port true) in config.cmake to use this component
1430
1431message("driver_port component is included from ${CMAKE_CURRENT_LIST_FILE}.")
1432
1433if((CONFIG_DEVICE_ID STREQUAL MKM34Z256xxx7) AND CONFIG_USE_driver_common)
1434
1435target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
1436  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/port/.
1437)
1438
1439else()
1440
1441message(SEND_ERROR "driver_port.MKM34Z7 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
1442
1443endif()
1444
1445endif()
1446
1447
1448if (CONFIG_USE_driver_qtmr_2)
1449# Add set(CONFIG_USE_driver_qtmr_2 true) in config.cmake to use this component
1450
1451message("driver_qtmr_2 component is included from ${CMAKE_CURRENT_LIST_FILE}.")
1452
1453if((CONFIG_DEVICE_ID STREQUAL MKM34Z256xxx7) AND CONFIG_USE_driver_common)
1454
1455target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
1456  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/qtmr_2/fsl_qtmr.c
1457)
1458
1459target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
1460  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/qtmr_2/.
1461)
1462
1463else()
1464
1465message(SEND_ERROR "driver_qtmr_2.MKM34Z7 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
1466
1467endif()
1468
1469endif()
1470
1471
1472if (CONFIG_USE_driver_rcm)
1473# Add set(CONFIG_USE_driver_rcm true) in config.cmake to use this component
1474
1475message("driver_rcm component is included from ${CMAKE_CURRENT_LIST_FILE}.")
1476
1477if((CONFIG_DEVICE_ID STREQUAL MKM34Z256xxx7) AND CONFIG_USE_driver_common)
1478
1479target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
1480  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/rcm/fsl_rcm.c
1481)
1482
1483target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
1484  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/rcm/.
1485)
1486
1487else()
1488
1489message(SEND_ERROR "driver_rcm.MKM34Z7 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
1490
1491endif()
1492
1493endif()
1494
1495
1496if (CONFIG_USE_driver_rnga)
1497# Add set(CONFIG_USE_driver_rnga true) in config.cmake to use this component
1498
1499message("driver_rnga component is included from ${CMAKE_CURRENT_LIST_FILE}.")
1500
1501if((CONFIG_DEVICE_ID STREQUAL MKM34Z256xxx7) AND CONFIG_USE_driver_common)
1502
1503target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
1504  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/rnga/fsl_rnga.c
1505)
1506
1507target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
1508  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/rnga/.
1509)
1510
1511else()
1512
1513message(SEND_ERROR "driver_rnga.MKM34Z7 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
1514
1515endif()
1516
1517endif()
1518
1519
1520if (CONFIG_USE_driver_sim)
1521# Add set(CONFIG_USE_driver_sim true) in config.cmake to use this component
1522
1523message("driver_sim component is included from ${CMAKE_CURRENT_LIST_FILE}.")
1524
1525if((CONFIG_DEVICE_ID STREQUAL MKM34Z256xxx7) AND CONFIG_USE_driver_common)
1526
1527target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
1528  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/sim/fsl_sim.c
1529)
1530
1531target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
1532  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/sim/.
1533)
1534
1535else()
1536
1537message(SEND_ERROR "driver_sim.MKM34Z7 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
1538
1539endif()
1540
1541endif()
1542
1543
1544if (CONFIG_USE_driver_slcd)
1545# Add set(CONFIG_USE_driver_slcd true) in config.cmake to use this component
1546
1547message("driver_slcd component is included from ${CMAKE_CURRENT_LIST_FILE}.")
1548
1549if((CONFIG_DEVICE_ID STREQUAL MKM34Z256xxx7) AND CONFIG_USE_driver_common)
1550
1551target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
1552  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/slcd/fsl_slcd.c
1553)
1554
1555target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
1556  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/slcd/.
1557)
1558
1559else()
1560
1561message(SEND_ERROR "driver_slcd.MKM34Z7 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
1562
1563endif()
1564
1565endif()
1566
1567
1568if (CONFIG_USE_driver_smc)
1569# Add set(CONFIG_USE_driver_smc true) in config.cmake to use this component
1570
1571message("driver_smc component is included from ${CMAKE_CURRENT_LIST_FILE}.")
1572
1573if((CONFIG_DEVICE_ID STREQUAL MKM34Z256xxx7) AND CONFIG_USE_driver_common)
1574
1575target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
1576  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/smc/fsl_smc.c
1577)
1578
1579target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
1580  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/smc/.
1581)
1582
1583else()
1584
1585message(SEND_ERROR "driver_smc.MKM34Z7 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
1586
1587endif()
1588
1589endif()
1590
1591
1592if (CONFIG_USE_driver_spi)
1593# Add set(CONFIG_USE_driver_spi true) in config.cmake to use this component
1594
1595message("driver_spi component is included from ${CMAKE_CURRENT_LIST_FILE}.")
1596
1597if((CONFIG_DEVICE_ID STREQUAL MKM34Z256xxx7) AND CONFIG_USE_driver_common)
1598
1599target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
1600  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/spi/fsl_spi.c
1601)
1602
1603target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
1604  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/spi/.
1605)
1606
1607else()
1608
1609message(SEND_ERROR "driver_spi.MKM34Z7 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
1610
1611endif()
1612
1613endif()
1614
1615
1616if (CONFIG_USE_driver_spi_freertos)
1617# Add set(CONFIG_USE_driver_spi_freertos true) in config.cmake to use this component
1618
1619message("driver_spi_freertos component is included from ${CMAKE_CURRENT_LIST_FILE}.")
1620
1621if(CONFIG_USE_driver_spi AND CONFIG_USE_middleware_freertos-kernel)
1622
1623target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
1624  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/spi/fsl_spi_freertos.c
1625)
1626
1627target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
1628  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/spi/.
1629)
1630
1631else()
1632
1633message(SEND_ERROR "driver_spi_freertos.MKM34Z7 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
1634
1635endif()
1636
1637endif()
1638
1639
1640if (CONFIG_USE_driver_sysmpu)
1641# Add set(CONFIG_USE_driver_sysmpu true) in config.cmake to use this component
1642
1643message("driver_sysmpu component is included from ${CMAKE_CURRENT_LIST_FILE}.")
1644
1645if((CONFIG_DEVICE_ID STREQUAL MKM34Z256xxx7) AND CONFIG_USE_driver_common)
1646
1647target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
1648  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/sysmpu/fsl_sysmpu.c
1649)
1650
1651target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
1652  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/sysmpu/.
1653)
1654
1655else()
1656
1657message(SEND_ERROR "driver_sysmpu.MKM34Z7 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
1658
1659endif()
1660
1661endif()
1662
1663
1664if (CONFIG_USE_driver_uart)
1665# Add set(CONFIG_USE_driver_uart true) in config.cmake to use this component
1666
1667message("driver_uart component is included from ${CMAKE_CURRENT_LIST_FILE}.")
1668
1669if(CONFIG_USE_driver_common AND (CONFIG_DEVICE_ID STREQUAL MKM34Z256xxx7))
1670
1671target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
1672  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/uart/fsl_uart.c
1673)
1674
1675target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
1676  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/uart/.
1677)
1678
1679else()
1680
1681message(SEND_ERROR "driver_uart.MKM34Z7 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
1682
1683endif()
1684
1685endif()
1686
1687
1688if (CONFIG_USE_driver_uart_freertos)
1689# Add set(CONFIG_USE_driver_uart_freertos true) in config.cmake to use this component
1690
1691message("driver_uart_freertos component is included from ${CMAKE_CURRENT_LIST_FILE}.")
1692
1693if(CONFIG_USE_driver_uart AND CONFIG_USE_middleware_freertos-kernel)
1694
1695target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
1696  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/uart/fsl_uart_freertos.c
1697)
1698
1699target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
1700  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/uart/.
1701)
1702
1703else()
1704
1705message(SEND_ERROR "driver_uart_freertos.MKM34Z7 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
1706
1707endif()
1708
1709endif()
1710
1711
1712if (CONFIG_USE_driver_vref)
1713# Add set(CONFIG_USE_driver_vref true) in config.cmake to use this component
1714
1715message("driver_vref component is included from ${CMAKE_CURRENT_LIST_FILE}.")
1716
1717if((CONFIG_DEVICE_ID STREQUAL MKM34Z256xxx7) AND CONFIG_USE_driver_common)
1718
1719target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
1720  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/vref/fsl_vref.c
1721)
1722
1723target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
1724  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/vref/.
1725)
1726
1727else()
1728
1729message(SEND_ERROR "driver_vref.MKM34Z7 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
1730
1731endif()
1732
1733endif()
1734
1735
1736if (CONFIG_USE_driver_wdog)
1737# Add set(CONFIG_USE_driver_wdog true) in config.cmake to use this component
1738
1739message("driver_wdog component is included from ${CMAKE_CURRENT_LIST_FILE}.")
1740
1741if((CONFIG_DEVICE_ID STREQUAL MKM34Z256xxx7) AND CONFIG_USE_driver_common)
1742
1743target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
1744  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/wdog/fsl_wdog.c
1745)
1746
1747target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
1748  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/wdog/.
1749)
1750
1751else()
1752
1753message(SEND_ERROR "driver_wdog.MKM34Z7 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
1754
1755endif()
1756
1757endif()
1758
1759
1760if (CONFIG_USE_driver_xbar)
1761# Add set(CONFIG_USE_driver_xbar true) in config.cmake to use this component
1762
1763message("driver_xbar component is included from ${CMAKE_CURRENT_LIST_FILE}.")
1764
1765if((CONFIG_DEVICE_ID STREQUAL MKM34Z256xxx7) AND CONFIG_USE_driver_common)
1766
1767target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
1768  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/xbar/fsl_xbar.c
1769)
1770
1771target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
1772  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/xbar/.
1773)
1774
1775else()
1776
1777message(SEND_ERROR "driver_xbar.MKM34Z7 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
1778
1779endif()
1780
1781endif()
1782
1783