1 /*
2  * SPDX-FileCopyrightText: 2015-2021 Espressif Systems (Shanghai) CO LTD
3  *
4  * SPDX-License-Identifier: Apache-2.0
5  */
6 
7 #pragma once
8 
9 #ifdef __cplusplus
10 extern "C" {
11 #endif
12 
13 /**
14  * @brief Memprot LL error codes
15  *
16  */
17 typedef enum {
18     MEMP_LL_OK = 0,
19     MEMP_LL_FAIL = 1,
20     MEMP_LL_ERR_SPLIT_ADDR_OUT_OF_RANGE = 2,
21     MEMP_LL_ERR_SPLIT_ADDR_INVALID = 2,         /* temporary duplicate for S2 builds */
22     MEMP_LL_ERR_SPLIT_ADDR_UNALIGNED = 3,
23     MEMP_LL_ERR_UNI_BLOCK_INVALID = 4,
24     MEMP_LL_ERR_AREA_INVALID = 5,
25     MEMP_LL_ERR_WORLD_INVALID = 6
26 } memprot_ll_err_t;
27 
28 /**
29  * @brief Memprot LL PMS World IDs
30  *
31  */
32 typedef enum {
33     MEMP_LL_WORLD_NONE = 0x00,
34     MEMP_LL_WORLD_0 = 0x01,
35     MEMP_LL_WORLD_1 = 0x10
36 } memprot_ll_world_t;
37 
38 /**
39  * @brief Memprot LL PMS Area IDs
40  *
41  */
42 typedef enum {
43     MEMP_LL_AREA_NONE = 0,
44     MEMP_LL_AREA_LOW = 1,
45     MEMP_LL_AREA_HIGH = 2
46 } memprot_ll_area_t;
47 
48 #ifdef __cplusplus
49 }
50 #endif
51