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