/* Write to TX register using non-blocking method. 
This function writes data to the TX register directly, upper layer must make sure the TX register is empty before calling this function. */
static void LPSCI_WriteNonBlocking(UART0_Type *base, const uint8_t *data, size_t length)
/* Write to TX register using non-blocking method. 
This function writes data to the TX register directly, upper layer must make sure the TX register is empty before calling this function. */
static void LPSCI_WriteNonBlocking(UART0_Type *base, const uint8_t *data, size_t length)
{
    assert(data);
    size_t i;
    for (i = 0; i < length; i++)
    {
        base->D = data[i];
    }
}