examples/uart: further work on uart.c