Modules | Files | Functions
MPU - Memory Protect Unit
Collaboration diagram for MPU - Memory Protect Unit:

Modules

 MMU Initialization
 

Files

file  mpu.c
 SAMV70/SAMV71/SAME70/SAMS70-XULTRA board mpu config.
 

Functions

uint32_t mpu_cal_mpu_region_size (uint32_t dw_actual_size_in_bytes)
 Calculate region size for the RASR. More...
 
void mpu_disable_region (void)
 Disable the current active region. More...
 
void mpu_enable (uint32_t dw_mpu_enable)
 Enables the MPU module. More...
 
void mpu_set_region (uint32_t dw_region_base_addr, uint32_t dw_region_attr)
 Setup a memory region. More...
 
void mpu_set_region_num (uint32_t dw_region_num)
 Set active memory region. More...
 
void mpu_update_regions (uint32_t dw_region_num, uint32_t dw_region_base_addr, uint32_t dw_region_attr)
 Update MPU regions. More...
 

Detailed Description

Function Documentation

◆ mpu_cal_mpu_region_size()

uint32_t mpu_cal_mpu_region_size ( uint32_t  dw_actual_size_in_bytes)

Calculate region size for the RASR.

Definition at line 126 of file mpu.c.

◆ mpu_disable_region()

void mpu_disable_region ( void  )

Disable the current active region.

Definition at line 105 of file mpu.c.

◆ mpu_enable()

void mpu_enable ( uint32_t  dw_mpu_enable)

Enables the MPU module.

Parameters
dwMPUEnableEnable/Disable the memory region.

Definition at line 87 of file mpu.c.

◆ mpu_set_region()

void mpu_set_region ( uint32_t  dw_region_base_addr,
uint32_t  dw_region_attr 
)

Setup a memory region.

Parameters
dwRegionBaseAddrMemory region base address.
dwRegionAttrMemory region attributes.

Definition at line 116 of file mpu.c.

◆ mpu_set_region_num()

void mpu_set_region_num ( uint32_t  dw_region_num)

Set active memory region.

Parameters
dwRegionNumThe memory region to be active.

Definition at line 97 of file mpu.c.

◆ mpu_update_regions()

void mpu_update_regions ( uint32_t  dw_region_num,
uint32_t  dw_region_base_addr,
uint32_t  dw_region_attr 
)

Update MPU regions.

Returns
Unused (ANSI-C compatibility).

Definition at line 149 of file mpu.c.



inertial_sense_ros
Author(s):
autogenerated on Sun Feb 28 2021 03:18:01