/* This function is to write data into transmit FIFO to send data out.  */
void SCUART_Write(SC_T *sc, uint8_t pu8TxBuf[], uint32_t u32WriteBytes)
/* This function is to write data into transmit FIFO to send data out.  */
void SCUART_Write(SC_T *sc, uint8_t pu8TxBuf[], uint32_t u32WriteBytes)
{
    uint32_t u32Count;
    for (u32Count = 0UL; u32Count != u32WriteBytes; u32Count++)
    {
        while (SCUART_GET_TX_FULL(sc))
        {
            ;
        }
        sc->DAT = pu8TxBuf[u32Count];
    }
}