XilinxProcessorIPLib/drivers/uartns550/examples/xuartns550_hello_world_example.c
int UartNs550HelloWorldExample(u16 DeviceId)
{
	u8 HelloWorld[] = "Hello World";
	int SentCount = 0;
	int Status;

	/*
	 * Initialize the UartNs550 device so that it is ready to use
	 */
	Status = XUartNs550_Initialize(&UartNs550, DeviceId);
	if (Status != XST_SUCCESS) {
		return XST_FAILURE;
	}

	while (SentCount < sizeof(HelloWorld)) {
		/*
		 * Transmit the data
		 */
		SentCount += XUartNs550_Send(&UartNs550,
				&HelloWorld[SentCount], 1);
	}

	return SentCount;
}
/******************************************************************************/
/**
*
* This function sends Hello World with the UART 16450/550 device and driver as
* a design example. The purpose of this function is to illustrate how to use
* the XUartNs550 driver.
*
* This function polls the UART and does not require the use of interrupts.
*
* @param	DeviceId is the XPAR_<UARTNS550_instance>_DEVICE_ID value from
*		xparameters.h
*
* @return
*		- XST_FAILURE if the UART driver could not be initialized
*		successfully.
*		- A non-negative number indicating the number of characters
*		sent.
*
* @note		None.
*
****************************************************************************/
This function sends Hello World with the UART 16450/550 device and driver as
a design example. The purpose of this function is to illustrate how to use
the XUartNs550 driver.

This function polls the UART and does not require the use of interrupts.
This function sends Hello World with the UART 16450 / 550 device and driver as a design example . The purpose of this function is to illustrate how to use the XUartNs550 driver . This function polls the UART and does not require the use of interrupts .
int UartNs550HelloWorldExample(u16 DeviceId)
{
	u8 HelloWorld[] = "Hello World";
	int SentCount = 0;
	int Status;
	Status = XUartNs550_Initialize(&UartNs550, DeviceId);
	if (Status != XST_SUCCESS) {
		return XST_FAILURE;
	}
	while (SentCount < sizeof(HelloWorld)) {
		SentCount += XUartNs550_Send(&UartNs550,
				&HelloWorld[SentCount], 1);
	}
	return SentCount;
}
int UartNs550HelloWorldExample ( u16 DeviceId ) { u8 HelloWorld [ ] = " " ; int SentCount = 0 ; int Status ; Status = XUartNs550_Initialize ( & UartNs550 , DeviceId ) ; if ( Status != XST_SUCCESS ) { return XST_FAILURE ; } while ( SentCount < sizeof ( HelloWorld ) ) { SentCount += XUartNs550_Send ( & UartNs550 , & HelloWorld [ SentCount ] , 1 ) ; } return SentCount ; }
This function sends Hello World with the UART 16450/550 device and driver as
a design example.
This function sends Hello World with the UART 16450 / 550 device and driver as a design example .
/*
	 * Initialize the UartNs550 device so that it is ready to use
	 */ /*
		 * Transmit the data
		 */