提交 840247a3 编写于 作者: W William Wang

tests,southlake,hello_intr: trim hello_intr test

上级 ca8f884f
......@@ -17,10 +17,15 @@ void hello_intr() {
printf(" t = timer, d = device, y = yield\n");
_intr_write(1);
// printf("hello intr written\n");
#if defined(__ARCH_RISCV64_XS_SOUTHLAKE) || defined(__ARCH_RISCV64_XS_SOUTHLAKE_FLASH)
for (volatile int i = 0; i < 10; i++) ;
_yield();
#else
while (1) {
for (volatile int i = 0; i < 10000000; i++) ;
_yield();
}
#endif
}
void hello_n(int n);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册