uodate uart code with new defines