changed xor swap with normal swap
added uart constants/stubs