rt-thread-official/bsp/qemu-vexpress-a9/applications/lcd_init.c

20 lines
319 B
C
Raw Normal View History

2017-10-21 23:26:30 +08:00
#include <rtthread.h>
2018-03-03 16:34:01 +08:00
#if defined(RT_USING_RTGUI) || defined(PKG_USING_GUIENGINE)
2017-10-21 23:26:30 +08:00
#include <rtgui/driver.h>
int lcd_init(void)
{
struct rt_device *device;
device = rt_device_find("lcd");
if (device)
{
rtgui_graphic_set_device(device);
}
return 0;
}
INIT_APP_EXPORT(lcd_init);
#endif