added templete code for UART. ref #10.