-
Notifications
You must be signed in to change notification settings - Fork 7.8k
modules: CMSIS_6: fix path and use it for TF-M and Cortex-M #89370
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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,9 @@ | ||
# Copyright (c) 2023 Nordic Semiconductor ASA | ||
# Copyright 2025 Arm Limited and/or its affiliates <[email protected]> | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
add_subdirectory(${ZEPHYR_CURRENT_MODULE_DIR} cmsis_6) | ||
|
||
if(CONFIG_CPU_CORTEX_M) | ||
zephyr_include_directories(.) | ||
endif() |
This file contains hidden or 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,28 @@ | ||
# Copyright (c) 2016 Intel Corporation | ||
# Copyright 2025 Arm Limited and/or its affiliates <[email protected]> | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
config ZEPHYR_CMSIS_6_MODULE | ||
bool | ||
|
||
config HAS_CMSIS_CORE | ||
bool | ||
select HAS_CMSIS_CORE_M if CPU_CORTEX_M | ||
|
||
if HAS_CMSIS_CORE | ||
|
||
config HAS_CMSIS_CORE_M | ||
bool | ||
|
||
config CMSIS_M_CHECK_DEVICE_DEFINES | ||
bool "Check device defines" | ||
depends on HAS_CMSIS_CORE_M | ||
help | ||
This options enables the validation of CMSIS configuration flags. | ||
|
||
config CMSIS_CORE_HAS_SYSTEM_CORE_CLOCK | ||
bool | ||
help | ||
Enable this option if CMSIS SystemCoreClock symbols is available. | ||
|
||
endif |
This file contains hidden or 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 @@ | ||
/* | ||
* Copyright (c) 2023 Nordic Semiconductor ASA | ||
* Copyright 2025 Arm Limited and/or its affiliates <[email protected]> | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
||
#ifndef ZEPHYR_MODULES_CMSIS_6_CMSIS_CORE_H_ | ||
#define ZEPHYR_MODULES_CMSIS_6_CMSIS_CORE_H_ | ||
|
||
#if defined(CONFIG_CPU_CORTEX_M) | ||
#include "cmsis_core_m.h" | ||
#endif | ||
|
||
#endif /* ZEPHYR_MODULES_CMSIS_6_CMSIS_CORE_H_ */ |
This file contains hidden or 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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
/* | ||
* Copyright (c) 2017 Nordic Semiconductor ASA | ||
* Copyright (c) 2023 Arm Limited | ||
* Copyright 2023,2025 Arm Limited and/or its affiliates <[email protected]> | ||
* | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
@@ -12,8 +12,8 @@ | |
* This header contains the interface to the ARM CMSIS Core headers. | ||
*/ | ||
|
||
#ifndef ZEPHYR_MODULES_CMSIS_CMSIS_M_H_ | ||
#define ZEPHYR_MODULES_CMSIS_CMSIS_M_H_ | ||
#ifndef ZEPHYR_MODULES_CMSIS_6_CMSIS_CORE_M_H_ | ||
#define ZEPHYR_MODULES_CMSIS_6_CMSIS_CORE_M_H_ | ||
|
||
#if defined(CONFIG_CMSIS_M_CHECK_DEVICE_DEFINES) && CONFIG_CMSIS_M_CHECK_DEVICE_DEFINES == 1U | ||
#define __CHECK_DEVICE_DEFINES 1U | ||
|
@@ -68,4 +68,4 @@ | |
#error "__SAUREGION_PRESENT and CONFIG_CPU_HAS_ARM_SAU are not set to the same value" | ||
#endif | ||
|
||
#endif /* ZEPHYR_MODULES_CMSIS_CMSIS_M_H_ */ | ||
#endif /* ZEPHYR_MODULES_CMSIS_6_CMSIS_CORE_M_H_ */ |
This file contains hidden or 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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
/* | ||
* Copyright (c) 2017 Nordic Semiconductor ASA | ||
* Copyright (c) 2023 Arm Limited | ||
* Copyright 2023,2025 Arm Limited and/or its affiliates <[email protected]> | ||
* | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
@@ -13,8 +13,8 @@ | |
* ARM CMSIS Core headers. | ||
*/ | ||
|
||
#ifndef ZEPHYR_MODULES_CMSIS_CMSIS_M_DEFAULTS_H_ | ||
#define ZEPHYR_MODULES_CMSIS_CMSIS_M_DEFAULTS_H_ | ||
#ifndef ZEPHYR_MODULES_CMSIS_6_CMSIS_CORE_M_DEFAULTS_H_ | ||
#define ZEPHYR_MODULES_CMSIS_6_CMSIS_CORE_M_DEFAULTS_H_ | ||
|
||
#include <zephyr/arch/arm/cortex_m/nvic.h> | ||
|
||
|
@@ -143,4 +143,4 @@ typedef enum { | |
#error "Unknown Cortex-M device" | ||
#endif | ||
|
||
#endif /* ZEPHYR_MODULES_CMSIS_CMSIS_M_DEFAULTS_H_ */ | ||
#endif /* ZEPHYR_MODULES_CMSIS_6_CMSIS_CORE_M_DEFAULTS_H_ */ |
This file contains hidden or 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
This file contains hidden or 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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.