add uart.setup, uart.write api