forked from zephyrproject-rtos/hal_nxp
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
mcux: MCXC242, 142, 141: Add cmake files
Signed-off-by: Michal Smola <[email protected]>
- Loading branch information
1 parent
2792f9d
commit 10fafce
Showing
12 changed files
with
159 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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}/. | ||
) | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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}/. | ||
) | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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}/. | ||
) | ||
|
||
|