tinyriscv/sdk/examples/uart_loopback/main.c

17 lines
226 B
C
Raw Normal View History

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