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... | |
uint32_t mpu_cal_mpu_region_size | ( | uint32_t | dw_actual_size_in_bytes | ) |
Calculate region size for the RASR.
Referenced by _setup_memory_region().
void mpu_disable_region | ( | void | ) |
Disable the current active region.
Referenced by mpu_update_regions().
void mpu_enable | ( | uint32_t | dw_mpu_enable | ) |
Enables the MPU module.
dwMPUEnable | Enable/Disable the memory region. |
Referenced by _setup_memory_region().
void mpu_set_region | ( | uint32_t | dw_region_base_addr, |
uint32_t | dw_region_attr | ||
) |
Setup a memory region.
dwRegionBaseAddr | Memory region base address. |
dwRegionAttr | Memory region attributes. |
Referenced by _setup_memory_region(), and mpu_update_regions().
void mpu_set_region_num | ( | uint32_t | dw_region_num | ) |
Set active memory region.
dwRegionNum | The memory region to be active. |
Referenced by 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.
References cpu_irq_restore(), cpu_irq_save(), mpu_disable_region(), mpu_set_region(), and mpu_set_region_num().