AM62Px MCU+ SDK  10.01.00
MpuP_armv7.h File Reference

Go to the source code of this file.

Data Structures

struct  MpuP_RegionAttrs
 Attribute's to apply for a MPU region. More...
 
struct  MpuP_RegionConfig
 Region config structure, this used by SysConfig and not to be used by end-users directly. More...
 
struct  MpuP_Config
 MPU config structure, this used by SysConfig and not to be used by end-users directly. More...
 

Enumerations

enum  MpuP_AccessPerm {
  MpuP_AP_ALL_BLOCK = (0x0u), MpuP_AP_S_RW = (0x1u), MpuP_AP_S_RW_U_R = (0x2u), MpuP_AP_ALL_RW = (0x3u),
  MpuP_AP_S_R = (0x5u), MpuP_AP_ALL_R = (0x6u)
}
 Enum's to represent different types of access permissions that are possible for a given MPU region. More...
 
enum  MpuP_RegionSize {
  MpuP_RegionSize_32 = 0x4, MpuP_RegionSize_64, MpuP_RegionSize_128, MpuP_RegionSize_256,
  MpuP_RegionSize_512, MpuP_RegionSize_1K, MpuP_RegionSize_2K, MpuP_RegionSize_4K,
  MpuP_RegionSize_8K, MpuP_RegionSize_16K, MpuP_RegionSize_32K, MpuP_RegionSize_64K,
  MpuP_RegionSize_128K, MpuP_RegionSize_256K, MpuP_RegionSize_512K, MpuP_RegionSize_1M,
  MpuP_RegionSize_2M, MpuP_RegionSize_4M, MpuP_RegionSize_8M, MpuP_RegionSize_16M,
  MpuP_RegionSize_32M, MpuP_RegionSize_64M, MpuP_RegionSize_128M, MpuP_RegionSize_256M,
  MpuP_RegionSize_512M, MpuP_RegionSize_1G, MpuP_RegionSize_2G, MpuP_RegionSize_4G
}
 Enum's to represent different possible MPU region size. More...
 

Functions

void MpuP_RegionAttrs_init (MpuP_RegionAttrs *region)
 Set default values to MpuP_RegionAttrs. More...
 
void MpuP_setRegion (uint32_t regionNum, void *addr, uint32_t size, MpuP_RegionAttrs *attrs)
 Setup a region in the MPU. More...
 
void MpuP_resetRegion (uint32_t regionNum)
 Reset a region in the MPU. More...
 
void MpuP_enable (void)
 Enable MPU sub-system using the region that are setup using MpuP_setRegion. More...
 
void MpuP_disable (void)
 Disable MPU sub-system. More...
 
uint32_t MpuP_isEnable (void)
 Check if MPU sub-system is enabled. More...
 
void MpuP_init (void)
 Initialize MPU sub-system, called by SysConfig, not to be called by end users. More...