XilinxProcessorIPLib/drivers/clockps/src/xclockps_mux.c
static void XClock_MuxUpdateRate(u8 MuxIndex)
{

	u8  ParentType;
	u8  ParentIdx;
	u16 Parent;

	/* Validate arguments */
	XCLOCK_VALIDATE_INDEX_WARN(MUX, MuxIndex);

	/* Ignore if external parent */
	Parent = Muxes[MuxIndex].Parent[Muxes[MuxIndex].ActiveParent];
	if (XCLOCK_PARENT_EXTERNAL == Parent) {
		return;
	}

	/* Init parent */
	ParentType = XCLOCK_FETCH_PARENT_TYPE(Parent);
	ParentIdx = XCLOCK_FETCH_PARENT_INDEX(Parent);
	XClock_UpdateRate((XClock_Types)ParentType, ParentIdx);

	/* Set rate */
	Muxes[MuxIndex].Rate = XClock_FetchRate((XClock_Types)ParentType, ParentIdx);
}
/*****************************************************************************/
/*
*
* The function updates the rate of mux node.
*
* @param	MuxIndex is the database index of mux to update rate for.
*
* @return	None.
*
* @note		None.
*
******************************************************************************/
The function updates the rate of mux node.
The function updates the rate of mux node .
static void XClock_MuxUpdateRate(u8 MuxIndex)
{
	u8  ParentType;
	u8  ParentIdx;
	u16 Parent;
	XCLOCK_VALIDATE_INDEX_WARN(MUX, MuxIndex);
	Parent = Muxes[MuxIndex].Parent[Muxes[MuxIndex].ActiveParent];
	if (XCLOCK_PARENT_EXTERNAL == Parent) {
		return;
	}
	ParentType = XCLOCK_FETCH_PARENT_TYPE(Parent);
	ParentIdx = XCLOCK_FETCH_PARENT_INDEX(Parent);
	XClock_UpdateRate((XClock_Types)ParentType, ParentIdx);
	Muxes[MuxIndex].Rate = XClock_FetchRate((XClock_Types)ParentType, ParentIdx);
}
static void XClock_MuxUpdateRate ( u8 MuxIndex ) { u8 ParentType ; u8 ParentIdx ; u16 Parent ; XCLOCK_VALIDATE_INDEX_WARN ( MUX , MuxIndex ) ; Parent = Muxes [ MuxIndex ] . Parent [ Muxes [ MuxIndex ] . ActiveParent ] ; if ( XCLOCK_PARENT_EXTERNAL == Parent ) { return ; } ParentType = XCLOCK_FETCH_PARENT_TYPE ( Parent ) ; ParentIdx = XCLOCK_FETCH_PARENT_INDEX ( Parent ) ; XClock_UpdateRate ( ( XClock_Types ) ParentType , ParentIdx ) ; Muxes [ MuxIndex ] . Rate = XClock_FetchRate ( ( XClock_Types ) ParentType , ParentIdx ) ; }
The function updates the rate of mux node.
The function updates the rate of mux node .
/* Validate arguments */ /* Ignore if external parent */ /* Init parent */ /* Set rate */