/* This internal function is utilized by the MPU driver to parse the intent type (i.e. THREAD_STACK_REGION) and return the correct parameter set.  */
static uint32_t get_region_attr_by_type(uint32_t type)
/* This internal function is utilized by the MPU driver to parse the intent type (i.e. THREAD_STACK_REGION) and return the correct parameter set.  */
static uint32_t get_region_attr_by_type(uint32_t type)
{
	switch (type) {
	case THREAD_STACK_USER_REGION:
		return REGION_RAM_ATTR;
	case THREAD_STACK_REGION:
		return AUX_MPU_ATTR_KW | AUX_MPU_ATTR_KR;
	case THREAD_APP_DATA_REGION:
		return REGION_RAM_ATTR;
	case THREAD_STACK_GUARD_REGION:
		return AUX_MPU_ATTR_UR | AUX_MPU_ATTR_KR;
	default:
		return 0;
	}
}