summaryrefslogtreecommitdiff
path: root/src/timer.c
diff options
context:
space:
mode:
authorMeco Man <[email protected]>2024-02-19 01:35:50 -0500
committerMeco Man <[email protected]>2024-02-19 01:56:21 -0500
commit2748a6ada432152887ed2cad059e43e2a130793c (patch)
tree6679e6465f607f72f6519824f13a1bbc8c87c5fb /src/timer.c
parent4cbc1a41f6458c58611aa96b893fbac597cb3384 (diff)
[kernel] fix some strict compiling warnings
Diffstat (limited to 'src/timer.c')
-rw-r--r--src/timer.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/timer.c b/src/timer.c
index 3520b5cde5..a470ca2890 100644
--- a/src/timer.c
+++ b/src/timer.c
@@ -748,7 +748,7 @@ rt_tick_t rt_timer_next_timeout_tick(void)
* @brief This function will check software-timer list, if a timeout event happens, the
* corresponding timeout function will be invoked.
*/
-void rt_soft_timer_check(void)
+static void _soft_timer_check(void)
{
rt_tick_t current_tick;
struct rt_timer *t;
@@ -829,6 +829,8 @@ static void _timer_thread_entry(void *parameter)
rt_tick_t next_timeout;
rt_base_t level;
+ RT_UNUSED(parameter);
+
rt_sem_control(&_soft_timer_sem, RT_IPC_CMD_SET_VLIMIT, (void*)1);
while (1)
@@ -858,7 +860,7 @@ static void _timer_thread_entry(void *parameter)
}
/* check software timer */
- rt_soft_timer_check();
+ _soft_timer_check();
}
}
#endif /* RT_USING_TIMER_SOFT */