/* param base CSI peripheral base address. param fifo The FIFO DMA to reflash.  */
void CSI_ReflashFifoDma(CSI_Type *base, csi_fifo_t fifo)
/* param base CSI peripheral base address. param fifo The FIFO DMA to reflash.  */
void CSI_ReflashFifoDma(CSI_Type *base, csi_fifo_t fifo)
{
    uint32_t cr3 = 0U;
    if (0U != ((uint32_t)fifo & (uint32_t)kCSI_RxFifo))
    {
        cr3 |= CSI_CSICR3_DMA_REFLASH_RFF_MASK;
    }
    if (0U != ((uint32_t)fifo & (uint32_t)kCSI_StatFifo))
    {
        cr3 |= CSI_CSICR3_DMA_REFLASH_SFF_MASK;
    }
    base->CSICR3 |= cr3;
    while (0U != (base->CSICR3 & cr3))
    {
    }
}