Adding configurability to UART HAL