/* param base USART peripheral base address. param handle USART handle pointer.  */
void USART_TransferAbortReceive(USART_Type *base, usart_handle_t *handle)
/* param base USART peripheral base address. param handle USART handle pointer.  */
void USART_TransferAbortReceive(USART_Type *base, usart_handle_t *handle)
{
    assert(NULL != handle);
    if (NULL == handle->rxRingBuffer)
    {
        USART_DisableInterrupts(base, (uint32_t)kUSART_RxLevelInterruptEnable);
        base->FIFOCFG |= USART_FIFOCFG_EMPTYRX_MASK;
    }
    handle->rxDataSize = 0U;
    handle->rxState    = (uint8_t)kUSART_RxIdle;
}