Skip to content

Commit a348b45

Browse files
author
Cruz Monrreal
authored
Merge pull request #7000 from kfnta/uvisor_depr
Add warning about FEATURE_UVISOR being deprecated
2 parents 54ac90f + 25fb8e3 commit a348b45

File tree

2 files changed

+25
-0
lines changed

2 files changed

+25
-0
lines changed
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
/*
2+
* Copyright (c) 2016, ARM Limited, All Rights Reserved
3+
* SPDX-License-Identifier: Apache-2.0
4+
*
5+
* Licensed under the Apache License, Version 2.0 (the "License"); you may
6+
* not use this file except in compliance with the License.
7+
* You may obtain a copy of the License at
8+
*
9+
* http://www.apache.org/licenses/LICENSE-2.0
10+
*
11+
* Unless required by applicable law or agreed to in writing, software
12+
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
13+
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
* See the License for the specific language governing permissions and
15+
* limitations under the License.
16+
*/
17+
#ifndef __UVISOR_DEPRECATION_H__
18+
#define __UVISOR_DEPRECATION_H__
19+
20+
#if defined(UVISOR_PRESENT) && UVISOR_PRESENT == 1
21+
#warning "Warning: You are using FEATURE_UVISOR, which is unsupported as of Mbed OS 5.9."
22+
#endif
23+
24+
#endif // __UVISOR_DEPRECATION_H__

features/FEATURE_UVISOR/source/rtx/box_init.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
#include "api/inc/rpc_exports.h"
2020
#include "api/inc/uvisor_semaphore.h"
2121
#include "api/inc/box_config.h"
22+
#include "api/inc/uvisor_deprecation.h"
2223
#include "mbed_interface.h"
2324
#include "cmsis_os2.h"
2425
#include <stdint.h>

0 commit comments

Comments
 (0)