add uart read/write sample code.