RTEMS  5.0.0
Functions
mpu.c File Reference
#include <chip.h>

Functions

void MPU_Enable (uint32_t dwMPUEnable)
 Enables the MPU module. More...
 
void MPU_SetRegionNum (uint32_t dwRegionNum)
 Set active memory region. More...
 
void MPU_DisableRegion (void)
 Disable the current active region.
 
void MPU_SetRegion (uint32_t dwRegionBaseAddr, uint32_t dwRegionAttr)
 Setup a memory region. More...
 
uint32_t MPU_CalMPURegionSize (uint32_t dwActualSizeInBytes)
 Calculate region size for the RASR.
 
void MPU_UpdateRegions (uint32_t dwRegionNum, uint32_t dwRegionBaseAddr, uint32_t dwRegionAttr)
 Update MPU regions. More...
 

Function Documentation

◆ MPU_Enable()

void MPU_Enable ( uint32_t  dwMPUEnable)

Enables the MPU module.

Parameters
dwMPUEnableEnable/Disable the memory region.

◆ MPU_SetRegion()

void MPU_SetRegion ( uint32_t  dwRegionBaseAddr,
uint32_t  dwRegionAttr 
)

Setup a memory region.

Parameters
dwRegionBaseAddrMemory region base address.
dwRegionAttrMemory region attributes.

◆ MPU_SetRegionNum()

void MPU_SetRegionNum ( uint32_t  dwRegionNum)

Set active memory region.

Parameters
dwRegionNumThe memory region to be active.

◆ MPU_UpdateRegions()

void MPU_UpdateRegions ( uint32_t  dwRegionNum,
uint32_t  dwRegionBaseAddr,
uint32_t  dwRegionAttr 
)

Update MPU regions.

Returns
Unused (ANSI-C compatibility).