summaryrefslogtreecommitdiff
path: root/ucoo/hal/frame_buffer/ltdc.stm32f4.cc
diff options
context:
space:
mode:
Diffstat (limited to 'ucoo/hal/frame_buffer/ltdc.stm32f4.cc')
-rw-r--r--ucoo/hal/frame_buffer/ltdc.stm32f4.cc7
1 files changed, 7 insertions, 0 deletions
diff --git a/ucoo/hal/frame_buffer/ltdc.stm32f4.cc b/ucoo/hal/frame_buffer/ltdc.stm32f4.cc
index a1e4f47..f80083c 100644
--- a/ucoo/hal/frame_buffer/ltdc.stm32f4.cc
+++ b/ucoo/hal/frame_buffer/ltdc.stm32f4.cc
@@ -83,4 +83,11 @@ Ltdc::layer_setup (int layer, const Surface &surface, int x, int y)
reg::LTDC->SRCR = LTDC_SRCR_VBR;
}
+void
+Ltdc::wait_reload ()
+{
+ while (reg::LTDC->SRCR & LTDC_SRCR_VBR)
+ ;
+}
+
} // namespace ucoo