2010-09-13 08:58:56 +08:00
|
|
|
/*
|
|
|
|
* File : app.c
|
|
|
|
* This file is part of RT-Thread RTOS
|
|
|
|
* COPYRIGHT (C) 2006, RT-Thread Development Team
|
|
|
|
*
|
|
|
|
* The license and distribution terms for this file may be
|
|
|
|
* found in the file LICENSE in this distribution or at
|
|
|
|
* http://openlab.rt-thread.com/license/LICENSE
|
|
|
|
*
|
|
|
|
* Change Logs:
|
|
|
|
* Date Author Notes
|
|
|
|
* 2010-08-28 Yi.Qiu the first version
|
|
|
|
*/
|
2010-09-24 15:56:37 +08:00
|
|
|
|
2010-09-13 08:58:56 +08:00
|
|
|
#include <rtthread.h>
|
|
|
|
#include <rtgui/rtgui.h>
|
|
|
|
#include <rtgui/rtgui_server.h>
|
|
|
|
#include <rtgui/rtgui_system.h>
|
|
|
|
#include <rtgui/widgets/workbench.h>
|
2010-09-24 15:56:37 +08:00
|
|
|
#include "tetris.h"
|
2010-09-13 08:58:56 +08:00
|
|
|
|
|
|
|
int rt_application_init()
|
|
|
|
{
|
|
|
|
rt_thread_t tid;
|
|
|
|
|
|
|
|
tid = rt_thread_create("wb", tetris_ui_entry, RT_NULL, 2048, 20, 5);
|
|
|
|
if (tid != RT_NULL) rt_thread_startup(tid);
|
|
|
|
return 0;
|
|
|
|
}
|
2010-09-24 15:56:37 +08:00
|
|
|
|