aboutsummaryrefslogtreecommitdiff
path: root/lib/chibios-contrib/ext/mcux-sdk/devices/LPC54114/drivers/driver_clock.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'lib/chibios-contrib/ext/mcux-sdk/devices/LPC54114/drivers/driver_clock.cmake')
-rw-r--r--lib/chibios-contrib/ext/mcux-sdk/devices/LPC54114/drivers/driver_clock.cmake23
1 files changed, 23 insertions, 0 deletions
diff --git a/lib/chibios-contrib/ext/mcux-sdk/devices/LPC54114/drivers/driver_clock.cmake b/lib/chibios-contrib/ext/mcux-sdk/devices/LPC54114/drivers/driver_clock.cmake
new file mode 100644
index 000000000..7df503aaf
--- /dev/null
+++ b/lib/chibios-contrib/ext/mcux-sdk/devices/LPC54114/drivers/driver_clock.cmake
@@ -0,0 +1,23 @@
1if(NOT DRIVER_CLOCK_INCLUDED)
2
3 set(DRIVER_CLOCK_INCLUDED true CACHE BOOL "driver_clock component is included.")
4
5 target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
6 ${CMAKE_CURRENT_LIST_DIR}/fsl_clock.c
7 )
8
9 target_include_directories(${MCUX_SDK_PROJECT_NAME} PRIVATE
10 ${CMAKE_CURRENT_LIST_DIR}/.
11 )
12
13 #OR Logic component
14 if(${MCUX_DEVICE} STREQUAL "LPC54114_cm0plus")
15 include(driver_power)
16 endif()
17 if(${MCUX_DEVICE} STREQUAL "LPC54114_cm4")
18 include(driver_power)
19 endif()
20
21 include(driver_common)
22
23endif() \ No newline at end of file