Fix the control interface and GUI initialization
This commit is contained in:
parent
5534bab89e
commit
4de8758018
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue