/* Read RX data register using blocking method. 
This function polls the RX register, waits for the RX register full then read data from TX register. */
static void LPSCI_ReadNonBlocking(UART0_Type *base, uint8_t *data, size_t length)
/* Read RX data register using blocking method. 
This function polls the RX register, waits for the RX register full then read data from TX register. */
static void LPSCI_ReadNonBlocking(UART0_Type *base, uint8_t *data, size_t length)
{
    assert(data);
    size_t i;
    for (i = 0; i < length; i++)
    {
        data[i] = base->D;
    }
}