Skip to content

Commit 8d526a7

Browse files
authored
[libcpu] 删除多余的RT_ASSERT判断条件
RT_TICK_PER_SECOND 会在Kconfig里有范围约束
1 parent f5f5bc9 commit 8d526a7

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

libcpu/sim/posix/cpu_port.c

-2
Original file line numberDiff line numberDiff line change
@@ -503,8 +503,6 @@ static void start_sys_timer(void)
503503
struct itimerval itimer, oitimer;
504504
int us;
505505

506-
RT_ASSERT(RT_TICK_PER_SECOND <= 1000000 || RT_TICK_PER_SECOND >= 1);
507-
508506
us = 1000000 / RT_TICK_PER_SECOND - 1;
509507

510508
TRACE("start system tick!\n");

0 commit comments

Comments
 (0)