[fix][clock] enable dma clock when defined BSP_USING_DMA

This commit is contained in:
jzlv 2022-04-28 17:29:22 +08:00
parent 3e4b0d0d25
commit e1cd24b84c

View file

@ -463,6 +463,11 @@ void peripheral_clock_init(void)
tmpVal |= (1 << BL_AHB_SLAVE1_USB);
GLB_Set_USB_CLK(1);
#endif
#if defined(BSP_USING_DMA)
tmpVal |= (1 << BL_AHB_SLAVE1_DMA);
#endif
BL_WR_REG(GLB_BASE, GLB_CGEN_CFG1, tmpVal);
}