Cleaned up uart_sam.c -UNTESTED