summaryrefslogtreecommitdiff
path: root/ucoo/hal/frame_buffer/dsi.stm32f4.cc
diff options
context:
space:
mode:
Diffstat (limited to 'ucoo/hal/frame_buffer/dsi.stm32f4.cc')
-rw-r--r--ucoo/hal/frame_buffer/dsi.stm32f4.cc7
1 files changed, 5 insertions, 2 deletions
diff --git a/ucoo/hal/frame_buffer/dsi.stm32f4.cc b/ucoo/hal/frame_buffer/dsi.stm32f4.cc
index 8e13982..e344c81 100644
--- a/ucoo/hal/frame_buffer/dsi.stm32f4.cc
+++ b/ucoo/hal/frame_buffer/dsi.stm32f4.cc
@@ -180,10 +180,13 @@ Dsi::layer_setup (int layer, const Surface &surface, int x, int y)
}
void
-Dsi::refresh ()
+Dsi::refresh (bool wait_hsync)
{
refreshing_ = true;
- ucoo::Dsi::write_command ({ DCS_SET_TEAR_ON, 0x00 });
+ if (wait_hsync)
+ ucoo::Dsi::write_command ({ DCS_SET_TEAR_ON, 0x00 });
+ else
+ ucoo::reg::DSI->WCR |= DSI_WCR_LTDCEN;
while (refreshing_)
ucoo::barrier ();
}