XilinxProcessorIPLib/drivers/v_hdmirxss/src/xv_hdmirxss.c
static void XV_HdmiRxSs_WaitUs(XV_HdmiRxSs *InstancePtr, u32 MicroSeconds)
{
    /* Verify arguments. */
    Xil_AssertVoid(InstancePtr != NULL);
    Xil_AssertVoid(InstancePtr->IsReady == XIL_COMPONENT_IS_READY);

    if (MicroSeconds == 0) {
        return;
    }

    if (InstancePtr->UserTimerWaitUs != NULL) {
        /* Use the timer handler specified by the user for better
         * accuracy. */
        InstancePtr->UserTimerWaitUs(InstancePtr, MicroSeconds);
    }
    else {
        usleep(MicroSeconds);
    }
}
/******************************************************************************/
/**
 * This function is the delay/sleep function for the XV_HdmiRxSs driver. For the
 * Zynq family, there exists native sleep functionality. For MicroBlaze however,
 * there does not exist such functionality. In the MicroBlaze case, the default
 * method for delaying is to use a predetermined amount of loop iterations. This
 * method is prone to inaccuracy and dependent on system configuration; for
 * greater accuracy, the user may supply their own delay/sleep handler, pointed
 * to by InstancePtr->UserTimerWaitUs, which may have better accuracy if a
 * hardware timer is used.
 *
 * @param   InstancePtr is a pointer to the HdmiSsRx instance.
 * @param   MicroSeconds is the number of microseconds to delay/sleep for.
 *
 * @return  None.
 *
 * @note    None.
 *
*******************************************************************************/
This function is the delay/sleep function for the XV_HdmiRxSs driver. For the
Zynq family, there exists native sleep functionality. For MicroBlaze however,
there does not exist such functionality. In the MicroBlaze case, the default
method for delaying is to use a predetermined amount of loop iterations. This
method is prone to inaccuracy and dependent on system configuration; for
greater accuracy, the user may supply their own delay/sleep handler, pointed
to by InstancePtr->UserTimerWaitUs, which may have better accuracy if a
hardware timer is used.

@param   InstancePtr is a pointer to the HdmiSsRx instance.
@param   MicroSeconds is the number of microseconds to delay/sleep for.

@return  None.

@note    None.
This function is the delay / sleep function for the XV_HdmiRxSs driver . For the Zynq family there exists native sleep functionality . For MicroBlaze however there does not exist such functionality . In the MicroBlaze case the default method for delaying is to use a predetermined amount of loop iterations . This method is prone to inaccuracy and dependent on system configuration ; for greater accuracy the user may supply their own delay / sleep handler pointed to by InstancePtr - > UserTimerWaitUs which may have better accuracy if a hardware timer is used . @param InstancePtr is a pointer to the HdmiSsRx instance . @param MicroSeconds is the number of microseconds to delay / sleep for . @return None . @note None .
static void XV_HdmiRxSs_WaitUs(XV_HdmiRxSs *InstancePtr, u32 MicroSeconds)
{
    Xil_AssertVoid(InstancePtr != NULL);
    Xil_AssertVoid(InstancePtr->IsReady == XIL_COMPONENT_IS_READY);
    if (MicroSeconds == 0) {
        return;
    }
    if (InstancePtr->UserTimerWaitUs != NULL) {
        InstancePtr->UserTimerWaitUs(InstancePtr, MicroSeconds);
    }
    else {
        usleep(MicroSeconds);
    }
}
static void XV_HdmiRxSs_WaitUs ( XV_HdmiRxSs * InstancePtr , u32 MicroSeconds ) { Xil_AssertVoid ( InstancePtr != NULL ) ; Xil_AssertVoid ( InstancePtr -> IsReady == XIL_COMPONENT_IS_READY ) ; if ( MicroSeconds == 0 ) { return ; } if ( InstancePtr -> UserTimerWaitUs != NULL ) { InstancePtr -> UserTimerWaitUs ( InstancePtr , MicroSeconds ) ; } else { usleep ( MicroSeconds ) ; } }
This function is the delay/sleep function for the XV_HdmiRxSs driver.
This function is the delay / sleep function for the XV_HdmiRxSs driver .
/* Verify arguments. */ /* Use the timer handler specified by the user for better
         * accuracy. */