sample code in embedded systems for UARTs (Universal Asynchronous Receiver Transmitter) Serial Interface lecture