summaryrefslogtreecommitdiff
path: root/components/thread/module_thread_dynamic.c
diff options
context:
space:
mode:
Diffstat (limited to 'components/thread/module_thread_dynamic.c')
-rw-r--r--components/thread/module_thread_dynamic.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/components/thread/module_thread_dynamic.c b/components/thread/module_thread_dynamic.c
index 7a5d3238ce..d4ac0f6716 100644
--- a/components/thread/module_thread_dynamic.c
+++ b/components/thread/module_thread_dynamic.c
@@ -1,5 +1,9 @@
#include <rtthread.h>
+#define THREAD_PRIORITY 25
+#define THREAD_STACK_SIZE 512
+#define THREAD_TIMESLICE 5
+
static void thread_entry(void* parameter)
{
rt_kprintf("thread dynamicly created ok\n");
@@ -16,8 +20,6 @@ int rtm_main()
THREAD_STACK_SIZE, THREAD_PRIORITY, THREAD_TIMESLICE);
if (tid != RT_NULL)
rt_thread_startup(tid);
- else
- tc_stat(TC_STAT_END | TC_STAT_FAILED);
return 0;
} \ No newline at end of file