/* Initialize DMA config structure. Fill each pstcDmaInit with default value.  */
int32_t DMA_StructInit(stc_dma_init_t *pstcDmaInit)
/* Initialize DMA config structure. Fill each pstcDmaInit with default value.  */
int32_t DMA_StructInit(stc_dma_init_t *pstcDmaInit)
{
    int32_t i32Ret = LL_OK;
    if (NULL == pstcDmaInit) {
        i32Ret = LL_ERR_INVD_PARAM;
    } else {
        pstcDmaInit->u32IntEn       = DMA_INT_DISABLE;
        pstcDmaInit->u32SrcAddr     = 0x00UL;
        pstcDmaInit->u32DestAddr    = 0x00UL;
        pstcDmaInit->u32DataWidth   = DMA_DATAWIDTH_8BIT;
        pstcDmaInit->u32BlockSize   = 0x01UL;
        pstcDmaInit->u32TransCount  = 0x00UL;
        pstcDmaInit->u32SrcAddrInc  = DMA_SRC_ADDR_FIX;
        pstcDmaInit->u32DestAddrInc = DMA_DEST_ADDR_FIX;
    }
    return i32Ret;
}