提交 e7cb38c9 编写于 作者: Nameless-Y's avatar Nameless-Y

[src]解除组件初始化与使用user main的依赖

上级 2ed84b61
......@@ -6,9 +6,6 @@ src = Glob('*.c')
CPPPATH = [RTT_ROOT + '/include']
if GetDepend('RT_USING_COMPONENTS_INIT') == False:
SrcRemove(src, ['components.c'])
if GetDepend('RT_USING_MODULE') == False:
SrcRemove(src, ['module.c'])
......
......@@ -126,6 +126,7 @@ void rt_components_init(void)
}
#endif
}
#endif /* RT_USING_COMPONENTS_INIT */
#ifdef RT_USING_USER_MAIN
......@@ -173,10 +174,11 @@ void main_thread_entry(void *parameter)
{
extern int main(void);
extern int $Super$$main(void);
#ifdef RT_USING_COMPONENTS_INIT
/* RT-Thread components initialization */
rt_components_init();
#endif
#ifdef RT_USING_SMP
rt_hw_secondary_cpu_up();
#endif
......@@ -254,4 +256,3 @@ int rtthread_startup(void)
return 0;
}
#endif
#endif
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册