ON Semiconductor / mbed-os

Dependents:   mbed-TFT-example-NCS36510 mbed-Accelerometer-example-NCS36510 mbed-Accelerometer-example-NCS36510

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers halt_exports.h Source File

halt_exports.h

00001 /*
00002  * Copyright (c) 2015, ARM Limited, All Rights Reserved
00003  * SPDX-License-Identifier: Apache-2.0
00004  *
00005  * Licensed under the Apache License, Version 2.0 (the "License"); you may
00006  * not use this file except in compliance with the License.
00007  * You may obtain a copy of the License at
00008  *
00009  * http://www.apache.org/licenses/LICENSE-2.0
00010  *
00011  * Unless required by applicable law or agreed to in writing, software
00012  * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
00013  * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
00014  * See the License for the specific language governing permissions and
00015  * limitations under the License.
00016  */
00017 #ifndef __UVISOR_API_HALT_EXPORTS_H__
00018 #define __UVISOR_API_HALT_EXPORTS_H__
00019 
00020 #define UVISOR_ERROR_INVALID_BOX_ID             (-2)
00021 #define UVISOR_ERROR_BUFFER_TOO_SMALL           (-3)
00022 #define UVISOR_ERROR_BOX_NAMESPACE_ANONYMOUS    (-4)
00023 #define UVISOR_ERROR_BAD_MAGIC                  (-5)
00024 #define UVISOR_ERROR_BAD_VERSION                (-6)
00025 #define UVISOR_ERROR_OUT_OF_STRUCTURES          (-7)
00026 #define UVISOR_ERROR_INVALID_PARAMETERS         (-8)
00027 #define UVISOR_ERROR_NOT_IMPLEMENTED            (-9)
00028 #define UVISOR_ERROR_TIMEOUT                    (-10)
00029 
00030 
00031 #define UVISOR_ERROR_CLASS_MASK     (0xFFFF0000UL)
00032 #define UVISOR_ERROR_MASK           (0x0000FFFFUL)
00033 
00034 #define UVISOR_ERROR_CLASS_PAGE     (1UL << 16)
00035 
00036 typedef enum {
00037     USER_NOT_ALLOWED = 1,
00038     DEBUG_BOX_HALT,
00039 } THaltUserError;
00040 
00041 typedef enum {
00042     HALT_NO_ERROR = 0,
00043     PERMISSION_DENIED = 1,
00044     SANITY_CHECK_FAILED,
00045     NOT_IMPLEMENTED,
00046     NOT_ALLOWED,
00047     FAULT_MEMMANAGE,
00048     FAULT_BUS,
00049     FAULT_USAGE,
00050     FAULT_HARD,
00051     FAULT_DEBUG,
00052     __THALTERROR_MAX /* always keep as the last element of the enum */
00053 } THaltError;
00054 
00055 #endif /* __UVISOR_API_HALT_EXPORTS_H__ */