XilinxProcessorIPLib/drivers/hdcp22_rx_dp/src/xhdcp22_rx.c
static void XHdcp22Rx_StartTimer(XHdcp22_Rx *InstancePtr, u32 TimeOut_mSec,
                                u8 ReasonId)
{
	u32 Ticks = (u32)(InstancePtr->TimerInst.Config.SysClockFreqHz / 1000000) * TimeOut_mSec * 1000;

	/* Verify arguments */
	Xil_AssertVoid(InstancePtr != NULL);
	Xil_AssertVoid(InstancePtr->IsReady == XIL_COMPONENT_IS_READY);

	InstancePtr->Info.TimerExpired = (FALSE);
	InstancePtr->Info.TimerReasonId = ReasonId;
	InstancePtr->Info.TimerInitialTicks = Ticks;

#ifndef _XHDCP22_RX_DISABLE_TIMEOUT_CHECKING_
	XTmrCtr_SetResetValue(&InstancePtr->TimerInst, XHDCP22_RX_TMR_CTR_1, Ticks);
	XTmrCtr_Start(&InstancePtr->TimerInst, XHDCP22_RX_TMR_CTR_1);

	XHdcp22Rx_LogWr(InstancePtr, XHDCP22_RX_LOG_EVT_DEBUG,
	                XHDCP22_RX_LOG_DEBUG_TIMER_START);
#endif /* _XHDCP22_RX_DISABLE_TIMEOUT_CHECKING_ */
}
/*****************************************************************************/
/**
*
* This function starts the count down timer needed for checking
* protocol timeouts.
*
* @param    InstancePtr is a pointer to the XHdcp22_Rx core instance.
* @param    TimeOut_mSec is the timeout for the next status update.
*
* @return   XST_SUCCESS or XST_FAILURE.
*
* @note     None.
*
******************************************************************************/
This function starts the count down timer needed for checking
protocol timeouts.
This function starts the count down timer needed for checking protocol timeouts .
static void XHdcp22Rx_StartTimer(XHdcp22_Rx *InstancePtr, u32 TimeOut_mSec,
                                u8 ReasonId)
{
	u32 Ticks = (u32)(InstancePtr->TimerInst.Config.SysClockFreqHz / 1000000) * TimeOut_mSec * 1000;
	Xil_AssertVoid(InstancePtr != NULL);
	Xil_AssertVoid(InstancePtr->IsReady == XIL_COMPONENT_IS_READY);
	InstancePtr->Info.TimerExpired = (FALSE);
	InstancePtr->Info.TimerReasonId = ReasonId;
	InstancePtr->Info.TimerInitialTicks = Ticks;
#ifndef _XHDCP22_RX_DISABLE_TIMEOUT_CHECKING_
	XTmrCtr_SetResetValue(&InstancePtr->TimerInst, XHDCP22_RX_TMR_CTR_1, Ticks);
	XTmrCtr_Start(&InstancePtr->TimerInst, XHDCP22_RX_TMR_CTR_1);
	XHdcp22Rx_LogWr(InstancePtr, XHDCP22_RX_LOG_EVT_DEBUG,
	                XHDCP22_RX_LOG_DEBUG_TIMER_START);
#endif 
}
static void XHdcp22Rx_StartTimer ( XHdcp22_Rx * InstancePtr , u32 TimeOut_mSec , u8 ReasonId ) { u32 Ticks = ( u32 ) ( InstancePtr -> TimerInst . Config . SysClockFreqHz / 1000000 ) * TimeOut_mSec * 1000 ; Xil_AssertVoid ( InstancePtr != NULL ) ; Xil_AssertVoid ( InstancePtr -> IsReady == XIL_COMPONENT_IS_READY ) ; InstancePtr -> Info . TimerExpired = ( FALSE ) ; InstancePtr -> Info . TimerReasonId = ReasonId ; InstancePtr -> Info . TimerInitialTicks = Ticks ; #ifndef _XHDCP22_RX_DISABLE_TIMEOUT_CHECKING_ XTmrCtr_SetResetValue ( & InstancePtr -> TimerInst , XHDCP22_RX_TMR_CTR_1 , Ticks ) ; XTmrCtr_Start ( & InstancePtr -> TimerInst , XHDCP22_RX_TMR_CTR_1 ) ; XHdcp22Rx_LogWr ( InstancePtr , XHDCP22_RX_LOG_EVT_DEBUG , XHDCP22_RX_LOG_DEBUG_TIMER_START ) ; #endif }
This function starts the count down timer needed for checking
protocol timeouts.
This function starts the count down timer needed for checking protocol timeouts .
/* Verify arguments */ /* _XHDCP22_RX_DISABLE_TIMEOUT_CHECKING_ */