Refactored uart_rx to macro (optimization)