Memory Protection Unit (MPU)
14.2.1.4 ROM_MPURegionDisable
Disables a specific region.
Prototype:
void
ROM_MPURegionDisable(uint32_t ui32Region)
ROM Location:
ROM_APITABLE is an array of pointers located at 0x0100.0010.
ROM_MPUTABLE is an array of pointers located at ROM_APITABLE[20].
ROM_MPURegionDisable is a function pointer located at ROM_MPUTABLE[4].
Parameters:
ui32Region is the region number to disable.
Description:
This function is used to disable a previously enabled memory protection region. The region will
remain configured if it is not overwritten with another call to ROM_MPURegionSet(), and can
be enabled again by calling ROM_MPURegionEnable().
Returns:
None.
14.2.1.5 ROM_MPURegionEnable
Enables a specific region.
Prototype:
void
ROM_MPURegionEnable(uint32_t ui32Region)
ROM Location:
ROM_APITABLE is an array of pointers located at 0x0100.0010.
ROM_MPUTABLE is an array of pointers located at ROM_APITABLE[20].
ROM_MPURegionEnable is a function pointer located at ROM_MPUTABLE[3].
Parameters:
ui32Region is the region number to enable.
Description:
This function is used to enable a memory protection region. The region should already be set
up with the ROM_MPURegionSet() function. Once enabled, the memory protection rules of
the region are applied and access violations will cause a memory management fault.
Returns:
None.
14.2.1.6 ROM_MPURegionGet
Gets the current settings for a specific region.
148 April 8, 2013