summaryrefslogtreecommitdiff
path: root/bsp/hc32/tests/test_clock_timer.c
diff options
context:
space:
mode:
Diffstat (limited to 'bsp/hc32/tests/test_clock_timer.c')
-rw-r--r--bsp/hc32/tests/test_clock_timer.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/bsp/hc32/tests/test_clock_timer.c b/bsp/hc32/tests/test_clock_timer.c
index b5536b9bed..649bf35a4f 100644
--- a/bsp/hc32/tests/test_clock_timer.c
+++ b/bsp/hc32/tests/test_clock_timer.c
@@ -151,7 +151,8 @@ static int clock_timer_sample(int argc, char *argv[])
}
/* 确保oneshot模式cb函数执行一次后才关闭定时器 */
- while (cb_run == RT_FALSE);
+ while (cb_run == RT_FALSE)
+ ;
cb_run = RT_FALSE;
/* close */
@@ -160,5 +161,5 @@ static int clock_timer_sample(int argc, char *argv[])
return ret;
}
/* 导出到 msh 命令列表中 */
-MSH_CMD_EXPORT(clock_timer_sample, clock_timer sample: devname [oneshot | period] timeout);
+MSH_CMD_EXPORT(clock_timer_sample, clock_timer sample : devname[oneshot | period] timeout);
#endif