提交 4de87580 编写于 作者: B Bernard Xiong

Fix the control interface and GUI initialization

上级 5534bab8
......@@ -27,6 +27,7 @@
#include <board.h>
extern int platform_init(void);
extern int platform_post_init(void);
extern int mnt_init(void);
void rt_init_thread_entry(void *parameter)
......@@ -36,7 +37,9 @@ void rt_init_thread_entry(void *parameter)
platform_init();
mnt_init();
#if defined(PKG_USING_GUIENGINE) && defined(RTGUI_USING_DEMO)
platform_post_init();
#if defined(PKG_USING_GUIENGINE) && defined(GUIENGINE_USING_DEMO)
{
extern int rt_gui_demo_init(void);
rt_gui_demo_init();
......
......@@ -29,6 +29,11 @@ int platform_init(void)
#endif /* RT_USING_DFS */
return 0;
}
int platform_post_init(void)
{
#ifdef PKG_USING_GUIENGINE
{
extern void rt_hw_sdl_start(void);
......
......@@ -73,7 +73,7 @@ int sdlfb_info(int *format, int *bpp)
}
static rt_mutex_t sdllock;
static rt_err_t sdlfb_control(rt_device_t dev, rt_uint8_t cmd, void *args)
static rt_err_t sdlfb_control(rt_device_t dev, int cmd, void *args)
{
struct sdlfb_device *device;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册