S32 SDK
mpu_hal.c File Reference
#include <stddef.h>
#include "mpu_hal.h"

Go to the source code of this file.

Macros

#define DEFAULT_ACCESS_RIGHT   (0x0061F7DFU)
 
#define DEFAULT_END_ADDRESS   (0x1FU)
 

Functions

bool MPU_HAL_GetSlavePortErrorStatus (const MPU_Type *const base, uint8_t slaveNum)
 Gets the error status of a specified slave port. More...
 
void MPU_HAL_GetDetailErrorAccessInfo (MPU_Type *const base, uint8_t slaveNum, mpu_access_err_info_t *errInfoPtr)
 Gets MPU detail error access info. More...
 
void MPU_HAL_SetRegionAddr (MPU_Type *const base, uint8_t regionNum, uint32_t startAddr, uint32_t endAddr)
 Sets region start and end address. Please note that using this function will clear the valid bit of the region, and a further validation might be needed. More...
 
void MPU_HAL_SetLowMasterAccessRights (MPU_Type *const base, uint8_t regionNum, uint8_t masterNum, const mpu_low_masters_access_rights_t *accessRightsPtr)
 Sets access permission for master which has separated privilege rights for user and supervisor mode accesses in a specific region. Please note that using this function will clear the valid bit of the region. In order to keep the region valid, the MPU_HAL_SetAlternateLowMasterAccessRights function can be used. More...
 
void MPU_HAL_SetHighMasterAccessRights (MPU_Type *const base, uint8_t regionNum, uint8_t masterNum, const mpu_high_masters_access_rights_t *accessRightsPtr)
 Sets access permission for master which has only read and write permissions in a specific region. Please note that using this function will clear the valid bit of the region. In order to keep the region valid, the MPU_HAL_SetAlternateHighMasterAccessRights function can be used. More...
 
void MPU_HAL_SetAlternateLowMasterAccessRights (MPU_Type *const base, uint8_t regionNum, uint8_t masterNum, const mpu_low_masters_access_rights_t *accessRightsPtr)
 Sets access permission for master which has separated privilege rights for user and supervisor mode accesses in a specific region by alternate register. More...
 
void MPU_HAL_SetAlternateHighMasterAccessRights (MPU_Type *const base, uint8_t regionNum, uint8_t masterNum, const mpu_high_masters_access_rights_t *accessRightsPtr)
 Sets access permission for master which has only read and write permissions in a specific region by alternate register. More...
 
void MPU_HAL_Init (MPU_Type *const base)
 Initializes the MPU module and all regions will be invalid after cleared access permission. More...
 

Macro Definition Documentation

#define DEFAULT_ACCESS_RIGHT   (0x0061F7DFU)

Definition at line 51 of file mpu_hal.c.

#define DEFAULT_END_ADDRESS   (0x1FU)

Definition at line 53 of file mpu_hal.c.