mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2025-01-15 07:39:33 +08:00
fe24ae7ca4
* the initial support of synopsys designware ARC processor using embARC_BSP, all synopsys ARC-based boards are supported: -ARC Software Development Platform -ARC EM Starter Kit -ARC EM Software Development Platform -ARC HS Development Kit -ARC IoT Development Kit * The embARC BSP is a new generation embARC software development package. It is designed to be the inter-layer between hardware and operating system. BSP could hide the difference of hardware/boards, provide a unified interface to upper-layer. * the initial support of synopsys MWDT toolchain. The DesignWare® ARC® MetaWare Development Toolkit builds upon a 25-year legacy of industry-leading compiler and debugger products. It is a complete solution that contains all the components needed to support the development, debugging and tuning of embedded applications for the DesignWare ARC processors. * for detailed board information, pls go embarc.org. Signed-off-by: Watson Zeng <zhiwei@synopsys.com>
30 lines
549 B
C
30 lines
549 B
C
/*
|
|
* 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;
|
|
}
|
|
|