Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions MAINTAINERS.yml
Original file line number Diff line number Diff line change
Expand Up @@ -421,7 +421,7 @@ CMSIS-DSP integration:
collaborators:
- galak
files:
- modules/Kconfig.cmsis_dsp
- modules/cmsis/Kconfig.cmsis_dsp
- tests/benchmarks/cmsis_dsp/
- tests/lib/cmsis_dsp/
labels:
Expand All @@ -434,7 +434,7 @@ CMSIS-NN integration:
collaborators:
- stephanosio
files:
- modules/Kconfig.cmsis_nn
- modules/cmsis/Kconfig.cmsis_nn
- tests/lib/cmsis_nn/
labels:
- "area: CMSIS-NN"
Expand Down Expand Up @@ -2854,9 +2854,9 @@ West:
- microbuilder
- povergoing
files:
- modules/Kconfig.cmsis
- modules/Kconfig.cmsis_dsp
- modules/Kconfig.cmsis_nn
- modules/cmsis/Kconfig
- modules/cmsis/Kconfig.cmsis_dsp
- modules/cmsis/Kconfig.cmsis_nn
labels:
- manifest-cmsis

Expand Down
2 changes: 1 addition & 1 deletion arch/arm/core/aarch32/cortex_a_r/cache.c
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

#include <zephyr/kernel.h>
#include <zephyr/cache.h>
#include <zephyr/arch/arm/aarch32/cortex_a_r/cmsis.h>
#include <cmsis_core.h>
#include <zephyr/sys/barrier.h>

/* Cache Type Register */
Expand Down
2 changes: 1 addition & 1 deletion arch/arm/core/aarch32/cortex_a_r/tcm.c
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* SPDX-License-Identifier: Apache-2.0
*/
#include <zephyr/kernel.h>
#include <zephyr/arch/arm/aarch32/cortex_a_r/cmsis.h>
#include <cmsis_core.h>

void z_arm_tcm_disable_ecc(void)
{
Expand Down
2 changes: 1 addition & 1 deletion arch/arm/core/aarch32/cortex_a_r/thread.c
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
*/

#include <stdbool.h>
#include <zephyr/arch/arm/aarch32/cortex_a_r/cmsis.h>
#include <cmsis_core.h>

bool z_arm_thread_is_in_user_mode(void)
{
Expand Down
2 changes: 1 addition & 1 deletion arch/arm/core/aarch32/cortex_m/cache.c
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

#include <zephyr/arch/cpu.h>
#include <zephyr/cache.h>
#include <zephyr/arch/arm/aarch32/cortex_m/cmsis.h>
#include <cmsis_core.h>

void arch_dcache_enable(void)
{
Expand Down
2 changes: 1 addition & 1 deletion arch/arm/core/aarch32/cortex_m/fpu.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
*/

#include <zephyr/kernel.h>
#include <zephyr/arch/arm/aarch32/cortex_m/cmsis.h>
#include <cmsis_core.h>
#include <zephyr/arch/arm/aarch32/cortex_m/fpu.h>

/**
Expand Down
2 changes: 1 addition & 1 deletion arch/arm/core/aarch32/cortex_m/irq_init.c
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
*/

#include <zephyr/arch/cpu.h>
#include <zephyr/arch/arm/aarch32/cortex_m/cmsis.h>
#include <cmsis_core.h>

/**
*
Expand Down
2 changes: 1 addition & 1 deletion arch/arm/core/aarch32/cortex_m/scb.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
#include <zephyr/arch/cpu.h>
#include <zephyr/sys/util.h>
#include <zephyr/sys/barrier.h>
#include <zephyr/arch/arm/aarch32/cortex_m/cmsis.h>
#include <cmsis_core.h>
#include <zephyr/linker/linker-defs.h>
#include <zephyr/cache.h>

Expand Down
2 changes: 1 addition & 1 deletion arch/arm/core/aarch32/cortex_m/thread.c
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
*/

#include <stdbool.h>
#include <zephyr/arch/arm/aarch32/cortex_m/cmsis.h>
#include <cmsis_core.h>

bool z_arm_thread_is_in_user_mode(void)
{
Expand Down
2 changes: 1 addition & 1 deletion arch/arm/core/aarch32/cortex_m/timing.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
#include <zephyr/kernel.h>
#include <zephyr/timing/timing.h>
#include <aarch32/cortex_m/dwt.h>
#include <zephyr/arch/arm/aarch32/cortex_m/cmsis.h>
#include <cmsis_core.h>
#include <zephyr/sys_clock.h>

/**
Expand Down
2 changes: 1 addition & 1 deletion arch/arm/core/aarch32/cortex_m/tz/arm_core_tz.c
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* SPDX-License-Identifier: Apache-2.0
*/

#include <zephyr/arch/arm/aarch32/cortex_m/cmsis.h>
#include <cmsis_core.h>
#include <aarch32/cortex_m/tz.h>
#include <aarch32/cortex_m/exc.h>

Expand Down
2 changes: 1 addition & 1 deletion arch/arm/core/aarch32/irq_manage.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
#include <zephyr/kernel.h>
#include <zephyr/arch/cpu.h>
#if defined(CONFIG_CPU_CORTEX_M)
#include <zephyr/arch/arm/aarch32/cortex_m/cmsis.h>
#include <cmsis_core.h>
#elif defined(CONFIG_CPU_AARCH32_CORTEX_A) \
|| defined(CONFIG_CPU_AARCH32_CORTEX_R)
#include <zephyr/drivers/interrupt_controller/gic.h>
Expand Down
2 changes: 1 addition & 1 deletion arch/arm/core/aarch32/mmu/arm_mmu.c
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
#include <zephyr/sys/mem_manage.h>
#include <zephyr/sys/barrier.h>

#include <zephyr/arch/arm/aarch32/cortex_a_r/cmsis.h>
#include <cmsis_core.h>

#include <zephyr/arch/arm/aarch32/mmu/arm_mmu.h>
#include "arm_mmu_priv.h"
Expand Down
2 changes: 1 addition & 1 deletion arch/arm/include/aarch32/cortex_m/dwt.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

#else

#include <zephyr/arch/arm/aarch32/cortex_m/cmsis.h>
#include <cmsis_core.h>
#include <zephyr/sys/__assert.h>

#ifdef __cplusplus
Expand Down
2 changes: 1 addition & 1 deletion arch/arm/include/aarch32/cortex_m/exc.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@

#else

#include <zephyr/arch/arm/aarch32/cortex_m/cmsis.h>
#include <cmsis_core.h>
#include <zephyr/arch/arm/aarch32/exc.h>
#include <zephyr/irq_offload.h>

Expand Down
2 changes: 1 addition & 1 deletion arch/arm/include/aarch32/cortex_m/stack.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

#else

#include <zephyr/arch/arm/aarch32/cortex_m/cmsis.h>
#include <cmsis_core.h>

#ifdef __cplusplus
extern "C" {
Expand Down
2 changes: 1 addition & 1 deletion boards/arm/arty/board.c
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* SPDX-License-Identifier: Apache-2.0
*/

#include <zephyr/arch/arm/aarch32/cortex_m/cmsis.h>
#include <cmsis_core.h>
#include <zephyr/device.h>
#include <zephyr/devicetree.h>
#include <zephyr/drivers/gpio.h>
Expand Down
1 change: 0 additions & 1 deletion drivers/cache/cache_aspeed.c
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
*/

#include <zephyr/kernel.h>
#include <zephyr/arch/arm/aarch32/cortex_m/cmsis.h>
#include <zephyr/drivers/syscon.h>
#include <zephyr/sys/barrier.h>

Expand Down
2 changes: 1 addition & 1 deletion drivers/clock_control/clock_control_mchp_xec.c
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

#include <soc.h>
#include <zephyr/arch/cpu.h>
#include <zephyr/arch/arm/aarch32/cortex_m/cmsis.h>
#include <cmsis_core.h>
#include <zephyr/drivers/clock_control.h>
#include <zephyr/drivers/clock_control/mchp_xec_clock_control.h>
#include <zephyr/drivers/pinctrl.h>
Expand Down
2 changes: 1 addition & 1 deletion drivers/display/display_stm32_ltdc.c
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ LOG_MODULE_REGISTER(display_stm32_ltdc, CONFIG_DISPLAY_LOG_LEVEL);
#endif

#if defined(CONFIG_HAS_CMSIS_CORE_M)
#include <zephyr/arch/arm/aarch32/cortex_m/cmsis.h>
#include <cmsis_core.h>

#if __DCACHE_PRESENT == 1
#define CACHE_INVALIDATE(addr, size) SCB_InvalidateDCache_by_Addr((addr), (size))
Expand Down
1 change: 0 additions & 1 deletion drivers/gpio/gpio_mchp_xec_v2.c
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
#include <zephyr/dt-bindings/gpio/gpio.h>
#include <zephyr/dt-bindings/pinctrl/mchp-xec-pinctrl.h>
#include <soc.h>
#include <zephyr/arch/arm/aarch32/cortex_m/cmsis.h>
#include <zephyr/irq.h>

#include <zephyr/drivers/gpio/gpio_utils.h>
Expand Down
2 changes: 1 addition & 1 deletion drivers/interrupt_controller/intc_mchp_ecia_xec.c
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
#define DT_DRV_COMPAT microchip_xec_ecia

#include <zephyr/arch/cpu.h>
#include <zephyr/arch/arm/aarch32/cortex_m/cmsis.h>
#include <cmsis_core.h>
#include <zephyr/device.h>
#include <soc.h>
#include <zephyr/sys/__assert.h>
Expand Down
2 changes: 1 addition & 1 deletion drivers/kscan/kscan_mchp_xec.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

#define DT_DRV_COMPAT microchip_xec_kscan

#include <zephyr/arch/arm/aarch32/cortex_m/cmsis.h>
#include <cmsis_core.h>
#include <errno.h>
#include <zephyr/device.h>
#ifdef CONFIG_SOC_SERIES_MEC172X
Expand Down
2 changes: 1 addition & 1 deletion drivers/ps2/ps2_mchp_xec.c
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

#define DT_DRV_COMPAT microchip_xec_ps2

#include <zephyr/arch/arm/aarch32/cortex_m/cmsis.h>
#include <cmsis_core.h>
#include <errno.h>
#include <zephyr/device.h>
#include <zephyr/kernel.h>
Expand Down
2 changes: 1 addition & 1 deletion drivers/serial/uart_lpc11u6x.c
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
*/
#define DT_DRV_COMPAT nxp_lpc11u6x_uart

#include <zephyr/arch/arm/aarch32/cortex_m/cmsis.h>
#include <cmsis_core.h>

#include <zephyr/drivers/uart.h>
#include <zephyr/drivers/clock_control.h>
Expand Down
2 changes: 1 addition & 1 deletion drivers/timer/cortex_m_systick.c
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
#include <zephyr/drivers/timer/system_timer.h>
#include <zephyr/sys_clock.h>
#include <zephyr/spinlock.h>
#include <zephyr/arch/arm/aarch32/cortex_m/cmsis.h>
#include <cmsis_core.h>
#include <zephyr/irq.h>
#include <zephyr/sys/util.h>

Expand Down
2 changes: 1 addition & 1 deletion drivers/timer/mchp_xec_rtos_timer.c
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
#include <zephyr/drivers/timer/system_timer.h>
#include <zephyr/sys_clock.h>
#include <zephyr/spinlock.h>
#include <zephyr/arch/arm/aarch32/cortex_m/cmsis.h>
#include <cmsis_core.h>
#include <zephyr/irq.h>

BUILD_ASSERT(!IS_ENABLED(CONFIG_SMP), "XEC RTOS timer doesn't support SMP");
Expand Down
6 changes: 1 addition & 5 deletions include/zephyr/arch/arm/aarch32/barrier.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,7 @@
#error Please include <zephyr/sys/barrier.h>
#endif

#if defined(CONFIG_CPU_CORTEX_M)
#include <zephyr/arch/arm/aarch32/cortex_m/cmsis.h>
#else
#include <zephyr/arch/arm/aarch32/cortex_a_r/cmsis.h>
#endif
#include <cmsis_core.h>

#ifdef __cplusplus
extern "C" {
Expand Down
65 changes: 6 additions & 59 deletions include/zephyr/arch/arm/aarch32/cortex_a_r/cmsis.h
Original file line number Diff line number Diff line change
@@ -1,66 +1,13 @@
/*
* Copyright (c) 2020 Stephanos Ioannidis <[email protected]>
*
* Copyright (c) 2023 Nordic Semiconductor ASA
* SPDX-License-Identifier: Apache-2.0
*/

/**
* @file
* @brief CMSIS interface file
*
* This header contains the interface to the ARM CMSIS Core headers.
*/

#ifndef ZEPHYR_INCLUDE_ARCH_ARM_AARCH32_CORTEX_A_R_CMSIS_H_
#define ZEPHYR_INCLUDE_ARCH_ARM_AARCH32_CORTEX_A_R_CMSIS_H_

#include <soc.h>

#ifdef __cplusplus
extern "C" {
#endif

#ifndef __CR_REV
#define __CR_REV 0U
#endif

#ifndef __CA_REV
#define __CA_REV 0U
#endif
#ifndef ZEPHYR_ARCH_ARM_AARCH32_CORTEX_A_R_CMSIS_H_
#define ZEPHYR_ARCH_ARM_AARCH32_CORTEX_A_R_CMSIS_H_

#ifndef __FPU_PRESENT
#define __FPU_PRESENT CONFIG_CPU_HAS_FPU
#endif

#ifndef __MMU_PRESENT
#define __MMU_PRESENT CONFIG_CPU_HAS_MMU
#endif

#ifdef __cplusplus
}
#endif

#if defined(CONFIG_CPU_CORTEX_R4)
#include <core_cr4.h>
#elif defined(CONFIG_CPU_CORTEX_R5)
#include <core_cr5.h>
#elif defined(CONFIG_CPU_CORTEX_R7)
#include <core_cr7.h>
#elif defined(CONFIG_CPU_CORTEX_R52)
#include <core_cr52.h>
#elif defined(CONFIG_CPU_AARCH32_CORTEX_A)
/*
* Any defines relevant for the proper inclusion of CMSIS' Cortex-A
* Common Peripheral Access Layer (such as __CORTEX_A) which are not
* covered by the Kconfig-based default assignments above must be
* provided by each aarch32 Cortex-A SoC's header file (already in-
* cluded above).
*/
#include <core_ca.h>
#else
#error "Unknown device"
#endif
#include <cmsis_core.h>

#include <zephyr/arch/arm/aarch32/cortex_a_r/cmsis_ext.h>
#warning This header is deprecated, please include <cmsis_core.h>

#endif /* ZEPHYR_INCLUDE_ARCH_ARM_AARCH32_CORTEX_A_R_CMSIS_H_ */
#endif /* ZEPHYR_ARCH_ARM_AARCH32_CORTEX_A_R_CMSIS_H_ */
1 change: 0 additions & 1 deletion include/zephyr/arch/arm/aarch32/cortex_a_r/sys_io.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@

#include <zephyr/types.h>
#include <zephyr/sys/sys_io.h>
#include <zephyr/arch/arm/aarch32/cortex_a_r/cmsis.h>
#include <zephyr/sys/barrier.h>

#ifdef __cplusplus
Expand Down
Loading