rt-thread/bsp/simulator/ui/realtouch_ui.c

34 lines
772 B
C

#include <rtthread.h>
#include <rtgui/rtgui_server.h>
#include <rtgui/rtgui_system.h>
#include <rtgui/rtgui_app.h>
#include "appmgr.h"
#include "statusbar.h"
void realtouch_ui_init(void)
{
rt_device_t device;
struct rt_device_rect_info info;
#ifndef _WIN32
device = rt_device_find("lcd");
{
info.width = 800;
info.height = 480;
/* set graphic resolution */
rt_device_control(device, RTGRAPHIC_CTRL_SET_MODE, &info);
}
if (device != RT_NULL)
/* re-set graphic device */
rtgui_graphic_set_device(device);
#endif
app_mgr_init();
rt_thread_delay(10);
#ifndef _WIN32
calibration_init();
#endif
}