46 #define MPU_USER_MASK (0x07U)
47 #define MPU_USER_SHIFT (0U)
48 #define MPU_SUPERVISOR_MASK (0x18U)
49 #define MPU_SUPERVISOR_SHIFT (3U)
50 #define MPU_W_MASK (0x20U)
51 #define MPU_W_SHIFT (5U)
52 #define MPU_R_MASK (0x40U)
53 #define MPU_R_SHIFT (6U)
157 #if FEATURE_MPU_HAS_PROCESS_IDENTIFIER
158 bool processIdentifierEnable;
172 #if FEATURE_MPU_HAS_PROCESS_IDENTIFIER
173 uint8_t processIdentifier;
174 uint8_t processIdMask;
186 #if defined(__cplusplus)
264 uint8_t slavePortNum,
269 #if defined(__cplusplus)
MPU master access rights. Implements : mpu_master_access_right_t_Class.
const mpu_master_access_right_t * masterAccRight
void MPU_DRV_Deinit(uint32_t instance)
De-initializes the MPU region by resetting and disabling MPU module.
void MPU_DRV_GetDetailErrorAccessInfo(uint32_t instance, uint8_t slavePortNum, mpu_access_err_info_t *errInfoPtr)
Gets the MPU access error detail information for a slave port.
MPU_Type *const g_mpuBase[MPU_INSTANCE_COUNT]
Table of base addresses for MPU instances.
mpu_access_rights_t
MPU access rights. Code Supervisor User Description MPU_SUPERVISOR_RWX_USER_NONE r w x - - - Allow R...
status_t MPU_DRV_Init(uint32_t instance, uint8_t regionCnt, const mpu_user_config_t *userConfigArr)
The function sets the MPU regions according to user input and then enables the MPU. Please note that access rights for region 0 will always be configured and regionCnt takes values between 1 and the maximum region count supported by the hardware. e.g. In S32K144 the number of supported regions is 8. The user must make sure that the clock is enabled.
status_t MPU_DRV_SetMasterAccessRights(uint32_t instance, uint8_t regionNum, const mpu_master_access_right_t *accessRightsPtr)
Configures access permission.
status_t
Status return codes. Common error codes will be a unified enumeration (C enum) that will contain all ...
MPU user region configuration structure. This structure is used when calling the MPU_DRV_Init functio...
MPU detail error access info Implements : mpu_access_err_info_t_Class.
mpu_access_rights_t accessRight
status_t MPU_DRV_SetRegionConfig(uint32_t instance, uint8_t regionNum, const mpu_user_config_t *userConfigPtr)
Sets the region configuration.
#define MPU_INSTANCE_COUNT
void MPU_DRV_SetRegionAddr(uint32_t instance, uint8_t regionNum, uint32_t startAddr, uint32_t endAddr)
Sets the region start and end address.