Skip to content

Commit 6e91ed8

Browse files
mmahadevan108decsny
authored andcommitted
mcux-sdk: Add cmake file for MCXN947
These files are added till we switch the build framework to use the all_lib_device.cmake build file Signed-off-by: Mahesh Mahadevan <[email protected]>
1 parent 4663a40 commit 6e91ed8

10 files changed

+137
-0
lines changed
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
#Description: device_CMSIS; user_visible: False
2+
include_guard(GLOBAL)
3+
message("device_CMSIS component is included.")
4+
5+
target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
6+
)
7+
8+
target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
9+
${CMAKE_CURRENT_LIST_DIR}/.
10+
)
11+
12+
13+
include(CMSIS_Include_core_cm)
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
#Description: device_startup; user_visible: False
2+
include_guard(GLOBAL)
3+
message("device_startup component is included.")
4+
5+
target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
6+
${CMAKE_CURRENT_LIST_DIR}/gcc/startup_MCXN947_cm33_core0.S
7+
)
8+
9+
target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
10+
)
11+
12+
13+
include(device_system_MCXN947_cm33_core0)
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
#Description: device_startup; user_visible: False
2+
include_guard(GLOBAL)
3+
message("device_startup component is included.")
4+
5+
target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
6+
${CMAKE_CURRENT_LIST_DIR}/gcc/startup_MCXN947_cm33_core1.S
7+
)
8+
9+
target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
10+
)
11+
12+
13+
include(device_system_MCXN947_cm33_core1)
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
#Description: device_system; user_visible: False
2+
include_guard(GLOBAL)
3+
message("device_system component is included.")
4+
5+
target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
6+
${CMAKE_CURRENT_LIST_DIR}/system_MCXN947_cm33_core0.c
7+
)
8+
9+
target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
10+
${CMAKE_CURRENT_LIST_DIR}/.
11+
)
12+
13+
14+
include(device_CMSIS)
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
#Description: device_system; user_visible: False
2+
include_guard(GLOBAL)
3+
message("device_system component is included.")
4+
5+
target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
6+
${CMAKE_CURRENT_LIST_DIR}/system_MCXN947_cm33_core1.c
7+
)
8+
9+
target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
10+
${CMAKE_CURRENT_LIST_DIR}/.
11+
)
12+
13+
14+
include(device_CMSIS)
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
#Description: Clock Driver; user_visible: True
2+
include_guard(GLOBAL)
3+
message("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} PUBLIC
10+
${CMAKE_CURRENT_LIST_DIR}/.
11+
)
12+
13+
14+
include(driver_mcx_spc)
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
#Description: Reset Driver; user_visible: True
2+
include_guard(GLOBAL)
3+
message("driver_reset component is included.")
4+
5+
target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
6+
${CMAKE_CURRENT_LIST_DIR}/fsl_reset.c
7+
)
8+
9+
target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
10+
${CMAKE_CURRENT_LIST_DIR}/.
11+
)
12+
13+
14+
include(driver_common)
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
#Description: LPFLEXCOMM Driver; user_visible: True
2+
include_guard(GLOBAL)
3+
message("driver_lpflexcomm component is included.")
4+
5+
target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
6+
${CMAKE_CURRENT_LIST_DIR}/fsl_lpflexcomm.c
7+
)
8+
9+
target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
10+
${CMAKE_CURRENT_LIST_DIR}/.
11+
)
12+
13+
14+
include(driver_common)
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
#Description: LPUART Driver; user_visible: True
2+
include_guard(GLOBAL)
3+
message("driver_lpuart component is included.")
4+
5+
target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
6+
${CMAKE_CURRENT_LIST_DIR}/fsl_lpuart.c
7+
)
8+
9+
target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
10+
${CMAKE_CURRENT_LIST_DIR}/.
11+
)
12+
13+
14+
include(driver_lpflexcomm)
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
#Description: MCX SPC Driver; user_visible: True
2+
include_guard(GLOBAL)
3+
message("driver_mcx_spc component is included.")
4+
5+
target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
6+
${CMAKE_CURRENT_LIST_DIR}/fsl_spc.c
7+
)
8+
9+
target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
10+
${CMAKE_CURRENT_LIST_DIR}/.
11+
)
12+
13+
14+
include(driver_common)

0 commit comments

Comments
 (0)