提交 3730ddce 编写于 作者: X xionglei6

fix: system run loop in liteos

Signed-off-by: Nxionglei6 <xionglei6@huawei.com>
上级 85a97645
......@@ -80,5 +80,13 @@ void SystemConfig(void)
void SystemRun(void)
{
#ifndef __LITEOS__
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.
先完成此消息的编辑!
想要评论请 注册