lib/sw_apps/imgsel/src/xis_uart.c
int XIs_UartConfiguration(void)
{
	int Status = XST_FAILURE;
	XUartPs_Config *Config;

	/*
	 * Initialize the UART driver so that it's ready to use
	 * Look up the configuration in the config table and then initialize it.
	 */
	Config = XUartPs_LookupConfig(XIS_UART_INDEX);
	if (NULL == Config) {
		Status = XIS_UART_CONFIG_ERROR;
		goto END;
	}

	Status = XUartPs_CfgInitialize(&Uart_Ps, Config, Config->BaseAddress);
	if (Status != XST_SUCCESS) {
		Status = XIS_UART_CONFIG_INIT_ERROR;
		goto END;
	}

	XUartPs_SetBaudRate(&Uart_Ps, 115200U);

END:
	return Status;
}
/************************** Function Definitions *****************************/
/*****************************************************************************/
/**
 * This function perform the initial configuration for the UART Device.
 *
 * @param	None.
 *
 * @return	XST_SUCCESS if pass, otherwise XST_FAILURE.
 *
 ****************************************************************************/
Function Definitions
This function perform the initial configuration for the UART Device.

@param       None.


Function Definitions This function perform the initial configuration for the UART Device . @param None .
int XIs_UartConfiguration(void)
{
	int Status = XST_FAILURE;
	XUartPs_Config *Config;
	Config = XUartPs_LookupConfig(XIS_UART_INDEX);
	if (NULL == Config) {
		Status = XIS_UART_CONFIG_ERROR;
		goto END;
	}
	Status = XUartPs_CfgInitialize(&Uart_Ps, Config, Config->BaseAddress);
	if (Status != XST_SUCCESS) {
		Status = XIS_UART_CONFIG_INIT_ERROR;
		goto END;
	}
	XUartPs_SetBaudRate(&Uart_Ps, 115200U);
END:
	return Status;
}
int XIs_UartConfiguration ( void ) { int Status = XST_FAILURE ; XUartPs_Config * Config ; Config = XUartPs_LookupConfig ( XIS_UART_INDEX ) ; if ( NULL == Config ) { Status = XIS_UART_CONFIG_ERROR ; goto END ; } Status = XUartPs_CfgInitialize ( & Uart_Ps , Config , Config -> BaseAddress ) ; if ( Status != XST_SUCCESS ) { Status = XIS_UART_CONFIG_INIT_ERROR ; goto END ; } XUartPs_SetBaudRate ( & Uart_Ps , 115200U ) ; END : return Status ; }
Function Definitions
 This function perform the initial configuration for the UART Device.
Function Definitions This function perform the initial configuration for the UART Device .
/*
	 * Initialize the UART driver so that it's ready to use
	 * Look up the configuration in the config table and then initialize it.
	 */