/* Sets the UART hardware flow control mode to be used. */
void UARTFlowControlSet(uint32_t ui32Base, uint32_t ui32Mode)
/* Sets the UART hardware flow control mode to be used. */
void UARTFlowControlSet(uint32_t ui32Base, uint32_t ui32Mode)
{
    ASSERT(_UARTBaseValid(ui32Base));
    ASSERT((ui32Mode & ~(UART_FLOWCONTROL_TX | UART_FLOWCONTROL_RX)) == 0);
    HWREG(ui32Base + UART_O_CTL) = ((HWREG(ui32Base + UART_O_CTL) &
                                     ~(UART_FLOWCONTROL_TX |
                                       UART_FLOWCONTROL_RX)) | ui32Mode);
}