mirror of
https://github.com/lvgl/lvgl.git
synced 2025-01-28 07:03:00 +08:00
stm32: use DSB to ensure GPU clock gets enabled
This commit is contained in:
parent
4ca5d4e86d
commit
3d4284b02c
@ -69,7 +69,10 @@ void lv_gpu_stm32_dma2d_init(void)
|
|||||||
RCC->AHB3ENR |= RCC_AHB3ENR_DMA2DEN;
|
RCC->AHB3ENR |= RCC_AHB3ENR_DMA2DEN;
|
||||||
#else
|
#else
|
||||||
# warning "LVGL can't enable the clock of DMA2D"
|
# warning "LVGL can't enable the clock of DMA2D"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/* Wait for hardware access to complete */
|
||||||
|
__asm volatile("DSB\n");
|
||||||
|
|
||||||
/* Delay after setting peripheral clock */
|
/* Delay after setting peripheral clock */
|
||||||
volatile uint32_t temp = RCC->AHB1ENR;
|
volatile uint32_t temp = RCC->AHB1ENR;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user