stm32: fix wait upon vertical blank. This should never have occurred before.

Signed-off-by: Marco Krahl <ocram.lhark@gmail.com>
This commit is contained in:
Gregory Nutt 2014-12-29 09:48:25 -06:00
parent c149b1625c
commit 3e6307d8ec

View File

@ -1102,7 +1102,7 @@ static void stm32_ltdc_reload(uint8_t value)
if (value & LTDC_SRCR_WAIT)
{
while ((getreg32(STM32_LTDC_SRCR) & (value & ~LTDC_SRCR_WAIT)) == value)
while ((getreg32(STM32_LTDC_SRCR) & (value & ~LTDC_SRCR_WAIT)) != 0)
{
}
}