/* Start receiving data from UART receiver.transmits the default value as specified by csi_usart_set_default_tx_value.  */
int32_t csi_usart_receive(usart_handle_t handle, void *data, uint32_t num)
/* Start receiving data from UART receiver.transmits the default value as specified by csi_usart_set_default_tx_value.  */
int32_t csi_usart_receive(usart_handle_t handle, void *data, uint32_t num)
{
    USART_NULL_PARAM_CHK(handle);
    USART_NULL_PARAM_CHK(data);
    uint8_t *dest = NULL;
    dw_usart_priv_t *usart_priv = handle;
    dest = (uint8_t *)data;
    usart_priv->rx_buf = (uint8_t *)data;
    usart_priv->rx_total_num = num;
    usart_priv->rx_cnt = 0;
    usart_priv->rx_busy = 1;
    return 0;
}