/* This function can be used to save the configuration of a region for later use with the  */
void MPURegionGet(unsigned long ulRegion, unsigned long *pulAddr, unsigned long *pulFlags)
/* This function can be used to save the configuration of a region for later use with the  */
void MPURegionGet(unsigned long ulRegion, unsigned long *pulAddr, unsigned long *pulFlags)
{
    ASSERT(ulRegion < 8);
    ASSERT(pulAddr);
    ASSERT(pulFlags);
    HWREG(NVIC_MPU_NUMBER) = ulRegion;
    *pulAddr = HWREG(NVIC_MPU_BASE);
    *pulFlags = HWREG(NVIC_MPU_ATTR);
}