mpu_pal_mapping.h
Go to the documentation of this file.
1 /*
2  * Copyright 2017-2018 NXP
3  * All rights reserved.
4  *
5  * THIS SOFTWARE IS PROVIDED BY NXP "AS IS" AND ANY EXPRESSED OR
6  * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
7  * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
8  * IN NO EVENT SHALL NXP OR ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
9  * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
10  * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
11  * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
12  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
13  * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
14  * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
15  * THE POSSIBILITY OF SUCH DAMAGE.
16  */
17 
30 #ifndef MPU_PAL_MAPPING_H
31 #define MPU_PAL_MAPPING_H
32 
33 #include "device_registers.h"
34 #include "mpu_pal_cfg.h"
35 
36 /* Include PD files */
37 #if defined(MPU_OVER_MPU)
38  #include "mpu_driver.h"
39 #elif defined(MPU_OVER_SMPU)
40  #include "smpu_driver.h"
41 #endif
42 
54 typedef enum
55 {
56 #if defined(MPU_INSTANCE_COUNT)
58 #endif /* defined(MPU_INSTANCE_COUNT) */
59 
60 #if defined(SMPU_INSTANCE_COUNT)
61  MPU_INST_TYPE_SMPU = 1U,
62 #endif /* defined(SMPU_INSTANCE_COUNT) */
64 
71 typedef struct
72 {
74  uint32_t instIdx;
76 
77 #endif /* MPU_PAL_MAPPING_H */
78 
Structure storing PAL instance information.
mpu_inst_type_t instType
mpu_inst_type_t
Enumeration with the types of peripherals supported by MPU PAL.