SAMV71 Xplained Ultra Software Package 1.5

mpu.c File Reference

#include <chip.h>

Go to the source code of this file.

Functions

void MPU_Enable (uint32_t dwMPUEnable)
 Enables the MPU module.
void MPU_SetRegionNum (uint32_t dwRegionNum)
 Set active memory region.
void MPU_DisableRegion (void)
 Disable the current active region.
void MPU_SetRegion (uint32_t dwRegionBaseAddr, uint32_t dwRegionAttr)
 Setup a memory region.
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.

Detailed Description

Definition in file mpu.c.


Function Documentation

void MPU_Enable ( uint32_t  dwMPUEnable  ) 

Enables the MPU module.

Parameters:
dwMPUEnable Enable/Disable the memory region.

Definition at line 78 of file mpu.c.

void MPU_SetRegion ( uint32_t  dwRegionBaseAddr,
uint32_t  dwRegionAttr 
)

Setup a memory region.

Parameters:
dwRegionBaseAddr Memory region base address.
dwRegionAttr Memory region attributes.

Definition at line 107 of file mpu.c.

void MPU_SetRegionNum ( uint32_t  dwRegionNum  ) 

Set active memory region.

Parameters:
dwRegionNum The memory region to be active.

Definition at line 88 of file mpu.c.

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

Update MPU regions.

Returns:
Unused (ANSI-C compatibility).

Definition at line 140 of file mpu.c.

Here is the call graph for this function:

 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines