add printf function to uart,the code come from 韦东山