tinyriscv/sdk/examples/uart_loopback/main.c

17 lines
238 B
C

#include <stdint.h>
#include "../../bsp/include/uart.h"
#include "../../bsp/include/xprintf.h"
int main()
{
uart0_init(uart0_putc);
while (1) {
// loopback
xprintf("%c", uart0_getc());
}
}