|
@@ -1,39 +1,23 @@
|
|
|
/** File : application.c
|
|
|
-
|
|
|
* This file is part of RT-Thread RTOS
|
|
|
-
|
|
|
* COPYRIGHT (C) 2006 - 2012, RT-Thread Develop 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:
|
|
|
|
|
|
+* Change Logs:
|
|
|
* Date Author Notes
|
|
|
-
|
|
|
* 2006-09-15 QiuYi the first version
|
|
|
-
|
|
|
*/
|
|
|
-
|
|
|
-
|
|
|
|
|
|
/**
|
|
|
-
|
|
|
* @addtogroup QEMU
|
|
|
-
|
|
|
*/
|
|
|
-
|
|
|
|
|
|
/*@{*/
|
|
|
|
|
|
-
|
|
|
#include <rtthread.h>
|
|
|
|
|
|
ALIGN(RT_ALIGN_SIZE)
|
|
@@ -86,16 +70,12 @@ void rt_thread_entry_led2(void *parameter)
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
-
|
|
|
* This function will be invoked to initalize user application when system
|
|
|
* startup.
|
|
|
-
|
|
|
*/
|
|
|
|
|
|
int rt_application_init(void)
|
|
|
-
|
|
|
{
|
|
|
-
|
|
|
// init led1 thread
|
|
|
rt_thread_init(&thread_led1,
|
|
|
"led1",
|
|
@@ -115,10 +95,6 @@ int rt_application_init(void)
|
|
|
rt_thread_startup(&thread_led2);
|
|
|
|
|
|
return 0;
|
|
|
-
|
|
|
}
|
|
|
|
|
|
-
|
|
|
-
|
|
|
/*@}*/
|
|
|
-
|