XilinxProcessorIPLib/drivers/dp12rxss/examples/src/zcu_rx/xdprxss_zcu102_rxonly.c
void CustomWaitUs(void *InstancePtr, u32 MicroSeconds)
{

    u32 TimerVal;
    XDp *DpInstance = (XDp *)InstancePtr;
    u32 NumTicks = (MicroSeconds * (DpInstance->Config.SAxiClkHz /
            1000000));

    XTmrCtr_Reset(DpInstance->UserTimerPtr, 0);
    XTmrCtr_Start(DpInstance->UserTimerPtr, 0);

    /* Wait specified number of useconds. */
    do {
        TimerVal = XTmrCtr_GetValue(DpInstance->UserTimerPtr, 0);
    } while (TimerVal < NumTicks);
}
/*****************************************************************************/
/**
*
* This function is called when DisplayPort Subsystem core requires delay
* or sleep. It provides timer with predefined amount of loop iterations.
*
* @param    InstancePtr is a pointer to the XDp instance.
*
* @return    None.
*
*
******************************************************************************/
This function is called when DisplayPort Subsystem core requires delay
or sleep. It provides timer with predefined amount of loop iterations.
This function is called when DisplayPort Subsystem core requires delay or sleep . It provides timer with predefined amount of loop iterations .
void CustomWaitUs(void *InstancePtr, u32 MicroSeconds)
{
    u32 TimerVal;
    XDp *DpInstance = (XDp *)InstancePtr;
    u32 NumTicks = (MicroSeconds * (DpInstance->Config.SAxiClkHz /
            1000000));
    XTmrCtr_Reset(DpInstance->UserTimerPtr, 0);
    XTmrCtr_Start(DpInstance->UserTimerPtr, 0);
    do {
        TimerVal = XTmrCtr_GetValue(DpInstance->UserTimerPtr, 0);
    } while (TimerVal < NumTicks);
}
void CustomWaitUs ( void * InstancePtr , u32 MicroSeconds ) { u32 TimerVal ; XDp * DpInstance = ( XDp * ) InstancePtr ; u32 NumTicks = ( MicroSeconds * ( DpInstance -> Config . SAxiClkHz / 1000000 ) ) ; XTmrCtr_Reset ( DpInstance -> UserTimerPtr , 0 ) ; XTmrCtr_Start ( DpInstance -> UserTimerPtr , 0 ) ; do { TimerVal = XTmrCtr_GetValue ( DpInstance -> UserTimerPtr , 0 ) ; } while ( TimerVal < NumTicks ) ; }
This function is called when DisplayPort Subsystem core requires delay
or sleep.
This function is called when DisplayPort Subsystem core requires delay or sleep .
/* Wait specified number of useconds. */