/* Receive a character via the UART. 
This blocking function will receive a character via the UART. */
enum status_code uart_read_wait(struct uart_module *const module, uint8_t *const rx_data)
/* Receive a character via the UART. 
This blocking function will receive a character via the UART. */
enum status_code uart_read_wait(struct uart_module *const module, uint8_t *const rx_data)
{
	while (!(module->hw->RECEIVE_STATUS.reg & UART_RECEIVE_STATUS_RX_FIFO_NOT_EMPTY));
	*rx_data = module->hw->RECEIVE_DATA.reg;
	return STATUS_OK;
}