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_driver_mx25r_flash)
39# Add set(CONFIG_USE_driver_mx25r_flash true) in config.cmake to use this component
40
41message("driver_mx25r_flash component is included from ${CMAKE_CURRENT_LIST_FILE}.")
42
43target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
44  ${CMAKE_CURRENT_LIST_DIR}/../../components/mx25r_flash/mx25r_flash.c
45)
46
47target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
48  ${CMAKE_CURRENT_LIST_DIR}/../../components/mx25r_flash/.
49)
50
51
52endif()
53
54
55if (CONFIG_USE_driver_pf1550)
56# Add set(CONFIG_USE_driver_pf1550 true) in config.cmake to use this component
57
58message("driver_pf1550 component is included from ${CMAKE_CURRENT_LIST_FILE}.")
59
60target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
61  ${CMAKE_CURRENT_LIST_DIR}/../../components/pf1550/fsl_pf1550.c
62  ${CMAKE_CURRENT_LIST_DIR}/../../components/pf1550/fsl_pf1550_charger.c
63)
64
65target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
66  ${CMAKE_CURRENT_LIST_DIR}/../../components/pf1550/.
67)
68
69
70endif()
71
72
73if (CONFIG_USE_driver_pf3000)
74# Add set(CONFIG_USE_driver_pf3000 true) in config.cmake to use this component
75
76message("driver_pf3000 component is included from ${CMAKE_CURRENT_LIST_FILE}.")
77
78target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
79  ${CMAKE_CURRENT_LIST_DIR}/../../components/pf3000/fsl_pf3000.c
80)
81
82target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
83  ${CMAKE_CURRENT_LIST_DIR}/../../components/pf3000/.
84)
85
86
87endif()
88
89
90if (CONFIG_USE_DEVICES_Project_Template_MKE15Z7)
91# Add set(CONFIG_USE_DEVICES_Project_Template_MKE15Z7 true) in config.cmake to use this component
92
93message("DEVICES_Project_Template_MKE15Z7 component is included from ${CMAKE_CURRENT_LIST_FILE}.")
94
95if(CONFIG_USE_component_lpuart_adapter AND (CONFIG_DEVICE_ID STREQUAL MKE15Z256xxx7 OR CONFIG_DEVICE_ID STREQUAL MKE15Z128xxx7) AND CONFIG_USE_device_MKE15Z7_startup AND CONFIG_USE_driver_adc12 AND CONFIG_USE_driver_clock AND CONFIG_USE_driver_common AND CONFIG_USE_driver_gpio AND CONFIG_USE_driver_lpi2c AND CONFIG_USE_driver_lpuart AND CONFIG_USE_driver_port AND CONFIG_USE_driver_smc 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)))
96
97add_config_file(${CMAKE_CURRENT_LIST_DIR}/project_template/board.h "" DEVICES_Project_Template_MKE15Z7.MKE15Z7)
98add_config_file(${CMAKE_CURRENT_LIST_DIR}/project_template/board.c "" DEVICES_Project_Template_MKE15Z7.MKE15Z7)
99add_config_file(${CMAKE_CURRENT_LIST_DIR}/project_template/clock_config.h "" DEVICES_Project_Template_MKE15Z7.MKE15Z7)
100add_config_file(${CMAKE_CURRENT_LIST_DIR}/project_template/clock_config.c "" DEVICES_Project_Template_MKE15Z7.MKE15Z7)
101add_config_file(${CMAKE_CURRENT_LIST_DIR}/project_template/pin_mux.h "" DEVICES_Project_Template_MKE15Z7.MKE15Z7)
102add_config_file(${CMAKE_CURRENT_LIST_DIR}/project_template/pin_mux.c "" DEVICES_Project_Template_MKE15Z7.MKE15Z7)
103add_config_file(${CMAKE_CURRENT_LIST_DIR}/project_template/peripherals.h "" DEVICES_Project_Template_MKE15Z7.MKE15Z7)
104add_config_file(${CMAKE_CURRENT_LIST_DIR}/project_template/peripherals.c "" DEVICES_Project_Template_MKE15Z7.MKE15Z7)
105
106target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
107  ${CMAKE_CURRENT_LIST_DIR}/project_template/.
108)
109
110else()
111
112message(SEND_ERROR "DEVICES_Project_Template_MKE15Z7.MKE15Z7 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
113
114endif()
115
116endif()
117
118
119if (CONFIG_USE_device_MKE15Z7_startup)
120# Add set(CONFIG_USE_device_MKE15Z7_startup true) in config.cmake to use this component
121
122message("device_MKE15Z7_startup component is included from ${CMAKE_CURRENT_LIST_FILE}.")
123
124if(CONFIG_USE_device_MKE15Z7_system)
125
126if(CONFIG_TOOLCHAIN STREQUAL armgcc)
127  add_config_file(${CMAKE_CURRENT_LIST_DIR}/./gcc/startup_MKE15Z7.S "" device_MKE15Z7_startup.MKE15Z7)
128endif()
129
130if(CONFIG_TOOLCHAIN STREQUAL mcux)
131  add_config_file(${CMAKE_CURRENT_LIST_DIR}/./mcuxpresso/startup_mke15z7.c "" device_MKE15Z7_startup.MKE15Z7)
132  add_config_file(${CMAKE_CURRENT_LIST_DIR}/./mcuxpresso/startup_mke15z7.cpp "" device_MKE15Z7_startup.MKE15Z7)
133endif()
134
135else()
136
137message(SEND_ERROR "device_MKE15Z7_startup.MKE15Z7 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
138
139endif()
140
141endif()
142
143
144if (CONFIG_USE_device_MKE15Z7_CMSIS)
145# Add set(CONFIG_USE_device_MKE15Z7_CMSIS true) in config.cmake to use this component
146
147message("device_MKE15Z7_CMSIS component is included from ${CMAKE_CURRENT_LIST_FILE}.")
148
149if(CONFIG_USE_CMSIS_Include_core_cm AND (CONFIG_DEVICE_ID STREQUAL MKE15Z256xxx7 OR CONFIG_DEVICE_ID STREQUAL MKE15Z128xxx7))
150
151target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
152  ${CMAKE_CURRENT_LIST_DIR}/./.
153)
154
155else()
156
157message(SEND_ERROR "device_MKE15Z7_CMSIS.MKE15Z7 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
158
159endif()
160
161endif()
162
163
164if (CONFIG_USE_RTE_Device)
165# Add set(CONFIG_USE_RTE_Device true) in config.cmake to use this component
166
167message("RTE_Device component is included from ${CMAKE_CURRENT_LIST_FILE}.")
168
169if((CONFIG_DEVICE_ID STREQUAL MKE15Z256xxx7 OR CONFIG_DEVICE_ID STREQUAL MKE15Z128xxx7) AND CONFIG_USE_driver_dmamux AND CONFIG_USE_driver_edma)
170
171add_config_file(${CMAKE_CURRENT_LIST_DIR}/template/RTE_Device.h "" RTE_Device.MKE15Z7)
172
173target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
174  ${CMAKE_CURRENT_LIST_DIR}/template/.
175)
176
177else()
178
179message(SEND_ERROR "RTE_Device.MKE15Z7 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
180
181endif()
182
183endif()
184
185
186if (CONFIG_USE_driver_lpi2c_edma)
187# Add set(CONFIG_USE_driver_lpi2c_edma true) in config.cmake to use this component
188
189message("driver_lpi2c_edma component is included from ${CMAKE_CURRENT_LIST_FILE}.")
190
191if(CONFIG_USE_driver_edma AND CONFIG_USE_driver_lpi2c AND (CONFIG_DEVICE_ID STREQUAL MKE15Z256xxx7 OR CONFIG_DEVICE_ID STREQUAL MKE15Z128xxx7))
192
193target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
194  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/lpi2c/fsl_lpi2c_edma.c
195)
196
197target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
198  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/lpi2c/.
199)
200
201else()
202
203message(SEND_ERROR "driver_lpi2c_edma.MKE15Z7 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
204
205endif()
206
207endif()
208
209
210if (CONFIG_USE_driver_lpspi_edma)
211# Add set(CONFIG_USE_driver_lpspi_edma true) in config.cmake to use this component
212
213message("driver_lpspi_edma component is included from ${CMAKE_CURRENT_LIST_FILE}.")
214
215if(CONFIG_USE_driver_edma AND CONFIG_USE_driver_lpspi AND (CONFIG_DEVICE_ID STREQUAL MKE15Z256xxx7 OR CONFIG_DEVICE_ID STREQUAL MKE15Z128xxx7))
216
217target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
218  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/lpspi/fsl_lpspi_edma.c
219)
220
221target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
222  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/lpspi/.
223)
224
225else()
226
227message(SEND_ERROR "driver_lpspi_edma.MKE15Z7 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
228
229endif()
230
231endif()
232
233
234if (CONFIG_USE_driver_lpuart_edma)
235# Add set(CONFIG_USE_driver_lpuart_edma true) in config.cmake to use this component
236
237message("driver_lpuart_edma component is included from ${CMAKE_CURRENT_LIST_FILE}.")
238
239if(CONFIG_USE_driver_edma AND CONFIG_USE_driver_lpuart AND (CONFIG_DEVICE_ID STREQUAL MKE15Z256xxx7 OR CONFIG_DEVICE_ID STREQUAL MKE15Z128xxx7))
240
241target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
242  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/lpuart/fsl_lpuart_edma.c
243)
244
245target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
246  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/lpuart/.
247)
248
249else()
250
251message(SEND_ERROR "driver_lpuart_edma.MKE15Z7 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
252
253endif()
254
255endif()
256
257
258if (CONFIG_USE_driver_clock)
259# Add set(CONFIG_USE_driver_clock true) in config.cmake to use this component
260
261message("driver_clock component is included from ${CMAKE_CURRENT_LIST_FILE}.")
262
263if(CONFIG_USE_driver_common)
264
265target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
266  ${CMAKE_CURRENT_LIST_DIR}/drivers/fsl_clock.c
267)
268
269target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
270  ${CMAKE_CURRENT_LIST_DIR}/drivers/.
271)
272
273else()
274
275message(SEND_ERROR "driver_clock.MKE15Z7 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
276
277endif()
278
279endif()
280
281
282if (CONFIG_USE_component_serial_manager_uart)
283# Add set(CONFIG_USE_component_serial_manager_uart true) in config.cmake to use this component
284
285message("component_serial_manager_uart component is included from ${CMAKE_CURRENT_LIST_FILE}.")
286
287if(CONFIG_USE_component_lpuart_adapter AND CONFIG_USE_component_serial_manager AND (CONFIG_USE_driver_lpuart))
288
289target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
290  ${CMAKE_CURRENT_LIST_DIR}/../../components/serial_manager/fsl_component_serial_port_uart.c
291)
292
293target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
294  ${CMAKE_CURRENT_LIST_DIR}/../../components/serial_manager/.
295)
296
297if(CONFIG_USE_COMPONENT_CONFIGURATION)
298  message("===>Import configuration from ${CMAKE_CURRENT_LIST_FILE}")
299
300  target_compile_definitions(${MCUX_SDK_PROJECT_NAME} PUBLIC
301    -DSERIAL_PORT_TYPE_UART=1
302  )
303
304endif()
305
306else()
307
308message(SEND_ERROR "component_serial_manager_uart.MKE15Z7 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
309
310endif()
311
312endif()
313
314
315if (CONFIG_USE_utility_debug_console_lite)
316# Add set(CONFIG_USE_utility_debug_console_lite true) in config.cmake to use this component
317
318message("utility_debug_console_lite component is included from ${CMAKE_CURRENT_LIST_FILE}.")
319
320if(CONFIG_USE_component_lpuart_adapter AND (CONFIG_DEVICE_ID STREQUAL MKE15Z256xxx7 OR CONFIG_DEVICE_ID STREQUAL MKE15Z128xxx7) AND CONFIG_USE_driver_common AND CONFIG_USE_utility_str)
321
322target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
323  ${CMAKE_CURRENT_LIST_DIR}/../../utilities/debug_console_lite/fsl_debug_console.c
324)
325
326target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
327  ${CMAKE_CURRENT_LIST_DIR}/../../utilities/debug_console_lite
328)
329
330else()
331
332message(SEND_ERROR "utility_debug_console_lite.MKE15Z7 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
333
334endif()
335
336endif()
337
338
339if (CONFIG_USE_driver_cmsis_lpspi)
340# Add set(CONFIG_USE_driver_cmsis_lpspi true) in config.cmake to use this component
341
342message("driver_cmsis_lpspi component is included from ${CMAKE_CURRENT_LIST_FILE}.")
343
344if(CONFIG_USE_driver_lpspi_edma AND (CONFIG_DEVICE_ID STREQUAL MKE15Z256xxx7 OR CONFIG_DEVICE_ID STREQUAL MKE15Z128xxx7) AND CONFIG_USE_driver_lpspi AND CONFIG_USE_CMSIS_Driver_Include_SPI AND CONFIG_USE_RTE_Device)
345
346target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
347  ${CMAKE_CURRENT_LIST_DIR}/../../cmsis_drivers/lpspi/fsl_lpspi_cmsis.c
348)
349
350target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
351  ${CMAKE_CURRENT_LIST_DIR}/../../cmsis_drivers/lpspi/.
352)
353
354else()
355
356message(SEND_ERROR "driver_cmsis_lpspi.MKE15Z7 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
357
358endif()
359
360endif()
361
362
363if (CONFIG_USE_driver_cmsis_lpi2c)
364# Add set(CONFIG_USE_driver_cmsis_lpi2c true) in config.cmake to use this component
365
366message("driver_cmsis_lpi2c component is included from ${CMAKE_CURRENT_LIST_FILE}.")
367
368if(CONFIG_USE_driver_lpi2c_edma AND (CONFIG_DEVICE_ID STREQUAL MKE15Z256xxx7 OR CONFIG_DEVICE_ID STREQUAL MKE15Z128xxx7) AND CONFIG_USE_driver_lpi2c AND CONFIG_USE_CMSIS_Driver_Include_I2C AND CONFIG_USE_RTE_Device)
369
370target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
371  ${CMAKE_CURRENT_LIST_DIR}/../../cmsis_drivers/lpi2c/fsl_lpi2c_cmsis.c
372)
373
374target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
375  ${CMAKE_CURRENT_LIST_DIR}/../../cmsis_drivers/lpi2c/.
376)
377
378else()
379
380message(SEND_ERROR "driver_cmsis_lpi2c.MKE15Z7 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
381
382endif()
383
384endif()
385
386
387if (CONFIG_USE_driver_cmsis_lpuart)
388# Add set(CONFIG_USE_driver_cmsis_lpuart true) in config.cmake to use this component
389
390message("driver_cmsis_lpuart component is included from ${CMAKE_CURRENT_LIST_FILE}.")
391
392if(CONFIG_USE_driver_lpuart_edma AND (CONFIG_DEVICE_ID STREQUAL MKE15Z256xxx7 OR CONFIG_DEVICE_ID STREQUAL MKE15Z128xxx7) AND CONFIG_USE_driver_lpuart AND CONFIG_USE_CMSIS_Driver_Include_USART AND CONFIG_USE_RTE_Device)
393
394target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
395  ${CMAKE_CURRENT_LIST_DIR}/../../cmsis_drivers/lpuart/fsl_lpuart_cmsis.c
396)
397
398target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
399  ${CMAKE_CURRENT_LIST_DIR}/../../cmsis_drivers/lpuart/.
400)
401
402else()
403
404message(SEND_ERROR "driver_cmsis_lpuart.MKE15Z7 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
405
406endif()
407
408endif()
409
410
411if (CONFIG_USE_driver_flexio_i2s_edma)
412# Add set(CONFIG_USE_driver_flexio_i2s_edma true) in config.cmake to use this component
413
414message("driver_flexio_i2s_edma component is included from ${CMAKE_CURRENT_LIST_FILE}.")
415
416if(CONFIG_USE_driver_edma AND CONFIG_USE_driver_flexio_i2s AND (CONFIG_DEVICE_ID STREQUAL MKE15Z256xxx7 OR CONFIG_DEVICE_ID STREQUAL MKE15Z128xxx7))
417
418target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
419  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/flexio/i2s/fsl_flexio_i2s_edma.c
420)
421
422target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
423  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/flexio/i2s/.
424)
425
426else()
427
428message(SEND_ERROR "driver_flexio_i2s_edma.MKE15Z7 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
429
430endif()
431
432endif()
433
434
435if (CONFIG_USE_driver_flexio_spi_edma)
436# Add set(CONFIG_USE_driver_flexio_spi_edma true) in config.cmake to use this component
437
438message("driver_flexio_spi_edma component is included from ${CMAKE_CURRENT_LIST_FILE}.")
439
440if(CONFIG_USE_driver_edma AND CONFIG_USE_driver_flexio_spi AND (CONFIG_DEVICE_ID STREQUAL MKE15Z256xxx7 OR CONFIG_DEVICE_ID STREQUAL MKE15Z128xxx7))
441
442target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
443  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/flexio/spi/fsl_flexio_spi_edma.c
444)
445
446target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
447  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/flexio/spi/.
448)
449
450else()
451
452message(SEND_ERROR "driver_flexio_spi_edma.MKE15Z7 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
453
454endif()
455
456endif()
457
458
459if (CONFIG_USE_driver_flexio_uart_edma)
460# Add set(CONFIG_USE_driver_flexio_uart_edma true) in config.cmake to use this component
461
462message("driver_flexio_uart_edma component is included from ${CMAKE_CURRENT_LIST_FILE}.")
463
464if(CONFIG_USE_driver_edma AND CONFIG_USE_driver_flexio_uart AND (CONFIG_DEVICE_ID STREQUAL MKE15Z256xxx7 OR CONFIG_DEVICE_ID STREQUAL MKE15Z128xxx7))
465
466target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
467  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/flexio/uart/fsl_flexio_uart_edma.c
468)
469
470target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
471  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/flexio/uart/.
472)
473
474else()
475
476message(SEND_ERROR "driver_flexio_uart_edma.MKE15Z7 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
477
478endif()
479
480endif()
481
482
483if (CONFIG_USE_utility_notifier)
484# Add set(CONFIG_USE_utility_notifier true) in config.cmake to use this component
485
486message("utility_notifier component is included from ${CMAKE_CURRENT_LIST_FILE}.")
487
488if(CONFIG_USE_driver_common)
489
490target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
491  ${CMAKE_CURRENT_LIST_DIR}/../../utilities/notifier/fsl_notifier.c
492)
493
494target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
495  ${CMAKE_CURRENT_LIST_DIR}/../../utilities/notifier/.
496)
497
498else()
499
500message(SEND_ERROR "utility_notifier.MKE15Z7 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
501
502endif()
503
504endif()
505
506
507if (CONFIG_USE_device_MKE15Z7_system)
508# Add set(CONFIG_USE_device_MKE15Z7_system true) in config.cmake to use this component
509
510message("device_MKE15Z7_system component is included from ${CMAKE_CURRENT_LIST_FILE}.")
511
512if(CONFIG_USE_device_MKE15Z7_CMSIS)
513
514target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
515  ${CMAKE_CURRENT_LIST_DIR}/./system_MKE15Z7.c
516)
517
518target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
519  ${CMAKE_CURRENT_LIST_DIR}/./.
520)
521
522else()
523
524message(SEND_ERROR "device_MKE15Z7_system.MKE15Z7 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
525
526endif()
527
528endif()
529
530
531if (CONFIG_USE_utility_assert)
532# Add set(CONFIG_USE_utility_assert true) in config.cmake to use this component
533
534message("utility_assert component is included from ${CMAKE_CURRENT_LIST_FILE}.")
535
536if(CONFIG_USE_utility_debug_console AND CONFIG_USE_driver_common)
537
538target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
539  ${CMAKE_CURRENT_LIST_DIR}/../../utilities/assert/fsl_assert.c
540)
541
542target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
543  ${CMAKE_CURRENT_LIST_DIR}/../../utilities/assert/.
544)
545
546else()
547
548message(SEND_ERROR "utility_assert.MKE15Z7 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
549
550endif()
551
552endif()
553
554
555if (CONFIG_USE_utility_assert_lite)
556# Add set(CONFIG_USE_utility_assert_lite true) in config.cmake to use this component
557
558message("utility_assert_lite component is included from ${CMAKE_CURRENT_LIST_FILE}.")
559
560if(CONFIG_USE_utility_debug_console_lite AND CONFIG_USE_driver_common)
561
562target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
563  ${CMAKE_CURRENT_LIST_DIR}/../../utilities/assert/fsl_assert.c
564)
565
566target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
567  ${CMAKE_CURRENT_LIST_DIR}/../../utilities/assert/.
568)
569
570else()
571
572message(SEND_ERROR "utility_assert_lite.MKE15Z7 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
573
574endif()
575
576endif()
577
578
579if (CONFIG_USE_utility_str)
580# Add set(CONFIG_USE_utility_str true) in config.cmake to use this component
581
582message("utility_str component is included from ${CMAKE_CURRENT_LIST_FILE}.")
583
584if(CONFIG_USE_driver_common)
585
586target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
587  ${CMAKE_CURRENT_LIST_DIR}/../../utilities/str/fsl_str.c
588)
589
590target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
591  ${CMAKE_CURRENT_LIST_DIR}/../../utilities/str
592)
593
594else()
595
596message(SEND_ERROR "utility_str.MKE15Z7 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
597
598endif()
599
600endif()
601
602
603if (CONFIG_USE_utility_debug_console)
604# Add set(CONFIG_USE_utility_debug_console true) in config.cmake to use this component
605
606message("utility_debug_console component is included from ${CMAKE_CURRENT_LIST_FILE}.")
607
608if(CONFIG_USE_component_serial_manager AND CONFIG_USE_driver_common AND CONFIG_USE_utility_str)
609
610target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
611  ${CMAKE_CURRENT_LIST_DIR}/../../utilities/debug_console/fsl_debug_console.c
612)
613
614target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
615  ${CMAKE_CURRENT_LIST_DIR}/../../utilities/debug_console
616)
617
618else()
619
620message(SEND_ERROR "utility_debug_console.MKE15Z7 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
621
622endif()
623
624endif()
625
626
627if (CONFIG_USE_component_button)
628# Add set(CONFIG_USE_component_button true) in config.cmake to use this component
629
630message("component_button component is included from ${CMAKE_CURRENT_LIST_FILE}.")
631
632if(CONFIG_USE_driver_common AND CONFIG_USE_component_timer_manager AND (CONFIG_USE_component_gpio_adapter))
633
634target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
635  ${CMAKE_CURRENT_LIST_DIR}/../../components/button/fsl_component_button.c
636)
637
638target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
639  ${CMAKE_CURRENT_LIST_DIR}/../../components/button/.
640)
641
642else()
643
644message(SEND_ERROR "component_button.MKE15Z7 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
645
646endif()
647
648endif()
649
650
651if (CONFIG_USE_component_crc_adapter)
652# Add set(CONFIG_USE_component_crc_adapter true) in config.cmake to use this component
653
654message("component_crc_adapter component is included from ${CMAKE_CURRENT_LIST_FILE}.")
655
656if(CONFIG_USE_driver_common AND CONFIG_USE_driver_crc)
657
658target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
659  ${CMAKE_CURRENT_LIST_DIR}/../../components/crc/fsl_adapter_crc.c
660)
661
662target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
663  ${CMAKE_CURRENT_LIST_DIR}/../../components/crc/.
664)
665
666else()
667
668message(SEND_ERROR "component_crc_adapter.MKE15Z7 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
669
670endif()
671
672endif()
673
674
675if (CONFIG_USE_component_software_crc_adapter)
676# Add set(CONFIG_USE_component_software_crc_adapter true) in config.cmake to use this component
677
678message("component_software_crc_adapter component is included from ${CMAKE_CURRENT_LIST_FILE}.")
679
680if(CONFIG_USE_driver_common)
681
682target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
683  ${CMAKE_CURRENT_LIST_DIR}/../../components/crc/fsl_adapter_software_crc.c
684)
685
686target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
687  ${CMAKE_CURRENT_LIST_DIR}/../../components/crc/.
688)
689
690else()
691
692message(SEND_ERROR "component_software_crc_adapter.MKE15Z7 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
693
694endif()
695
696endif()
697
698
699if (CONFIG_USE_component_eeprom_InternalFlash)
700# Add set(CONFIG_USE_component_eeprom_InternalFlash true) in config.cmake to use this component
701
702message("component_eeprom_InternalFlash component is included from ${CMAKE_CURRENT_LIST_FILE}.")
703
704if(CONFIG_USE_driver_common AND CONFIG_USE_component_flash_adapter)
705
706target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
707  ${CMAKE_CURRENT_LIST_DIR}/../../components/extern_flash/fsl_adapter_eeprom_InternalFlash.c
708)
709
710target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
711  ${CMAKE_CURRENT_LIST_DIR}/../../components/extern_flash/.
712)
713
714else()
715
716message(SEND_ERROR "component_eeprom_InternalFlash.MKE15Z7 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
717
718endif()
719
720endif()
721
722
723if (CONFIG_USE_driver_ft5406)
724# Add set(CONFIG_USE_driver_ft5406 true) in config.cmake to use this component
725
726message("driver_ft5406 component is included from ${CMAKE_CURRENT_LIST_FILE}.")
727
728if(CONFIG_USE_driver_common)
729
730target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
731  ${CMAKE_CURRENT_LIST_DIR}/../../components/ft5406/fsl_ft5406.c
732)
733
734target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
735  ${CMAKE_CURRENT_LIST_DIR}/../../components/ft5406/.
736)
737
738else()
739
740message(SEND_ERROR "driver_ft5406.MKE15Z7 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
741
742endif()
743
744endif()
745
746
747if (CONFIG_USE_driver_ft6x06)
748# Add set(CONFIG_USE_driver_ft6x06 true) in config.cmake to use this component
749
750message("driver_ft6x06 component is included from ${CMAKE_CURRENT_LIST_FILE}.")
751
752if(CONFIG_USE_CMSIS_Driver_Include_I2C)
753
754target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
755  ${CMAKE_CURRENT_LIST_DIR}/../../components/ft6x06/fsl_ft6x06.c
756)
757
758target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
759  ${CMAKE_CURRENT_LIST_DIR}/../../components/ft6x06/.
760)
761
762else()
763
764message(SEND_ERROR "driver_ft6x06.MKE15Z7 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
765
766endif()
767
768endif()
769
770
771if (CONFIG_USE_driver_fxos8700cq)
772# Add set(CONFIG_USE_driver_fxos8700cq true) in config.cmake to use this component
773
774message("driver_fxos8700cq component is included from ${CMAKE_CURRENT_LIST_FILE}.")
775
776if(CONFIG_USE_driver_common)
777
778target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
779  ${CMAKE_CURRENT_LIST_DIR}/../../components/fxos8700cq/fsl_fxos.c
780)
781
782target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
783  ${CMAKE_CURRENT_LIST_DIR}/../../components/fxos8700cq/.
784)
785
786else()
787
788message(SEND_ERROR "driver_fxos8700cq.MKE15Z7 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
789
790endif()
791
792endif()
793
794
795if (CONFIG_USE_component_gpio_adapter)
796# Add set(CONFIG_USE_component_gpio_adapter true) in config.cmake to use this component
797
798message("component_gpio_adapter component is included from ${CMAKE_CURRENT_LIST_FILE}.")
799
800if(CONFIG_USE_driver_gpio AND (CONFIG_USE_driver_port))
801
802target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
803  ${CMAKE_CURRENT_LIST_DIR}/../../components/gpio/fsl_adapter_gpio.c
804)
805
806target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
807  ${CMAKE_CURRENT_LIST_DIR}/../../components/gpio/.
808)
809
810else()
811
812message(SEND_ERROR "component_gpio_adapter.MKE15Z7 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
813
814endif()
815
816endif()
817
818
819if (CONFIG_USE_component_lpi2c_adapter)
820# Add set(CONFIG_USE_component_lpi2c_adapter true) in config.cmake to use this component
821
822message("component_lpi2c_adapter component is included from ${CMAKE_CURRENT_LIST_FILE}.")
823
824if(CONFIG_USE_driver_common AND CONFIG_USE_driver_lpi2c)
825
826target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
827  ${CMAKE_CURRENT_LIST_DIR}/../../components/i2c/fsl_adapter_lpi2c.c
828)
829
830target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
831  ${CMAKE_CURRENT_LIST_DIR}/../../components/i2c/.
832)
833
834else()
835
836message(SEND_ERROR "component_lpi2c_adapter.MKE15Z7 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
837
838endif()
839
840endif()
841
842
843if (CONFIG_USE_driver_ili9341)
844# Add set(CONFIG_USE_driver_ili9341 true) in config.cmake to use this component
845
846message("driver_ili9341 component is included from ${CMAKE_CURRENT_LIST_FILE}.")
847
848if(CONFIG_USE_driver_common)
849
850target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
851  ${CMAKE_CURRENT_LIST_DIR}/../../components/ili9341/fsl_ili9341.c
852)
853
854target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
855  ${CMAKE_CURRENT_LIST_DIR}/../../components/ili9341/.
856)
857
858else()
859
860message(SEND_ERROR "driver_ili9341.MKE15Z7 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
861
862endif()
863
864endif()
865
866
867if (CONFIG_USE_component_flash_adapter)
868# Add set(CONFIG_USE_component_flash_adapter true) in config.cmake to use this component
869
870message("component_flash_adapter component is included from ${CMAKE_CURRENT_LIST_FILE}.")
871
872if(CONFIG_USE_driver_common AND CONFIG_USE_driver_flash)
873
874target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
875  ${CMAKE_CURRENT_LIST_DIR}/../../components/internal_flash/fsl_adapter_flash.c
876)
877
878target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
879  ${CMAKE_CURRENT_LIST_DIR}/../../components/internal_flash/.
880)
881
882else()
883
884message(SEND_ERROR "component_flash_adapter.MKE15Z7 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
885
886endif()
887
888endif()
889
890
891if (CONFIG_USE_component_led)
892# Add set(CONFIG_USE_component_led true) in config.cmake to use this component
893
894message("component_led component is included from ${CMAKE_CURRENT_LIST_FILE}.")
895
896if(CONFIG_USE_driver_common AND CONFIG_USE_component_timer_manager AND (CONFIG_USE_component_gpio_adapter))
897
898target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
899  ${CMAKE_CURRENT_LIST_DIR}/../../components/led/fsl_component_led.c
900)
901
902target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
903  ${CMAKE_CURRENT_LIST_DIR}/../../components/led/.
904)
905
906else()
907
908message(SEND_ERROR "component_led.MKE15Z7 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
909
910endif()
911
912endif()
913
914
915if (CONFIG_USE_component_lists)
916# Add set(CONFIG_USE_component_lists true) in config.cmake to use this component
917
918message("component_lists component is included from ${CMAKE_CURRENT_LIST_FILE}.")
919
920if(CONFIG_USE_driver_common)
921
922target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
923  ${CMAKE_CURRENT_LIST_DIR}/../../components/lists/fsl_component_generic_list.c
924)
925
926target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
927  ${CMAKE_CURRENT_LIST_DIR}/../../components/lists/.
928)
929
930else()
931
932message(SEND_ERROR "component_lists.MKE15Z7 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
933
934endif()
935
936endif()
937
938
939if (CONFIG_USE_component_log)
940# Add set(CONFIG_USE_component_log true) in config.cmake to use this component
941
942message("component_log component is included from ${CMAKE_CURRENT_LIST_FILE}.")
943
944if(CONFIG_USE_driver_common AND CONFIG_USE_utility_str)
945
946target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
947  ${CMAKE_CURRENT_LIST_DIR}/../../components/log/fsl_component_log.c
948)
949
950target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
951  ${CMAKE_CURRENT_LIST_DIR}/../../components/log/.
952)
953
954else()
955
956message(SEND_ERROR "component_log.MKE15Z7 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
957
958endif()
959
960endif()
961
962
963if (CONFIG_USE_component_log_backend_debugconsole)
964# Add set(CONFIG_USE_component_log_backend_debugconsole true) in config.cmake to use this component
965
966message("component_log_backend_debugconsole component is included from ${CMAKE_CURRENT_LIST_FILE}.")
967
968if(CONFIG_USE_driver_common AND CONFIG_USE_component_log AND CONFIG_USE_utility_debug_console)
969
970target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
971  ${CMAKE_CURRENT_LIST_DIR}/../../components/log/fsl_component_log_backend_debugconsole.c
972)
973
974target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
975  ${CMAKE_CURRENT_LIST_DIR}/../../components/log/.
976)
977
978else()
979
980message(SEND_ERROR "component_log_backend_debugconsole.MKE15Z7 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
981
982endif()
983
984endif()
985
986
987if (CONFIG_USE_component_log_backend_debugconsole_lite)
988# Add set(CONFIG_USE_component_log_backend_debugconsole_lite true) in config.cmake to use this component
989
990message("component_log_backend_debugconsole_lite component is included from ${CMAKE_CURRENT_LIST_FILE}.")
991
992if(CONFIG_USE_driver_common AND CONFIG_USE_component_log AND CONFIG_USE_utility_debug_console_lite)
993
994target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
995  ${CMAKE_CURRENT_LIST_DIR}/../../components/log/fsl_component_log_backend_debugconsole.c
996)
997
998target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
999  ${CMAKE_CURRENT_LIST_DIR}/../../components/log/.
1000)
1001
1002else()
1003
1004message(SEND_ERROR "component_log_backend_debugconsole_lite.MKE15Z7 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
1005
1006endif()
1007
1008endif()
1009
1010
1011if (CONFIG_USE_component_log_backend_ringbuffer)
1012# Add set(CONFIG_USE_component_log_backend_ringbuffer true) in config.cmake to use this component
1013
1014message("component_log_backend_ringbuffer component is included from ${CMAKE_CURRENT_LIST_FILE}.")
1015
1016if(CONFIG_USE_driver_common AND CONFIG_USE_component_log)
1017
1018target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
1019  ${CMAKE_CURRENT_LIST_DIR}/../../components/log/fsl_component_log_backend_ringbuffer.c
1020)
1021
1022target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
1023  ${CMAKE_CURRENT_LIST_DIR}/../../components/log/.
1024)
1025
1026else()
1027
1028message(SEND_ERROR "component_log_backend_ringbuffer.MKE15Z7 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
1029
1030endif()
1031
1032endif()
1033
1034
1035if (CONFIG_USE_component_mem_manager)
1036# Add set(CONFIG_USE_component_mem_manager true) in config.cmake to use this component
1037
1038message("component_mem_manager component is included from ${CMAKE_CURRENT_LIST_FILE}.")
1039
1040if(CONFIG_USE_driver_common AND CONFIG_USE_component_lists)
1041
1042target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
1043  ${CMAKE_CURRENT_LIST_DIR}/../../components/mem_manager/fsl_component_mem_manager.c
1044)
1045
1046target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
1047  ${CMAKE_CURRENT_LIST_DIR}/../../components/mem_manager/.
1048)
1049
1050else()
1051
1052message(SEND_ERROR "component_mem_manager.MKE15Z7 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
1053
1054endif()
1055
1056endif()
1057
1058
1059if (CONFIG_USE_component_mem_manager_light)
1060# Add set(CONFIG_USE_component_mem_manager_light true) in config.cmake to use this component
1061
1062message("component_mem_manager_light component is included from ${CMAKE_CURRENT_LIST_FILE}.")
1063
1064if(CONFIG_USE_driver_common AND CONFIG_USE_component_lists)
1065
1066target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
1067  ${CMAKE_CURRENT_LIST_DIR}/../../components/mem_manager/fsl_component_mem_manager_light.c
1068)
1069
1070target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
1071  ${CMAKE_CURRENT_LIST_DIR}/../../components/mem_manager/.
1072)
1073
1074else()
1075
1076message(SEND_ERROR "component_mem_manager_light.MKE15Z7 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
1077
1078endif()
1079
1080endif()
1081
1082
1083if (CONFIG_USE_component_mem_manager_freertos)
1084# Add set(CONFIG_USE_component_mem_manager_freertos true) in config.cmake to use this component
1085
1086message("component_mem_manager_freertos component is included from ${CMAKE_CURRENT_LIST_FILE}.")
1087
1088if(CONFIG_USE_driver_common AND CONFIG_USE_middleware_freertos-kernel)
1089
1090target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
1091  ${CMAKE_CURRENT_LIST_DIR}/../../components/mem_manager/fsl_component_mem_manager_freertos.c
1092)
1093
1094target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
1095  ${CMAKE_CURRENT_LIST_DIR}/../../components/mem_manager/.
1096)
1097
1098else()
1099
1100message(SEND_ERROR "component_mem_manager_freertos.MKE15Z7 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
1101
1102endif()
1103
1104endif()
1105
1106
1107if (CONFIG_USE_driver_mma8451q)
1108# Add set(CONFIG_USE_driver_mma8451q true) in config.cmake to use this component
1109
1110message("driver_mma8451q component is included from ${CMAKE_CURRENT_LIST_FILE}.")
1111
1112if(CONFIG_USE_driver_common)
1113
1114target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
1115  ${CMAKE_CURRENT_LIST_DIR}/../../components/mma8451q/fsl_mma.c
1116)
1117
1118target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
1119  ${CMAKE_CURRENT_LIST_DIR}/../../components/mma8451q/.
1120)
1121
1122else()
1123
1124message(SEND_ERROR "driver_mma8451q.MKE15Z7 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
1125
1126endif()
1127
1128endif()
1129
1130
1131if (CONFIG_USE_component_panic)
1132# Add set(CONFIG_USE_component_panic true) in config.cmake to use this component
1133
1134message("component_panic component is included from ${CMAKE_CURRENT_LIST_FILE}.")
1135
1136if(CONFIG_USE_driver_common)
1137
1138target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
1139  ${CMAKE_CURRENT_LIST_DIR}/../../components/panic/fsl_component_panic.c
1140)
1141
1142target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
1143  ${CMAKE_CURRENT_LIST_DIR}/../../components/panic/.
1144)
1145
1146else()
1147
1148message(SEND_ERROR "component_panic.MKE15Z7 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
1149
1150endif()
1151
1152endif()
1153
1154
1155if (CONFIG_USE_component_pwm_ftm_adapter)
1156# Add set(CONFIG_USE_component_pwm_ftm_adapter true) in config.cmake to use this component
1157
1158message("component_pwm_ftm_adapter component is included from ${CMAKE_CURRENT_LIST_FILE}.")
1159
1160if(CONFIG_USE_driver_common AND CONFIG_USE_driver_ftm)
1161
1162target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
1163  ${CMAKE_CURRENT_LIST_DIR}/../../components/pwm/fsl_adapter_pwm_ftm.c
1164)
1165
1166target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
1167  ${CMAKE_CURRENT_LIST_DIR}/../../components/pwm/.
1168)
1169
1170else()
1171
1172message(SEND_ERROR "component_pwm_ftm_adapter.MKE15Z7 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
1173
1174endif()
1175
1176endif()
1177
1178
1179if (CONFIG_USE_component_reset_adapter)
1180# Add set(CONFIG_USE_component_reset_adapter true) in config.cmake to use this component
1181
1182message("component_reset_adapter component is included from ${CMAKE_CURRENT_LIST_FILE}.")
1183
1184if(CONFIG_USE_driver_common)
1185
1186target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
1187  ${CMAKE_CURRENT_LIST_DIR}/../../components/reset/fsl_adapter_reset.c
1188)
1189
1190target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
1191  ${CMAKE_CURRENT_LIST_DIR}/../../components/reset/.
1192)
1193
1194else()
1195
1196message(SEND_ERROR "component_reset_adapter.MKE15Z7 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
1197
1198endif()
1199
1200endif()
1201
1202
1203if (CONFIG_USE_component_software_rng_adapter)
1204# Add set(CONFIG_USE_component_software_rng_adapter true) in config.cmake to use this component
1205
1206message("component_software_rng_adapter component is included from ${CMAKE_CURRENT_LIST_FILE}.")
1207
1208if(CONFIG_USE_driver_common)
1209
1210target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
1211  ${CMAKE_CURRENT_LIST_DIR}/../../components/rng/fsl_adapter_software_rng.c
1212)
1213
1214target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
1215  ${CMAKE_CURRENT_LIST_DIR}/../../components/rng/.
1216)
1217
1218else()
1219
1220message(SEND_ERROR "component_software_rng_adapter.MKE15Z7 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
1221
1222endif()
1223
1224endif()
1225
1226
1227if (CONFIG_USE_component_rtc)
1228# Add set(CONFIG_USE_component_rtc true) in config.cmake to use this component
1229
1230message("component_rtc component is included from ${CMAKE_CURRENT_LIST_FILE}.")
1231
1232if(CONFIG_USE_driver_common AND CONFIG_USE_driver_rtc)
1233
1234target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
1235  ${CMAKE_CURRENT_LIST_DIR}/../../components/rtc/fsl_adapter_rtc.c
1236)
1237
1238target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
1239  ${CMAKE_CURRENT_LIST_DIR}/../../components/rtc/.
1240)
1241
1242if(CONFIG_USE_COMPONENT_CONFIGURATION)
1243  message("===>Import configuration from ${CMAKE_CURRENT_LIST_FILE}")
1244
1245  target_compile_definitions(${MCUX_SDK_PROJECT_NAME} PUBLIC
1246    -DRTC_LEGACY_FUNCTION_PROTOTYPE=1
1247  )
1248
1249endif()
1250
1251else()
1252
1253message(SEND_ERROR "component_rtc.MKE15Z7 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
1254
1255endif()
1256
1257endif()
1258
1259
1260if (CONFIG_USE_component_serial_manager)
1261# Add set(CONFIG_USE_component_serial_manager true) in config.cmake to use this component
1262
1263message("component_serial_manager component is included from ${CMAKE_CURRENT_LIST_FILE}.")
1264
1265if(CONFIG_USE_driver_common AND CONFIG_USE_component_lists AND (CONFIG_USE_component_serial_manager_uart OR CONFIG_USE_component_serial_manager_virtual OR CONFIG_USE_component_serial_manager_spi))
1266
1267target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
1268  ${CMAKE_CURRENT_LIST_DIR}/../../components/serial_manager/fsl_component_serial_manager.c
1269)
1270
1271target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
1272  ${CMAKE_CURRENT_LIST_DIR}/../../components/serial_manager/.
1273)
1274
1275else()
1276
1277message(SEND_ERROR "component_serial_manager.MKE15Z7 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
1278
1279endif()
1280
1281endif()
1282
1283
1284if (CONFIG_USE_component_serial_manager_spi)
1285# Add set(CONFIG_USE_component_serial_manager_spi true) in config.cmake to use this component
1286
1287message("component_serial_manager_spi component is included from ${CMAKE_CURRENT_LIST_FILE}.")
1288
1289if(CONFIG_USE_component_serial_manager AND ((CONFIG_USE_driver_lpspi AND CONFIG_USE_component_lpspi_adapter)))
1290
1291target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
1292  ${CMAKE_CURRENT_LIST_DIR}/../../components/serial_manager/fsl_component_serial_port_spi.c
1293)
1294
1295target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
1296  ${CMAKE_CURRENT_LIST_DIR}/../../components/serial_manager/.
1297)
1298
1299if(CONFIG_USE_COMPONENT_CONFIGURATION)
1300  message("===>Import configuration from ${CMAKE_CURRENT_LIST_FILE}")
1301
1302  target_compile_definitions(${MCUX_SDK_PROJECT_NAME} PUBLIC
1303    -DSERIAL_PORT_TYPE_SPI=1
1304    -DSERIAL_PORT_TYPE_SPI_MASTER=1
1305    -DSERIAL_PORT_TYPE_SPI_SLAVE=1
1306    -DSERIAL_MANAGER_NON_BLOCKING_MODE=1
1307  )
1308
1309endif()
1310
1311else()
1312
1313message(SEND_ERROR "component_serial_manager_spi.MKE15Z7 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
1314
1315endif()
1316
1317endif()
1318
1319
1320if (CONFIG_USE_component_serial_manager_virtual)
1321# Add set(CONFIG_USE_component_serial_manager_virtual true) in config.cmake to use this component
1322
1323message("component_serial_manager_virtual component is included from ${CMAKE_CURRENT_LIST_FILE}.")
1324
1325if(CONFIG_USE_component_serial_manager AND CONFIG_USE_driver_common)
1326
1327target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
1328  ${CMAKE_CURRENT_LIST_DIR}/../../components/serial_manager/fsl_component_serial_port_virtual.c
1329)
1330
1331target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
1332  ${CMAKE_CURRENT_LIST_DIR}/../../components/serial_manager/.
1333)
1334
1335if(CONFIG_USE_COMPONENT_CONFIGURATION)
1336  message("===>Import configuration from ${CMAKE_CURRENT_LIST_FILE}")
1337
1338  target_compile_definitions(${MCUX_SDK_PROJECT_NAME} PUBLIC
1339    -DSERIAL_PORT_TYPE_VIRTUAL=1
1340    -DDEBUG_CONSOLE_TRANSFER_NON_BLOCKING
1341  )
1342
1343endif()
1344
1345else()
1346
1347message(SEND_ERROR "component_serial_manager_virtual.MKE15Z7 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
1348
1349endif()
1350
1351endif()
1352
1353
1354if (CONFIG_USE_utility_shell)
1355# Add set(CONFIG_USE_utility_shell true) in config.cmake to use this component
1356
1357message("utility_shell component is included from ${CMAKE_CURRENT_LIST_FILE}.")
1358
1359if(CONFIG_USE_utility_str AND CONFIG_USE_component_lists AND CONFIG_USE_driver_common)
1360
1361target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
1362  ${CMAKE_CURRENT_LIST_DIR}/../../utilities/shell/fsl_shell.c
1363)
1364
1365target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
1366  ${CMAKE_CURRENT_LIST_DIR}/../../utilities/shell/.
1367)
1368
1369if(CONFIG_USE_COMPONENT_CONFIGURATION)
1370  message("===>Import configuration from ${CMAKE_CURRENT_LIST_FILE}")
1371
1372  target_compile_definitions(${MCUX_SDK_PROJECT_NAME} PUBLIC
1373    -DDEBUG_CONSOLE_RX_ENABLE=0
1374  )
1375
1376endif()
1377
1378else()
1379
1380message(SEND_ERROR "utility_shell.MKE15Z7 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
1381
1382endif()
1383
1384endif()
1385
1386
1387if (CONFIG_USE_component_lpspi_adapter)
1388# Add set(CONFIG_USE_component_lpspi_adapter true) in config.cmake to use this component
1389
1390message("component_lpspi_adapter component is included from ${CMAKE_CURRENT_LIST_FILE}.")
1391
1392if(CONFIG_USE_driver_common AND CONFIG_USE_driver_lpspi)
1393
1394target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
1395  ${CMAKE_CURRENT_LIST_DIR}/../../components/spi/fsl_adapter_lpspi.c
1396)
1397
1398target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
1399  ${CMAKE_CURRENT_LIST_DIR}/../../components/spi/.
1400)
1401
1402else()
1403
1404message(SEND_ERROR "component_lpspi_adapter.MKE15Z7 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
1405
1406endif()
1407
1408endif()
1409
1410
1411if (CONFIG_USE_component_ftm_adapter)
1412# Add set(CONFIG_USE_component_ftm_adapter true) in config.cmake to use this component
1413
1414message("component_ftm_adapter component is included from ${CMAKE_CURRENT_LIST_FILE}.")
1415
1416if(CONFIG_USE_driver_common AND CONFIG_USE_driver_ftm)
1417
1418target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
1419  ${CMAKE_CURRENT_LIST_DIR}/../../components/timer/fsl_adapter_ftm.c
1420)
1421
1422target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
1423  ${CMAKE_CURRENT_LIST_DIR}/../../components/timer/.
1424)
1425
1426if(CONFIG_USE_COMPONENT_CONFIGURATION)
1427  message("===>Import configuration from ${CMAKE_CURRENT_LIST_FILE}")
1428
1429  target_compile_definitions(${MCUX_SDK_PROJECT_NAME} PUBLIC
1430    -DTIMER_PORT_TYPE_FTM=1
1431  )
1432
1433endif()
1434
1435else()
1436
1437message(SEND_ERROR "component_ftm_adapter.MKE15Z7 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
1438
1439endif()
1440
1441endif()
1442
1443
1444if (CONFIG_USE_component_lpit_adapter)
1445# Add set(CONFIG_USE_component_lpit_adapter true) in config.cmake to use this component
1446
1447message("component_lpit_adapter component is included from ${CMAKE_CURRENT_LIST_FILE}.")
1448
1449if(CONFIG_USE_driver_common AND CONFIG_USE_driver_lpit)
1450
1451target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
1452  ${CMAKE_CURRENT_LIST_DIR}/../../components/timer/fsl_adapter_lpit.c
1453)
1454
1455target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
1456  ${CMAKE_CURRENT_LIST_DIR}/../../components/timer/.
1457)
1458
1459if(CONFIG_USE_COMPONENT_CONFIGURATION)
1460  message("===>Import configuration from ${CMAKE_CURRENT_LIST_FILE}")
1461
1462  target_compile_definitions(${MCUX_SDK_PROJECT_NAME} PUBLIC
1463    -DTIMER_PORT_TYPE_LPIT=1
1464  )
1465
1466endif()
1467
1468else()
1469
1470message(SEND_ERROR "component_lpit_adapter.MKE15Z7 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
1471
1472endif()
1473
1474endif()
1475
1476
1477if (CONFIG_USE_component_lptmr_adapter)
1478# Add set(CONFIG_USE_component_lptmr_adapter true) in config.cmake to use this component
1479
1480message("component_lptmr_adapter component is included from ${CMAKE_CURRENT_LIST_FILE}.")
1481
1482if(CONFIG_USE_driver_common AND CONFIG_USE_driver_lptmr)
1483
1484target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
1485  ${CMAKE_CURRENT_LIST_DIR}/../../components/timer/fsl_adapter_lptmr.c
1486)
1487
1488target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
1489  ${CMAKE_CURRENT_LIST_DIR}/../../components/timer/.
1490)
1491
1492if(CONFIG_USE_COMPONENT_CONFIGURATION)
1493  message("===>Import configuration from ${CMAKE_CURRENT_LIST_FILE}")
1494
1495  target_compile_definitions(${MCUX_SDK_PROJECT_NAME} PUBLIC
1496    -DTIMER_PORT_TYPE_LPTMR=1
1497  )
1498
1499endif()
1500
1501else()
1502
1503message(SEND_ERROR "component_lptmr_adapter.MKE15Z7 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
1504
1505endif()
1506
1507endif()
1508
1509
1510if (CONFIG_USE_component_timer_manager)
1511# Add set(CONFIG_USE_component_timer_manager true) in config.cmake to use this component
1512
1513message("component_timer_manager component is included from ${CMAKE_CURRENT_LIST_FILE}.")
1514
1515if(CONFIG_USE_driver_common AND CONFIG_USE_component_lists AND (CONFIG_USE_component_ftm_adapter OR CONFIG_USE_component_lpit_adapter OR CONFIG_USE_component_lptmr_adapter))
1516
1517target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
1518  ${CMAKE_CURRENT_LIST_DIR}/../../components/timer_manager/fsl_component_timer_manager.c
1519)
1520
1521target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
1522  ${CMAKE_CURRENT_LIST_DIR}/../../components/timer_manager/.
1523)
1524
1525else()
1526
1527message(SEND_ERROR "component_timer_manager.MKE15Z7 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
1528
1529endif()
1530
1531endif()
1532
1533
1534if (CONFIG_USE_component_lpuart_adapter)
1535# Add set(CONFIG_USE_component_lpuart_adapter true) in config.cmake to use this component
1536
1537message("component_lpuart_adapter component is included from ${CMAKE_CURRENT_LIST_FILE}.")
1538
1539if(CONFIG_USE_driver_common AND CONFIG_USE_driver_lpuart)
1540
1541target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
1542  ${CMAKE_CURRENT_LIST_DIR}/../../components/uart/fsl_adapter_lpuart.c
1543)
1544
1545target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
1546  ${CMAKE_CURRENT_LIST_DIR}/../../components/uart/.
1547)
1548
1549else()
1550
1551message(SEND_ERROR "component_lpuart_adapter.MKE15Z7 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
1552
1553endif()
1554
1555endif()
1556
1557
1558if (CONFIG_USE_component_lpuart_dma_adapter)
1559# Add set(CONFIG_USE_component_lpuart_dma_adapter true) in config.cmake to use this component
1560
1561message("component_lpuart_dma_adapter component is included from ${CMAKE_CURRENT_LIST_FILE}.")
1562
1563if(CONFIG_USE_component_lpuart_adapter AND CONFIG_USE_component_timer_manager AND (CONFIG_USE_driver_lpuart_edma))
1564
1565target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
1566  ${CMAKE_CURRENT_LIST_DIR}/../../components/uart/fsl_adapter_lpuart.c
1567)
1568
1569target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
1570  ${CMAKE_CURRENT_LIST_DIR}/../../components/uart/.
1571)
1572
1573if(CONFIG_USE_COMPONENT_CONFIGURATION)
1574  message("===>Import configuration from ${CMAKE_CURRENT_LIST_FILE}")
1575
1576  target_compile_definitions(${MCUX_SDK_PROJECT_NAME} PUBLIC
1577    -DHAL_UART_DMA_ENABLE=1
1578  )
1579
1580endif()
1581
1582else()
1583
1584message(SEND_ERROR "component_lpuart_dma_adapter.MKE15Z7 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
1585
1586endif()
1587
1588endif()
1589
1590
1591if (CONFIG_USE_driver_common)
1592# Add set(CONFIG_USE_driver_common true) in config.cmake to use this component
1593
1594message("driver_common component is included from ${CMAKE_CURRENT_LIST_FILE}.")
1595
1596if(CONFIG_USE_driver_clock AND CONFIG_USE_device_MKE15Z7_CMSIS)
1597
1598target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
1599  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/common/fsl_common.c
1600)
1601
1602if(CONFIG_CORE STREQUAL cm0p)
1603  target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
1604      ${CMAKE_CURRENT_LIST_DIR}/../../drivers/common/fsl_common_arm.c
1605  )
1606endif()
1607
1608target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
1609  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/common/.
1610)
1611
1612else()
1613
1614message(SEND_ERROR "driver_common.MKE15Z7 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
1615
1616endif()
1617
1618endif()
1619
1620
1621if (CONFIG_USE_driver_acmp)
1622# Add set(CONFIG_USE_driver_acmp true) in config.cmake to use this component
1623
1624message("driver_acmp component is included from ${CMAKE_CURRENT_LIST_FILE}.")
1625
1626if((CONFIG_DEVICE_ID STREQUAL MKE15Z256xxx7 OR CONFIG_DEVICE_ID STREQUAL MKE15Z128xxx7) AND CONFIG_USE_driver_common)
1627
1628target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
1629  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/acmp/fsl_acmp.c
1630)
1631
1632target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
1633  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/acmp/.
1634)
1635
1636else()
1637
1638message(SEND_ERROR "driver_acmp.MKE15Z7 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
1639
1640endif()
1641
1642endif()
1643
1644
1645if (CONFIG_USE_driver_adc12)
1646# Add set(CONFIG_USE_driver_adc12 true) in config.cmake to use this component
1647
1648message("driver_adc12 component is included from ${CMAKE_CURRENT_LIST_FILE}.")
1649
1650if((CONFIG_DEVICE_ID STREQUAL MKE15Z256xxx7 OR CONFIG_DEVICE_ID STREQUAL MKE15Z128xxx7) AND CONFIG_USE_driver_common)
1651
1652target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
1653  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/adc12/fsl_adc12.c
1654)
1655
1656target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
1657  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/adc12/.
1658)
1659
1660else()
1661
1662message(SEND_ERROR "driver_adc12.MKE15Z7 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
1663
1664endif()
1665
1666endif()
1667
1668
1669if (CONFIG_USE_driver_crc)
1670# Add set(CONFIG_USE_driver_crc true) in config.cmake to use this component
1671
1672message("driver_crc component is included from ${CMAKE_CURRENT_LIST_FILE}.")
1673
1674if((CONFIG_DEVICE_ID STREQUAL MKE15Z256xxx7 OR CONFIG_DEVICE_ID STREQUAL MKE15Z128xxx7) AND CONFIG_USE_driver_common)
1675
1676target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
1677  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/crc/fsl_crc.c
1678)
1679
1680target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
1681  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/crc/.
1682)
1683
1684else()
1685
1686message(SEND_ERROR "driver_crc.MKE15Z7 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
1687
1688endif()
1689
1690endif()
1691
1692
1693if (CONFIG_USE_driver_dmamux)
1694# Add set(CONFIG_USE_driver_dmamux true) in config.cmake to use this component
1695
1696message("driver_dmamux component is included from ${CMAKE_CURRENT_LIST_FILE}.")
1697
1698if((CONFIG_DEVICE_ID STREQUAL MKE15Z256xxx7 OR CONFIG_DEVICE_ID STREQUAL MKE15Z128xxx7) AND CONFIG_USE_driver_common)
1699
1700target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
1701  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/dmamux/fsl_dmamux.c
1702)
1703
1704target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
1705  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/dmamux/.
1706)
1707
1708else()
1709
1710message(SEND_ERROR "driver_dmamux.MKE15Z7 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
1711
1712endif()
1713
1714endif()
1715
1716
1717if (CONFIG_USE_driver_edma)
1718# Add set(CONFIG_USE_driver_edma true) in config.cmake to use this component
1719
1720message("driver_edma component is included from ${CMAKE_CURRENT_LIST_FILE}.")
1721
1722if((CONFIG_DEVICE_ID STREQUAL MKE15Z256xxx7 OR CONFIG_DEVICE_ID STREQUAL MKE15Z128xxx7) AND CONFIG_USE_driver_common AND CONFIG_USE_driver_dmamux)
1723
1724target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
1725  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/edma/fsl_edma.c
1726)
1727
1728target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
1729  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/edma/.
1730)
1731
1732else()
1733
1734message(SEND_ERROR "driver_edma.MKE15Z7 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
1735
1736endif()
1737
1738endif()
1739
1740
1741if (CONFIG_USE_driver_ewm)
1742# Add set(CONFIG_USE_driver_ewm true) in config.cmake to use this component
1743
1744message("driver_ewm component is included from ${CMAKE_CURRENT_LIST_FILE}.")
1745
1746if((CONFIG_DEVICE_ID STREQUAL MKE15Z256xxx7 OR CONFIG_DEVICE_ID STREQUAL MKE15Z128xxx7) AND CONFIG_USE_driver_common)
1747
1748target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
1749  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/ewm/fsl_ewm.c
1750)
1751
1752target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
1753  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/ewm/.
1754)
1755
1756else()
1757
1758message(SEND_ERROR "driver_ewm.MKE15Z7 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
1759
1760endif()
1761
1762endif()
1763
1764
1765if (CONFIG_USE_driver_flash)
1766# Add set(CONFIG_USE_driver_flash true) in config.cmake to use this component
1767
1768message("driver_flash component is included from ${CMAKE_CURRENT_LIST_FILE}.")
1769
1770if(CONFIG_USE_driver_common)
1771
1772target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
1773  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/flash/fsl_ftfx_controller.c
1774  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/flash/fsl_ftfx_flash.c
1775  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/flash/fsl_ftfx_cache.c
1776  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/flash/fsl_ftfx_flexnvm.c
1777)
1778
1779target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
1780  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/flash/.
1781)
1782
1783else()
1784
1785message(SEND_ERROR "driver_flash.MKE15Z7 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
1786
1787endif()
1788
1789endif()
1790
1791
1792if (CONFIG_USE_driver_flexio)
1793# Add set(CONFIG_USE_driver_flexio true) in config.cmake to use this component
1794
1795message("driver_flexio component is included from ${CMAKE_CURRENT_LIST_FILE}.")
1796
1797if((CONFIG_DEVICE_ID STREQUAL MKE15Z256xxx7 OR CONFIG_DEVICE_ID STREQUAL MKE15Z128xxx7) AND CONFIG_USE_driver_common)
1798
1799target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
1800  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/flexio/fsl_flexio.c
1801)
1802
1803target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
1804  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/flexio/.
1805)
1806
1807else()
1808
1809message(SEND_ERROR "driver_flexio.MKE15Z7 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
1810
1811endif()
1812
1813endif()
1814
1815
1816if (CONFIG_USE_driver_flexio_i2c_master)
1817# Add set(CONFIG_USE_driver_flexio_i2c_master true) in config.cmake to use this component
1818
1819message("driver_flexio_i2c_master component is included from ${CMAKE_CURRENT_LIST_FILE}.")
1820
1821if(CONFIG_USE_driver_flexio)
1822
1823target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
1824  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/flexio/i2c/fsl_flexio_i2c_master.c
1825)
1826
1827target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
1828  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/flexio/i2c/.
1829)
1830
1831else()
1832
1833message(SEND_ERROR "driver_flexio_i2c_master.MKE15Z7 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
1834
1835endif()
1836
1837endif()
1838
1839
1840if (CONFIG_USE_driver_flexio_i2s)
1841# Add set(CONFIG_USE_driver_flexio_i2s true) in config.cmake to use this component
1842
1843message("driver_flexio_i2s component is included from ${CMAKE_CURRENT_LIST_FILE}.")
1844
1845if(CONFIG_USE_driver_flexio)
1846
1847target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
1848  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/flexio/i2s/fsl_flexio_i2s.c
1849)
1850
1851target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
1852  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/flexio/i2s/.
1853)
1854
1855else()
1856
1857message(SEND_ERROR "driver_flexio_i2s.MKE15Z7 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
1858
1859endif()
1860
1861endif()
1862
1863
1864if (CONFIG_USE_driver_flexio_spi)
1865# Add set(CONFIG_USE_driver_flexio_spi true) in config.cmake to use this component
1866
1867message("driver_flexio_spi component is included from ${CMAKE_CURRENT_LIST_FILE}.")
1868
1869if(CONFIG_USE_driver_flexio)
1870
1871target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
1872  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/flexio/spi/fsl_flexio_spi.c
1873)
1874
1875target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
1876  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/flexio/spi/.
1877)
1878
1879else()
1880
1881message(SEND_ERROR "driver_flexio_spi.MKE15Z7 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
1882
1883endif()
1884
1885endif()
1886
1887
1888if (CONFIG_USE_driver_flexio_uart)
1889# Add set(CONFIG_USE_driver_flexio_uart true) in config.cmake to use this component
1890
1891message("driver_flexio_uart component is included from ${CMAKE_CURRENT_LIST_FILE}.")
1892
1893if(CONFIG_USE_driver_flexio)
1894
1895target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
1896  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/flexio/uart/fsl_flexio_uart.c
1897)
1898
1899target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
1900  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/flexio/uart/.
1901)
1902
1903else()
1904
1905message(SEND_ERROR "driver_flexio_uart.MKE15Z7 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
1906
1907endif()
1908
1909endif()
1910
1911
1912if (CONFIG_USE_driver_ftm)
1913# Add set(CONFIG_USE_driver_ftm true) in config.cmake to use this component
1914
1915message("driver_ftm component is included from ${CMAKE_CURRENT_LIST_FILE}.")
1916
1917if((CONFIG_DEVICE_ID STREQUAL MKE15Z256xxx7 OR CONFIG_DEVICE_ID STREQUAL MKE15Z128xxx7) AND CONFIG_USE_driver_common)
1918
1919target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
1920  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/ftm/fsl_ftm.c
1921)
1922
1923target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
1924  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/ftm/.
1925)
1926
1927else()
1928
1929message(SEND_ERROR "driver_ftm.MKE15Z7 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
1930
1931endif()
1932
1933endif()
1934
1935
1936if (CONFIG_USE_driver_gpio)
1937# Add set(CONFIG_USE_driver_gpio true) in config.cmake to use this component
1938
1939message("driver_gpio component is included from ${CMAKE_CURRENT_LIST_FILE}.")
1940
1941if((CONFIG_DEVICE_ID STREQUAL MKE15Z256xxx7 OR CONFIG_DEVICE_ID STREQUAL MKE15Z128xxx7) AND CONFIG_USE_driver_common)
1942
1943target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
1944  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/gpio/fsl_gpio.c
1945)
1946
1947target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
1948  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/gpio/.
1949)
1950
1951else()
1952
1953message(SEND_ERROR "driver_gpio.MKE15Z7 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
1954
1955endif()
1956
1957endif()
1958
1959
1960if (CONFIG_USE_driver_lpi2c)
1961# Add set(CONFIG_USE_driver_lpi2c true) in config.cmake to use this component
1962
1963message("driver_lpi2c component is included from ${CMAKE_CURRENT_LIST_FILE}.")
1964
1965if((CONFIG_DEVICE_ID STREQUAL MKE15Z256xxx7 OR CONFIG_DEVICE_ID STREQUAL MKE15Z128xxx7) AND CONFIG_USE_driver_common)
1966
1967target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
1968  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/lpi2c/fsl_lpi2c.c
1969)
1970
1971target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
1972  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/lpi2c/.
1973)
1974
1975else()
1976
1977message(SEND_ERROR "driver_lpi2c.MKE15Z7 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
1978
1979endif()
1980
1981endif()
1982
1983
1984if (CONFIG_USE_driver_lpi2c_freertos)
1985# Add set(CONFIG_USE_driver_lpi2c_freertos true) in config.cmake to use this component
1986
1987message("driver_lpi2c_freertos component is included from ${CMAKE_CURRENT_LIST_FILE}.")
1988
1989if(CONFIG_USE_driver_lpi2c AND CONFIG_USE_middleware_freertos-kernel)
1990
1991target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
1992  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/lpi2c/fsl_lpi2c_freertos.c
1993)
1994
1995target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
1996  ${CMAKE_CURRENT_LIST_DIR}/drivers/.
1997)
1998
1999else()
2000
2001message(SEND_ERROR "driver_lpi2c_freertos.MKE15Z7 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
2002
2003endif()
2004
2005endif()
2006
2007
2008if (CONFIG_USE_driver_lpit)
2009# Add set(CONFIG_USE_driver_lpit true) in config.cmake to use this component
2010
2011message("driver_lpit component is included from ${CMAKE_CURRENT_LIST_FILE}.")
2012
2013if((CONFIG_DEVICE_ID STREQUAL MKE15Z256xxx7 OR CONFIG_DEVICE_ID STREQUAL MKE15Z128xxx7) AND CONFIG_USE_driver_common)
2014
2015target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
2016  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/lpit/fsl_lpit.c
2017)
2018
2019target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
2020  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/lpit/.
2021)
2022
2023else()
2024
2025message(SEND_ERROR "driver_lpit.MKE15Z7 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
2026
2027endif()
2028
2029endif()
2030
2031
2032if (CONFIG_USE_driver_lpspi)
2033# Add set(CONFIG_USE_driver_lpspi true) in config.cmake to use this component
2034
2035message("driver_lpspi component is included from ${CMAKE_CURRENT_LIST_FILE}.")
2036
2037if((CONFIG_DEVICE_ID STREQUAL MKE15Z256xxx7 OR CONFIG_DEVICE_ID STREQUAL MKE15Z128xxx7) AND CONFIG_USE_driver_common)
2038
2039target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
2040  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/lpspi/fsl_lpspi.c
2041)
2042
2043target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
2044  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/lpspi/.
2045)
2046
2047else()
2048
2049message(SEND_ERROR "driver_lpspi.MKE15Z7 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
2050
2051endif()
2052
2053endif()
2054
2055
2056if (CONFIG_USE_driver_lpspi_freertos)
2057# Add set(CONFIG_USE_driver_lpspi_freertos true) in config.cmake to use this component
2058
2059message("driver_lpspi_freertos component is included from ${CMAKE_CURRENT_LIST_FILE}.")
2060
2061if(CONFIG_USE_driver_lpspi AND CONFIG_USE_middleware_freertos-kernel)
2062
2063target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
2064  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/lpspi/fsl_lpspi_freertos.c
2065)
2066
2067target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
2068  ${CMAKE_CURRENT_LIST_DIR}/drivers/.
2069)
2070
2071else()
2072
2073message(SEND_ERROR "driver_lpspi_freertos.MKE15Z7 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
2074
2075endif()
2076
2077endif()
2078
2079
2080if (CONFIG_USE_driver_lptmr)
2081# Add set(CONFIG_USE_driver_lptmr true) in config.cmake to use this component
2082
2083message("driver_lptmr component is included from ${CMAKE_CURRENT_LIST_FILE}.")
2084
2085if((CONFIG_DEVICE_ID STREQUAL MKE15Z256xxx7 OR CONFIG_DEVICE_ID STREQUAL MKE15Z128xxx7) AND CONFIG_USE_driver_common)
2086
2087target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
2088  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/lptmr/fsl_lptmr.c
2089)
2090
2091target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
2092  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/lptmr/.
2093)
2094
2095else()
2096
2097message(SEND_ERROR "driver_lptmr.MKE15Z7 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
2098
2099endif()
2100
2101endif()
2102
2103
2104if (CONFIG_USE_driver_lpuart)
2105# Add set(CONFIG_USE_driver_lpuart true) in config.cmake to use this component
2106
2107message("driver_lpuart component is included from ${CMAKE_CURRENT_LIST_FILE}.")
2108
2109if((CONFIG_DEVICE_ID STREQUAL MKE15Z256xxx7 OR CONFIG_DEVICE_ID STREQUAL MKE15Z128xxx7) AND CONFIG_USE_driver_common)
2110
2111target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
2112  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/lpuart/fsl_lpuart.c
2113)
2114
2115target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
2116  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/lpuart/.
2117)
2118
2119else()
2120
2121message(SEND_ERROR "driver_lpuart.MKE15Z7 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
2122
2123endif()
2124
2125endif()
2126
2127
2128if (CONFIG_USE_driver_lpuart_freertos)
2129# Add set(CONFIG_USE_driver_lpuart_freertos true) in config.cmake to use this component
2130
2131message("driver_lpuart_freertos component is included from ${CMAKE_CURRENT_LIST_FILE}.")
2132
2133if(CONFIG_USE_driver_lpuart AND CONFIG_USE_middleware_freertos-kernel)
2134
2135target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
2136  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/lpuart/fsl_lpuart_freertos.c
2137)
2138
2139target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
2140  ${CMAKE_CURRENT_LIST_DIR}/drivers/.
2141)
2142
2143else()
2144
2145message(SEND_ERROR "driver_lpuart_freertos.MKE15Z7 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
2146
2147endif()
2148
2149endif()
2150
2151
2152if (CONFIG_USE_driver_mmdvsq)
2153# Add set(CONFIG_USE_driver_mmdvsq true) in config.cmake to use this component
2154
2155message("driver_mmdvsq component is included from ${CMAKE_CURRENT_LIST_FILE}.")
2156
2157if((CONFIG_DEVICE_ID STREQUAL MKE15Z256xxx7 OR CONFIG_DEVICE_ID STREQUAL MKE15Z128xxx7) AND CONFIG_USE_driver_common)
2158
2159target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
2160  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/mmdvsq/fsl_mmdvsq.c
2161)
2162
2163target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
2164  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/mmdvsq/.
2165)
2166
2167else()
2168
2169message(SEND_ERROR "driver_mmdvsq.MKE15Z7 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
2170
2171endif()
2172
2173endif()
2174
2175
2176if (CONFIG_USE_driver_pdb)
2177# Add set(CONFIG_USE_driver_pdb true) in config.cmake to use this component
2178
2179message("driver_pdb component is included from ${CMAKE_CURRENT_LIST_FILE}.")
2180
2181if((CONFIG_DEVICE_ID STREQUAL MKE15Z256xxx7 OR CONFIG_DEVICE_ID STREQUAL MKE15Z128xxx7) AND CONFIG_USE_driver_common)
2182
2183target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
2184  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/pdb/fsl_pdb.c
2185)
2186
2187target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
2188  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/pdb/.
2189)
2190
2191else()
2192
2193message(SEND_ERROR "driver_pdb.MKE15Z7 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
2194
2195endif()
2196
2197endif()
2198
2199
2200if (CONFIG_USE_driver_pmc)
2201# Add set(CONFIG_USE_driver_pmc true) in config.cmake to use this component
2202
2203message("driver_pmc component is included from ${CMAKE_CURRENT_LIST_FILE}.")
2204
2205if((CONFIG_DEVICE_ID STREQUAL MKE15Z256xxx7 OR CONFIG_DEVICE_ID STREQUAL MKE15Z128xxx7) AND CONFIG_USE_driver_common)
2206
2207target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
2208  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/pmc/fsl_pmc.c
2209)
2210
2211target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
2212  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/pmc/.
2213)
2214
2215else()
2216
2217message(SEND_ERROR "driver_pmc.MKE15Z7 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
2218
2219endif()
2220
2221endif()
2222
2223
2224if (CONFIG_USE_driver_port)
2225# Add set(CONFIG_USE_driver_port true) in config.cmake to use this component
2226
2227message("driver_port component is included from ${CMAKE_CURRENT_LIST_FILE}.")
2228
2229if((CONFIG_DEVICE_ID STREQUAL MKE15Z256xxx7 OR CONFIG_DEVICE_ID STREQUAL MKE15Z128xxx7) AND CONFIG_USE_driver_common)
2230
2231target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
2232  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/port/.
2233)
2234
2235else()
2236
2237message(SEND_ERROR "driver_port.MKE15Z7 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
2238
2239endif()
2240
2241endif()
2242
2243
2244if (CONFIG_USE_driver_pwt)
2245# Add set(CONFIG_USE_driver_pwt true) in config.cmake to use this component
2246
2247message("driver_pwt component is included from ${CMAKE_CURRENT_LIST_FILE}.")
2248
2249if((CONFIG_DEVICE_ID STREQUAL MKE15Z256xxx7 OR CONFIG_DEVICE_ID STREQUAL MKE15Z128xxx7) AND CONFIG_USE_driver_common)
2250
2251target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
2252  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/pwt/fsl_pwt.c
2253)
2254
2255target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
2256  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/pwt/.
2257)
2258
2259else()
2260
2261message(SEND_ERROR "driver_pwt.MKE15Z7 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
2262
2263endif()
2264
2265endif()
2266
2267
2268if (CONFIG_USE_driver_rcm)
2269# Add set(CONFIG_USE_driver_rcm true) in config.cmake to use this component
2270
2271message("driver_rcm component is included from ${CMAKE_CURRENT_LIST_FILE}.")
2272
2273if((CONFIG_DEVICE_ID STREQUAL MKE15Z256xxx7 OR CONFIG_DEVICE_ID STREQUAL MKE15Z128xxx7) AND CONFIG_USE_driver_common)
2274
2275target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
2276  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/rcm/fsl_rcm.c
2277)
2278
2279target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
2280  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/rcm/.
2281)
2282
2283else()
2284
2285message(SEND_ERROR "driver_rcm.MKE15Z7 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
2286
2287endif()
2288
2289endif()
2290
2291
2292if (CONFIG_USE_driver_rtc)
2293# Add set(CONFIG_USE_driver_rtc true) in config.cmake to use this component
2294
2295message("driver_rtc component is included from ${CMAKE_CURRENT_LIST_FILE}.")
2296
2297if((CONFIG_DEVICE_ID STREQUAL MKE15Z256xxx7 OR CONFIG_DEVICE_ID STREQUAL MKE15Z128xxx7) AND CONFIG_USE_driver_common)
2298
2299target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
2300  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/rtc/fsl_rtc.c
2301)
2302
2303target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
2304  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/rtc/.
2305)
2306
2307else()
2308
2309message(SEND_ERROR "driver_rtc.MKE15Z7 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
2310
2311endif()
2312
2313endif()
2314
2315
2316if (CONFIG_USE_driver_sim)
2317# Add set(CONFIG_USE_driver_sim true) in config.cmake to use this component
2318
2319message("driver_sim component is included from ${CMAKE_CURRENT_LIST_FILE}.")
2320
2321if((CONFIG_DEVICE_ID STREQUAL MKE15Z256xxx7 OR CONFIG_DEVICE_ID STREQUAL MKE15Z128xxx7) AND CONFIG_USE_driver_common)
2322
2323target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
2324  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/sim/fsl_sim.c
2325)
2326
2327target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
2328  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/sim/.
2329)
2330
2331else()
2332
2333message(SEND_ERROR "driver_sim.MKE15Z7 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
2334
2335endif()
2336
2337endif()
2338
2339
2340if (CONFIG_USE_driver_smc)
2341# Add set(CONFIG_USE_driver_smc true) in config.cmake to use this component
2342
2343message("driver_smc component is included from ${CMAKE_CURRENT_LIST_FILE}.")
2344
2345if((CONFIG_DEVICE_ID STREQUAL MKE15Z256xxx7 OR CONFIG_DEVICE_ID STREQUAL MKE15Z128xxx7) AND CONFIG_USE_driver_common)
2346
2347target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
2348  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/smc/fsl_smc.c
2349)
2350
2351target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
2352  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/smc/.
2353)
2354
2355else()
2356
2357message(SEND_ERROR "driver_smc.MKE15Z7 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
2358
2359endif()
2360
2361endif()
2362
2363
2364if (CONFIG_USE_driver_trgmux)
2365# Add set(CONFIG_USE_driver_trgmux true) in config.cmake to use this component
2366
2367message("driver_trgmux component is included from ${CMAKE_CURRENT_LIST_FILE}.")
2368
2369if((CONFIG_DEVICE_ID STREQUAL MKE15Z256xxx7 OR CONFIG_DEVICE_ID STREQUAL MKE15Z128xxx7) AND CONFIG_USE_driver_common)
2370
2371target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
2372  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/trgmux/fsl_trgmux.c
2373)
2374
2375target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
2376  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/trgmux/.
2377)
2378
2379else()
2380
2381message(SEND_ERROR "driver_trgmux.MKE15Z7 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
2382
2383endif()
2384
2385endif()
2386
2387
2388if (CONFIG_USE_driver_tsi_v5)
2389# Add set(CONFIG_USE_driver_tsi_v5 true) in config.cmake to use this component
2390
2391message("driver_tsi_v5 component is included from ${CMAKE_CURRENT_LIST_FILE}.")
2392
2393if((CONFIG_DEVICE_ID STREQUAL MKE15Z256xxx7 OR CONFIG_DEVICE_ID STREQUAL MKE15Z128xxx7) AND CONFIG_USE_driver_common)
2394
2395target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
2396  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/tsi/tsi_v5/fsl_tsi_v5.c
2397)
2398
2399target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
2400  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/tsi/tsi_v5/.
2401)
2402
2403else()
2404
2405message(SEND_ERROR "driver_tsi_v5.MKE15Z7 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
2406
2407endif()
2408
2409endif()
2410
2411
2412if (CONFIG_USE_driver_wdog32)
2413# Add set(CONFIG_USE_driver_wdog32 true) in config.cmake to use this component
2414
2415message("driver_wdog32 component is included from ${CMAKE_CURRENT_LIST_FILE}.")
2416
2417if((CONFIG_DEVICE_ID STREQUAL MKE15Z256xxx7 OR CONFIG_DEVICE_ID STREQUAL MKE15Z128xxx7) AND CONFIG_USE_driver_common)
2418
2419target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
2420  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/wdog32/fsl_wdog32.c
2421)
2422
2423target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
2424  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/wdog32/.
2425)
2426
2427else()
2428
2429message(SEND_ERROR "driver_wdog32.MKE15Z7 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
2430
2431endif()
2432
2433endif()
2434
2435