Common: Updated UART function

Updated the UART function to allow for per-project configuration.