/* Output a character in polled mode. 
If the hardware flow control is enabled then the handshake signal CTS has to be asserted in order to send a character. */
static void uart_xlnx_ps_poll_out(const struct device *dev, unsigned char c)
/* Output a character in polled mode. 
If the hardware flow control is enabled then the handshake signal CTS has to be asserted in order to send a character. */
static void uart_xlnx_ps_poll_out(const struct device *dev, unsigned char c)
{
	uintptr_t reg_base = DEVICE_MMIO_GET(dev);
	uint32_t reg_val;
	do {
		reg_val = sys_read32(reg_base + XUARTPS_SR_OFFSET);
	} while ((reg_val & XUARTPS_SR_TXEMPTY) == 0);
	sys_write32((uint32_t)(c & 0xFF), reg_base + XUARTPS_FIFO_OFFSET);
	do {
		reg_val = sys_read32(reg_base + XUARTPS_SR_OFFSET);
	} while ((reg_val & XUARTPS_SR_TXEMPTY) == 0);
}