/* Gets the PRINCE region base address register. 
This function gets PRINCE BASE_ADDR register. */
status_t PRINCE_GetRegionBaseAddress(PRINCE_Type *base, prince_region_t region, uint32_t *region_base_addr)
/* Gets the PRINCE region base address register. 
This function gets PRINCE BASE_ADDR register. */
status_t PRINCE_GetRegionBaseAddress(PRINCE_Type *base, prince_region_t region, uint32_t *region_base_addr)
{
    status_t status = kStatus_Success;
    switch (region)
    {
        case kPRINCE_Region0:
            *region_base_addr = base->BASE_ADDR0;
            break;
        case kPRINCE_Region1:
            *region_base_addr = base->BASE_ADDR1;
            break;
        case kPRINCE_Region2:
            *region_base_addr = base->BASE_ADDR2;
            break;
        default:
            status = kStatus_InvalidArgument;
            break;
    }
    return status;
}