Update and rename application.c to main.c

This commit is contained in:
Bernard Xiong 2015-09-26 11:37:11 +08:00
parent 741346e31a
commit 3164e33de1
1 changed files with 3 additions and 14 deletions

View File

@ -1,5 +1,5 @@
/* /*
* File : application.c * File : main.c
* This file is part of RT-Thread RTOS * This file is part of RT-Thread RTOS
* COPYRIGHT (C) 2015, RT-Thread Development Team * COPYRIGHT (C) 2015, RT-Thread Development Team
* *
@ -25,20 +25,9 @@
#include <rtthread.h> #include <rtthread.h>
void rt_init_thread_entry(void *parameter)
{
//rt_components_init();
}
//int rt_application_init()
int main(void) int main(void)
{ {
rt_thread_t tid; /* put user application code here */
tid = rt_thread_create("init",
rt_init_thread_entry, RT_NULL,
2048, RT_THREAD_PRIORITY_MAX / 3, 20);
if (tid != RT_NULL) rt_thread_startup(tid);
return 0; return 0;
} }