1include_guard(GLOBAL)
2
3
4if (CONFIG_USE_middleware_baremetal)
5# Add set(CONFIG_USE_middleware_baremetal true) in config.cmake to use this component
6
7message("middleware_baremetal component is included from ${CMAKE_CURRENT_LIST_FILE}.")
8
9if(CONFIG_USE_COMPONENT_CONFIGURATION)
10  message("===>Import configuration from ${CMAKE_CURRENT_LIST_FILE}")
11
12  target_compile_definitions(${MCUX_SDK_PROJECT_NAME} PUBLIC
13    -DSDK_OS_BAREMETAL
14  )
15
16endif()
17
18
19endif()
20
21
22if (CONFIG_USE_utilities_misc_utilities)
23# Add set(CONFIG_USE_utilities_misc_utilities true) in config.cmake to use this component
24
25message("utilities_misc_utilities component is included from ${CMAKE_CURRENT_LIST_FILE}.")
26
27if(CONFIG_TOOLCHAIN STREQUAL armgcc)
28  target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
29      ${CMAKE_CURRENT_LIST_DIR}/../../utilities/misc_utilities/fsl_sbrk.c
30      ${CMAKE_CURRENT_LIST_DIR}/../../utilities/misc_utilities/fsl_syscall_stub.c
31  )
32endif()
33
34
35endif()
36
37
38if (CONFIG_USE_DEVICES_Project_Template_LPC845)
39# Add set(CONFIG_USE_DEVICES_Project_Template_LPC845 true) in config.cmake to use this component
40
41message("DEVICES_Project_Template_LPC845 component is included from ${CMAKE_CURRENT_LIST_FILE}.")
42
43if(CONFIG_USE_component_miniusart_adapter AND (CONFIG_DEVICE_ID STREQUAL LPC845) AND CONFIG_USE_device_LPC845_startup AND CONFIG_USE_driver_clock AND CONFIG_USE_driver_common AND CONFIG_USE_driver_lpc_gpio AND CONFIG_USE_driver_lpc_iocon_lite AND CONFIG_USE_driver_lpc_miniusart AND CONFIG_USE_driver_power_no_lib AND CONFIG_USE_driver_reset AND CONFIG_USE_driver_swm AND CONFIG_USE_utility_assert_lite AND CONFIG_USE_utility_debug_console_lite)
44
45add_config_file(${CMAKE_CURRENT_LIST_DIR}/project_template/board.h "" DEVICES_Project_Template_LPC845.LPC845)
46add_config_file(${CMAKE_CURRENT_LIST_DIR}/project_template/board.c "" DEVICES_Project_Template_LPC845.LPC845)
47add_config_file(${CMAKE_CURRENT_LIST_DIR}/project_template/clock_config.h "" DEVICES_Project_Template_LPC845.LPC845)
48add_config_file(${CMAKE_CURRENT_LIST_DIR}/project_template/clock_config.c "" DEVICES_Project_Template_LPC845.LPC845)
49add_config_file(${CMAKE_CURRENT_LIST_DIR}/project_template/pin_mux.h "" DEVICES_Project_Template_LPC845.LPC845)
50add_config_file(${CMAKE_CURRENT_LIST_DIR}/project_template/pin_mux.c "" DEVICES_Project_Template_LPC845.LPC845)
51add_config_file(${CMAKE_CURRENT_LIST_DIR}/project_template/peripherals.h "" DEVICES_Project_Template_LPC845.LPC845)
52add_config_file(${CMAKE_CURRENT_LIST_DIR}/project_template/peripherals.c "" DEVICES_Project_Template_LPC845.LPC845)
53
54target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
55  ${CMAKE_CURRENT_LIST_DIR}/project_template/.
56)
57
58else()
59
60message(SEND_ERROR "DEVICES_Project_Template_LPC845.LPC845 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
61
62endif()
63
64endif()
65
66
67if (CONFIG_USE_device_LPC845_startup)
68# Add set(CONFIG_USE_device_LPC845_startup true) in config.cmake to use this component
69
70message("device_LPC845_startup component is included from ${CMAKE_CURRENT_LIST_FILE}.")
71
72if(CONFIG_USE_device_LPC845_system)
73
74if(CONFIG_TOOLCHAIN STREQUAL armgcc)
75  target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
76      ${CMAKE_CURRENT_LIST_DIR}/./gcc/startup_LPC845.S
77  )
78endif()
79
80if(CONFIG_TOOLCHAIN STREQUAL mcux)
81  target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
82      ${CMAKE_CURRENT_LIST_DIR}/./mcuxpresso/startup_lpc845.c
83      ${CMAKE_CURRENT_LIST_DIR}/./mcuxpresso/startup_lpc845.cpp
84  )
85endif()
86
87else()
88
89message(SEND_ERROR "device_LPC845_startup.LPC845 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
90
91endif()
92
93endif()
94
95
96if (CONFIG_USE_device_LPC845_CMSIS)
97# Add set(CONFIG_USE_device_LPC845_CMSIS true) in config.cmake to use this component
98
99message("device_LPC845_CMSIS component is included from ${CMAKE_CURRENT_LIST_FILE}.")
100
101if(CONFIG_USE_CMSIS_Include_core_cm AND (CONFIG_DEVICE_ID STREQUAL LPC845))
102
103target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
104  ${CMAKE_CURRENT_LIST_DIR}/./.
105)
106
107else()
108
109message(SEND_ERROR "device_LPC845_CMSIS.LPC845 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
110
111endif()
112
113endif()
114
115
116if (CONFIG_USE_driver_clock)
117# Add set(CONFIG_USE_driver_clock true) in config.cmake to use this component
118
119message("driver_clock component is included from ${CMAKE_CURRENT_LIST_FILE}.")
120
121if(CONFIG_USE_driver_power_no_lib AND CONFIG_USE_driver_common)
122
123target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
124  ${CMAKE_CURRENT_LIST_DIR}/drivers/fsl_clock.c
125)
126
127target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
128  ${CMAKE_CURRENT_LIST_DIR}/drivers/.
129)
130
131else()
132
133message(SEND_ERROR "driver_clock.LPC845 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
134
135endif()
136
137endif()
138
139
140if (CONFIG_USE_utility_assert_lite)
141# Add set(CONFIG_USE_utility_assert_lite true) in config.cmake to use this component
142
143message("utility_assert_lite component is included from ${CMAKE_CURRENT_LIST_FILE}.")
144
145if(CONFIG_USE_component_miniusart_adapter AND CONFIG_USE_utility_debug_console_lite)
146
147target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
148  ${CMAKE_CURRENT_LIST_DIR}/../../utilities/assert/fsl_assert.c
149)
150
151else()
152
153message(SEND_ERROR "utility_assert_lite.LPC845 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
154
155endif()
156
157endif()
158
159
160if (CONFIG_USE_component_lpc_gpio_adapter)
161# Add set(CONFIG_USE_component_lpc_gpio_adapter true) in config.cmake to use this component
162
163message("component_lpc_gpio_adapter component is included from ${CMAKE_CURRENT_LIST_FILE}.")
164
165if(CONFIG_USE_driver_syscon AND CONFIG_USE_driver_lpc_gpio AND CONFIG_USE_driver_inputmux AND CONFIG_USE_driver_pint)
166
167target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
168  ${CMAKE_CURRENT_LIST_DIR}/../../components/gpio/fsl_adapter_lpc_gpio.c
169)
170
171target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
172  ${CMAKE_CURRENT_LIST_DIR}/../../components/gpio/.
173)
174
175else()
176
177message(SEND_ERROR "component_lpc_gpio_adapter.LPC845 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
178
179endif()
180
181endif()
182
183
184if (CONFIG_USE_utility_debug_console_lite)
185# Add set(CONFIG_USE_utility_debug_console_lite true) in config.cmake to use this component
186
187message("utility_debug_console_lite component is included from ${CMAKE_CURRENT_LIST_FILE}.")
188
189if(CONFIG_USE_component_miniusart_adapter AND (CONFIG_DEVICE_ID STREQUAL LPC845) AND CONFIG_USE_driver_common)
190
191target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
192  ${CMAKE_CURRENT_LIST_DIR}/../../utilities/str/fsl_str.c
193  ${CMAKE_CURRENT_LIST_DIR}/../../utilities/debug_console_lite/fsl_debug_console.c
194)
195
196target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
197  ${CMAKE_CURRENT_LIST_DIR}/../../utilities/str
198  ${CMAKE_CURRENT_LIST_DIR}/../../utilities/debug_console_lite
199)
200
201else()
202
203message(SEND_ERROR "utility_debug_console_lite.LPC845 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
204
205endif()
206
207endif()
208
209
210if (CONFIG_USE_driver_lpc_i2c_dma)
211# Add set(CONFIG_USE_driver_lpc_i2c_dma true) in config.cmake to use this component
212
213message("driver_lpc_i2c_dma component is included from ${CMAKE_CURRENT_LIST_FILE}.")
214
215if(CONFIG_USE_driver_lpc_dma AND CONFIG_USE_driver_lpc_i2c)
216
217target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
218  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/lpc_i2c/fsl_i2c_dma.c
219)
220
221target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
222  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/lpc_i2c/.
223)
224
225else()
226
227message(SEND_ERROR "driver_lpc_i2c_dma.LPC845 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
228
229endif()
230
231endif()
232
233
234if (CONFIG_USE_driver_inputmux_connections)
235# Add set(CONFIG_USE_driver_inputmux_connections true) in config.cmake to use this component
236
237message("driver_inputmux_connections component is included from ${CMAKE_CURRENT_LIST_FILE}.")
238
239if(CONFIG_USE_driver_common AND (CONFIG_DEVICE_ID STREQUAL LPC845))
240
241target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
242  ${CMAKE_CURRENT_LIST_DIR}/drivers/.
243)
244
245else()
246
247message(SEND_ERROR "driver_inputmux_connections.LPC845 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
248
249endif()
250
251endif()
252
253
254if (CONFIG_USE_driver_swm_connections)
255# Add set(CONFIG_USE_driver_swm_connections true) in config.cmake to use this component
256
257message("driver_swm_connections component is included from ${CMAKE_CURRENT_LIST_FILE}.")
258
259if(CONFIG_USE_driver_common AND (CONFIG_DEVICE_ID STREQUAL LPC845))
260
261target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
262  ${CMAKE_CURRENT_LIST_DIR}/drivers/.
263)
264
265else()
266
267message(SEND_ERROR "driver_swm_connections.LPC845 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
268
269endif()
270
271endif()
272
273
274if (CONFIG_USE_driver_syscon_connections)
275# Add set(CONFIG_USE_driver_syscon_connections true) in config.cmake to use this component
276
277message("driver_syscon_connections component is included from ${CMAKE_CURRENT_LIST_FILE}.")
278
279if(CONFIG_USE_driver_common AND (CONFIG_DEVICE_ID STREQUAL LPC845))
280
281target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
282  ${CMAKE_CURRENT_LIST_DIR}/drivers/.
283)
284
285else()
286
287message(SEND_ERROR "driver_syscon_connections.LPC845 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
288
289endif()
290
291endif()
292
293
294if (CONFIG_USE_driver_power_no_lib)
295# Add set(CONFIG_USE_driver_power_no_lib true) in config.cmake to use this component
296
297message("driver_power_no_lib component is included from ${CMAKE_CURRENT_LIST_FILE}.")
298
299if(CONFIG_USE_driver_common AND (CONFIG_DEVICE_ID STREQUAL LPC845))
300
301target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
302  ${CMAKE_CURRENT_LIST_DIR}/drivers/fsl_power.c
303)
304
305target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
306  ${CMAKE_CURRENT_LIST_DIR}/drivers/.
307)
308
309else()
310
311message(SEND_ERROR "driver_power_no_lib.LPC845 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
312
313endif()
314
315endif()
316
317
318if (CONFIG_USE_driver_common)
319# Add set(CONFIG_USE_driver_common true) in config.cmake to use this component
320
321message("driver_common component is included from ${CMAKE_CURRENT_LIST_FILE}.")
322
323if(CONFIG_USE_driver_reset AND CONFIG_USE_driver_clock AND CONFIG_USE_device_LPC845_CMSIS)
324
325target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
326  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/common/fsl_common.c
327)
328
329if(CONFIG_CORE STREQUAL cm0p)
330  target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
331      ${CMAKE_CURRENT_LIST_DIR}/../../drivers/common/fsl_common_arm.c
332  )
333endif()
334
335target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
336  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/common/.
337)
338
339else()
340
341message(SEND_ERROR "driver_common.LPC845 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
342
343endif()
344
345endif()
346
347
348if (CONFIG_USE_device_LPC845_system)
349# Add set(CONFIG_USE_device_LPC845_system true) in config.cmake to use this component
350
351message("device_LPC845_system component is included from ${CMAKE_CURRENT_LIST_FILE}.")
352
353if(CONFIG_USE_device_LPC845_CMSIS)
354
355target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
356  ${CMAKE_CURRENT_LIST_DIR}/./system_LPC845.c
357)
358
359target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
360  ${CMAKE_CURRENT_LIST_DIR}/./.
361)
362
363else()
364
365message(SEND_ERROR "device_LPC845_system.LPC845 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
366
367endif()
368
369endif()
370
371
372if (CONFIG_USE_component_button)
373# Add set(CONFIG_USE_component_button true) in config.cmake to use this component
374
375message("component_button component is included from ${CMAKE_CURRENT_LIST_FILE}.")
376
377if(CONFIG_USE_driver_common AND CONFIG_USE_component_timer_manager AND (CONFIG_USE_component_lpc_gpio_adapter))
378
379target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
380  ${CMAKE_CURRENT_LIST_DIR}/../../components/button/fsl_component_button.c
381)
382
383target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
384  ${CMAKE_CURRENT_LIST_DIR}/../../components/button/.
385)
386
387else()
388
389message(SEND_ERROR "component_button.LPC845 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
390
391endif()
392
393endif()
394
395
396if (CONFIG_USE_component_lpc_crc_adapter)
397# Add set(CONFIG_USE_component_lpc_crc_adapter true) in config.cmake to use this component
398
399message("component_lpc_crc_adapter component is included from ${CMAKE_CURRENT_LIST_FILE}.")
400
401if(CONFIG_USE_driver_common AND CONFIG_USE_driver_lpc_crc)
402
403target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
404  ${CMAKE_CURRENT_LIST_DIR}/../../components/crc/fsl_adapter_lpc_crc.c
405)
406
407target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
408  ${CMAKE_CURRENT_LIST_DIR}/../../components/crc/.
409)
410
411else()
412
413message(SEND_ERROR "component_lpc_crc_adapter.LPC845 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
414
415endif()
416
417endif()
418
419
420if (CONFIG_USE_component_software_crc_adapter)
421# Add set(CONFIG_USE_component_software_crc_adapter true) in config.cmake to use this component
422
423message("component_software_crc_adapter component is included from ${CMAKE_CURRENT_LIST_FILE}.")
424
425if(CONFIG_USE_driver_common)
426
427target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
428  ${CMAKE_CURRENT_LIST_DIR}/../../components/crc/fsl_adapter_software_crc.c
429)
430
431target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
432  ${CMAKE_CURRENT_LIST_DIR}/../../components/crc/.
433)
434
435else()
436
437message(SEND_ERROR "component_software_crc_adapter.LPC845 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
438
439endif()
440
441endif()
442
443
444if (CONFIG_USE_component_lpc_i2c_adapter)
445# Add set(CONFIG_USE_component_lpc_i2c_adapter true) in config.cmake to use this component
446
447message("component_lpc_i2c_adapter component is included from ${CMAKE_CURRENT_LIST_FILE}.")
448
449if(CONFIG_USE_driver_common AND CONFIG_USE_driver_lpc_i2c)
450
451target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
452  ${CMAKE_CURRENT_LIST_DIR}/../../components/i2c/fsl_adapter_lpc_i2c.c
453)
454
455target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
456  ${CMAKE_CURRENT_LIST_DIR}/../../components/i2c/.
457)
458
459else()
460
461message(SEND_ERROR "component_lpc_i2c_adapter.LPC845 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
462
463endif()
464
465endif()
466
467
468if (CONFIG_USE_component_led)
469# Add set(CONFIG_USE_component_led true) in config.cmake to use this component
470
471message("component_led component is included from ${CMAKE_CURRENT_LIST_FILE}.")
472
473if(CONFIG_USE_driver_common AND CONFIG_USE_component_timer_manager AND (CONFIG_USE_component_lpc_gpio_adapter))
474
475target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
476  ${CMAKE_CURRENT_LIST_DIR}/../../components/led/fsl_component_led.c
477)
478
479target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
480  ${CMAKE_CURRENT_LIST_DIR}/../../components/led/.
481)
482
483else()
484
485message(SEND_ERROR "component_led.LPC845 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
486
487endif()
488
489endif()
490
491
492if (CONFIG_USE_component_lists)
493# Add set(CONFIG_USE_component_lists true) in config.cmake to use this component
494
495message("component_lists component is included from ${CMAKE_CURRENT_LIST_FILE}.")
496
497if(CONFIG_USE_driver_common)
498
499target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
500  ${CMAKE_CURRENT_LIST_DIR}/../../components/lists/fsl_component_generic_list.c
501)
502
503target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
504  ${CMAKE_CURRENT_LIST_DIR}/../../components/lists/.
505)
506
507else()
508
509message(SEND_ERROR "component_lists.LPC845 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
510
511endif()
512
513endif()
514
515
516if (CONFIG_USE_component_mem_manager)
517# Add set(CONFIG_USE_component_mem_manager true) in config.cmake to use this component
518
519message("component_mem_manager component is included from ${CMAKE_CURRENT_LIST_FILE}.")
520
521if(CONFIG_USE_driver_common AND CONFIG_USE_component_lists)
522
523target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
524  ${CMAKE_CURRENT_LIST_DIR}/../../components/mem_manager/fsl_component_mem_manager.c
525)
526
527target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
528  ${CMAKE_CURRENT_LIST_DIR}/../../components/mem_manager/.
529)
530
531else()
532
533message(SEND_ERROR "component_mem_manager.LPC845 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
534
535endif()
536
537endif()
538
539
540if (CONFIG_USE_component_mem_manager_light)
541# Add set(CONFIG_USE_component_mem_manager_light true) in config.cmake to use this component
542
543message("component_mem_manager_light component is included from ${CMAKE_CURRENT_LIST_FILE}.")
544
545if(CONFIG_USE_driver_common AND CONFIG_USE_component_lists)
546
547target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
548  ${CMAKE_CURRENT_LIST_DIR}/../../components/mem_manager/fsl_component_mem_manager_light.c
549)
550
551target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
552  ${CMAKE_CURRENT_LIST_DIR}/../../components/mem_manager/.
553)
554
555else()
556
557message(SEND_ERROR "component_mem_manager_light.LPC845 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
558
559endif()
560
561endif()
562
563
564if (CONFIG_USE_component_panic)
565# Add set(CONFIG_USE_component_panic true) in config.cmake to use this component
566
567message("component_panic component is included from ${CMAKE_CURRENT_LIST_FILE}.")
568
569if(CONFIG_USE_driver_common)
570
571target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
572  ${CMAKE_CURRENT_LIST_DIR}/../../components/panic/fsl_component_panic.c
573)
574
575target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
576  ${CMAKE_CURRENT_LIST_DIR}/../../components/panic/.
577)
578
579else()
580
581message(SEND_ERROR "component_panic.LPC845 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
582
583endif()
584
585endif()
586
587
588if (CONFIG_USE_component_pwm_ctimer_adapter)
589# Add set(CONFIG_USE_component_pwm_ctimer_adapter true) in config.cmake to use this component
590
591message("component_pwm_ctimer_adapter component is included from ${CMAKE_CURRENT_LIST_FILE}.")
592
593if(CONFIG_USE_driver_common AND CONFIG_USE_driver_ctimer)
594
595target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
596  ${CMAKE_CURRENT_LIST_DIR}/../../components/pwm/fsl_adapter_pwm_ctimer.c
597)
598
599target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
600  ${CMAKE_CURRENT_LIST_DIR}/../../components/pwm/.
601)
602
603else()
604
605message(SEND_ERROR "component_pwm_ctimer_adapter.LPC845 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
606
607endif()
608
609endif()
610
611
612if (CONFIG_USE_component_reset_adapter)
613# Add set(CONFIG_USE_component_reset_adapter true) in config.cmake to use this component
614
615message("component_reset_adapter component is included from ${CMAKE_CURRENT_LIST_FILE}.")
616
617if(CONFIG_USE_driver_common)
618
619target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
620  ${CMAKE_CURRENT_LIST_DIR}/../../components/reset/fsl_adapter_reset.c
621)
622
623target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
624  ${CMAKE_CURRENT_LIST_DIR}/../../components/reset/.
625)
626
627else()
628
629message(SEND_ERROR "component_reset_adapter.LPC845 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
630
631endif()
632
633endif()
634
635
636if (CONFIG_USE_component_software_rng_adapter)
637# Add set(CONFIG_USE_component_software_rng_adapter true) in config.cmake to use this component
638
639message("component_software_rng_adapter component is included from ${CMAKE_CURRENT_LIST_FILE}.")
640
641if(CONFIG_USE_driver_common)
642
643target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
644  ${CMAKE_CURRENT_LIST_DIR}/../../components/rng/fsl_adapter_software_rng.c
645)
646
647target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
648  ${CMAKE_CURRENT_LIST_DIR}/../../components/rng/.
649)
650
651else()
652
653message(SEND_ERROR "component_software_rng_adapter.LPC845 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
654
655endif()
656
657endif()
658
659
660if (CONFIG_USE_component_ctimer_adapter)
661# Add set(CONFIG_USE_component_ctimer_adapter true) in config.cmake to use this component
662
663message("component_ctimer_adapter component is included from ${CMAKE_CURRENT_LIST_FILE}.")
664
665if(CONFIG_USE_driver_common AND CONFIG_USE_driver_ctimer)
666
667target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
668  ${CMAKE_CURRENT_LIST_DIR}/../../components/timer/fsl_adapter_ctimer.c
669)
670
671target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
672  ${CMAKE_CURRENT_LIST_DIR}/../../components/timer/.
673)
674
675else()
676
677message(SEND_ERROR "component_ctimer_adapter.LPC845 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
678
679endif()
680
681endif()
682
683
684if (CONFIG_USE_component_mrt_adapter)
685# Add set(CONFIG_USE_component_mrt_adapter true) in config.cmake to use this component
686
687message("component_mrt_adapter component is included from ${CMAKE_CURRENT_LIST_FILE}.")
688
689if(CONFIG_USE_driver_common AND CONFIG_USE_driver_mrt)
690
691target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
692  ${CMAKE_CURRENT_LIST_DIR}/../../components/timer/fsl_adapter_mrt.c
693)
694
695target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
696  ${CMAKE_CURRENT_LIST_DIR}/../../components/timer/.
697)
698
699else()
700
701message(SEND_ERROR "component_mrt_adapter.LPC845 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
702
703endif()
704
705endif()
706
707
708if (CONFIG_USE_component_timer_manager)
709# Add set(CONFIG_USE_component_timer_manager true) in config.cmake to use this component
710
711message("component_timer_manager component is included from ${CMAKE_CURRENT_LIST_FILE}.")
712
713if(CONFIG_USE_driver_common AND CONFIG_USE_component_lists AND (CONFIG_USE_component_ctimer_adapter OR CONFIG_USE_component_mrt_adapter))
714
715target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
716  ${CMAKE_CURRENT_LIST_DIR}/../../components/timer_manager/fsl_component_timer_manager.c
717)
718
719target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
720  ${CMAKE_CURRENT_LIST_DIR}/../../components/timer_manager/.
721)
722
723else()
724
725message(SEND_ERROR "component_timer_manager.LPC845 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
726
727endif()
728
729endif()
730
731
732if (CONFIG_USE_component_miniusart_adapter)
733# Add set(CONFIG_USE_component_miniusart_adapter true) in config.cmake to use this component
734
735message("component_miniusart_adapter component is included from ${CMAKE_CURRENT_LIST_FILE}.")
736
737if(CONFIG_USE_driver_common AND CONFIG_USE_driver_lpc_miniusart)
738
739target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
740  ${CMAKE_CURRENT_LIST_DIR}/../../components/uart/fsl_adapter_miniusart.c
741)
742
743target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
744  ${CMAKE_CURRENT_LIST_DIR}/../../components/uart/.
745)
746
747else()
748
749message(SEND_ERROR "component_miniusart_adapter.LPC845 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
750
751endif()
752
753endif()
754
755
756if (CONFIG_USE_driver_capt)
757# Add set(CONFIG_USE_driver_capt true) in config.cmake to use this component
758
759message("driver_capt component is included from ${CMAKE_CURRENT_LIST_FILE}.")
760
761if((CONFIG_DEVICE_ID STREQUAL LPC845) AND CONFIG_USE_driver_common)
762
763target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
764  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/capt/fsl_capt.c
765)
766
767target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
768  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/capt/.
769)
770
771else()
772
773message(SEND_ERROR "driver_capt.LPC845 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
774
775endif()
776
777endif()
778
779
780if (CONFIG_USE_driver_lpc_crc)
781# Add set(CONFIG_USE_driver_lpc_crc true) in config.cmake to use this component
782
783message("driver_lpc_crc component is included from ${CMAKE_CURRENT_LIST_FILE}.")
784
785if((CONFIG_DEVICE_ID STREQUAL LPC845) AND CONFIG_USE_driver_common)
786
787target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
788  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/lpc_crc/fsl_crc.c
789)
790
791target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
792  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/lpc_crc/.
793)
794
795else()
796
797message(SEND_ERROR "driver_lpc_crc.LPC845 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
798
799endif()
800
801endif()
802
803
804if (CONFIG_USE_driver_ctimer)
805# Add set(CONFIG_USE_driver_ctimer true) in config.cmake to use this component
806
807message("driver_ctimer component is included from ${CMAKE_CURRENT_LIST_FILE}.")
808
809if((CONFIG_DEVICE_ID STREQUAL LPC845) AND CONFIG_USE_driver_common)
810
811target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
812  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/ctimer/fsl_ctimer.c
813)
814
815target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
816  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/ctimer/.
817)
818
819else()
820
821message(SEND_ERROR "driver_ctimer.LPC845 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
822
823endif()
824
825endif()
826
827
828if (CONFIG_USE_driver_iap)
829# Add set(CONFIG_USE_driver_iap true) in config.cmake to use this component
830
831message("driver_iap component is included from ${CMAKE_CURRENT_LIST_FILE}.")
832
833if((CONFIG_DEVICE_ID STREQUAL LPC845) AND CONFIG_USE_driver_common)
834
835target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
836  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/iap/fsl_iap.c
837)
838
839target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
840  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/iap/.
841)
842
843else()
844
845message(SEND_ERROR "driver_iap.LPC845 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
846
847endif()
848
849endif()
850
851
852if (CONFIG_USE_driver_inputmux)
853# Add set(CONFIG_USE_driver_inputmux true) in config.cmake to use this component
854
855message("driver_inputmux component is included from ${CMAKE_CURRENT_LIST_FILE}.")
856
857if((CONFIG_DEVICE_ID STREQUAL LPC845) AND CONFIG_USE_driver_common AND CONFIG_USE_driver_inputmux_connections)
858
859target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
860  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/inputmux/fsl_inputmux.c
861)
862
863target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
864  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/inputmux/.
865)
866
867else()
868
869message(SEND_ERROR "driver_inputmux.LPC845 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
870
871endif()
872
873endif()
874
875
876if (CONFIG_USE_driver_lpc_acomp)
877# Add set(CONFIG_USE_driver_lpc_acomp true) in config.cmake to use this component
878
879message("driver_lpc_acomp component is included from ${CMAKE_CURRENT_LIST_FILE}.")
880
881if((CONFIG_DEVICE_ID STREQUAL LPC845) AND CONFIG_USE_driver_common)
882
883target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
884  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/lpc_acomp/fsl_acomp.c
885)
886
887target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
888  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/lpc_acomp/.
889)
890
891else()
892
893message(SEND_ERROR "driver_lpc_acomp.LPC845 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
894
895endif()
896
897endif()
898
899
900if (CONFIG_USE_driver_lpc_adc)
901# Add set(CONFIG_USE_driver_lpc_adc true) in config.cmake to use this component
902
903message("driver_lpc_adc component is included from ${CMAKE_CURRENT_LIST_FILE}.")
904
905if((CONFIG_DEVICE_ID STREQUAL LPC845) AND CONFIG_USE_driver_common)
906
907target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
908  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/lpc_adc/fsl_adc.c
909)
910
911target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
912  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/lpc_adc/.
913)
914
915else()
916
917message(SEND_ERROR "driver_lpc_adc.LPC845 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
918
919endif()
920
921endif()
922
923
924if (CONFIG_USE_driver_lpc_dac)
925# Add set(CONFIG_USE_driver_lpc_dac true) in config.cmake to use this component
926
927message("driver_lpc_dac component is included from ${CMAKE_CURRENT_LIST_FILE}.")
928
929if((CONFIG_DEVICE_ID STREQUAL LPC845) AND CONFIG_USE_driver_common)
930
931target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
932  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/lpc_dac/fsl_dac.c
933)
934
935target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
936  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/lpc_dac/.
937)
938
939else()
940
941message(SEND_ERROR "driver_lpc_dac.LPC845 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
942
943endif()
944
945endif()
946
947
948if (CONFIG_USE_driver_lpc_dma)
949# Add set(CONFIG_USE_driver_lpc_dma true) in config.cmake to use this component
950
951message("driver_lpc_dma component is included from ${CMAKE_CURRENT_LIST_FILE}.")
952
953if((CONFIG_DEVICE_ID STREQUAL LPC845) AND CONFIG_USE_driver_common)
954
955target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
956  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/lpc_dma/fsl_dma.c
957)
958
959target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
960  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/lpc_dma/.
961)
962
963else()
964
965message(SEND_ERROR "driver_lpc_dma.LPC845 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
966
967endif()
968
969endif()
970
971
972if (CONFIG_USE_driver_lpc_gpio)
973# Add set(CONFIG_USE_driver_lpc_gpio true) in config.cmake to use this component
974
975message("driver_lpc_gpio component is included from ${CMAKE_CURRENT_LIST_FILE}.")
976
977if((CONFIG_DEVICE_ID STREQUAL LPC845) AND CONFIG_USE_driver_common)
978
979target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
980  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/lpc_gpio/fsl_gpio.c
981)
982
983target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
984  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/lpc_gpio/.
985)
986
987else()
988
989message(SEND_ERROR "driver_lpc_gpio.LPC845 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
990
991endif()
992
993endif()
994
995
996if (CONFIG_USE_driver_lpc_i2c)
997# Add set(CONFIG_USE_driver_lpc_i2c true) in config.cmake to use this component
998
999message("driver_lpc_i2c component is included from ${CMAKE_CURRENT_LIST_FILE}.")
1000
1001if(CONFIG_USE_driver_common AND (CONFIG_DEVICE_ID STREQUAL LPC845))
1002
1003target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
1004  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/lpc_i2c/fsl_i2c.c
1005)
1006
1007target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
1008  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/lpc_i2c/.
1009)
1010
1011else()
1012
1013message(SEND_ERROR "driver_lpc_i2c.LPC845 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
1014
1015endif()
1016
1017endif()
1018
1019
1020if (CONFIG_USE_driver_lpc_iocon_lite)
1021# Add set(CONFIG_USE_driver_lpc_iocon_lite true) in config.cmake to use this component
1022
1023message("driver_lpc_iocon_lite component is included from ${CMAKE_CURRENT_LIST_FILE}.")
1024
1025if((CONFIG_DEVICE_ID STREQUAL LPC845) AND CONFIG_USE_driver_common)
1026
1027target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
1028  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/lpc_iocon_lite/.
1029)
1030
1031else()
1032
1033message(SEND_ERROR "driver_lpc_iocon_lite.LPC845 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
1034
1035endif()
1036
1037endif()
1038
1039
1040if (CONFIG_USE_driver_lpc_minispi)
1041# Add set(CONFIG_USE_driver_lpc_minispi true) in config.cmake to use this component
1042
1043message("driver_lpc_minispi component is included from ${CMAKE_CURRENT_LIST_FILE}.")
1044
1045if((CONFIG_DEVICE_ID STREQUAL LPC845) AND CONFIG_USE_driver_common)
1046
1047target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
1048  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/lpc_minispi/fsl_spi.c
1049)
1050
1051target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
1052  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/lpc_minispi/.
1053)
1054
1055else()
1056
1057message(SEND_ERROR "driver_lpc_minispi.LPC845 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
1058
1059endif()
1060
1061endif()
1062
1063
1064if (CONFIG_USE_driver_lpc_miniusart)
1065# Add set(CONFIG_USE_driver_lpc_miniusart true) in config.cmake to use this component
1066
1067message("driver_lpc_miniusart component is included from ${CMAKE_CURRENT_LIST_FILE}.")
1068
1069if((CONFIG_DEVICE_ID STREQUAL LPC845) AND CONFIG_USE_driver_common)
1070
1071target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
1072  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/lpc_miniusart/fsl_usart.c
1073)
1074
1075target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
1076  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/lpc_miniusart/.
1077)
1078
1079else()
1080
1081message(SEND_ERROR "driver_lpc_miniusart.LPC845 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
1082
1083endif()
1084
1085endif()
1086
1087
1088if (CONFIG_USE_driver_mrt)
1089# Add set(CONFIG_USE_driver_mrt true) in config.cmake to use this component
1090
1091message("driver_mrt component is included from ${CMAKE_CURRENT_LIST_FILE}.")
1092
1093if((CONFIG_DEVICE_ID STREQUAL LPC845) AND CONFIG_USE_driver_common)
1094
1095target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
1096  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/mrt/fsl_mrt.c
1097)
1098
1099target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
1100  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/mrt/.
1101)
1102
1103else()
1104
1105message(SEND_ERROR "driver_mrt.LPC845 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
1106
1107endif()
1108
1109endif()
1110
1111
1112if (CONFIG_USE_driver_pint)
1113# Add set(CONFIG_USE_driver_pint true) in config.cmake to use this component
1114
1115message("driver_pint component is included from ${CMAKE_CURRENT_LIST_FILE}.")
1116
1117if((CONFIG_DEVICE_ID STREQUAL LPC845) AND CONFIG_USE_driver_common)
1118
1119target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
1120  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/pint/fsl_pint.c
1121)
1122
1123target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
1124  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/pint/.
1125)
1126
1127else()
1128
1129message(SEND_ERROR "driver_pint.LPC845 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
1130
1131endif()
1132
1133endif()
1134
1135
1136if (CONFIG_USE_driver_reset)
1137# Add set(CONFIG_USE_driver_reset true) in config.cmake to use this component
1138
1139message("driver_reset component is included from ${CMAKE_CURRENT_LIST_FILE}.")
1140
1141if(CONFIG_USE_driver_common AND (CONFIG_DEVICE_ID STREQUAL LPC845))
1142
1143target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
1144  ${CMAKE_CURRENT_LIST_DIR}/drivers/fsl_reset.c
1145)
1146
1147target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
1148  ${CMAKE_CURRENT_LIST_DIR}/drivers/.
1149)
1150
1151else()
1152
1153message(SEND_ERROR "driver_reset.LPC845 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
1154
1155endif()
1156
1157endif()
1158
1159
1160if (CONFIG_USE_driver_sctimer)
1161# Add set(CONFIG_USE_driver_sctimer true) in config.cmake to use this component
1162
1163message("driver_sctimer component is included from ${CMAKE_CURRENT_LIST_FILE}.")
1164
1165if((CONFIG_DEVICE_ID STREQUAL LPC845) AND CONFIG_USE_driver_common)
1166
1167target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
1168  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/sctimer/fsl_sctimer.c
1169)
1170
1171target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
1172  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/sctimer/.
1173)
1174
1175else()
1176
1177message(SEND_ERROR "driver_sctimer.LPC845 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
1178
1179endif()
1180
1181endif()
1182
1183
1184if (CONFIG_USE_driver_swm)
1185# Add set(CONFIG_USE_driver_swm true) in config.cmake to use this component
1186
1187message("driver_swm component is included from ${CMAKE_CURRENT_LIST_FILE}.")
1188
1189if((CONFIG_DEVICE_ID STREQUAL LPC845) AND CONFIG_USE_driver_common AND CONFIG_USE_driver_swm_connections)
1190
1191target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
1192  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/swm/fsl_swm.c
1193)
1194
1195target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
1196  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/swm/.
1197)
1198
1199else()
1200
1201message(SEND_ERROR "driver_swm.LPC845 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
1202
1203endif()
1204
1205endif()
1206
1207
1208if (CONFIG_USE_driver_syscon)
1209# Add set(CONFIG_USE_driver_syscon true) in config.cmake to use this component
1210
1211message("driver_syscon component is included from ${CMAKE_CURRENT_LIST_FILE}.")
1212
1213if((CONFIG_DEVICE_ID STREQUAL LPC845) AND CONFIG_USE_driver_common AND CONFIG_USE_driver_syscon_connections)
1214
1215target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
1216  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/syscon/fsl_syscon.c
1217)
1218
1219target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
1220  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/syscon/.
1221)
1222
1223else()
1224
1225message(SEND_ERROR "driver_syscon.LPC845 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
1226
1227endif()
1228
1229endif()
1230
1231
1232if (CONFIG_USE_driver_wkt)
1233# Add set(CONFIG_USE_driver_wkt true) in config.cmake to use this component
1234
1235message("driver_wkt component is included from ${CMAKE_CURRENT_LIST_FILE}.")
1236
1237if((CONFIG_DEVICE_ID STREQUAL LPC845) AND CONFIG_USE_driver_common)
1238
1239target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
1240  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/wkt/fsl_wkt.c
1241)
1242
1243target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
1244  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/wkt/.
1245)
1246
1247else()
1248
1249message(SEND_ERROR "driver_wkt.LPC845 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
1250
1251endif()
1252
1253endif()
1254
1255
1256if (CONFIG_USE_driver_wwdt)
1257# Add set(CONFIG_USE_driver_wwdt true) in config.cmake to use this component
1258
1259message("driver_wwdt component is included from ${CMAKE_CURRENT_LIST_FILE}.")
1260
1261if((CONFIG_DEVICE_ID STREQUAL LPC845) AND CONFIG_USE_driver_common)
1262
1263target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
1264  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/wwdt/fsl_wwdt.c
1265)
1266
1267target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
1268  ${CMAKE_CURRENT_LIST_DIR}/../../drivers/wwdt/.
1269)
1270
1271else()
1272
1273message(SEND_ERROR "driver_wwdt.LPC845 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
1274
1275endif()
1276
1277endif()
1278
1279