mirror of
https://github.com/Fishwaldo/bl_mcu_sdk.git
synced 2025-07-05 12:28:45 +00:00
[fix][clock] enable dma clock when defined BSP_USING_DMA
This commit is contained in:
parent
3e4b0d0d25
commit
e1cd24b84c
1 changed files with 5 additions and 0 deletions
|
@ -463,6 +463,11 @@ void peripheral_clock_init(void)
|
||||||
tmpVal |= (1 << BL_AHB_SLAVE1_USB);
|
tmpVal |= (1 << BL_AHB_SLAVE1_USB);
|
||||||
GLB_Set_USB_CLK(1);
|
GLB_Set_USB_CLK(1);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if defined(BSP_USING_DMA)
|
||||||
|
tmpVal |= (1 << BL_AHB_SLAVE1_DMA);
|
||||||
|
#endif
|
||||||
|
|
||||||
BL_WR_REG(GLB_BASE, GLB_CGEN_CFG1, tmpVal);
|
BL_WR_REG(GLB_BASE, GLB_CGEN_CFG1, tmpVal);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue