diff options
author | Rajasekaran Kalidoss <rajasekaran.kalidoss@arm.com> | 2024-05-16 21:47:21 +0200 |
---|---|---|
committer | rajasekaran.kalidoss <rajasekaran.kalidoss@arm.com> | 2024-05-20 16:51:13 +0000 |
commit | 8c940861337acdf81d07f9b12761bcef6655503f (patch) | |
tree | a16d87cea0e9815424dae5440e69f0358fd88185 /drivers | |
parent | 92656901f079c8c3e70c7ef1fd869a55119e989d (diff) | |
download | ethos-u-core-platform-8c940861337acdf81d07f9b12761bcef6655503f.tar.gz |
Include header file according to the cmsis version
To support both cmsis 5 and 6, certain header files needs to be
included according to the version of cmsis specified in the build. This
patch adds this support.
Signed-off-by: Rajasekaran Kalidoss <rajasekaran.kalidoss@arm.com>
Change-Id: Ic0ff8c88b59994fa35fccfb11138358d364a8772
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/mpu/src/mpu.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/drivers/mpu/src/mpu.cpp b/drivers/mpu/src/mpu.cpp index 3f9e62a..7d767ac 100644 --- a/drivers/mpu/src/mpu.cpp +++ b/drivers/mpu/src/mpu.cpp @@ -1,6 +1,5 @@ /* - * SPDX-FileCopyrightText: Copyright 2020-2023 Arm Limited and/or its affiliates <open-source-office@arm.com> - * + * SPDX-FileCopyrightText: Copyright 2020-2024 Arm Limited and/or its affiliates <open-source-office@arm.com> * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the License); you may @@ -22,7 +21,12 @@ #include <mpu.hpp> +#if CMSIS_VER == 6 +#include <m-profile/armv7m_cachel1.h> +#else #include <cachel1_armv7.h> +#endif + #include <inttypes.h> #include <stdio.h> |