RTEMS: bsps/arm/atsam/contrib/libraries/libchip/source/mpu.c File Reference

| RTEMS 5.4-rc2

Loading...
Searching...
No Matches
Functions
mpu.c File Reference
`#include <chip.h>`

## 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.

## Function Documentation

## ◆ MPU_Enable()

void MPU_Enable | ( | uint32_t | dwMPUEnable | ) |

Enables the MPU module.

Parameters

  dwMPUEnable | Enable/Disable the memory region.

## ◆ MPU_SetRegion()

void MPU_SetRegion | ( | uint32_t | dwRegionBaseAddr,
|  | uint32_t | dwRegionAttr
| ) |  |

Setup a memory region.

Parameters

  dwRegionBaseAddr | Memory region base address.
  dwRegionAttr | Memory region attributes.

## ◆ MPU_SetRegionNum()

void MPU_SetRegionNum | ( | uint32_t | dwRegionNum | ) |

Set active memory region.

Parameters

  dwRegionNum | The 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).