Cleaning up the SW UART code a bit, making it a bit more readable/portable.
Authored by: m0slevin 2015-09-21
Parent: [r244]
Child: [r246]