You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
549 B
29 lines
549 B
/*
|
|
* Copyright (c) 2018, Synopsys, Inc.
|
|
*
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*/
|
|
|
|
#include <rtthread.h>
|
|
|
|
/* thread phase init */
|
|
static void rt_init_thread_entry(void *parameter)
|
|
{
|
|
/* do component initialization */
|
|
rt_components_init();
|
|
|
|
/* add your initialization here */
|
|
}
|
|
|
|
int rt_application_init()
|
|
{
|
|
rt_thread_t tid;
|
|
|
|
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;
|
|
}
|
|
|
|
|