提交 c3d4728f 编写于 作者: X xionglei6 提交者: 熊磊

fixed 3730ddce from https://gitee.com/xionglei6/startup_init_lite/pulls/392

fix: system run loop in liteos
Signed-off-by: Nxionglei6 <xionglei6@huawei.com>
上级 fa7f95d3
...@@ -80,5 +80,13 @@ void SystemConfig(void) ...@@ -80,5 +80,13 @@ void SystemConfig(void)
void SystemRun(void) void SystemRun(void)
{ {
#ifndef __LITEOS__
LE_RunLoop(LE_GetDefaultLoop()); LE_RunLoop(LE_GetDefaultLoop());
#else
while (1) {
// pause only returns when a signal was caught and the signal-catching function returned.
// pause only returns -1, no need to process the return value.
(void)pause();
}
#endif
} }
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册