tinyriscv/sdk/examples/uart_rx/main.c

17 lines
206 B
C

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