/* Transmit a character via the UART. 
This blocking function will transmit a single character via the UART. */
enum status_code uart_write_wait(struct uart_module *const module, const uint8_t tx_data)
/* Transmit a character via the UART. 
This blocking function will transmit a single character via the UART. */
enum status_code uart_write_wait(struct uart_module *const module, const uint8_t tx_data)
{
	while (!(module->hw->TRANSMIT_STATUS.reg & UART_TRANSMIT_STATUS_TX_FIFO_NOT_FULL));
	module->hw->TRANSMIT_DATA.reg = tx_data;
	return STATUS_OK;
}