Intergrate the pmp to main routine

Some modify in pmp
Add read function in uart module