Hi:
I tested that uart0 can't be used.
I want to use uart_tx( uart, tx, 10, 0); to print "1234567890".
But UART0 is not output.Shown below:

#include <stdio.h>
#include <zephyr.h>
#include <sys/printk.h>
#include <drivers/uart.h>
static uint8_t uart_buf[1024];
struct device *uart;
void uart_cb(struct device *x)
{
uart_irq_update(x);
int data_length = 0;
if (uart_irq_rx_ready(x)) {
data_length = uart_fifo_read(x, uart_buf, sizeof(uart_buf));
uart_buf[data_length] = 0;
}
printk("%s", uart_buf);
}
void uart_init(void)
{
uart = device_get_binding("UART_0");
uart_irq_callback_set(uart, uart_cb);
uart_irq_rx_enable(uart);
}
void uart_example(void)
{
uint8_t tx[]="1234567890";
printk("UART loopback start!\n");
uart_tx( uart, tx, 10, 0);
}
void main(void)
{
uart_init();
uart_example();
while (1) {
}
}

