mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2026-09-22 03:09:16 +08:00
update GUI examples.
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@344 bbd45198-f89e-11dd-88c7-29a3b14d5316
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
#include <rtgui/rtgui.h>
|
||||
#include <rtgui/rtgui_server.h>
|
||||
|
||||
extern void rt_hw_lcd_init(void);
|
||||
extern void rt_hw_key_init(void);
|
||||
extern void workbench_init(void);
|
||||
extern void panel_init(void);
|
||||
|
||||
/* GUI相关演示入口,需放在线程中进行初始化 */
|
||||
void rtgui_startup()
|
||||
{
|
||||
/* GUI系统初始化 */
|
||||
rtgui_system_server_init();
|
||||
|
||||
/* 按键初始化 */
|
||||
rt_hw_key_init();
|
||||
/* LCD驱动初始化 */
|
||||
rt_hw_lcd_init();
|
||||
|
||||
/* 各个面板初始化 */
|
||||
panel_init();
|
||||
|
||||
/* 启动workbench */
|
||||
workbench_init();
|
||||
}
|
||||
Reference in New Issue
Block a user