rm48x50: add vRegTestTask2
This commit is contained in:
parent
2805d315bd
commit
56b640ecb6
|
@ -43,6 +43,10 @@ static rt_uint8_t test_thread_stack[512];
|
||||||
static struct rt_thread test_thread;
|
static struct rt_thread test_thread;
|
||||||
void vRegTestTask1(void*);
|
void vRegTestTask1(void*);
|
||||||
|
|
||||||
|
static rt_uint8_t test_thread_stack2[512];
|
||||||
|
static struct rt_thread test_thread2;
|
||||||
|
void vRegTestTask2(void*);
|
||||||
|
|
||||||
int rt_application_init()
|
int rt_application_init()
|
||||||
{
|
{
|
||||||
rt_thread_init(&user_thread, "user1", user_thread_entry, RT_NULL,
|
rt_thread_init(&user_thread, "user1", user_thread_entry, RT_NULL,
|
||||||
|
@ -53,6 +57,10 @@ int rt_application_init()
|
||||||
test_thread_stack, sizeof(test_thread_stack), 8, 20);
|
test_thread_stack, sizeof(test_thread_stack), 8, 20);
|
||||||
rt_thread_startup(&test_thread);
|
rt_thread_startup(&test_thread);
|
||||||
|
|
||||||
|
rt_thread_init(&test_thread2, "test2", vRegTestTask2, RT_NULL,
|
||||||
|
test_thread_stack2, sizeof(test_thread_stack2), 9, 20);
|
||||||
|
rt_thread_startup(&test_thread2);
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue