/* Receive a buffer of data bytes in non-blocking way.  */
static void ECSPI_ReadNonBlocking(ECSPI_Type *base, uint32_t *buffer, size_t size)
/* Receive a buffer of data bytes in non-blocking way.  */
static void ECSPI_ReadNonBlocking(ECSPI_Type *base, uint32_t *buffer, size_t size)
{
    if (NULL != buffer)
    {
        while (size--)
        {
            *buffer++ = ECSPI_ReadData(base);
        }
    }
    else
    {
        while (size--)
        {
            (void)ECSPI_ReadData(base);
        }
    }
}