summaryrefslogtreecommitdiff
path: root/bsp/simulator/applications/application.c
diff options
context:
space:
mode:
Diffstat (limited to 'bsp/simulator/applications/application.c')
-rwxr-xr-xbsp/simulator/applications/application.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/bsp/simulator/applications/application.c b/bsp/simulator/applications/application.c
index 4abecb872e..ea07f01c5f 100755
--- a/bsp/simulator/applications/application.c
+++ b/bsp/simulator/applications/application.c
@@ -30,6 +30,12 @@ void rt_init_thread_entry(void *parameter)
/* initialization RT-Thread Components */
rt_components_init();
+#ifdef RT_USING_RTGUI
+ /* start sdl thread to simulate an LCD. SDL may depend on DFS and should be
+ * called after rt_components_init. */
+ rt_hw_sdl_start();
+#endif /* RT_USING_RTGUI */
+
#if defined(RT_USING_COMPONENTS_INIT) && defined(__GNUC__) && defined(RT_USING_FINSH)
finsh_set_device(RT_CONSOLE_DEVICE_NAME);
#endif