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