Implement a custom UART library with routing