ltdc: wait auf LTDC_CDSR_VSYNCS raising edge after register reload command

This commit is contained in:
Raphael Coeffic
2021-05-23 19:08:48 +02:00
parent bfe960bee7
commit 20f5f3c4d1
+1
View File
@@ -621,6 +621,7 @@ static void lcdSwitchLayers()
// wait for reload
// TODO: replace through some smarter mechanism without busy wait
while ((LTDC->CDSR & LTDC_CDSR_VSYNCS) == 0);
while ((LTDC->CDSR & LTDC_CDSR_VSYNCS) == 1);
}
void lcdRefresh()