XilinxProcessorIPLib/drivers/dppsu/examples/xdppsu_poll_example.c
u32 DpPsu_PollExample(XDpPsu *InstancePtr, u16 DeviceId)
{
	u32 Status;

	/* Do platform initialization here. This is hardware system specific -
	 * it is up to the user to implement this function. */
	DpPsu_PlatformInit();
	/******************/

	Status = DpPsu_SetupExample(InstancePtr, DeviceId);
	if (Status != XST_SUCCESS) {
		return XST_FAILURE;
	}

	/* Continuously poll for HPD events. */
	while (1) {
		DpPsu_HpdPoll(InstancePtr);
	}

	return XST_SUCCESS;
}
/******************************************************************************/
/**
 * The main entry point for the polling example using the XDpPsu driver. This
 * function will set up the system. If this is successful, this example will
 * begin polling the Hot-Plug-Detect (HPD) status registers for HPD events. Once
 * a connection event or a pulse is detected, link training will commence (if
 * needed) and a video stream will start being sent over the main link.
 *
 * @param	InstancePtr is a pointer to the XDpPsu instance.
 * @param	DeviceId is the unique device ID of the DisplayPort TX core
 *		instance.
 *
 * @return
 *		- XST_FAILURE if the system setup failed.
 *		- XST_SUCCESS should never return since this function, if setup
 *		  was successful, is blocking.
 *
 * @note	If system setup was successful, this function is blocking in
 *		order to illustrate polling taking place for HPD events.
 *
*******************************************************************************/
The main entry point for the polling example using the XDpPsu driver. This
function will set up the system. If this is successful, this example will
begin polling the Hot-Plug-Detect (HPD) status registers for HPD events. Once
a connection event or a pulse is detected, link training will commence (if
needed) and a video stream will start being sent over the main link.

@param       InstancePtr is a pointer to the XDpPsu instance.
@param       DeviceId is the unique device ID of the DisplayPort TX core
instance.

@return
- XST_FAILURE if the system setup failed.
- XST_SUCCESS should never return since this function, if setup
was successful, is blocking.

@note        If system setup was successful, this function is blocking in
order to illustrate polling taking place for HPD events.
The main entry point for the polling example using the XDpPsu driver . This function will set up the system . If this is successful this example will begin polling the Hot - Plug - Detect ( HPD ) status registers for HPD events . Once a connection event or a pulse is detected link training will commence ( if needed ) and a video stream will start being sent over the main link . @param InstancePtr is a pointer to the XDpPsu instance . @param DeviceId is the unique device ID of the DisplayPort TX core instance . @return - XST_FAILURE if the system setup failed . - XST_SUCCESS should never return since this function if setup was successful is blocking . @note If system setup was successful this function is blocking in order to illustrate polling taking place for HPD events .
u32 DpPsu_PollExample(XDpPsu *InstancePtr, u16 DeviceId)
{
	u32 Status;
	DpPsu_PlatformInit();
	Status = DpPsu_SetupExample(InstancePtr, DeviceId);
	if (Status != XST_SUCCESS) {
		return XST_FAILURE;
	}
	while (1) {
		DpPsu_HpdPoll(InstancePtr);
	}
	return XST_SUCCESS;
}
u32 DpPsu_PollExample ( XDpPsu * InstancePtr , u16 DeviceId ) { u32 Status ; DpPsu_PlatformInit ( ) ; Status = DpPsu_SetupExample ( InstancePtr , DeviceId ) ; if ( Status != XST_SUCCESS ) { return XST_FAILURE ; } while ( 1 ) { DpPsu_HpdPoll ( InstancePtr ) ; } return XST_SUCCESS ; }
The main entry point for the polling example using the XDpPsu driver.
The main entry point for the polling example using the XDpPsu driver .
/* Do platform initialization here. This is hardware system specific -
	 * it is up to the user to implement this function. */ /******************/ /* Continuously poll for HPD events. */