Skip to content

Commit

Permalink
mcux: MCXC242, 142, 141: Add cmake files
Browse files Browse the repository at this point in the history
Signed-off-by: Michal Smola <[email protected]>
  • Loading branch information
michal-smola committed Aug 8, 2024
1 parent 2792f9d commit 10fafce
Show file tree
Hide file tree
Showing 12 changed files with 159 additions and 0 deletions.
13 changes: 13 additions & 0 deletions mcux/mcux-sdk/devices/MCXC141/device_CMSIS.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#Description: device_CMSIS; user_visible: False
include_guard(GLOBAL)
message("device_CMSIS component is included.")

target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
)

target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
${CMAKE_CURRENT_LIST_DIR}/.
)


include(CMSIS_Include_core_cm OPTIONAL)
14 changes: 14 additions & 0 deletions mcux/mcux-sdk/devices/MCXC141/device_system.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#Description: device_system; user_visible: False
include_guard(GLOBAL)
message("device_system component is included.")

target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
${CMAKE_CURRENT_LIST_DIR}/system_MCXC141.c
)

target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
${CMAKE_CURRENT_LIST_DIR}/.
)


include(device_CMSIS)
14 changes: 14 additions & 0 deletions mcux/mcux-sdk/devices/MCXC141/drivers/driver_clock.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#Description: Clock Driver; user_visible: True
include_guard(GLOBAL)
message("driver_clock component is included.")

target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
${CMAKE_CURRENT_LIST_DIR}/fsl_clock.c
)

target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
${CMAKE_CURRENT_LIST_DIR}/.
)


include(driver_common)
12 changes: 12 additions & 0 deletions mcux/mcux-sdk/devices/MCXC141/drivers/driver_reset.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#Description: Reset Driver; user_visible: False
include_guard(GLOBAL)
message("driver_reset component is included.")

target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
)

target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
${CMAKE_CURRENT_LIST_DIR}/.
)


13 changes: 13 additions & 0 deletions mcux/mcux-sdk/devices/MCXC142/device_CMSIS.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#Description: device_CMSIS; user_visible: False
include_guard(GLOBAL)
message("device_CMSIS component is included.")

target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
)

target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
${CMAKE_CURRENT_LIST_DIR}/.
)


include(CMSIS_Include_core_cm OPTIONAL)
14 changes: 14 additions & 0 deletions mcux/mcux-sdk/devices/MCXC142/device_system.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#Description: device_system; user_visible: False
include_guard(GLOBAL)
message("device_system component is included.")

target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
${CMAKE_CURRENT_LIST_DIR}/system_MCXC142.c
)

target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
${CMAKE_CURRENT_LIST_DIR}/.
)


include(device_CMSIS)
14 changes: 14 additions & 0 deletions mcux/mcux-sdk/devices/MCXC142/drivers/driver_clock.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#Description: Clock Driver; user_visible: True
include_guard(GLOBAL)
message("driver_clock component is included.")

target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
${CMAKE_CURRENT_LIST_DIR}/fsl_clock.c
)

target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
${CMAKE_CURRENT_LIST_DIR}/.
)


include(driver_common)
12 changes: 12 additions & 0 deletions mcux/mcux-sdk/devices/MCXC142/drivers/driver_reset.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#Description: Reset Driver; user_visible: False
include_guard(GLOBAL)
message("driver_reset component is included.")

target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
)

target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
${CMAKE_CURRENT_LIST_DIR}/.
)


13 changes: 13 additions & 0 deletions mcux/mcux-sdk/devices/MCXC242/device_CMSIS.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#Description: device_CMSIS; user_visible: False
include_guard(GLOBAL)
message("device_CMSIS component is included.")

target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
)

target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
${CMAKE_CURRENT_LIST_DIR}/.
)


include(CMSIS_Include_core_cm OPTIONAL)
14 changes: 14 additions & 0 deletions mcux/mcux-sdk/devices/MCXC242/device_system.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#Description: device_system; user_visible: False
include_guard(GLOBAL)
message("device_system component is included.")

target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
${CMAKE_CURRENT_LIST_DIR}/system_MCXC242.c
)

target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
${CMAKE_CURRENT_LIST_DIR}/.
)


include(device_CMSIS)
14 changes: 14 additions & 0 deletions mcux/mcux-sdk/devices/MCXC242/drivers/driver_clock.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#Description: Clock Driver; user_visible: True
include_guard(GLOBAL)
message("driver_clock component is included.")

target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
${CMAKE_CURRENT_LIST_DIR}/fsl_clock.c
)

target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
${CMAKE_CURRENT_LIST_DIR}/.
)


include(driver_common)
12 changes: 12 additions & 0 deletions mcux/mcux-sdk/devices/MCXC242/drivers/driver_reset.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#Description: Reset Driver; user_visible: False
include_guard(GLOBAL)
message("driver_reset component is included.")

target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
)

target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
${CMAKE_CURRENT_LIST_DIR}/.
)


0 comments on commit 10fafce

Please sign in to comment.