XilinxProcessorIPLib/drivers/uartpsv/src/xuartpsv_hw.c
u8 XUartPsv_RecvByte(UINTPTR BaseAddress)
{
	u32 RecievedByte;
	/* Wait until there is data */
	while (!XUartPsv_IsReceiveData(BaseAddress)) {
		;
	}
	RecievedByte = XUartPsv_ReadReg(BaseAddress, XUARTPSV_UARTDR_OFFSET);
	/* Return the byte received */
	return (u8)RecievedByte;
}
/*****************************************************************************/
/**
*
* This function receives a byte from the device. It operates in polled mode
* and blocks until a byte has received.
*
* @param	BaseAddress contains the base address of the device.
*
* @return	The data byte received.
*
* @note 	None.
*
******************************************************************************/
This function receives a byte from the device. It operates in polled mode
and blocks until a byte has received.
This function receives a byte from the device . It operates in polled mode and blocks until a byte has received .
u8 XUartPsv_RecvByte(UINTPTR BaseAddress)
{
	u32 RecievedByte;
	while (!XUartPsv_IsReceiveData(BaseAddress)) {
		;
	}
	RecievedByte = XUartPsv_ReadReg(BaseAddress, XUARTPSV_UARTDR_OFFSET);
	return (u8)RecievedByte;
}
u8 XUartPsv_RecvByte ( UINTPTR BaseAddress ) { u32 RecievedByte ; while ( ! XUartPsv_IsReceiveData ( BaseAddress ) ) { ; } RecievedByte = XUartPsv_ReadReg ( BaseAddress , XUARTPSV_UARTDR_OFFSET ) ; return ( u8 ) RecievedByte ; }
This function receives a byte from the device.
This function receives a byte from the device .
/* Wait until there is data */ /* Return the byte received */