a rough usart echo example with ringbuff